feat(web): dedicated channel edit screen (#146) #154

Merged
timothy merged 2 commits from feat/146-channel-edit into main 2026-07-07 12:40:18 +02:00
Owner

Closes #146 (#91 blocker).

Dedicated ChannelEditScreen (hydrate-then-PUT on GET/PUT /api/channels/{id}, no backend changes) replacing the dead /app/new-channel?edit= pencil link. Scope call (builder hydration rejected) documented on the issue.

  • Full ChannelEditor.razor field parity across a 6-section rail: identity, playout source/mode + mirror conditionals, streaming/FFmpeg profile/watermark (HLS-Direct lock), stream selector default/custom branch, music video credits, logo preview+upload, fallback filler.
  • New getChannelById/updateChannel API clients + tests; screen tests (hydration, PUT body, 404 state).
  • Skipped per scope: ExternalLogoUrl (absent from the JSON contract), /channels/numbers drag-reorder (existing Renumber toolbar accepted as parity — see issue comment).
  • Live E2E: real server, PUT/GET round-trip + 404 path verified, data reverted.
  • 151 web tests green; tsc, eslint, vite build clean.

🤖 Generated with Claude Code

Closes #146 (#91 blocker). Dedicated `ChannelEditScreen` (hydrate-then-PUT on `GET`/`PUT /api/channels/{id}`, no backend changes) replacing the dead `/app/new-channel?edit=` pencil link. Scope call (builder hydration rejected) documented on the issue. - Full `ChannelEditor.razor` field parity across a 6-section rail: identity, playout source/mode + mirror conditionals, streaming/FFmpeg profile/watermark (HLS-Direct lock), stream selector default/custom branch, music video credits, logo preview+upload, fallback filler. - New `getChannelById`/`updateChannel` API clients + tests; screen tests (hydration, PUT body, 404 state). - Skipped per scope: `ExternalLogoUrl` (absent from the JSON contract), `/channels/numbers` drag-reorder (existing Renumber toolbar accepted as parity — see issue comment). - Live E2E: real server, PUT/GET round-trip + 404 path verified, data reverted. - 151 web tests green; tsc, eslint, vite build clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
timothy added 1 commit 2026-07-07 12:23:57 +02:00
feat(web): dedicated channel edit screen for SPA parity (#146)
Build ErsatzTV Image / Build & test (.NET) (pull_request) Successful in 4m2s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (pull_request) Successful in 4m25s
Build ErsatzTV Image / Build & push image (amd64) (pull_request) Has been skipped
c21827667a
Add a full ChannelEditScreen so the SPA can edit an existing channel
(the list/builder could only create). Mirrors the Blazor ChannelEditor
field set via hydrate-then-PUT against GET/PUT /api/channels/{id}.

- api/channels.ts: getChannelById + updateChannel (typed from generated
  ChannelViewModel / UpdateChannelRequest).
- screens/ChannelEditScreen.tsx: section-rail form (General, Playout,
  Streaming, Stream selection, Music video, Branding) following the
  SettingsScreen draft/saved dirtiness + floating save bar pattern. Logo
  upload reuses uploadArtwork; option data via existing pickers clients.
- App.tsx: /app/edit-channel/{id} route (allowSubPaths, screen parses the
  id); repoint the channel-table edit pencil at it.
- Tests: API-client GET/PUT + screen hydrate/edit-save/404 coverage.

Deferred per scope: ExternalLogoUrl (backend contract gap), and the
/channels/numbers bulk renumber (existing Renumber toolbar = parity).
Language codes / stream selector / credits template are free-text inputs
(no enumeration endpoints exist); mirror-source list can't filter to
Generated-only (ChannelResponseModel omits playoutSource).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
timothy added 1 commit 2026-07-07 12:32:50 +02:00
fix(web): review fixes — EPG switch gating, edit route key, stronger PUT assertion (#146)
Build ErsatzTV Image / Build & test (.NET) (pull_request) Successful in 4m17s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (pull_request) Successful in 4m41s
Build ErsatzTV Image / Build & push image (amd64) (pull_request) Has been skipped
1f3385a2ff
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
timothy merged commit fcdecd16c0 into main 2026-07-07 12:40:18 +02:00
Sign in to join this conversation.