Repository navigation
feat(sections): add a Home row that shows collections as posters - #4410
Conversation
A new section type, collection_posters, shows several collections as poster cards; each card opens its collection. Its config lists the collections in order (1 to 30, server or personal; admin rows take server collections only). Every Section read and the admin preview answer the row's cards in a new optional `collections` member, built per viewer with the collection lists' rules, and getHomeCapabilities reports `collection_rows`. A row of collections counts as a reference to every server collection it lists: the delete guard, row counts, the row listing (with a new collection_count) and section write locking read the list, and backup restore maps the list for admin rows and profile rows, dropping entries with no counterpart. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add row offers "A row of collections": an ordered list of chosen collections (drag, Move up and down, Remove) above a searchable chooser that shares the collection row's filter and option look. Home and library pages show the row as collection poster cards, the rows list describes it, and deleting a collection takes it out of a row of collections that lists others instead of deleting that row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The line's description already opens with the number of collections, so the meta count after it repeated it. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Changing a row moves the collection's revision, so the ETag read before the rows were handled answered 412 on the collection's own DELETE: the row lost the collection and the collection stayed. The run now reads the collection's ETag again after it changed a row, and the delete sends that one. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
Security findingsAdvisory findings (3)
ℹ️ 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. |
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:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 194a58049c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| : keepsSome | ||
| ? deleteWithRowChangesLabel(listed.length) | ||
| : deleteWithRowsLabel(listed.length)} |
There was a problem hiding this comment.
Open the user-manual follow-up for the changed row behavior
Deleting a collection can now preserve a row and remove only that collection, rather than deleting the row. The commit description acknowledges that the manual does not describe this changed delete dialog or the new row kind, but says the manual issue is only drafted. AGENTS.md requires an open Silo-Server/siloserver.org issue whenever a behavior change leaves the manual incomplete; file the follow-up covering both changes before merging.
AGENTS.md reference: AGENTS.md:L160-L162
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Not filed yet. The manual issue is drafted and covers both the new row kind and the changed delete dialog; it waits on the maintainer's go-ahead to publish and will be open before this merges.
🤖 Claude Code (claude-fable-5-2)
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 194a58049c
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
The row of collections keys are now in a published catalog release, so the pin no longer names a local build. The release also carries keys added by other catalog changes since the last pin. Co-Authored-By: Claude Fable 5.2 <[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:
|
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 6184e795e5
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
…ag check A Home read fetches its rows concurrently, and each row of collections counts and collages several collections at once, so a few such rows could hold more connections than one request should. The rows of one read now build their cards one row at a time. A stored row configuration is unconstrained JSON. Export and restore looked up every entry of a collections list, however long; a list over the row's 30-entry limit is now read as naming nothing, without a lookup. Deleting or changing a row that shows a collection moves the collection's revision, so the collection's own DELETE answered 412 after any row was written, not only after a row of collections was changed. The web now reads the collection's ETag again after any row write, and sends it only when the collection is otherwise unchanged since the delete was confirmed, so an edit someone else made during the run still answers 412. Co-Authored-By: Claude Fable 5.2 <[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 run read the collection before touching a row but went on when that read failed or showed a newer ETag, so rows could go and the collection's DELETE then answer 412. It now stops with every row left. Co-Authored-By: Claude Fable 5.2 <[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:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4110bb7d95
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const after = await fetchAdminCollectionSnapshot(collectionId); | ||
| return sameCollection(before, after) ? { remaining: [], etag: after.etag } : { remaining: [] }; |
There was a problem hiding this comment.
Preserve revision checks for concurrent collection membership edits
If another admin replaces a collection member while this delete run is changing its rows, sameCollection can incorrectly approve the refreshed ETag. AddItemIfAbsent and RemoveManualItem change membership and advance the collection revision without changing its updated_at; removing one member and adding another also leaves item_count unchanged. The canonical collection snapshot contains no member IDs, so these reads compare equal, and the subsequent DELETE silently deletes the concurrently edited collection instead of returning 412. Distinguish revisions caused by this run's row writes from other mutations server-side rather than treating equal collection response bodies as proof that no edit occurred.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Correct, and the same limit recorded under Risks: two equal reads don't prove no edit happened, and swapping a manual member is a concrete case the comparison misses. Closing it needs a server change (an atomic delete that takes the collection off its rows under one If-Match, or section writes that don't move the revision of a collection they only stop referencing). That choice is with the maintainer; this thread stays open until it is made.
🤖 Claude Code (claude-fable-5-2)
…s it Restore planning resolved every entry of a backup's collections list with a query, however long. A list over the row's 30-entry limit now lists none, as the remap already reads it. Co-Authored-By: Claude Fable 5.2 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3172167cc2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| refs := ParseCollectionPostersConfig(s.Config) | ||
| if len(refs) == 0 || f.CollectionCards == nil { |
There was a problem hiding this comment.
Enforce the collection-list bound on resolved overrides
When a profile supplies a config override for an administrator-created row of collections, saveProfileOverrides skips recipe validation in its non-user-added branch, and the resolver substitutes that configuration. This fetch path then passes the entire list to CollectionCards without enforcing the 30-entry limit or rejecting duplicates. An ordinary profile can therefore persist thousands of references, including repeated references to one visible collection, causing oversized database query inputs and thousands of returned cards on every Home read; item_limit does not constrain this row type. Validate the effective override or enforce the collection-reference constraints here before resolving cards.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 3172167cc2
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
| out := make([]recipes.CollectionRef, 0, len(p.Collections)) | ||
| for _, ref := range p.Collections { |
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Security: Enforce the collection-row size cap on overrides
When an administrator has enabled a collection_posters row, any authenticated profile can override that existing row with a 1 MiB config.collections array. Existing-row overrides skip recipe validation, and this parser returns every ref without the 30-card cap; the row builder then passes them to PostgreSQL and emits one card per duplicate. A compact request fits about 19,000 refs and can produce a multi-megabyte Home response on each GET, consuming shared API/DB resources despite the generic request-rate limit. Validate the effective base-row config and defensively reject oversized or duplicate lists here.
Useful? React with 👍 / 👎.
* feat(home): show rows of collections on Home and library pages A Home or library row with section_type collection_posters now shows its collections (Silo-Server/silo-server#4410). Before, the row arrived with no titles and every page dropped it. - Decode `collections` on a Section: each card's source, title, poster, thumbhash and count, the library a server collection opens in (sent as a string), and the owner of a personal collection. A card that can't be opened is left out and the rest of the row stays. - iPhone, iPad and Mac draw the row with the Collections tab's poster card at Home's poster width, on Home and on library pages. Apple TV uses the collection poster card in a Skyline row with the same focus handling as title rows, and the marquee previews the focused collection. - A server collection opens in its library, keeping a library page's Movies or Shows filter; a personal collection opens its own page, now titled with its name. Another profile's shared collection reads "by Name" (new catalog key collections.card.byOwner). - The row has no See all or Explore all card, is never the hero, and is kept by the empty-row filters, the row limit, Home's card removal and library page filtering. Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(tvos): show a focused collection's backdrop in the Home hero Silo-Server/silo-server#4415 sends backdrop_url and backdrop_thumbhash on server collection cards in a row of collections. Decode both as optional, so older servers and personal collections (which never have one) keep today's behavior, and a malformed value leaves the card without a backdrop rather than dropping it. On Apple TV, a focused collection's backdrop now fills the Skyline hero the way a title's does, with its thumbhash while it loads, and the backdrops of the collections beside it are warmed. A collection without one still frames its poster there. iPhone, iPad and Mac have no hero that follows the focused card, so nothing changes on screen there. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(tvos): name a shared collection's owner once profiles load The Skyline marquee reads the "by Name" line from the cached profile list. When the first preview is another profile's collection and Home paints before that list arrives, the preview had no owner until focus moved. Load the list when a row needs it and rebuild the shown collection preview, as the iOS row already does. Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore(i18n): sync translations from release 2026.11.17-7bcceee The release carries collections.card.byOwner from Silo-Server/silo-translations#72, with the Ukrainian line reworded so it doesn't need the owner's name inflected. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Main pruned the test files this branch extended (#4465) and moved the Home row pickers' meta line into collectionOptionMeta (#4410, #4471). The pickers now show "Count unavailable" through that helper. Two test helpers the pruning removed are restored next to their remaining callers, and the translations sync from the catalog branch for Silo-Server/silo-translations#95. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…collections Main's Home row of collections (#4410) sent card counts without item_count_status, so an over-budget collection showed "0 titles", and gave each row its own count ledger, so one page could count past the 128-definition cap. Row cards now carry the status through the v2 card and the web adapter, and FetchAll shares one ledger whose deadline binds only the count work. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Problem
Related issue: N/A
Validation tasks: changes #194 A1 (deleting a server collection that a row of collections lists with others now changes that row; deleting any other collection is unchanged)
Other clients: Apple Silo-Server/silo-apple#1210; Android Silo-Server/silo-android#978; Roku Silo-Server/silo-roku#92
A Home or library page row can show the titles of one collection, but nothing shows collections themselves. An admin who wants a "Franchises" or "Browse by genre" row of collection posters has no way to build one.
This adds a row kind, A row of collections. You pick up to 30 collections and put them in order. The row shows each one's poster, and a card opens that collection's page. Admins add it on Sections, for Home and library pages, with server collections. Profiles add it on Settings > Home Screen and can mix their own, shared and server collections.
Approach
The row is a new section type,
collection_posters, whose config is an ordered list:{"collections":[{"library_collection_id":"…"},{"user_collection_id":"…"}]}. It needs no migration.Sectiongainscollections, a list of cards (id,source,title,poster_url,poster_thumbhash,poster_is_collage,item_count, andlibrary_idorcreator_profile_id). For this typeitemsstays empty,total_countis the number of cards anditem_limitis ignored. Nothing existing changes shape, so a client that doesn't know the type sees a row with no items and hides it as it hides any empty row.getHomeCapabilitiesreportscollection_rows, and the recipe appears inlistSectionRecipes.Cards follow the viewer with the rules the collection lists already use. A server collection is left out when it is missing, hidden, in no library the viewer can open, or holds no title the viewer can see; a personal one when the profile can't see it. On a library page only that library's server collections show. A row left with no cards is dropped like any empty row. The cards are read in a few batched queries and are not put in the resolved-list cache, which holds titles. The rows of one Home read build their cards one row at a time, which bounds the connections a request holds. A stored
collectionslist longer than 30 entries is read as naming nothing on export and restore, with no lookup per entry.A row of collections counts as a reference to every server collection it lists. The delete guard,
row_count,listAdminCollectionSectionsand the reference locking on section writes all read references through one shared SQL condition, so they agree. Backup restore maps each entry for admin rows and profile rows, and drops an entry it can't map.Deleting a collection that such a row lists with others takes it out of the row and keeps the row; the dialog says so. The row is deleted only when that collection was its last. Deleting or changing a row moves the collection's revision, so the web reads the collection's ETag again before the collection's own
DELETE. It sends the new ETag only when the collection is otherwise unchanged since the delete was confirmed, so an edit someone else made in between still answers412. When the collection already changed before the run starts, no row is written. This also fixes the existing "Delete it and its N rows" flow, which deleted the rows and then failed on the collection;mainhas the same server code for it, though that flow was not run on amainbuild.The row can't be the hero banner, has no Explore all, and browsing it as
source=sectionanswers an empty page. More options is hidden for it because neither setting applies.Bulk delete on the collections list still refuses a collection that any row lists; only the single delete dialog changes rows.
The new text is 30 catalog keys from Silo-Server/silo-translations#68, which has merged.
.silo-translationsnames its release,2026.11.17-f244da0. That release also carries keys other catalog changes added since the last pin, so the generated locale files gain those too.Validation
go mod tidy -diff, vet,make lint-changedandmake lint-router-recoverypass.make test-gopasses except two real-FFmpeg tests that fail the same way onmainat92ee051878. The backup permission tests need a022umask and pass under it.TestBackupRestoreRoundTripDB, which needspg_stat_statementsand fails the same way onmainon that database.make test-webpass.make verify-actionlint,make verify-shellcheckandmake verify-prometheus-rules. The tools are not installed where this was built, and the change touches no workflow, shell script or rule file./api/v2fixture, the editor, the viewer row and the delete flow.4d2f96ce, deleting a collection shown by one collection row, and one shown by a collection row and a row of collections, both completed.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/pr-4410/
Surface and build: web app and web admin at desktop and phone width, on a sandbox of this branch (
5a5c5795, and194a5804for the delete flow). Before captures come from a stock build ofmain.Risks
collections(the parity issues above). A server whose admin adds one shows it on the web only for now.item_countcovers every library the collection spans, while the web opens the collection scoped to one library, so the page can list fewer titles than the card. The Server collections list has the same difference today.siloserver.orgissue is drafted and not yet filed.Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Add
collection_postershome row type showing collections as poster cardscollection_posterssection type that lists up to 30 library or user collections. Cards are resolved per viewer in collection_row_cards.go, rendered by the newCollectionsRowcarousel, and edited through the newCollectionsRowEditorin the admin row form.CanBeHero) and from item-limit display, and count as nonempty when they hold cards. Config validation lives in collection_posters.go.SectionConfigReferencesCollectionandSectionConfigCollectionIDsin library_collection_references.go so collection-list references count toward in-use checks and deletion guards.collection_postersrows;useDeleteCollectionRowsrequires an ETag input; home capabilities report a newcollection_rowsflag.Macroscope summarized 3172167.