Skip to content

fix(requests): scope download status to requested seasons on request cards - #3412

Merged
0xSysR3ll merged 1 commit into
developfrom
0xsysr3ll/fix/request-card-season-download-status
Sep 5, 2026
Merged

0xSysR3ll merged 1 commit into
developfrom
0xsysr3ll/fix/request-card-season-download-status

Conversation

@0xSysR3ll

@0xSysR3ll 0xSysR3ll commented Aug 19, 2026 •

Copy link
Copy Markdown
Member

Description

This PR fixes request cards showing another season's processing state when the same show has multiple season requests.

Each card already shows the right season number, but the status badge was reading the shared media.downloadStatus for the whole show. For example, if S3 was downloading, every Locke & Key card said "Processing S3", including the S1 and S2 ones.

Note

Since the test lives in src/, pnpm lint was complaining about the import path, I had to "fix" this as well.

How Has This Been Tested?

Put fake requests to dev instance to reproduce prod issue + unit tests

Screenshots / Logs (if applicable)

Before

image

After

image

This also applies to the Requests list page.

Checklist:

  • I have read and followed the contribution guidelines.
  • Disclosed any use of AI (see our policy)
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • Successful build pnpm build
  • Translation keys pnpm i18n:extract
  • Database migration (if required)

Summary by CodeRabbit

  • Bug Fixes

    • Improved download status indicators for movie and TV requests.
    • TV request statuses now accurately reflect downloads for the selected seasons.
    • Corrected in-progress indicators when download information is missing, incomplete, or filtered.
    • Applied consistent status handling across request cards and request lists.
  • Tests

    • Added coverage for filtered, unfiltered, unavailable, and incomplete download statuses.

@0xSysR3ll
0xSysR3ll requested a review from a team as a code owner August 19, 2026 18:09
@coderabbitai

ghost commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1374c5d5-9d6d-43d7-a5e6-c890f4f8568c

📥 Commits

Reviewing files that changed from the base of the PR and between 059008c and a069c1b.

📒 Files selected for processing (5)
  • server/test/index.mts
  • src/components/RequestCard/index.tsx
  • src/components/RequestList/RequestItem/index.tsx
  • src/utils/refreshIntervalHelper.test.ts
  • src/utils/refreshIntervalHelper.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The change adds season-aware download status filtering, applies the derived status to request badges, adds helper tests, and includes source test files in test discovery.

Changes

Download status handling

Layer / File(s) Summary
Download status helper and coverage
src/utils/refreshIntervalHelper.ts, src/utils/refreshIntervalHelper.test.ts, server/test/index.mts
getRequestDownloadStatus normalizes optional statuses and filters TV downloads by season. Tests cover filtering and progress state. Source test discovery now includes src/**/*.test.ts.
Request status badge integration
src/components/RequestCard/index.tsx, src/components/RequestList/RequestItem/index.tsx
Request cards and list items pass derived download statuses to StatusBadge and calculate inProgress from the derived array length.

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

Merge Risk: ⚪ Minimal · up to a069c

This localized change scopes request-card download status to the requested season and includes tests; no actionable merge-blocking risk remains beyond normal checks and review.

Possibly related PRs

Suggested reviewers: fallenbagel, gauthier-th

Poem

A rabbit sorts the seasons bright,
Filters downloads left and right.
Badges show the active trail,
Tests hop in to guard the rail.
“More precise!” the rabbit sings.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: limiting request-card download status to the requested seasons.

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

Comment @coderabbitai help to get the list of available commands.

@seerr-automation-bot seerr-automation-bot added this to the v3.5.0 milestone Aug 20, 2026
@0xSysR3ll
0xSysR3ll merged commit c604bcc into develop Sep 5, 2026
@0xSysR3ll
0xSysR3ll deleted the 0xsysr3ll/fix/request-card-season-download-status branch September 5, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants