Gallery has no sort by stitch count, by thread count, by file size, or by hoop size — only date-based sorts (newest/oldest/recently-edited) and name sorts #222
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#222
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
src/components/gallery/types.ts:24-28defines 5 sort modes:newest(by created date)oldest(by created date)name-asc(filename A→Z)name-desc(filename Z→A)recently-edited(by edited date)No
by-stitch-count,by-thread-count,by-file-size,by-hoop-size, orby-favoritesorts.A user with 30 designs who wants to find their largest (most-stitched) design:
A user who wants to find their small designs (low thread count, quick to embroider):
Where
src/components/gallery/types.ts:24-28src/pages/Gallery.tsx:654(the<select>withonChange={(e) => setSortMode(e.target.value as SortMode)})src/pages/Gallery.tsx(theuseMemothat applies the sort)Suggested fix shape
Add to the SortMode union:
The sort logic in Gallery's
useMemoadds the new branches:The dropdown's option labels are localized: "Most stitches", "Fewest stitches", "Most colors", "Fewest colors", "Smallest hoop first", "Largest hoop first".
Severity
Low. The user can read the stitch count on each card. Power users with many designs notice.
Discovered by
Gap analysis (2026-10-02) of gallery sort options.
Related
Shipped in commit
04ebaf2— extended the SortMode union with most/fewest-stitches, most/fewest-threads, and hoop-asc/hoop-desc; Gallery dropdown now offers six new sort options with localized labels. Hoop comparison parses the leading digit from the WxH string so 4x4 < 5x7 < 6x10 < 8x12. tsc + lint + 14/14 gallery tests pass.