refactor(catalog): derive desktop sort options from SORT_FIELD_LABELS #14

Closed
fabi wants to merge 1 commits from refactor/desktop-sort-options into main

1 Commits

Author SHA1 Message Date
MechaCat02
a08c49b708 refactor(catalog): derive desktop sort options from SORT_FIELD_LABELS
All checks were successful
deploy / test-backend (pull_request) Successful in 27m32s
deploy / test-frontend (pull_request) Successful in 10m21s
deploy / build-and-push (pull_request) Has been skipped
deploy / deploy (pull_request) Has been skipped
The desktop sort <select> hard-coded its four <option>s while the mobile
sort sheet rendered them from SORT_FIELD_LABELS. The two happened to match,
but a label rename in mangaSort.ts would have silently diverged the desktop
control. Render the desktop options from the same map so they can't.

No behaviour change (the rendered options are identical), so no version
bump. Adds an e2e guard asserting the desktop select's option values and
labels equal SORT_FIELD_LABELS in order — verified red against the old
hard-coded markup (with a label renamed) and green after.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 19:22:45 +02:00