Release: merge dev into main #27

Merged
nezumi merged 11 commits from dev into main 2026-11-22 07:50:56 +00:00

Merge dev into main to publish the next release. This PR is opened and refreshed automatically on every push to dev.

Changes since v1.0.3

  • Add host mode to limit what phones can control (6db2a37)
  • Paste a YouTube link into the Remote search box (b8426cc)
  • Add "Clear all" to the Remote queue (b2deaa1)
  • Add seek to the Remote and TV D-pad (6b1e4f5)
  • Manage favorites and history from the Remote (e49000b)
  • Harden pairing and validate Remote song input (#26) (9d092db)
  • Add app icon to README header [skip ci] (bc57e16)
  • Update CONTEXT and ADR 0005 for i18n, interlude and Forgejo [skip ci] (6823cf0)
  • Add bilingual README, MIT license and UI preview images [skip ci] (e9dc071)

Release notes

  • Merge with a merge commit (not squash) so the changelog keeps every commit from dev.
  • Merging triggers the Release workflow, which bumps the patch version. For minor/major, put [skip release] in the merge commit title and run Actions > Release > Run workflow on main with the bump you want.
Merge `dev` into `main` to publish the next release. This PR is opened and refreshed automatically on every push to `dev`. ## Changes since v1.0.3 - Add host mode to limit what phones can control (6db2a37) - Paste a YouTube link into the Remote search box (b8426cc) - Add "Clear all" to the Remote queue (b2deaa1) - Add seek to the Remote and TV D-pad (6b1e4f5) - Manage favorites and history from the Remote (e49000b) - Harden pairing and validate Remote song input (#26) (9d092db) - Add app icon to README header [skip ci] (bc57e16) - Update CONTEXT and ADR 0005 for i18n, interlude and Forgejo [skip ci] (6823cf0) - Add bilingual README, MIT license and UI preview images [skip ci] (e9dc071) ## Release notes - Merge with a **merge commit** (not squash) so the changelog keeps every commit from `dev`. - Merging triggers the `Release` workflow, which bumps the **patch** version. For minor/major, put `[skip release]` in the merge commit title and run Actions > Release > Run workflow on `main` with the bump you want.
Harden pairing and validate Remote song input (#26)
All checks were successful
Release PR / release-pr (push) Successful in 3s
CI / build (push) Successful in 1m56s
9d092db931
## Summary

Fixes three low-severity issues found in a source security review.

- **Room code:** now 6 digits generated with `SecureRandom`; persisted 4-digit codes are replaced on start. Remote input, hint text, mock server and docs updated.
- **Pairing throttle:** failed `/api/pair` attempts are counted per client address (5/min) with a global ceiling (60/min), so one LAN device can no longer block pairing for everyone.
- **Song input from Remotes:** `videoId` must be an 11-character YouTube id, thumbnails are limited to YouTube image hosts, title/channel lengths are bounded, and the queue is capped at 200.

## Testing

`./gradlew testDebugUnitTest` passes; `pnpm typecheck` passes. Added a test for song sanitizing; the per-host pairing limit has no test yet. Not run on a TV or emulator.

Vi: Mã phòng giờ gồm 6 số khó đoán hơn, giới hạn thử sai theo từng thiết bị và chặn dữ liệu bài hát không hợp lệ từ điện thoại
Co-authored-by: nezumi <123229563+Nezumi-2711@users.noreply.github.com>
Reviewed-on: #26
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
Merge pull request 'Remote: favorites/history, seek, clear queue, paste YouTube link' (#28) from feat/remote-library-seek-clear into dev
All checks were successful
Release PR / release-pr (push) Successful in 4s
CI / build (push) Successful in 4m46s
9c5d56f927
Reviewed-on: #28
Add host mode to limit what phones can control
All checks were successful
CI / build (pull_request) Successful in 4m52s
6db2a37a33
Optional "Host mode" in TV Settings (off by default). When on, phones are
either hosts or members: members can search, add songs and manage only
their own queue items; hosts (PIN entered on the phone, or picked on the
TV) keep full control. The TV remote always has full control.

- TV: Settings group "Quyền điều khiển", host management dialog (PIN,
  change PIN, promote/demote connected phones).
- Server: host keys issued by the TV, per-connection snapshots with
  `you.role` and `mine`, `claimHost`/`leaveHost`, `forbidden` toasts,
  rate-limited PIN attempts.
- Remote: role chip, PIN sheet, forbidden controls hidden for members.
- Docs: ADR 0006, protocol, CONTEXT, prototype.

Vi: Thêm Chế độ host để giới hạn quyền điều khiển của điện thoại, chỉ host mới được tạm dừng, chen bài và xử lý bài của người khác
Merge pull request 'Add host mode to limit what phones can control' (#29) from feat/host-mode into dev
All checks were successful
Release PR / release-pr (push) Successful in 3s
CI / build (push) Successful in 2m11s
d4013087da
Reviewed-on: #29
nezumi merged commit b77a060b85 into main 2026-11-22 07:50:56 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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!27
No description provided.