Skip to content

Fix/silo seerr duplicate rows - #2258

Merged
RadicalMuffinMan merged 2 commits into
Moonfin-Client:mainfrom
Brady3035:fix/silo-seerr-duplicate-rows
Nov 14, 2026
Merged

RadicalMuffinMan merged 2 commits into
Moonfin-Client:mainfrom
Brady3035:fix/silo-seerr-duplicate-rows

Conversation

@Brady3035

Copy link
Copy Markdown
Collaborator

Pull Request

Summary

On Silo, a Seerr title's details, and a library title's Seerr rows, show "Recommendations" and "Similar" with the same titles in the same order. Silo keeps one list of recommendations on a request's detail and none of similar titles, and SiloSeerrHttpClient answers both calls from that list. On a Jellyseerr or Overseerr server the two lists often overlap a lot too.

SeerrDetailPieces now works out the Similar titles to draw: those a shown Recommendations row doesn't already have. On Silo that leaves Similar empty, so the row isn't drawn. With Recommendations switched off in the detail sections, Similar keeps everything, so that setting still works on Silo. Nouveau's Discovery section already removed the overlap itself and is unchanged.

Related Issues

  • None

Type of Change

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

Changes Made

  • lib/ui/widgets/seerr/seerr_item_status.dart: SeerrDetailPieces gains similarItems, the Seerr similar titles minus those (by media type and TMDB id) in a shown Recommendations row. similar is now similarItems.isNotEmpty.
  • detail_page.dart, item_detail_screen.dart, modern_detail_content.dart, spotlight_cards.dart and frost_detail_content.dart draw pieces.similarItems instead of state.similar. Frost's _seerrPosters now takes the list it draws.
  • test/ui/widgets/seerr/seerr_detail_pieces_test.dart: Similar leaves out Recommendations' titles, a Similar that only repeats them isn't drawn, Similar keeps everything with Recommendations off, and a film and a series with the same id stay apart.

Platform

  • Android
  • Android TV
  • iOS
  • tvOS
  • Web
  • macOS
  • Windows
  • Linux
  • All / Shared code

Testing

  • Tested on emulator / simulator
  • Tested on physical device
  • Manual testing completed
  • Not tested (explain why):

Checked on a macOS build signed in to a Silo server. I didn't test a Jellyseerr or Overseerr server, or a title with Recommendations switched off.

flutter analyze reports no issues in the changed files beyond infos that were already there. The new test and seerr_watch_providers_test.dart pass, and the new test fails when one expected value is changed. I didn't run the full suite.

Test Steps

  1. On a Silo server with requests on, open a title that isn't in the library.
  2. Only "Recommendations" shows, not a second "Similar" row with the same titles.
  3. Open a library title with Seerr rows. Same as step 2.
  4. In the detail section settings, switch Recommendations off and open the title again. "Similar" shows the list.
  5. On a Jellyseerr or Overseerr server, open a title. Similar shows no title that Recommendations already shows.

Screenshots (if applicable)

Before (Silo, a Seerr title: Recommendations and Similar with the same titles):
Screenshot 2026-11-12 at 9 47 43 AM

After (one Recommendations row):
Screenshot 2026-11-12 at 9 54 47 AM

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.

Brady3035 and others added 2 commits November 12, 2026 09:44
Seerr's similar titles often repeat its recommendations, and Silo has
only one list of recommendations, which it gives for both. A Seerr
title on Silo, and a library title's Seerr rows, showed the same titles
twice. Similar now keeps only what a shown Recommendations row doesn't
have, so on Silo it is left out, and with Recommendations switched off
it keeps everything.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Spotlight's similar card still read the whole Seerr similar list, so it
repeated Recommendations' titles. It now takes the same list as the
other styles. Whether Similar shows now follows from that list, and
Frost's posters take the list they draw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added All Bug Something isn't working UI labels Nov 12, 2026
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Similar-title sections now avoid repeating titles already shown in Recommendations.
    • Similar titles display consistently across detail views, including when movie and TV entries share an ID.

Seerr detail resolution now filters similar titles that also appear in visible recommendations. Detail layouts use the resulting list, and tests cover filtering, visibility, and media-type handling.

Changes: Seerr Similar Titles

