Skip to content

fix: Silo: show pinned collection, playlist and genre Home rows - #432

Merged
RadicalMuffinMan merged 3 commits into
Moonfin-Client:masterfrom
Brady3035:silo-pinned-collection-row-id
Nov 24, 2026
Merged

RadicalMuffinMan merged 3 commits into
Moonfin-Client:masterfrom
Brady3035:silo-pinned-collection-row-id

Conversation

@Brady3035

Copy link
Copy Markdown

Pull Request

Summary

On Silo, a collection pinned as its own Home row didn't show up. A pinned row's id is pluginDynamic:<source>:<server>:<section>:<id>, and homeRowLayout.SourceFromId took the item id as the part after the last colon. Silo's ids have colons of their own (silo-libcollection:4:153163605007713890, silo-collection:42, silo-genre:Action), so the row asked for the bare number, and the server part came out as <server>:collection:silo-libcollection. That doesn't match the signed-in server, so the row was treated as another server's and left off Home. Jellyfin and Emby ids have no colons, so they weren't affected.

The id is now everything after the section word (:collection:, :playlist:, :genre:, :server:), and the server is what sits before it. This is how Moonfin-Core reads it since its fix for the same bug.

Older builds also uploaded that wrong server with the synced Home layout. When a pinned row comes back from the server, a section word and anything after it are now cut off its server (<server>:collection:silo-libcollection, <server>:genre), so those rows show again and go back up with the right server on the next save.

Known limit, same as Core: a row saved with a section word other than these four still splits at its last colon.

Related Issues

  • Related to the same fix in Moonfin-Core (pinned collection row See All on Silo)

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • UI/UX update
  • Documentation update
  • Build/CI change
  • Other (describe):

Changes Made

  • source/utils/homeRowLayout.bs: SourceFromId reads the id after :<section>:, so an id with colons stays whole and a row with no server keeps its id.
  • source/utils/settingsSync.bs: PickedRowFromSection cuts a section word and what follows from a synced row's server (WithoutSectionTail).
  • test/seerr-sliders.bs, test/server-compatibility.mjs: cases for Silo collection, playlist and empty-server ids, plain ids, rows synced by older builds (library collection, personal collection, genre) and another server's collection.

Testing

  • Tested on physical Roku device
  • Tested via sideload
  • Manual testing completed
  • Not tested (explain why):

Roku Ultra against a Silo test server with a library collection pinned as a Home row. The current master shows only Continue Watching and the Collections row. With this branch the pinned row "Moonfin See All Test" shows the collection's 30 titles, on the first build and again after master had been on the device. Not tried on the device: a pinned playlist or genre row, and a layout synced from another client. Those are covered by the new tests only.

npm run lint is clean and npm test passes on the final commit. The new checks fail on master.

Test Steps

  1. Sign in to a Silo server and pin a collection (one from a library) as a Home row in Settings → Home rows.
  2. Go back to Home.
  3. The pinned row shows, titled after the collection, with its titles.

Screenshots (if applicable)

Before:

01-before-pinned-collection-row

After:

02-after-pinned-collection-row

Checklist

  • Code builds successfully
  • Code follows project style and conventions
  • No unnecessary commented-out code
  • No new warnings introduced

AI use

I wrote this change with Claude (Claude Code). I read the change, tested it as described above, and can walk through it.

🤖 Generated with Claude Code

Brady3035 and others added 3 commits November 22, 2026 14:41
…the whole id

A pinned row's id is pluginDynamic:<source>:<server>:<section>:<id>, and the id was read
as the part after the last colon. Silo's collection ids have colons of their own
(silo-libcollection:4:123), so the row asked for the bare number and its server read as
another server. The id is now everything after the section word, as Core does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…as the server

Builds before this change uploaded a pinned Silo row's server as
"<server>:collection:silo-libcollection:4", so reading it back cuts everything from the
section word on. A row id with no server keeps its whole id too, and the id is lowercased
once per parse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Older builds cut a row id's last two parts, so a one-colon Silo id (silo-genre:Action,
silo-collection:42) went up with "<server>:genre" or "<server>:collection" as the server,
with no colon after the section word. The repair now cuts the section word at the end too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Improved recognition of collection and playlist rows when identifiers contain colons or server addresses include trailing slashes.
    • Improved matching of saved rows to their server, including legacy section-based server identifiers.
    • Preserved fallback handling for identifiers without section markers and for plain item IDs.

Row ID parsing now handles colons in server URLs and item IDs. Synchronized-row matching also normalizes legacy Silo server identifiers before comparing them with the current server.

Changes: Row ID compatibility

Layer / File(s) Summary
Parse row IDs with embedded colons
source/utils/homeRowLayout.bs, test/seerr-sliders.bs
SourceFromId uses the section marker to extract the server and item ID when either contains colons. Tests cover Silo and plain row IDs, plus synchronized collection and genre rows.
Normalize legacy server identifiers
source/utils/settingsSync.bs, test/server-compatibility.mjs
PickedRowFromSection removes the matching section suffix before comparing servers. WithoutSectionTail performs this case-insensitively and leaves strings unchanged when there is no matching marker. The test harness also extracts ToBooleanValue.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: radicalmuffinman, mattsigal

Merge Risk: Minimal · up to 5db49

The change restores pinned Silo Home rows whose IDs contain colons and repairs rows synced by older builds. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: Silo pinned collection, playlist and genre Home rows now show. It matches the changeset, which fixes how Silo row IDs with colons are parsed so these rows appear. It i…
Description check Passed The description follows the template. It has a summary explaining the bug and the fix, a related-issue entry, the type of change marked as bug fix, a changes list for each file, testing details with a…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: Silo pinned collection, playlist and genre Home rows now show. It matches the changeset, which fixes how Silo row IDs with colons are parsed so these rows appear. It is a fix, short, and specific.

Full details: Description check

Explanation

The description follows the template. It has a summary explaining the bug and the fix, a related-issue entry, the type of change marked as bug fix, a changes list for each file, testing details with a device, and test steps. The checklist is filled in. The screenshots section has before and after images. The Related Issues entry names a related Moonfin-Core fix but does not use a Closes/Fixes link, so the issue link is weaker than the template asks for.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 336b1bd and 5db49cc.

Files selected for processing: 4

  • source/utils/homeRowLayout.bs
  • source/utils/settingsSync.bs
  • test/seerr-sliders.bs
  • test/server-compatibility.mjs

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

@greptile-apps

greptile-apps Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5 Tier: apex

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Fixes how Roku reads pinned Home rows whose Silo item ids contain colons.

  • Pinned Home rows keep Silo item IDs intact.
  • Older synced Home rows keep the right server.

Brady3035 explicitly keeps the last-colon fallback for unknown section words as a known limit shared with Core. No actionable issues were found. Tests and device checks were not run during this review.

Reviews (1) · Last reviewed commit: "fix: Also repair synced Silo genre and p..." · Reviewed by Greptile

@github-actions github-actions Bot added the Bug label Nov 22, 2026
@github-actions

Copy link
Copy Markdown

Build Successful

The channel compiled and packaged. The sideload zip is on the run below.

Property Value
Build Passed
Commit 5db49cc
Workflow run Build #688

@RadicalMuffinMan
RadicalMuffinMan merged commit e393148 into Moonfin-Client:master Nov 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants