From c66c3b926ca72bd3f099f40d5ac58f62bf696bc6 Mon Sep 17 00:00:00 2001 From: LuoPengcheng <2653972504@qq.com> Date: Fri, 21 Nov 2025 01:44:49 +0800 Subject: [PATCH 1/5] feat: add-task hover --- .../GroupedHistoryView/ProjectDialog.tsx | 15 +++++++++------ .../GroupedHistoryView/ProjectGroup.tsx | 12 +++++++----- .../GroupedHistoryView/TaskItem.tsx | 6 ++++-- src/components/GroupedHistoryView/index.tsx | 19 +++++++++++-------- 4 files changed, 31 insertions(+), 21 deletions(-) diff --git a/src/components/GroupedHistoryView/ProjectDialog.tsx b/src/components/GroupedHistoryView/ProjectDialog.tsx index 55d63536..abfadd8b 100644 --- a/src/components/GroupedHistoryView/ProjectDialog.tsx +++ b/src/components/GroupedHistoryView/ProjectDialog.tsx @@ -20,6 +20,7 @@ import { LoaderCircle, } from "lucide-react"; import { useProjectStore } from "@/store/projectStore"; +import { TooltipSimple } from "@/components/ui/tooltip"; interface ProjectDialogProps { open: boolean; @@ -182,12 +183,14 @@ export default function ProjectDialog({ {t("layout.total-tasks")} -
- - - {project.task_count} - -
+ +
+ + + {project.task_count} + +
+
diff --git a/src/components/GroupedHistoryView/ProjectGroup.tsx b/src/components/GroupedHistoryView/ProjectGroup.tsx index 4418d9a7..5c02016f 100644 --- a/src/components/GroupedHistoryView/ProjectGroup.tsx +++ b/src/components/GroupedHistoryView/ProjectGroup.tsx @@ -335,10 +335,12 @@ export default function ProjectGroup({ {project.total_tokens ? project.total_tokens.toLocaleString() : "0"} - - - {project.task_count} - + + + + {project.task_count} + +
{/* End: Status and menu */} @@ -401,4 +403,4 @@ export default function ProjectGroup({ /> ); -} \ No newline at end of file +} diff --git a/src/components/GroupedHistoryView/TaskItem.tsx b/src/components/GroupedHistoryView/TaskItem.tsx index e93f7a89..8d92a7ad 100644 --- a/src/components/GroupedHistoryView/TaskItem.tsx +++ b/src/components/GroupedHistoryView/TaskItem.tsx @@ -88,7 +88,9 @@ export default function TaskItem({ `} >
- + + +
); -} \ No newline at end of file +} diff --git a/src/components/GroupedHistoryView/index.tsx b/src/components/GroupedHistoryView/index.tsx index 9f926435..f5e1fd73 100644 --- a/src/components/GroupedHistoryView/index.tsx +++ b/src/components/GroupedHistoryView/index.tsx @@ -6,6 +6,7 @@ import ProjectGroup from "./ProjectGroup"; import { useTranslation } from "react-i18next"; import { Loader2, FolderOpen, Pin, Hash, LayoutGrid, List, Sparkles, Sparkle } from "lucide-react"; import { Tag } from "@/components/ui/tag"; +import { TooltipSimple } from "@/components/ui/tooltip"; import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { useGlobalStore } from "@/store/globalStore"; import { proxyFetchDelete, proxyFetchPut } from "@/api/http"; @@ -264,13 +265,15 @@ export default function GroupedHistoryView({ - - - {t("layout.total-tasks")} - - {allProjects.reduce((total, project) => total + project.task_count, 0)} - - + + + + {t("layout.total-tasks")} + + {allProjects.reduce((total, project) => total + project.task_count, 0)} + + +
); -} \ No newline at end of file +} From 137d5845552aca3bca95a61e980df9587150dde3 Mon Sep 17 00:00:00 2001 From: LuoPengcheng <2653972504@qq.com> Date: Fri, 21 Nov 2025 01:55:32 +0800 Subject: [PATCH 2/5] feat: remove top hover --- src/components/GroupedHistoryView/index.tsx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/components/GroupedHistoryView/index.tsx b/src/components/GroupedHistoryView/index.tsx index f5e1fd73..34c63996 100644 --- a/src/components/GroupedHistoryView/index.tsx +++ b/src/components/GroupedHistoryView/index.tsx @@ -6,7 +6,6 @@ import ProjectGroup from "./ProjectGroup"; import { useTranslation } from "react-i18next"; import { Loader2, FolderOpen, Pin, Hash, LayoutGrid, List, Sparkles, Sparkle } from "lucide-react"; import { Tag } from "@/components/ui/tag"; -import { TooltipSimple } from "@/components/ui/tooltip"; import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { useGlobalStore } from "@/store/globalStore"; import { proxyFetchDelete, proxyFetchPut } from "@/api/http"; @@ -265,15 +264,13 @@ export default function GroupedHistoryView({ - - - - {t("layout.total-tasks")} - - {allProjects.reduce((total, project) => total + project.task_count, 0)} - - - + + + {t("layout.total-tasks")} + + {allProjects.reduce((total, project) => total + project.task_count, 0)} + +
Date: Fri, 21 Nov 2025 02:00:26 +0800 Subject: [PATCH 3/5] minor format --- src/components/GroupedHistoryView/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/GroupedHistoryView/index.tsx b/src/components/GroupedHistoryView/index.tsx index 34c63996..9f926435 100644 --- a/src/components/GroupedHistoryView/index.tsx +++ b/src/components/GroupedHistoryView/index.tsx @@ -429,4 +429,4 @@ export default function GroupedHistoryView({
); -} +} \ No newline at end of file From 8774db71e870bef035148c7e24b398676c5e51dc Mon Sep 17 00:00:00 2001 From: LuoPengcheng <2653972504@qq.com> Date: Fri, 21 Nov 2025 02:04:27 +0800 Subject: [PATCH 4/5] minor format --- .../GroupedHistoryView/ProjectDialog.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/components/GroupedHistoryView/ProjectDialog.tsx b/src/components/GroupedHistoryView/ProjectDialog.tsx index abfadd8b..55d63536 100644 --- a/src/components/GroupedHistoryView/ProjectDialog.tsx +++ b/src/components/GroupedHistoryView/ProjectDialog.tsx @@ -20,7 +20,6 @@ import { LoaderCircle, } from "lucide-react"; import { useProjectStore } from "@/store/projectStore"; -import { TooltipSimple } from "@/components/ui/tooltip"; interface ProjectDialogProps { open: boolean; @@ -183,14 +182,12 @@ export default function ProjectDialog({ {t("layout.total-tasks")} - -
- - - {project.task_count} - -
-
+
+ + + {project.task_count} + +
From 8cd96e55d36ae3f85a958581a924cad3f3d739ee Mon Sep 17 00:00:00 2001 From: Wendong-Fan Date: Fri, 21 Nov 2025 02:21:21 +0800 Subject: [PATCH 5/5] fix --- src/components/GroupedHistoryView/ProjectGroup.tsx | 2 +- src/components/GroupedHistoryView/TaskItem.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/GroupedHistoryView/ProjectGroup.tsx b/src/components/GroupedHistoryView/ProjectGroup.tsx index 5c02016f..1410ac3a 100644 --- a/src/components/GroupedHistoryView/ProjectGroup.tsx +++ b/src/components/GroupedHistoryView/ProjectGroup.tsx @@ -335,7 +335,7 @@ export default function ProjectGroup({ {project.total_tokens ? project.total_tokens.toLocaleString() : "0"} - + {project.task_count} diff --git a/src/components/GroupedHistoryView/TaskItem.tsx b/src/components/GroupedHistoryView/TaskItem.tsx index 8d92a7ad..8ec8f7e5 100644 --- a/src/components/GroupedHistoryView/TaskItem.tsx +++ b/src/components/GroupedHistoryView/TaskItem.tsx @@ -88,7 +88,7 @@ export default function TaskItem({ `} >
- +