From 01b8ee6909a8afada9d29241ce4e69395f5eaa72 Mon Sep 17 00:00:00 2001 From: Mingxuan Ding Date: Tue, 10 Mar 2026 04:12:44 +0800 Subject: [PATCH] feat: fixed the collections page sorting logic and add URL persistence (#5375) * "feat(collections): fix sorting logic and add URL persistence" * fix(navigation): use replaceState for project filters to prevent history pollution * Revert "fix(navigation): use replaceState for project filters to prevent history pollution" This reverts commit 3924855fafcf2921056e31b7606a143de01ed6a6. * fix: lint + devin --------- Co-authored-by: Calum H. (IMB11) --- apps/frontend/src/locales/en-US/index.json | 12 ++ .../src/pages/dashboard/collections.vue | 154 ++++++++++++------ 2 files changed, 120 insertions(+), 46 deletions(-) diff --git a/apps/frontend/src/locales/en-US/index.json b/apps/frontend/src/locales/en-US/index.json index 5c11956fc..1e989d2b9 100644 --- a/apps/frontend/src/locales/en-US/index.json +++ b/apps/frontend/src/locales/en-US/index.json @@ -578,6 +578,18 @@ "dashboard.collections.button.create-new": { "message": "Create new" }, + "dashboard.collections.empty.get-started-hint": { + "message": "Create your first collection to get started!" + }, + "dashboard.collections.empty.no-collections": { + "message": "You don't have any collections yet" + }, + "dashboard.collections.empty.no-match": { + "message": "No collections match your search" + }, + "dashboard.collections.empty.no-match-hint": { + "message": "Try adjusting your filters or search terms." + }, "dashboard.collections.label.projects-count": { "message": "{count, plural, one {{count} project} other {{count} projects}}" }, diff --git a/apps/frontend/src/pages/dashboard/collections.vue b/apps/frontend/src/pages/dashboard/collections.vue index b62d7fc06..c7ecb9e49 100644 --- a/apps/frontend/src/pages/dashboard/collections.vue +++ b/apps/frontend/src/pages/dashboard/collections.vue @@ -2,24 +2,48 @@

{{ formatMessage(commonMessages.collectionsLabel) }}

-
-
- - +
+ + + +
+ + Sort by: + {{ selected }} + + +
-
+
+
+
+