Repository navigation
feat(browse): add Release Date library sort - #567
Conversation
Library browse on iOS, tvOS, and macOS only offered Year, which orders titles by year alone. Add a Release Date key that sends the server's release_date field, newest first by default, for movie, series, and mixed libraries.
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 catalog sort options add release-date sorting for movie, series, and mixed libraries. The option defaults to descending order and uses “Oldest” and “Newest” direction labels. Audiobook sort options are unchanged. ChangesCatalog sorting
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to The client sends the release-date sort value, and current upstream supports it for video catalogs. The deployed server version is not identified, but no concrete failure is established, so no merge-blocking issue is indicated. Security Architecture ReviewSecurity architecture risk: ⚪ Minimal · up to The new fixed sort option reuses existing authenticated catalog requests without changing library scope or privileges. No material security risk was identified. Compatibility with every deployed server version remains unverified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 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 #22 (Browse: sort + filter), #23 (Browse: sort + filter), #337 C1, #338 C1
Library browse on iOS, tvOS, and macOS can sort by Year but not by release date, while the web app and Android phone offer Release Date. Year orders titles by year alone, so two movies from the same year come back in title order instead of the order they came out. This change adds Release Date to the library sort menu on all three platforms.
Approach
CatalogSortKeygets a Release Date key that sends the server's existingrelease_datesort field, so the server needs no change. It defaults to newest first, uses the same Newest/Oldest direction label as Year, and sits between Date Added and Year for movie, series, and mixed libraries. Year stays as its own option, and audiobook libraries are unchanged.Android TV gets the same option in Silo-Server/silo-android#433.
Validation
CatalogQueryBuilderTestson an iOS simulator: pass. The new test checks that Release Date sends-release_dateand is offered for movie, series, and mixed libraries but not audiobooks.SiloTV) and macOS (SiloMac) builds: pass.SiloTestssuite, and a manual check of the macOS app, which uses the same browse code as iOS.Risks
None identified.
Checklist
AI Disclosure
Note
Add
releaseDatesort key to browse library sortingAdds a
releaseDatecase toCatalogSortKeythat maps to the server's signedrelease_datefield, labeledRelease DatewithOldest/Newestdirection labels and descending order by default. It is offered for movie, series, and mixed libraries but not audiobook libraries, per CatalogSortKey.swift.Macroscope summarized 6ac5958.