You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(web): give search results the full width and a fixed spot for requests - #4450
Related issue: N/A
Validation tasks: changes #1204 C1 (request results move into the search overview and their own view); changes #1144 C3 (People moves within the search page)
Other clients: Apple N/A (web-only layout; native search screens unchanged); Android N/A (web-only layout; native search screens unchanged); Roku N/A (web-only layout)
On the web, search results were boxed into 1400px in the middle of the page, unlike library pages, so wide screens showed large empty margins. Worse, the titles you can request ("Request to add") were drawn after the whole library grid, which loads more as you scroll. With Meilisearch and search by meaning on, a two-word search returns hundreds of loosely related library titles, so the request results were effectively unreachable. The sort menu also showed "Date Added" for a search that was actually ranked by relevance, and once another sort was picked there was no way back to relevance.
This change gives text searches their own page. It uses the full width, keeps the request results at a fixed spot two rows into the library results however many come back, and moves the long lists into their own views.
Approach
Catalog now sends any text search to a new SearchResults page. Lists, collections and library browsing stay on Catalog, and their search-only code is removed.
The page has three views, kept in the URL as view:
Overview (default): box sets, then two rows of library results, the "Not in your library" row of requestable titles, People, and three more rows with "Show all results". Rows follow the rendered column count, so the overview is the same height at any width and for any number of results.
In your library: the existing windowed ItemGrid with every library result.
Request to add: the existing paged request grid.
Under Relevance, the first two rows are "Best matches" and the rest "More results". Under any other sort that split is meaningless, so the rows read as one "In your library" list, with the sort's name and a "Back to relevance" link, and the request row still two rows in.
Relevance is offered in the sort menu through the toolbar slot collections use for their own order, so it stays out of the shared sort list, which collections and the rule editors also use. It is selected until another sort is picked, and picking it again sends sort=relevance. A search typed while browsing one library used to send the Date Added default and was sorted by date; it now ranks by relevance like any other search.
Library browsing and LibraryBrowse share a new useCatalogVisibleRange hook that replaces three copies of the same windowing code. The new strings come from Silo-Server/silo-translations#81, now merged; the locale files are synced from its release, 2026.11.17-eba8054.
The maintainer review added one fix commit. A URL that keeps sort=relevance after its search text is cleared falls back to the default sort, since the server rejects relevance without text. A library browse no longer writes its Date Added default into the URL, so a search typed after a filter change still ranks by relevance. The Filters sheet keeps Relevance when it changes the media type. A search URL from before these views that names a later request_page opens the request list. The review also fixed a few empty and loading states and restored the page's h1.
Validation
Web lint, Prettier, type check, build and bundle budget pass; make test-web passes (899 files).
verify-local-paths, verify-case-collisions and verify-size-ratchet pass. No Go changes, so the Go checks were not run.
Tests cover where the request results sit under both sorts, Relevance in the sort menu (including picking Date Added from it), the library-scoped search sort, and failure states: a failed library search, a failed People search, and empty results.
Checked in a browser on a local server with an 810-title library and Meilisearch search by meaning: switching between Relevance, Title and Date Added; the overview, library and request views; phone width; and validation case Person / cast & crew browsing — Web #1144 C3 (searching an actor and a director opens their person pages).
Maintainer review: the sheet and cleared-search sort fixes were checked before and after on a dev sandbox, and the review's new tests fail on ec73cdb.
Adversarial review: two rounds of independent review, by claude-opus-5-5 and gpt-6.1-sol in parallel, of correctness, repository standards and the requested behaviour, reconciled against the code. The first round found 12 issues and 11 were fixed, among them a Date Added pick that the Relevance default ignored, a library search failure that also hid People, a request view that ignored the audiobook scope, and library-scoped searches sorted by date. The one skipped was a shared constant for the request-search options. The second round, on the final diff, found an empty state that hid later request pages and a linked request view that briefly showed the overview; both are fixed and tested.
Note
Add dedicated full-width SearchResults page with fixed requests section and relevance sorting
New SearchResults.tsx page renders nonempty text searches, with overview, library, and requests views defined in searchResultsView.ts. The overview caps best-match and additional-result rows based on measured grid columns.
Catalog now dispatches to SearchResults for text searches and removes people, box-set, and request results from CatalogResults; that coverage moves to SearchResults.test.tsx.
Text searches default to relevance sorting. catalogSearchParams.ts adds searchSortsByRelevance and omits implicit Date Added sort from query URLs and API params when search text is present; CatalogFiltersPanel.tsx offers a Relevance sort via the new relevanceSort prop.
SearchBar gains a hero layout variant, and all locale catalogs add strings for the relevance sort and search-result labels.
Risk: CatalogResults no longer renders people, box-set, or request-search sections in the catalog path; check Catalog.tsx consumers of those integrations.
No actionable comments were generated in the recent review.
Walkthrough
The catalog now routes nonempty text searches to a dedicated page with overview, library, and requests views. Search controls support relevance sorting and URL-based scope changes. Catalog browsing and library browsing use shared visible-range handling. The changes also add search labels across locales.
Searches can use relevance as the default sort. Selecting another sort marks it explicit, and changing media scope preserves an active relevance sort. Scope-chip changes save the selected preference, update the URL, and remove the request-page parameter. Tests cover sorting and scope changes.
Search view and overview state web/src/pages/searchResultsView.ts, web/src/pages/searchResultsView.test.ts
View helpers read and update URL state for overview, library, and requests. The overview helper divides results into best-match and additional rows and reports when more results are available.
Search results page and presentation web/src/pages/SearchResults.tsx, web/src/pages/SearchResults.test.tsx, web/src/components/SearchBar.tsx
The new page combines catalog, people, box-set, and request results. It provides overview, library, and requests views, with loading, error, empty, sorting, and paging states. SearchBar adds a hero style.
Catalog routing and visible ranges web/src/pages/Catalog.tsx, web/src/pages/Catalog.test.tsx, web/src/hooks/useCatalogVisibleRange.ts, web/src/pages/LibraryBrowse.tsx
Catalog routes nonempty text searches to SearchResults and keeps source browsing in Catalog. Catalog and LibraryBrowse use the shared visible-range hook. Catalog tests remove coverage for search behaviors now handled by SearchResults.
Search labels and translations web/src/locales/keys.ts, web/src/locales/*.json, .silo-translations
Locale keys and translations add relevance-sort and search-results labels. Some locale files also add a Watch Party Redis requirement message. The translation manifest revision and checksum change.
Text searches move to a dedicated results page with relevance sorting. No unresolved merge-blocking issue was found. The maintainer-listed minor display limitations remain.
Architecture risk: Low · up to 31b16
The change affects 1 system.
Changed systems:web
Architecture concerns
No architecture-level concerns identified.
Review details
Systems and components
observed — web (service) was modified; 57 changed files map to changed impact.
Before / after behavior
observed — Modified behavior in web/src/components/catalog/CatalogFiltersPanel.test.tsx: The test imports render and screen from Testing Library.
observed — Modified behavior in web/src/components/catalog/CatalogFiltersPanel.test.tsx: The queryDefinitionToGuidedState mock now accepts an optional query definition with sort fields, replacing the no-argument mock signature.
observed — Modified behavior in web/src/components/catalog/CatalogFiltersPanel.test.tsx: The mock derives sortField and sortOrder from the query definition, falling back to added_at and desc when either value is absent.
observed — Modified behavior in web/src/components/catalog/CatalogFiltersPanel.test.tsx: Adds parameterized rendering tests that expect the sort menu to show Relevance for no selected sort, a relevance sort from the URL, and a different selected sort.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the two main user-facing changes: full-width search results and a fixed position for request results. It matches the changeset, which adds a dedicated SearchResults page with a full-wi…
Description check
The description explains the problem, the new SearchResults page with its overview, library and request views, the Relevance sort, the useCatalogVisibleRange hook, translation syncing, validation, and…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the two main user-facing changes: full-width search results and a fixed position for request results. It matches the changeset, which adds a dedicated SearchResults page with a full-width layout and a request-results slot two rows into the library results. It omits the Relevance sort and the new views, but it does not mislead.
Full details: Description check
Explanation
The description explains the problem, the new SearchResults page with its overview, library and request views, the Relevance sort, the useCatalogVisibleRange hook, translation syncing, validation, and risks. It matches the changeset closely.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Tools execution failed with the following error:
Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: d8db7f6e-81ff-4410-8f32-7cc0bcd5449a
Commits
Reviewing files that changed from the base of the PR and between cd15840 and 31b1662.
Files skipped from review as they are similar to previous changes: 2
web/src/components/SearchBar.tsx
web/src/locales/keys.ts
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
A failed catalog refetch replaces cached first rows with an error
A background refetch failure hides usable cached rows behind an error. Preserve the rows and show a stale-data notice with a retry for catalogQuery; replace the results only when no cached data is available.
File web/src/pages/SearchResults.tsx, line 334:
A failed catalog refetch replaces cached first rows with an error
Handle background refetch failures separately from initial failures. Preserve the current query's cached first rows and show an inline stale-data notice that retries `catalogQuery`; only replace the results when there is no usable cached data.
**Also found in:**
- `web/src/pages/SearchResults.tsx:270-270`
- `web/src/pages/SearchResults.test.tsx:212-212`
- `web/src/pages/SearchResults.tsx:423-423`
- `web/src/pages/SearchResults.tsx:401-401`
Kody rule violation: [Index cached relationships in both directions and expose refresh failures](https://kodus.siloserver.org/settings/code-review/1247142351/kody-rules/a5a3f62e-8e8e-4634-b4f3-6afe92f90796?teamId=ba9922fc-c0ea-4cf8-87bb-9d4f42ffc73e)
The reason will be displayed to describe this comment to others. Learn more.
Not changing this. The search page before this pull request did the same on purpose (its test was "hides stale results and explains a bounded search failure"). While a new search loads, the cached rows can belong to the previous query, so showing them under the new one would be wrong. The error shows the retry, and box sets, people and the request results stay visible.
The reason will be displayed to describe this comment to others. Learn more.
Understood. Hiding results that might belong to a previous query avoids presenting them as matches for the current search, and the error provides a retry without hiding the other result sections. I withdraw the suggestion; no change is needed.
The reason will be displayed to describe this comment to others. Learn more.
Search results lose personalized filters and sorting options
Text searches no longer offer personalized filters or sorting because CatalogFiltersPanel uses its disabled defaults. Pass allowPersonalizedFilters and allowPersonalizedSorts as the previous CatalogResults caller did.
Prompt for LLM
File web/src/pages/SearchResults.tsx, lines 463-465:
Search results lose personalized filters and sorting options
Text searches no longer offer personalized filters or sorts because this panel uses their `false` defaults, although the previous query-source panel enabled both. Pass `allowPersonalizedFilters` and `allowPersonalizedSorts` as the former `CatalogResults` caller did.
Suggested code:
<CatalogFiltersPanel
relevanceSort
allowPersonalizedFilters
allowPersonalizedSorts
state={effectiveState}
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. Passing both props addresses the reported regression in personalized filters and sorting. I haven’t independently verified commit cd1584093.
The reason will be displayed to describe this comment to others. Learn more.
Single-character searches leave the requests view permanently blank
useRequestSearch disables one-character queries, but requestsDeciding waits indefinitely for their data. Treat queries that cannot run as settled and fall back to the overview.
Prompt for LLM
File web/src/pages/SearchResults.tsx, lines 170-172:
Single-character searches leave the requests view permanently blank
A one-character search with `view=requests` stays on an empty page because `useRequestSearch` disables queries shorter than two characters while `requestsDeciding` waits for data indefinitely. Treat queries that cannot run as settled and fall back to the overview.
Suggested code:
(requestsEnabled && tmdbQ.trim().length > 1 && requestQuery.data === undefined && !requestQuery.isError)
The reason will be displayed to describe this comment to others. Learn more.
Fixed in cd15840: a query shorter than two characters counts as settled, matching the rule in useRequestSearch, so a linked request view falls back to the overview. Covered by a new test.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing this. The fallback and regression test sound appropriate for the reported issue. I haven’t independently verified commit cd1584093.
The reason will be displayed to describe this comment to others. Learn more.
Later request pages lack an overview entry when the first page has no matches
When the first TMDB page contains only available titles, users with library hits cannot discover later requestable pages from the overview. Render an entry point when hasRequestResults is true, even if requestable is empty.
Prompt for LLM
File web/src/pages/SearchResults.tsx, lines 379-383:
Later request pages lack an overview entry when the first page has no matches
When the first TMDB page contains only available titles but later pages exist, a search with library hits renders neither the request shelf nor any link to the requests tab until the user notices the tab. Render an entry point for `hasRequestResults` even when `requestable` is empty so later requestable pages are discoverable from the overview.
The reason will be displayed to describe this comment to others. Learn more.
Not changing this. In that case the "Request to add" tab still shows, because it appears whenever there is more than one TMDB page, and it opens the paged request list. A second entry point on the overview for an empty first page would add a row with nothing in it.
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. The Request to add tab provides access to later pages when the first page has no requestable titles, so an additional empty overview row is unnecessary. I withdraw the suggestion.
…quests
The search page was capped at 1400px and drew "Request to add" after the
whole library grid, so with search by meaning the requestable titles sat
below hundreds of loosely related library titles.
Text searches now render SearchResults: a full-width overview with two
rows of library results, the requestable titles, people and three more
rows, plus separate views for the full library list and the full request
list. Relevance is offered in the sort menu and is the default for a
search; under another sort the overview reads as one sorted list with the
request row two rows in.
A search typed while browsing one library no longer sends the Date Added
default, so it ranks by relevance like any other search.
…arches
Text searches offer the personal filters and sorts again, as the catalog
page did. A query shorter than two characters never searches TMDB, so a
linked request view for one now falls back to the overview instead of
waiting.
The reason will be displayed to describe this comment to others. Learn more.
Local translation pin prevents reproducible translation synchronization
A plain scripts/sync-translations fails, and other checkouts cannot reproduce the installed translations without the original translation checkout. Re-sync against a published release using scripts/sync-translations --version <release> before merging.
Prompt for LLM
File .silo-translations, lines 2-3:
Local translation pin prevents reproducible translation synchronization
The local translation pin makes a plain `scripts/sync-translations` fail and prevents other checkouts from reproducing the installed translations without the original translation checkout. Re-sync against the published release with `scripts/sync-translations --version <release>` before merging.
The reason will be displayed to describe this comment to others. Learn more.
Agreed, and planned: the note at the top of the description says so. The keys come from Silo-Server/silo-translations#81, which has no release yet. Once it merges and publishes one, this branch re-syncs with scripts/sync-translations --version <release> before it merges, and .silo-translations will name that release.
The reason will be displayed to describe this comment to others. Learn more.
Understood. The local pin is a temporary, documented dependency on the translations release—not an overlooked issue. The prerequisite remains to merge and release Silo-Server/silo-translations#81, then re-sync and verify the published release is pinned before merging this PR.
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 2bcaf418-b510-484c-933c-6496fb165bf4
Commits
Reviewing files that changed from the base of the PR and between 0a5b68d and cd15840.
Files selected for processing: 7
.silo-translations
web/src/locales/ar-XB.json
web/src/locales/en-XA.json
web/src/locales/en.json
web/src/locales/keys.ts
web/src/pages/SearchResults.test.tsx
web/src/pages/SearchResults.tsx
Files skipped from review as they are similar to previous changes: 3
web/src/locales/ar-XB.json
web/src/locales/en-XA.json
web/src/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.
A disabled request search keeps its cached data, so after a movie search
with several TMDB pages an empty audiobook search showed a blank page
instead of the empty message.
…honest
- A URL that kept sort=relevance after its search text was cleared asked
the server for a sort it rejects; it now falls back to the default.
- A library browse no longer writes its Date Added default into the URL,
so a search typed after a filter change still ranks by relevance.
- The Filters sheet keeps Relevance when it changes the media type,
instead of re-sorting the search by title.
- A search URL from before the views that names a later request page
opens the request list at that page again.
- The Overview tab clears a request view that fell back to the overview,
a linked request view shows a skeleton while discovery answers, and
people show a searching status when the library has nothing.
- The page names itself in an h1 for assistive tech again, the hero
search field shows focus on its hairline, and rows under another sort
no longer repeat the first section's region name.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
Maintainer review of ec73cdb. Nine findings are inline, and I'm fixing all of them in one commit on this branch, so there's nothing for you to change. The two sort findings reproduced on a sandbox built from cd15840. The first four fixes come with tests that fail on ec73cdb; the other five are small UI states traced in the code.
I also found the cached request pages in a Books scope, which ec73cdb already fixes the same way.
The reason will be displayed to describe this comment to others. Learn more.
Legacy request pagination leaves the requests view on page one
On a legacy URL with request_page=2, clicking Previous removes request_page and sends the user to the overview instead of request page 1. Preserve an explicit view=requests when paginating these URLs.
Prompt for LLM
File web/src/pages/searchResultsView.ts, line 17:
Legacy request pagination leaves the requests view on page one
A legacy URL with `request_page=2` opens the requests view, but clicking Previous removes `request_page` and sends the user to the overview instead of request page 1. Preserve an explicit `view=requests` when paginating these legacy URLs.
Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.
Reviewing changes in Silo
Include the related issue, expected behavior, and validation steps in the PR description.
For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
Follow this repository's AGENTS.md and CONTRIBUTING.md.
Request another review with @kody start-review in a PR comment.
React with 👍 or 👎 to give feedback on individual suggestions.
Review settingsReview Options
The following review options are enabled or disabled:
Options
Enabled
Bug
✅
Performance
✅
Security
✅
Business Logic
❌
⚠️ 4 Kody Rule(s) were not evaluated
These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:
Preserve optional store capabilities through production wrappers
Detach mandatory cleanup from request cancellation and bound its lifetime
Preserve durable media identity and share identity-evidence precedence
Bound decoder throughput trades and share direct-play eligibility
Reviewed head: e3e6820 (my fix commit e69b009 and the translation sync on top of ec73cdb).
Fit: 9/10 · Readiness: 9/10 — ready (assuming CI is green)
Fit: this is UX polish on a core flow, finding a title and requesting it. It adds no API surface or settings. The one stretch is a second results page that decides on its own when a filter edit makes the sort explicit, next to Catalog. That cost is small.
Readiness: the review's sort fixes were shown before and after on a dev sandbox. Their tests fail on ec73cdb. What's left is low or older than this PR (below).
Addressed
Nine findings from the review, all fixed in e69b009 and replied to in their threads:
Clearing a library-scoped search that was on Relevance left sort=relevance in the URL, and the browse failed with 422.
A media type change in the Filters sheet re-sorted a Relevance search by title.
A filtered library browse still handed Date Added to the next search.
Old request_page links lost their page.
A request view that fell back to the overview couldn't be cleared.
A linked request view was blank while it loaded.
The people loading status was gone.
The page had no h1, and the hero field showed no focus.
Two regions shared one name.
The cached request pages in a Books scope were found too; ec73cdb fixes them the same way.
Bot threads: the author's replies to Kody and CodeRabbit hold up. The declined ones match how search behaved before this PR: stale rows hidden on a failed refetch, no empty overview row for later request pages, and "No items found." after a failed TMDB search.
A search URL that names a rating sort the admin has since hidden reads "Sorted by" that rating on the overview, while the toolbar shows Title and the server ranks by relevance. That needs a URL saved before the rating was hidden.
After a query change, the request row can show the previous query's titles for the 100 ms request debounce. That predates this PR.
Tests
The PR's page, filter panel and URL tests fail on main: the request row placement, Relevance in the sort menu, and the library-scoped search sort. The review's five new or changed tests fail on ec73cdb and pass on e69b009.
Second opinion
One round by gpt-6.2-sol on cd15840, run alongside this review. Of its seven findings:
Three matched findings above (the sheet sort, the h1 and focus, the browse Date Added).
Two more were fixed: old request_page links, and the blank request view while it loads.
A failed first TMDB page still ends in "No items found." when nothing else matches. That is the same as before this PR, because the request section hides a failed first page on purpose.
The hidden rating sort and the debounce are listed above.
Validated features
Person / cast & crew browsing — Web #1144 C3 (searching an actor or director opens the person page): minor change. People now sits in the overview after the first rows, from the same person search and links. The PR body's changes #1144 C3 is right.
Requests — Web #1204 (Requests, Web) has no passed cases yet, so changes #1204 C1 changes nothing that was passed. It stays useful as a pointer for whoever runs C1.
No regressions found.
User manual and other clients
User manual: unaffected. The Requests page says search results also offer titles to request, which still holds, and no page describes the web search layout or its sort.
Apple, Android, Roku: N/A as the PR says. The change is web-only and native search screens are unchanged.
On a phone the "Not in your library" band pulled out by one 16px gutter
while the page sits inside two, and it had no inner padding. It reached
neither the screen edge nor the library grid's edge, and its heading,
"Explore all" and cards ran flush to its sides. It is now the same padded,
rounded card it already was from the sm breakpoint up.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
On a phone, the "Not in your library" band on the overview pulled out by -mx-4, but the search page sits inside two 16px gutters (the app layout's and its own). It reached neither the screen edge nor the grid's edge. It also had no inner padding below sm, so its heading, "Explore all" and the third card ran flush against its right side. It's now the padded, rounded card it already was from sm up, lined up with the library grid. Tablet and desktop render the same as before.
Checked on a dev sandbox at 393px width, before on e3e6820 and after on 31b1662.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enhancementNew feature or requestimpact: usabilityCore flow broken or severely blockedjavascriptPull requests that update javascript codepriority: P2Limited scope, workaround exists, or polishsize/XXXL3000+ added + deleted lines (all files); change volume, not priority.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Related issue: N/A
Validation tasks: changes #1204 C1 (request results move into the search overview and their own view); changes #1144 C3 (People moves within the search page)
Other clients: Apple N/A (web-only layout; native search screens unchanged); Android N/A (web-only layout; native search screens unchanged); Roku N/A (web-only layout)
On the web, search results were boxed into 1400px in the middle of the page, unlike library pages, so wide screens showed large empty margins. Worse, the titles you can request ("Request to add") were drawn after the whole library grid, which loads more as you scroll. With Meilisearch and search by meaning on, a two-word search returns hundreds of loosely related library titles, so the request results were effectively unreachable. The sort menu also showed "Date Added" for a search that was actually ranked by relevance, and once another sort was picked there was no way back to relevance.
This change gives text searches their own page. It uses the full width, keeps the request results at a fixed spot two rows into the library results however many come back, and moves the long lists into their own views.
Approach
Catalognow sends any text search to a newSearchResultspage. Lists, collections and library browsing stay onCatalog, and their search-only code is removed.The page has three views, kept in the URL as
view:ItemGridwith every library result.Under Relevance, the first two rows are "Best matches" and the rest "More results". Under any other sort that split is meaningless, so the rows read as one "In your library" list, with the sort's name and a "Back to relevance" link, and the request row still two rows in.
Relevance is offered in the sort menu through the toolbar slot collections use for their own order, so it stays out of the shared sort list, which collections and the rule editors also use. It is selected until another sort is picked, and picking it again sends
sort=relevance. A search typed while browsing one library used to send the Date Added default and was sorted by date; it now ranks by relevance like any other search.Library browsing and
LibraryBrowseshare a newuseCatalogVisibleRangehook that replaces three copies of the same windowing code. The new strings come from Silo-Server/silo-translations#81, now merged; the locale files are synced from its release,2026.11.17-eba8054.The maintainer review added one fix commit. A URL that keeps
sort=relevanceafter its search text is cleared falls back to the default sort, since the server rejects relevance without text. A library browse no longer writes its Date Added default into the URL, so a search typed after a filter change still ranks by relevance. The Filters sheet keeps Relevance when it changes the media type. A search URL from before these views that names a laterrequest_pageopens the request list. The review also fixed a few empty and loading states and restored the page's h1.Validation
make test-webpasses (899 files).verify-local-paths,verify-case-collisionsandverify-size-ratchetpass. No Go changes, so the Go checks were not run.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-4450/
Surface and build: web app, desktop (2560px) and mobile (390px), before =
bb104488e, after = this branch, same server and library.Risks
sort=added_atunless the viewer picked it. The browse still requests Date Added, so its order is unchanged.Checklist
AI Disclosure
claude-opus-5-5;gpt-6.1-sol(review only)claude-opus-5-5andgpt-6.1-solin parallel, of correctness, repository standards and the requested behaviour, reconciled against the code. The first round found 12 issues and 11 were fixed, among them a Date Added pick that the Relevance default ignored, a library search failure that also hid People, a request view that ignored the audiobook scope, and library-scoped searches sorted by date. The one skipped was a shared constant for the request-search options. The second round, on the final diff, found an empty state that hid later request pages and a linked request view that briefly showed the overview; both are fixed and tested.Note
Add dedicated full-width
SearchResultspage with fixed requests section and relevance sortingSearchResultsfor text searches and removes people, box-set, and request results fromCatalogResults; that coverage moves to SearchResults.test.tsx.searchSortsByRelevanceand omits implicit Date Added sort from query URLs and API params when search text is present; CatalogFiltersPanel.tsx offers a Relevance sort via the newrelevanceSortprop.SearchBargains aherolayout variant, and all locale catalogs add strings for the relevance sort and search-result labels.CatalogResultsno longer renders people, box-set, or request-search sections in the catalog path; checkCatalog.tsxconsumers of those integrations.Macroscope summarized 31b1662.