Remote: favorites/history, seek, clear queue, paste YouTube link #28

Merged
nezumi merged 4 commits from feat/remote-library-seek-clear into dev 2026-11-22 05:45:39 +00:00
Owner

Four Remote features for party use. Merge with a merge commit (each commit carries its own Vi: trailer).

  • Favorites / History on the Remote: new toggleFavorite command and a library WS message (favorites + history, sent after the first state and only when either list changes). New Library tab with Favorites/History toggle; heart button on search results, library rows and the now-playing bar.
  • Seek: new seek command (positionMs absolute or deltaMs relative, clamped to [0, duration-1s], no-op without a song). Remote gets a draggable seek slider and -10s/+10s buttons; on the TV, Left/Right seek 10 s while the player overlay is hidden, with a short position indicator.
  • Clear queue: new clearQueue command; "Clear all" button in the Queue tab with a centered confirmation dialog. Current song is not affected. (Shuffle intentionally dropped.)
  • Paste a YouTube link: new GET /api/video?id= (400 bad_video_id, 502 video_failed); the search box recognizes watch / youtu.be / shorts / embed / live links and shows that single video.

Docs: docs/protocol.md, CONTEXT.md. Mock server updated.

Testing: ./gradlew testDebugUnitTest (62 tests, new cases for parsing, store and server), pnpm -C remote typecheck and build. Remote UI checked at 360px against the mock. Not verified on the TV box.

Not included: /api/video does not pre-fill the stream cache (it caches resolved stream URLs, not StreamInfo).

Four Remote features for party use. Merge with a **merge commit** (each commit carries its own `Vi:` trailer). - **Favorites / History on the Remote**: new `toggleFavorite` command and a `library` WS message (favorites + history, sent after the first `state` and only when either list changes). New Library tab with Favorites/History toggle; heart button on search results, library rows and the now-playing bar. - **Seek**: new `seek` command (`positionMs` absolute or `deltaMs` relative, clamped to `[0, duration-1s]`, no-op without a song). Remote gets a draggable seek slider and -10s/+10s buttons; on the TV, Left/Right seek 10 s while the player overlay is hidden, with a short position indicator. - **Clear queue**: new `clearQueue` command; "Clear all" button in the Queue tab with a centered confirmation dialog. Current song is not affected. (Shuffle intentionally dropped.) - **Paste a YouTube link**: new `GET /api/video?id=` (400 `bad_video_id`, 502 `video_failed`); the search box recognizes watch / youtu.be / shorts / embed / live links and shows that single video. Docs: `docs/protocol.md`, `CONTEXT.md`. Mock server updated. Testing: `./gradlew testDebugUnitTest` (62 tests, new cases for parsing, store and server), `pnpm -C remote typecheck` and `build`. Remote UI checked at 360px against the mock. Not verified on the TV box. Not included: `/api/video` does not pre-fill the stream cache (it caches resolved stream URLs, not `StreamInfo`).
Add a toggleFavorite command and a server "library" message that carries
favorites and history (sent after the first state and only when either
list changes). The Remote gets a Library tab with a Favorites/History
toggle and a heart button on search results, library rows and the
now-playing bar.

Vi: Thêm Yêu thích và Lịch sử trên điện thoại, bấm ♥ để lưu bài
New "seek" command (absolute positionMs or relative deltaMs, clamped to
the song length) makes the player jump to a position. The Remote's
now-playing bar gets a draggable seek slider plus -10s/+10s buttons, and
on the TV Left/Right seek by 10 seconds while the player overlay is
hidden, with a brief position indicator.

Vi: Tua tới/lui 10 giây và kéo thanh tua trên điện thoại; tua bằng phím ←/→ trên TV
New clearQueue command empties the queue without touching the current
song. The Remote's Queue tab shows a "Clear all" button that opens a
centered confirmation dialog before sending it.

Vi: Xóa toàn bộ hàng đợi từ điện thoại
Paste a YouTube link into the Remote search box
All checks were successful
CI / build (pull_request) Successful in 4m51s
b8426cce9d
New GET /api/video?id= returns the metadata of one video (400
bad_video_id, 502 video_failed). The Remote search box recognizes
YouTube links (watch, youtu.be, shorts, embed, live), skips search and
shows that single video with the usual favorite / play next / add
actions.

Vi: Dán link YouTube vào ô tìm để thêm đúng bài mình muốn
nezumi deleted branch feat/remote-library-seek-clear 2026-11-22 05:45:39 +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!28
No description provided.