Repository navigation
fix(web): hide the Filters sheet's Advanced sort on a search - #4507
Conversation
A text search ranks by relevance and sorts from the toolbar, which offers Relevance. The sheet's Advanced Sort by has no Relevance entry, so it showed the Date Added placeholder (or Title with sort=relevance) while results were ranked by relevance, and picking Date Added there did nothing. Hide it on the search page, as the Guided view already does. Closes Silo-Server#4453
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
🤖 Claude Code (claude-opus-5-5) Maintainer review of What I checked
Validated features: none affected. Movies — Web (#199) and Series — Web (#1252) C1 cover searching and filtering by type, which this change leaves alone. User manual: unaffected. The search page in the manual doesn't describe the Advanced sort. Other clients: the PR's N/A entries hold. This sheet exists only in the web app. Fit: 9/10 · Readiness: 9/10 — ready Fit: it removes a control that showed the wrong value, adds no surface area, and keeps one sort control on the search page. Readiness: the change is small, every other caller keeps its default, and the evidence on this head shows the behavior before and after. |
Problem
Closes #4453
Related issue: N/A
Validation tasks: none
Other clients: Apple N/A (web-only Filters sheet); Android N/A (web-only Filters sheet); Roku N/A (web-only Filters sheet)
On the web search page, the Filters sheet's Advanced view showed a sort the search was not using. Results were ranked by relevance, and the toolbar said Relevance, but Advanced → Sort by read Date Added / Descending, or Title with
sort=relevancein the URL. Picking Date Added there did nothing. This change removes the Sort by row from Advanced on the search page, as the Guided view already does, so the toolbar is the only sort control there.Approach
The search page already sets
relevanceSortonCatalogFiltersPanel. The panel now tells the sheet to hide the Advanced Sort by when that prop is set, and the rules editors take an optional flag to hide it. Every other use of the rules editors keeps its sort: library browsing, lists and collections, and the collection and row rule editors.Nothing is lost on a search. The Advanced list and the toolbar list come from the same
getCollectionSortOptions, and only the toolbar can offer Relevance. Adding Relevance to the Advanced list was the other option, but that list is shared with the collection and rule editors, where Relevance does not apply.Validation
make test-webpasses (286 files).verify-local-paths,verify-case-collisionsandverify-size-ratchetpass. No Go changes, so the Go checks were not run.sort=relevancein the URL, then opening Filters → Advanced: before, the sheet showed Date Added / Descending (Title / Descending withsort=relevance) while the toolbar showed Relevance; after, the sheet has no Sort by and the toolbar shows Relevance.sort=relevance.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-4507/
Surface and build: web app, desktop (1440px) and mobile (390px), search page with the Filters sheet on Advanced. Before =
e8de1117e, after = this branch, same server and library.Risks
On the search page, a viewer who used Advanced to pick a sort now uses the toolbar, which offers the same sorts plus Relevance.
Checklist
AI Disclosure
gpt-6.2-sol,gpt-6.2-astra,claude-opus-5-5and Claude Fable 5.2), reconciled against the code. None found a correctness or spec problem. One low-severity note, a code comment that still said Advanced always has a Sort by, was fixed. A note on the flag being named differently at the sheet and in the editors was left as is, since the sheet name says which of its two editors it affects.