From c3f8abd87ed58ba3b21bd190bf753e7af4a33879 Mon Sep 17 00:00:00 2001 From: Bobby Quantum Date: Thu, 3 Sep 2026 23:11:59 +0100 Subject: [PATCH 1/4] feat(home): sort projects by updated, created, or title Add a sort menu to the home header so writers can order the project grid by recently updated (default), recently created, or title. Shared projects are now interleaved with owned projects instead of appended. The choice is persisted in localStorage. --- frontend/public/assets/i18n/en/home.json | 6 ++ .../src/app/pages/home/home.component.html | 28 ++++++ .../src/app/pages/home/home.component.scss | 8 ++ .../src/app/pages/home/home.component.spec.ts | 86 ++++++++++++++++++- frontend/src/app/pages/home/home.component.ts | 74 +++++++++++++++- 5 files changed, 199 insertions(+), 3 deletions(-) diff --git a/frontend/public/assets/i18n/en/home.json b/frontend/public/assets/i18n/en/home.json index f1dfbf2f3..4f9c3a1f2 100644 --- a/frontend/public/assets/i18n/en/home.json +++ b/frontend/public/assets/i18n/en/home.json @@ -30,6 +30,12 @@ "activateAction": "Download to this device", "deleteAction": "Delete project", "cancelSyncTooltip": "Cancel sync ({{progress}}% complete)", + "sort": { + "tooltip": "Sort projects", + "updated": "Recently updated", + "created": "Recently created", + "title": "Title (A–Z)" + }, "tooltips": { "onlineOnly": "Only available in online mode", "offline": "Cannot sync while offline", diff --git a/frontend/src/app/pages/home/home.component.html b/frontend/src/app/pages/home/home.component.html index 495e66b4b..b24c6dac5 100644 --- a/frontend/src/app/pages/home/home.component.html +++ b/frontend/src/app/pages/home/home.component.html @@ -152,6 +152,34 @@ } @if (isAuthenticated()) { + + + @for (order of sortOrders; track order) { + + } + +