Add TV Settings screen from the prototype #12

Merged
nezumi merged 1 commit from feat/settings-screen into dev 2026-11-21 13:12:10 +00:00
Owner

Why

The prototype has a Settings screen; the app had none, and interlude length / video quality were hard-coded.

What changed

  • Settings screen (icon-only nav item after "Điện thoại", Back → Home), two columns:
    • Phát: auto-play next (toggle), interlude 5/10/15 s (picker), video quality Auto/720p/1080p (picker).
    • Giao diện: stage lights & stars, motion (toggles).
    • Kết nối: room code (opens the QR dialog), device name.
    • Về ứng dụng: version, author (opens an author dialog, avatar loaded from Forgejo with an initial fallback), check for updates (manual check, ignores the interval).
  • Settings is persisted in state.json (Persisted.settings) and never bumps the protocol rev.
  • Interlude countdown uses settings.interludeSec; auto-play off sends the TV Home with a "next song waiting" toast.
  • Quality caps the resolver height (prefetch included); auto-downshift to 720p only in Auto.
  • LocalMotion / LocalStageLights turn off animations and the stage background.
  • Protocol: screen may be "settings" (docs/protocol.md, remote/src/protocol.ts).

Verification

  • ./gradlew :app:testDebugUnitTest :app:assembleDebug green; 6 new AppStoreTest cases (interlude length, clamping, auto-next off, persistence round-trip, no rev bump, navigation).
  • pnpm -C remote build green.
  • Checked on the Android TV emulator: layout, D-pad between columns and past static rows, pickers/QR/author dialogs return focus to their row, toggles, persistence across restart, update check.
  • Not checked with real playback: interlude length, auto-next off, 720p/1080p cap (unit-tested only).
## Why The prototype has a Settings screen; the app had none, and interlude length / video quality were hard-coded. ## What changed - **Settings screen** (icon-only nav item after "Điện thoại", Back → Home), two columns: - *Phát*: auto-play next (toggle), interlude 5/10/15 s (picker), video quality Auto/720p/1080p (picker). - *Giao diện*: stage lights & stars, motion (toggles). - *Kết nối*: room code (opens the QR dialog), device name. - *Về ứng dụng*: version, author (opens an author dialog, avatar loaded from Forgejo with an initial fallback), check for updates (manual check, ignores the interval). - `Settings` is persisted in `state.json` (`Persisted.settings`) and never bumps the protocol `rev`. - Interlude countdown uses `settings.interludeSec`; auto-play off sends the TV Home with a "next song waiting" toast. - Quality caps the resolver height (prefetch included); auto-downshift to 720p only in Auto. - `LocalMotion` / `LocalStageLights` turn off animations and the stage background. - Protocol: `screen` may be `"settings"` (`docs/protocol.md`, `remote/src/protocol.ts`). ## Verification - `./gradlew :app:testDebugUnitTest :app:assembleDebug` green; 6 new `AppStoreTest` cases (interlude length, clamping, auto-next off, persistence round-trip, no rev bump, navigation). - `pnpm -C remote build` green. - Checked on the Android TV emulator: layout, D-pad between columns and past static rows, pickers/QR/author dialogs return focus to their row, toggles, persistence across restart, update check. - Not checked with real playback: interlude length, auto-next off, 720p/1080p cap (unit-tested only).
Add TV Settings screen from the prototype
All checks were successful
CI / build (pull_request) Successful in 4m41s
e2d3c28e8a
- New Settings screen (icon-only nav item): playback (auto-next,
  interlude 5/10/15 s, video quality Auto/720p/1080p), appearance
  (stage lights, motion), connection (room code, device name) and
  about (version, author dialog with Forgejo avatar, update check).
- Settings persist in state.json and never bump the protocol rev.
- Interlude length and auto-next come from settings; quality caps the
  stream resolver height, auto-downshift only in Auto.
- LocalMotion / LocalStageLights switch off animations and the stage
  background.
- Protocol: screen may be "settings".
nezumi deleted branch feat/settings-screen 2026-11-21 13:12:10 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nezumi/kara-tv-app!12
No description provided.