The source screens mixed hand-styled buttons, pill tabs and menus that did not match each other. This adopts shadcn/ui on Base UI for the controls on those screens, mapped onto OpenKara's own theme tokens, and rebuilds the source page layout. Stacked on #699.
Changes
Add Base UI components through shadcn/ui (button, input, tabs, switch, badge, dropdown-menu) in src/components/ui/. Colors map onto existing tokens in one [@theme](/theme) inline block, so both themes keep their palette; text uses the 13px scale and no control is under 24px. The shadcn CLI is not a dependency; its Base UI state variants are copied into globals.css. Rationale in ADR 0050.
Source page: search field with icon and inline clear, line tabs, a playlist header with cover, metadata and a primary Import action, a Back control that stays visible while signed out, and an account menu that shows the signed-in name.
Settings: source rows, registries, the market, Installed/Discover tabs, the Official badge and the YouTube switch use the same components. The source action dialog keeps useModalDialog (see ADR 0050) with the new look.
Fixes found while testing with real accounts: an empty playlist said "No playlists", the empty search message dropped the query, a blank account name showed "Signed in as", and hour-long videos showed as 446:19.
Screenshots
WebKit, mock backend, 1280×800.
Source page, playlist (dark)
Before
After
Source page, playlist (light)
Before
After
Search results
Before
After
Playlists
Before
After
Settings, installed sources (dark and light)
Before
After
Before
After
Settings, registries and install dialog
Before
After
Before
After
I also checked the same screens in the release app with real NetEase, Bilibili and QQ Music accounts (not attached, they show account names).
Test plan
node --run lint (3 only-export-components warnings on shadcn files, as upstream) and node --run build
pnpm exec vp test run: 2591 passed
Playwright settings, streaming-sources, focus-order, themes-and-motion in Chromium and WebKit: all pass; a track without audio finds a playable version is intermittently flaky in WebKit, as on main (passed 3/3 on rerun)
node --run check:i18n; new key catalog.streaming.playlistTracksEmpty in all 17 locales
Interaction and accessibility profile: keyboard tabs (arrows activate), menu Escape returns focus, axe passes in both themes including target size and contrast
Reviewing files that changed from the base of the PR and between 9c8d5655ff95316a3d1fc5788ce06e271abe1ef2 and 7881d9061719821f8558ec4b949499d252f6e3a1.
Files ignored due to path filters: 2
packaging/flatpak/generated/node-sources.0.json is excluded by !**/generated/**, !**/generated/**, !packaging/flatpak/generated/**
pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml, !pnpm-lock.yaml
Reviewed incremental changes on PR #701 from e7bbbb7c4fad6b9937d8bb59880a3cc9ba419d8b to HEAD (7881d9061719821f8558ec4b949499d252f6e3a1) across 15 changed files (artwork protocol/cache, source-art URI scheme, shared HTTP client with SSRF resolver, CSP update, dropdown-menu trimming, docs/types/tests).
No changed-code issues found at CRITICAL/WARNING/SUGGESTION confidence levels. Existing inline comments: none.
Current summary above is authoritative. Previous snapshots are kept for context only.
Previous review (commit e7bbbb7)
Status: No Issues Found | Recommendation: Merge
Reviewed incremental changes on PR #701 from a8ad798b7c28a12ba26790960c8263139a6e22a4 to HEAD (e7bbbb7c4fad6b9937d8bb59880a3cc9ba419d8b) across 13 changed files (Rust streaming-sign-in cookie-group protocol, replacement lifecycle hardening, test/error-code updates, and frontend account-menu/sign-in wiring).
No changed-code issues found at CRITICAL/WARNING/SUGGESTION confidence levels. Existing inline comments: none. No Kilo inline review comments to reconcile.
Reviewed PR #701 (a8ad798b7c28a12ba26790960c8263139a6e22a4) across 44 changed files (UI adoption of shadcn/ui on Base UI for source screens, settings/streaming browser refactors, formatDuration hour handling, locale additions, ADR 0050, deps/lockfile updates).
No changed-code issues found at CRITICAL/WARNING/SUGGESTION confidence levels based on the available diff and current PR state. Existing inline comments: none. CodeRabbit summary comment present; no Kilo inline review comments to reconcile.
:x: Patch coverage is 92.30769% with 16 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 88.3%. Comparing base (9c8d565) to head (7881d90).
:white_check_mark: All tests successful. No failed tests found.