Skip to content

feat: Edit Selections on existing channels (#22) - #29

Merged
thegregstengel merged 3 commits into
mainfrom
cursor/edit-selections-22-92eb
Nov 5, 2026
Merged

thegregstengel merged 3 commits into
mainfrom
cursor/edit-selections-22-92eb

Conversation

@thegregstengel

@thegregstengel thegregstengel commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

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, then TooManyFunctions); helpers live in EditorSelectionsOps / EditorLoader scan functions. FirstRunFlowTest edit 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

  • This is my own branch on my fork, targeting main.
  • ./gradlew detekt test passes locally (CI runs the same).
  • No Plex tokens, keystores, or local config in the diff.
  • No code copied from other media clients (Clickarr is clean-room MIT; see CONTRIBUTING.md).
  • Plex only; nothing that adds another media server.
  • CHANGELOG.md has a line under [Unreleased] if a user would notice the change.
Open in Web Open in Cursor 

cursoragent and others added 3 commits November 5, 2026 16:59
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>
@thegregstengel
thegregstengel marked this pull request as ready for review November 5, 2026 17:09
@thegregstengel
thegregstengel merged commit 11e80b9 into main Nov 5, 2026
4 checks passed
@thegregstengel thegregstengel mentioned this pull request Nov 5, 2026
5 of 6 tasks
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.

Feature Request: Edit Existing Channel Content

2 participants