Repository navigation
fix(requests): scope download status to requested seasons on request cards - #3412
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe 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. ChangesDownload status handling
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to 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: Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
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. Comment |
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.downloadStatusfor 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 lintwas 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
After
This also applies to the Requests list page.
Checklist:
pnpm buildpnpm i18n:extractSummary by CodeRabbit
Bug Fixes
Tests