Layer / File(s) Summary
Resolve and test similar-title filtering
lib/ui/widgets/seerr/seerr_item_status.dart, test/ui/widgets/seerr/seerr_detail_pieces_test.dart
SeerrDetailPieces stores similar items after removing titles already shown in visible recommendations. Its similar getter reflects whether any filtered items remain. Tests cover overlapping titles, duplicate-only lists, hidden recommendations, and matching IDs with different media types.
Use resolved items in detail layouts
lib/ui/screens/detail/detail_page.dart, lib/ui/screens/detail/item_detail_screen.dart, lib/ui/screens/detail/modern/modern_detail_content.dart, lib/ui/screens/detail/spotlight/spotlight_cards.dart, lib/ui/screens/detail/frost/frost_detail_content.dart
Detail layouts use pieces.similarItems. Frost poster builders receive item lists, and the TV and phone layouts resolve Seerr items through _seerrItems.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • Moonfin-Client/Moonfin-Core#1975: This PR also changes which titles appear in Similar and Recommendations on Spotlight, including filtering overlap between those lists.

Suggested reviewers: radicalmuffinman

Merge Risk: Minimal · up to 01031

Similar rows now omit titles already shown in Recommendations, and Similar is unchanged when Recommendations is disabled. Tests cover the filtering and visibility rules, and no concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Fix/silo seerr duplicate rows" matches the main change. The PR stops the Seerr Similar row from repeating titles already shown in the Recommendations row. The title names the Silo server ca…
Description check Passed The description follows the repository template and covers the Summary, Type of Change, Changes Made, Platform, Testing with steps, Screenshots, and Checklist. It names the affected files and the beha…
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 "Fix/silo seerr duplicate rows" matches the main change. The PR stops the Seerr Similar row from repeating titles already shown in the Recommendations row. The title names the Silo server case and the duplicate-row symptom. It does not mention the Jellyseerr or Overseerr overlap, which is a minor gap.

Full details: Description check

Explanation

The description follows the repository template and covers the Summary, Type of Change, Changes Made, Platform, Testing with steps, Screenshots, and Checklist. It names the affected files and the behavior with Recommendations switched off. The Related Issues section says "None" and the Test Steps are specific. The description does not cover the untested Jellyseerr/Overseerr path beyond stating it was not tested, which the author does state.

  • 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 54caedc and 0103107.

Files selected for processing: 7

  • lib/ui/screens/detail/detail_page.dart
  • lib/ui/screens/detail/frost/frost_detail_content.dart
  • lib/ui/screens/detail/item_detail_screen.dart
  • lib/ui/screens/detail/modern/modern_detail_content.dart
  • lib/ui/screens/detail/spotlight/spotlight_cards.dart
  • lib/ui/widgets/seerr/seerr_item_status.dart
  • test/ui/widgets/seerr/seerr_detail_pieces_test.dart

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

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

❌ Build Failed

One or more platform builds failed. Artifacts are listed for the platforms that did build.

Tests ✅ 9116 passed, analyzer clean

Touched lines ✅ no new diagnostics

Coverage 🟡 tests run 11 of 25 measurable changed lines (44%) · 10 by this PR's own tests

File Changed lines tests run
🔴 frost/frost_detail_content.dart ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ 0 of 11
🟢 seerr/seerr_item_status.dart 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 10 of 10
🔴 detail/detail_page.dart ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ 0 of 1
🔴 detail/item_detail_screen.dart ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ 0 of 1
🔴 modern/modern_detail_content.dart ⬜⬜⬜⬜⬜⬜⬜⬜⬜⬜ 0 of 1
🟢 and 1 more file 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 1 of 1

A line counts when any test runs it, which doesn't mean a test checks what it does. The biggest stretches no test runs are marked in Files changed.

Platform Status Artifact
Android ✅ Passed Moonfin_Android_v* (apk/aab)
Android TV ✅ Passed Moonfin_AndroidTV_v* (apk/aab)
iOS ✅ Passed Moonfin_iOS_v*_unsigned.ipa
macOS ✅ Passed Moonfin_macOS_v*.dmg
tvOS ✅ Passed Moonfin_tvOS_v*_unsigned.ipa
Apple tests ✅ Passed test-results.json
Windows x64 ✅ Passed Moonfin_Windows_v*.exe
Windows ARM64 ✅ Passed Moonfin_WindowsARM64_v*.exe
Linux x64 ❌ Failed n/a
Linux ARM64 ❌ Failed n/a
Web ✅ Passed build/web (static site, serve over HTTP)
Property Value
Commit 0103107
Checks run Checks #314
Build run Build #2323
Coverage run Coverage #100

@RadicalMuffinMan
RadicalMuffinMan merged commit 6755edd into Moonfin-Client:main Nov 14, 2026
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

All Bug Something isn't working UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants