Repository navigation
feat(settings): retire the media card caption choice - #3142
Conversation
People hid card titles with the "Title only" and "Nothing" caption options and then could not tell what a movie or series was. Every card now shows its title and details, and poster size is the only card option left. Settings revision 24 deprecates ui.card_presentation's caption. The field stays required and keeps all three members so older clients can still write it; current clients write title_metadata and ignore the stored value. A migration rewrites stored captions to title_metadata. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 24 minutes. View limit details
Comment |
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:
|
|
The Evidence section describes desktop and phone captures, but
Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness. Posted via Macroscope — Visible change evidence |
|
The evidence is now published and linked in the body: https://evidence.siloserver.org/r/silo-server/pr-3142/. It has before and after captures of Navigation & Cards and Home, at desktop and phone widths, with the same data. The other card views (library grid, collections, watchlist, calendar, requests, related rails) aren't captured separately. Each one only had a caption branch removed, and they share the caption classes the Home cards use. |
The Postgres migration rewrites stored ui.card_presentation captions to title_metadata, but servers configured with userdb.backend sqlite keep settings in their own user_setting_values table. Schema v37 applies the same rewrite there and bumps each changed row's revision. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
|
|
The migration rewrites stored
Suggested corrected line: Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
|
I'm keeping
The caption setting defaults to |
|
The Suggested Automated check: Macroscope check run agent (gpt-6-luna). No validation was performed. Posted via Macroscope — v1 validation impact |
|
Fair point: the tasks don't record which caption the validator had set, so I can't show these runs used the default. I've updated |
Main retired the card caption choice (Silo-Server#3142): every card shows its title and details. The box set card still read the retired setting, so it hid its watched count and years wherever the stored value was not title_metadata. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* feat(catalog): group movies into box sets from TMDB collections Libraries can group the movies of a TMDB collection into one box set card. A sync task stores each movie's collection and the collection's name, release order and artwork; browse groups before pagination, a box set page lists its movies, and search shows matching box sets first. Refs #677 * fix(catalog): address box set review feedback - A sync run skips items that already failed in it, so one failing movie, collection or image costs one failure and does not hold back the rest. - With box set grouping, name_prefix matches a box set's representative, so a box set is listed under the one letter the letter index gives it. - Box set search takes library_id, and the catalog search page passes it. - Search builds box set views only for each collection's chosen library. - Web: a failed box set read no longer replaces cached results, and a scope without movies hides box sets the query still holds. * fix(catalog): search box sets only in the searched libraries Box set search took its candidates from every stored collection and filtered by library afterwards, so 200 better matches elsewhere could hide one in the searched library. Candidates now come only from collections with a movie in the libraries being searched. * fix(web): wait for box sets before quick search says no matches * fix(catalog): match box set titles only in the searched libraries * fix(boxsets): run the box set sync on one server at a time Every API process runs the task manager and fires the startup and hourly triggers, and the due lookups claim no rows, so each server repeated the same TMDB requests. Take an advisory lock as the other cluster-wide tasks do; a server that finds it held skips the run. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(boxsets): look up late movies and delete unused collections A start requested while a sync runs is dropped, and Run never returned to the movie lookup, so a library that turned box sets on during the collection or artwork phase waited for the next hourly run. Run now repeats until a lookup finds nothing new. Nothing deleted a stored collection once its last movie left, so the row and its cached artwork stayed. Each run now deletes collections no movie belongs to; the delete trigger queues their artwork for collection. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(catalog): run the box set database tests in CI CI skips database tests no list selects, so the grouping, search, sync and artwork tests never ran there. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(apiv2): advertise box sets to viewers Only the admin-only getLibraryCapabilities reported box sets, so a viewer client could not tell whether the box set reads exist. Report box_sets on getCatalogSearchCapabilities too, beside the other catalog features. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(catalog): count only visible movies in box set title search Box set search counted every movie in the searched libraries whose title matched, ignoring the viewer's library access and maturity limit. A profile with a PG limit could get a box set because two R-rated movies matched the query, which revealed words of titles it may not see. The candidate query now runs over the viewer's access-filtered movies, the same plan box set browse uses, so only visible movies count toward a title match. Both box set queries share that filtered base. * fix(boxsets): stop refreshing collections of libraries with box sets off Turning box sets off for a library left its movies' collection lookups in place, and the sync counted every lookup when deciding which collections to keep and refetch. So the collections of a library with box sets off stayed stored and were fetched from TMDB again every week, with their artwork, for a feature that was off. A rematched movie's old lookup did the same for its old collection. Only a current lookup of a movie in an enabled library with box sets on now keeps a collection stored and refreshed. Turning box sets back on fetches the collections anew. Also drop CollectionIDsOfContent, which nothing calls. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(catalog): apply a query limit after a box set name prefix With box set grouping the name prefix filters each group's representative, but the query limit still capped the source rows before that filter. So query_limit=50 with name_prefix=s took the library's first 50 titles and kept the S ones among them, usually none. The limit now caps the grouped rows under the prefix, as it does without box sets. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(catalog): fail a box set page instead of dropping its movies The grouped query has already folded each collection into one movie when the box set cards are built. If building them failed, the page went out with that movie as a plain card and its siblings missing from the page and the totals. Return the error so the client can retry. The grouped browse moves into its own method. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): search box sets only when a library has them Every quick search and catalog search sent a box set request, even on a server where no library has box sets, and "No matches" waited for it, including its retries. The request now waits for a library the viewer can open with box sets on and is not retried. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): keep the box set hero within a phone screen The Play button names the next film and never wraps, so a long title ("Play Harry Potter and the Philosopher's Stone") widened the hero past a 390 px screen, clipping the title, overview and button. The label now truncates instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): let the detail hero shrink to a phone screen The truncating Play label alone did not stop the box set hero overflowing: the label is a flex item and the hero's primary column a grid item, and both kept the default minimum width of their content. Give both min-w-0 so the label truncates and the title and overview wrap within the screen. Movie pages lay out as before. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test(web): mock box set search in the catalog page tests Box set search now reads the viewer's libraries, which needs the auth provider these tests don't render. Mock it like the other search hooks. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(apiv2): declare box set artwork URLs as URI references Main's contract lint now requires every URL member to declare its format. Mark the box set poster_url and backdrop_url as uri-reference, as the other artwork URLs are, and regenerate the OpenAPI document and web types. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(box-sets): show a movie's box set on its page and name box sets "Box Set" A movie page now shows the movie's box set as a row of its films in release order, with the movie being viewed marked "This film" and the row opening at it, plus a link to the box set page. getCatalogItemBoxSet (GET /api/v2/catalog/items/{id}/box-set) returns it under the same rules as browse: a library with box sets on, the viewer's access, and the library's minimum. Box sets were titled with TMDB's collection name ("Harry Potter Collection"), which reads like one of Silo's own collections. Reads now show it as "Harry Potter Box Set", and search matches that title. * fix(web): fit the box set row's titles under the movie hero On a desktop window the full-height movie hero pushed the box set row's film titles below the fold. When a movie has a box set row, the hero on large screens now gives up just enough of its height for the row, down to the row's title and year line, to end inside the viewport; it never shrinks below its own content. * fix(web): drop the watched count under the movie page's box set row The heading already names the box set, and the cards show which films are watched. * fix(web): order the movie page as cast, extras, box set, more like this The box set row moves below the cast and extras, matching the apps. Without the row directly under the hero, the hero no longer shrinks to fit it, so this also undoes that change. Media locations, shown only to curators, ends the page. * fix(web): label the box set row's link Explore all, as on Home rows * fix(box-sets): hide a cached box set row once box sets are off Review follow-ups: the movie page's box set query now returns no data while no library has box sets on, so a row cached before the setting changed does not reappear. The box_sets capability now lists getCatalogItemBoxSet, and the row's comment says it opens at the page of cards that holds the movie. * fix(boxsets): sync box sets through the shared TMDB client The box set sync built its own TMDB client with a private 20 requests per second budget, so a sync spent TMDB requests outside the shared, cluster-wide tmdb.requests_per_second limit every other feature uses. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(catalog): find a box set by its TMDB name, and not by "box" alone Box set search matched the shown title ("Harry Potter Box Set"), so the name TMDB and other servers use, "Harry Potter Collection", no longer found it, and a search for "box" or "set" (the movie The Box) listed every TMDB collection's box set ahead of the movies. Search now matches the name without its "Collection" suffix, and the words box, set and collection count as matched by that suffix only beside a word the rest of the name matches. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(catalog): show a movie page's box set as its library shows it Without library_id, getCatalogItemBoxSet built the box set's movies with no presentation library, so the row read in the profile's language while Explore all, which names the box set's library, read in that library's metadata language. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): hide a cached box set row once its own library turns box sets off The row hid cached data only when no library had box sets on, so turning them off in one library left its cached rows up while another library kept them. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(apiv2): drop the approvals #3298 used Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): always show a box set card's title and details Main retired the card caption choice (#3142): every card shows its title and details. The box set card still read the retired setting, so it hid its watched count and years wherever the stored value was not title_metadata. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(catalog): say getCatalogItemBoxSet answers 404 for an episode or season ID The docs promised a 200 without box_set for any item that is not a movie, but the access check reads catalog titles only, so an episode or season ID answers 404. Only movie pages call it, so the contract now says what the code does. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Quick104 <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Problem
Related issue: N/A
Validation tasks: changes #1136 C1; changes Silo-Server/silo-apple#303 C1; changes Silo-Server/silo-apple#304 C1; changes Silo-Server/silo-android#313 C1; changes Silo-Server/silo-android#314 C1; changes #1144 C1; changes Silo-Server/silo-apple#307 C1; changes Silo-Server/silo-apple#308 C1; changes Silo-Server/silo-android#317 C1; changes Silo-Server/silo-android#318 C1
People could set what shows under each poster to "Title only" or "Nothing". Those who picked "Nothing" lost every title in the app and then couldn't tell what a movie or series was. This retires the caption choice: every card shows its title and details, and poster size is the only card option left. A migration resets stored captions so profiles that hid titles get them back, including on older app builds.
Approach
ui.card_presentationkeeps its shape. Settings revision 24 markscaptiondeprecated in the schema, but the field stays required and still accepts all three values, so older clients can keep writing it. Current clients sendtitle_metadataand ignore the stored value. This follows the same pattern revision 20 used to retire Original quality (#2624).ui.card_presentationcaption totitle_metadataand bumps the row revision so clients holding the old row re-read it.poster_sizeandupdated_atare untouched. Down is a no-op, since nothing records the old caption. SQLite schema v37 applies the same rewrite for servers withuserdb.backend: sqlite.caption: "title_metadata".Validation
make test-web(840 files) pass. A new test checks that saving a poster size still writescaption: "title_metadata"; parser tests cover ignoring a storedartwork.verify-migrations, and the otherverify-*targets in the gate pass.poster_size,updated_at, and other keys.ui.card_presentationrows with a caption other thantitle_metadatachanged; their revision went up by one; other keys andposter_sizewere untouched.go build,go vet, andgofmtare clean.make test-gopasses except 8 tests in packages this change doesn't touch (jellycompat, NFO metadata, playback, scanner, subtitle sync). Seven fail the same way onmainon the macOS machine I used (they depend on filename casing or encoding). The eighth,TestCopyRemuxSubtitleRenditionRealFFmpeg, timed out under load.make lint-changedandmake lint-router-recovery(golangci-lint isn't installed on the machine I used; CI runs both).make verify-route-inventoryfails locally on a cgo type-check error, and the same failure happens onmain.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-3142/
Surface and build: web app at desktop (1440 px) and phone (390 px) widths. Before:
mainat bca55f7. After: this branch. Same account, profile, and library, against a shared dev server. Captures cover the Navigation & Cards settings and Home with "Nothing" stored. On this branch, Home shows titles and details even with "Nothing" stored.Risks
Checklist
AI Disclosure
🤖 Generated with Claude Code