From bf61e69776f078816516496f72b6a90228ed894e Mon Sep 17 00:00:00 2001 From: bboysoul Date: Thu, 10 Sep 2026 12:16:45 +0800 Subject: [PATCH] feat: unify completed filters in topbar --- frontend/src/App.vue | 11 ++-- frontend/src/MvpPanel.vue | 4 +- .../components/CompletedFilterPill.test.ts | 57 +++++++++++++++++++ .../src/components/CompletedFilterPill.vue | 31 ++++++++++ frontend/src/style.css | 11 ++-- frontend/src/style.test.ts | 52 ++++++++++------- 6 files changed, 133 insertions(+), 33 deletions(-) create mode 100644 frontend/src/components/CompletedFilterPill.test.ts create mode 100644 frontend/src/components/CompletedFilterPill.vue diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 2297e58..17e91cc 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -15,6 +15,7 @@ import { positionArchivedMenu, resolveArchivedMenuFocusTarget } from './lib/arch import MvpPanel from './MvpPanel.vue' import CountdownPanel from './CountdownPanel.vue' import FloatingAddButton from './components/FloatingAddButton.vue' +import CompletedFilterPill from './components/CompletedFilterPill.vue' import CalendarPicker from './components/CalendarPicker.vue' type FolderItem = { id: string; name: string } @@ -1180,17 +1181,17 @@ onUnmounted(() => {
-
+
-

{{ activeName }}

+

{{ activeName }}

+
-
{{ totalPages > 1 ? `第 ${page} / ${totalPages} 页 · ` : '' }}共 {{totalTasks}} 项
+
{{ totalPages > 1 ? `第 ${page} / ${totalPages} 页 · ` : '' }}共 {{totalTasks}} 项
{{page}} / {{totalPages}}