Repository navigation
feat(tv): add Release Date library sort on Android TV - #433
Conversation
The library sort entry labelled Year was named ReleaseDate and sent year, under a stale note that the server lacked release_date. Rename it to Year (still sends year, so saved sorts restore unchanged) and add a Release Date entry that sends release_date, newest first. Library browse and collection grids list both; favorites and watchlist keep Year only.
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe TV library sort options now distinguish release date from year. The changes update sort choices and descending defaults, and adjust test assertions for the release-date request and retained browse filter. ChangesTV library sorting
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Feature Suggested reviewers: Merge Risk: 🟡 Moderate · up to The new Release Date choice may return the default ordering instead of release-date ordering. Year and other browsing remain available, but the catalog needs to support this sort for the PR’s main feature to work reliably. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change adds an ordering option without changing the selected library or collection. Existing Year values remain compatible, but server support for Release Date could not be independently confirmed. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Problem
Related issue: N/A
Validation tasks: changes #8 (Browse: sort + filter), #348 C1
Android TV library browse has no Release Date sort. Its only date option, labelled "Year", sends
year, which orders titles by year alone, so two movies from the same year come back in title order instead of the order they came out. The phone app and web already sort by release date. This change adds a real Release Date option to the Android TV library sort menu and keeps Year next to it.Approach
The Year entry was named
ReleaseDatein code, and a comment said the server did not supportrelease_date. The server does support it, and the phone app already sends it. That entry is nowYearand still sendsyear, so a sort saved before this change restores as Year. A new Release Date entry sendsrelease_date, newest first by default. Library browse and library collection grids list both. Favorites and watchlist keep Year only.The iOS, tvOS, and macOS change is Silo-Server/silo-apple#567.
Validation
androidTvApplibrary unit tests: pass. The existing sort-retention test now selects Release Date and expects-release_date.:androidApp/:androidTvAppdebug builds: pass.android-shared,androidApp,androidTvApp): no new issues.testDebugUnitTest: 693 of 694 pass.ReflowStyleTestin the phone ebook reader fails on a machine with a decimal-comma locale (1,9instead of1.9) and passes under en_US; this branch does not touch it.Risks
None identified.
Checklist
AI Disclosure
Note
Add Release Date and Year sort options to Android TV library
TvLibrarySortOptionin TvLibraryDetailViewModel.ktdefaultOrdergroupMacroscope summarized 3354787.