Gallery has search and view toggle but no sort, no date range, no favorites quick-filter, and Design has no updatedAt field — large galleries are unmanageable #151
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
The Gallery's filter toolbar (
src/pages/Gallery.tsx:368-510) has:It does NOT have:
The Gallery's
loadDesigns()returns designs in localStorage insertion order. There's no sorting, no last-edited tracking (Design hascreatedAtbut noupdatedAt), no filtering beyond the active folder and the search query.A user with 50+ saved designs cannot find their most recent work without scrolling. The Favorites tab is the only way to filter; if a user has 20 favorites and 80 non-favorites, they have to click between two tabs.
Where
src/pages/Gallery.tsx:368-510src/pages/Gallery.tsx:60-82(thefilteredDesignsuseMemo)src/components/gallery/types.ts:9(noupdatedAtfield)Suggested fix shape
Two changes:
Add a sort dropdown to the toolbar next to the view toggle. Options:
createdAtdesc) — current defaultcreatedAtasc)filenameasc)filenamedesc)Persist the sort selection in component state (no need to save to localStorage; it's a session preference).
Add an
updatedAtfield to the Design type and update it whenever a design is edited (e.g. when the Workspace saves an updated version of the same design). Then add a "Recently edited" sort that uses this field.Add a "Favorites only" toggle button in the toolbar that prepends the favorites filter to the existing folder/search filters. (The Favorites folder tab still works; this is a quick-access toggle.)
Severity
Medium. Users with many designs need sort + favorites quick-filter. With 5 designs, no issue. With 50+, the UX degrades sharply.
Discovered by
Gap analysis (2026-10-02) of Gallery affordances.
Related
NewFolderDialogcomponent per the #134 fix (in progress). The toolbar's other affordances haven't been audited for the same kind of completeness.Fixed in commit
b04ddd9on origin/main.Sort dropdown (session-only) added to the toolbar: Newest first, Oldest first, Recently edited, Name A-Z, Name Z-A. Defaults to 'Newest first' to match the prior localStorage-insertion-order behavior.
Favorites-only quick-filter toggle button added next to the view toggle. It composes with the active folder tab, so a user can narrow to favorites within any folder (not just at the Favorites folder tab).
Sort is keyed on the existing
editedAtfield (set byWorkspace.saveDesignon #63), so no schema migration is required. Note: the issue body referencedupdatedAt; the actual field iseditedAt. The semantics are identical for sort purposes.9 new tests in src/pages/issue-151.test.tsx. 613/613 vitest pass, eslint clean, tsc -b clean.