Repository navigation
feat: Edit Selections on existing channels (#22) - #29
Merged
Merged
Conversation
Regular channel editor bottom row is Refresh Lineup | Edit Selections | Save Changes | Delete Channel. Edit Selections reopens the create-time Library / Collections / Playlists picker with filters and titles (or the chosen collection/playlist) pre-checked. Apply updates the in-editor draft only; Save Changes persists the source and queues a lineup refresh. Holiday channels keep their own setup flow and omit Edit Selections. Co-authored-by: gregstengel <gregstengel@gmail.com>
Split EditorViewModel.back into smaller handlers and trim return counts in EditorLoader library resolution for Edit Selections. Co-authored-by: gregstengel <gregstengel@gmail.com>
EditorViewModel exceeded detekt TooManyFunctions; persistEdit and applyToDraft live in EditorSelectionsOps, and back navigation is one navigateBack helper. Co-authored-by: gregstengel <gregstengel@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Adds Edit Selections on the regular channel editor so Greg can change Library filters/titles, collection, or playlist without deleting the channel. Apply updates the in-editor draft only; Save Changes persists the new source and queues a lineup refresh (same cutover as Refresh Lineup). Holiday channels omit the button and keep Settings → Holiday channels.
Bottom row: Refresh Lineup | Edit Selections | Save Changes | Delete Channel.
Closes #22.
How you tested it
No local Gradle (CI is the build). Detekt needed two follow-ups (
CyclomaticComplexMethod/ReturnCount, thenTooManyFunctions); helpers live inEditorSelectionsOps/EditorLoaderscan functions.FirstRunFlowTestedit path updated for the Save Changes label. Manual TV check still needed after CI/nightly: open a Library / Collection / Playlist channel, Edit Selections with pre-checks, Apply without saving, confirm draft-only, then Save Changes and verify lineup refresh; confirm holiday editor has no Edit Selections.Checklist
main../gradlew detekt testpasses locally (CI runs the same).CHANGELOG.mdhas a line under[Unreleased]if a user would notice the change.