Commit Graph
100 Commits
Author SHA1 Message Date
vicrodh b584c75ef9 fix(slint): drive the lyrics sync engine for immersive lyrics panels
The 30Hz lyrics engine gated solely on ShellState.lyrics-open (the
sidebar), so the immersive Lyrics panels (focus + split) never advanced:
active-index/line-progress stayed frozen and the open-time kick() no-op'd
because it bailed at the same gate before computing. Widen the gate so the
engine also ticks while an immersive lyrics panel is active (focus mode 4
or split panel 0), read directly from ImmersiveState.

cc
2026-06-19 06:51:05 -06:00
vicrodh db41e78383 feat(slint): immersive suggestions panel (split) with live artist queries
Add ImmersiveSuggestionsPanel for the split-right slot (split-panel 2):
a cards row (up to 2 artist-playlist book-collage cards + a Song-Radio
diamond-collage card) and a recommended-tracks list. New suggestions.rs
controller assembles everything in Rust (ADR-006): artist tracks_appears_on
with an artist-tracks fallback under 5, dedupe by title, drop the current
track, shuffle, take 10; cards from the first two playlists plus a track
radio. New core method QbzCore::create_smart_track_radio mirrors the smart
artist radio (spawn_blocking + block_on, seed hoisted to index 0). Does NOT
use reco_store (live Qobuz queries only). Collage tilt deferred (flat for
now); blacklist drop happens downstream in play_tracks.

cc
2026-06-19 06:43:00 -06:00
vicrodh 816da9cd47 feat(slint): immersive track info inline panel (split)
Add ImmersiveTrackInfoPanel for the split-right slot (split-panel 1):
title + album, Duration/Quality/ISRC/Label-link metadata rows, grouped
credits and copyright, reusing MetaCell/CreditCell from TrackInfoModal
(now exported). A new load-without-open path (info_modals::
load_track_info_inline via TrackInfoActions.load-inline) populates
TrackInfoState without raising the floating modal, so the inline panel
fills in place; the data refreshes on now-playing track change. Header
gains a Track Info tab in the split rail (Lyrics, Track Info, Queue).

cc
2026-06-19 06:19:53 -06:00
vicrodh 55fc6fa13f feat(slint): immersive queue panel (focus + split) with queue/history tabs
Add ImmersiveQueuePanel, one component used both as a focus full-screen
queue (mode 5) and the split-right panel (split-panel 3). Queue/History
sub-tabs bound to QueueState.tab/set-tab; NOW PLAYING card + UP NEXT list
from the flat coverflow-tracks model (upcoming index = idx -
coverflow-index - 1 -> play-coverflow-upcoming), History from the
canonical history list. Header gains a Queue tab in both rails;
QueueState.panel-opened() fires on entry. Rows reuse the queue row
shape; scrolling via Flickable + shared ListScrollbar.

cc
2026-06-19 05:54:58 -06:00
vicrodh 77068e3b75 feat(slint): immersive focus/split scaffold + lyrics panel (both variants)
Add ImmersiveState.view-mode (0 focus, 1 split) and split-panel; extend
the mode enum with Lyrics-focus (4). The immersive header gains a
focus/split toggle (the former inert panel-left slot) and a Lyrics tab
in each mode. New ImmersiveLyricsFocusPanel renders the giant centered
current line with a fadeInUp-lite entry; split mode reuses
LyricsLinesView at immersive sizing with the shared ImmersiveTrackInfo
block on the left. LyricsState.panel-opened() fires on lyrics entry so
fetch starts. Existing visualizer modes, atmosphere and the wgpu shader
underlay are gated on view-mode==0 and otherwise untouched.

cc
2026-06-19 05:43:51 -06:00
vicrodh 87116b16e2 fix(slint): match NPB Small right-button order to New/Classic
Reorder the Small now-playing bar's right control set to
Connect / Cast / Audio settings / Now-Playing view / Lyrics / Volume /
Queue, matching PlayerBar. Pure reorder; the leading AudioStamp stays.

cc
2026-06-19 02:41:17 -06:00
vicrodh 9ccfbd3845 feat(slint): port Awards pages (landing + albums listing + follow)
Port Tauri's AwardView/AwardAlbumsView to Slint: the award landing
(hero + acclaimed-releases preview grid + other-awards rail + follow
heart), the paginated albums listing with client-side search, and
clickable album-sidebar laurels that open the award page (resolving the
award id by name when /album/get omits it).

- AwardState/AwardActions globals + AwardEntry; AlbumState.awards now
  carries award ids
- award controller (src/award.rs): /award/page hero (never page.releases),
  /award/getAlbums grid, /award/explore other-awards + name->id resolver;
  follow via the shared favorite_awards cache (plural-read/singular-write
  favType, skip-if-remote, login seed)
- nav registration: NavEntry::Award/AwardAlbums, ContentView arms,
  navigate_award/navigate_award_albums, AppShell mounts, app.slint exports
- ArtworkTarget::AwardAlbum/AwardOther

cc
2026-06-19 02:41:12 -06:00
vicrodh c48c938bb9 fix(slint): drop the dated accent-tile icon from the lyrics header
The 36px accent-blue mic-vocal tile at the top of the lyrics sidebar was a
Tauri-era treatment that no longer matches the current QBZ header style.
Removed per owner request; the LYRICS overline + track meta stay.

cc
2026-06-18 22:49:11 -06:00
vicrodh ae550b76a5 feat(slint): per-visual-line karaoke highlight for lyrics
A wrapped lyric line (one logical line over two visual rows) lit BOTH rows at
once because the active line was a single word-wrap Text masked by one clip
Rectangle of full block height + scalar width. Now it progresses per visual
line — row 1 fills to 100% before row 2 starts — matching the final Tauri
behavior. NOT a Slint limitation (proven in the investigation doc).

- lyrics_measure.rs (new): swash advance pass over the active line at the same
  font (by font-index) + ppem + wght=700 + 0.2px letter-spacing the view
  renders with, greedy word-wrap (CJK per-char) -> per-visual-line segments
  with pixel widths. Embeds the same TTFs the view registers. swash is the
  shaper femtovg uses, so widths match the render.
- lyrics_sync.rs: on active-index / content-width / font / size / uppercase
  change, segment the active line and push [LyricsSegment{text, start-weight,
  width-weight}] (Tauri's width-weighted partition); pushed atomically with the
  active index. Per-surface cache keys (main + mini). line-progress unchanged.
- state.slint: LyricsSegment struct + active-segments + content-width on
  LyricsState.
- LyricsLinesView.slint: active row renders a VerticalLayout of per-segment
  rows (no-wrap), each the existing dim-base + clipped-bright-overlay with clip
  width = segwidth * clamp((line-progress - start-weight)/width-weight, 0, 1).
  Root publishes content-width. Inactive rows unchanged.
- miniplayer.rs: mini lyrics surface segmentation fan-out.

Investigation + plan: qbz-nix-docs/lyrics/2026-06-18-karaoke-highlight-investigation/.
Owner-verified working. Known tuning point: wrap-boundary precision per font tier.

cc
2026-06-18 22:49:11 -06:00
vicrodh 41973a1ea1 chore(slint): clear dead-code warnings (zero-warnings policy)
Pre-existing dead code unrelated to cast; restores the zero-warnings policy.

Deleted (abandoned refactor leftovers): ModeTextToggle (LocalLibraryView.slint,
unreferenced), section_artwork_jobs + ArtworkTarget::Section variant + its match
arm (Discover-slice leftover; live render uses DiscoverSectionAlbum),
rename_folder (orphan DB wrapper).

Marked #[allow(dead_code)] with a "reserved, pending wiring" note (ported work
from other epics, not discarded): qconnect_service set_autoplay_mode_if_remote /
autoplay_load_tracks_if_remote / stop_if_remote (QConnect autoplay/stop API);
myqbz_play skip_to_next_item / skip_to_previous_item (Mixtape item-skip, spec 40).

cargo check -p qbz-slint: 0 warnings.

cc
2026-06-18 14:50:48 -06:00
vicrodh 2e990cbf07 fix(slint): cast lyrics auto-follow + DLNA seekbar duration
- Lyrics auto-follow while casting: the local poll's cast-skip now runs BEFORE
  clear_remote_anchor() (it was wiping the anchor every 450ms), and the cast
  poll publishes its position via lyrics_sync::publish_remote_anchor each tick
  (the 30Hz engine extrapolates between ticks, like the QConnect path). Anchor
  cleared on disconnect so local lyrics resume.
- DLNA seekbar: many renderers report TrackDuration=0 in GetPositionInfo, which
  left the bar permanently full (position/0 -> clamp 1.0) with no total time.
  Fall back to the track's catalog duration when the renderer reports 0 (the
  renderer's position is still authoritative). Chromecast reports a real
  duration, so it's unaffected.

cc
2026-06-18 14:50:48 -06:00
vicrodh 2d4d4d0906 perf(cast): cache-first resolver + offline tier + cheap quality (P1+P2)
The cast was slow because the resolver always did a full CMAF download
(~10s for a 190MB hi-res FLAC) and never read the cache — unlike the fast last
Tauri build, which resolved bytes cache-first.

- P1 cache-first: Player::fetch_for_external_stream now checks L1 (in-memory) ->
  L2 (on-disk playback cache) before any download. The gapless prefetch already
  warms the next 2 tracks at UltraHiRes while casting, so next/advance/replay are
  now instant; only a cold track pays the download.
- Offline tier: CoreBridge::fetch_for_external_stream_resolved gains offline +
  sink params and tries resolve_offline_bytes (local CMAF decrypt, no network)
  before the network path — a downloaded track casts fast with no connection
  (the same local-segments+decrypt path offline playback uses). Replaces the
  hard "Qobuz cast needs a connection" gate (offline-cached tracks now work).
- P2 quality label: derived from the track's catalog metadata
  (bit_depth/sample_rate/hires) in cast_track — no extra API call, consistent
  whether bytes came from cache, offline, or network.

cargo check -p qbz-slint: clean.

cc
2026-06-18 12:13:06 -06:00
vicrodh 88cf79e1e5 fix(slint): keep the bar/queue in sync while casting
Smoke-test fixes after the first real Chromecast session:

- Local 450ms poll now skips the bar update while casting (it was pushing the
  stopped local player's position=0/playing=false/local-volume every tick,
  fighting the cast poll → seekbar flicker, wrong play icon, dead volume bar).
  The cast poll owns the bar, mirroring the existing QConnect-controller skip.
- Cast poll + connection-state push now set NowPlayingState.playing (the
  play/pause icon was stuck on play), and set_volume_if_cast pushes the slider
  position (the local set_volume that normally moves it is skipped while casting).
- next/previous no longer use a cast-only path: that advanced the renderer +
  core cursor but never refreshed the card/queue, and left the cursor desynced
  so queue-click resolved the wrong track. They now run the local
  next()/previous() flow (move cursor -> refresh card+queue -> play_audible
  casts the new track), keeping UI + renderer in sync. Auto-advance on track end
  uses the same local next() flow.

cc
2026-06-18 12:03:27 -06:00
vicrodh d525e4670a fix(cast): install rustls CryptoProvider before TLS connect
rust_cast opens a rustls TLS channel to the Chromecast. In the full binary both
the aws-lc-rs and ring providers are enabled (reqwest pulls ring, rust_cast pulls
aws-lc-rs), so rustls can't auto-select one and the worker thread panicked with
"Could not automatically determine the process-level CryptoProvider" — surfacing
as "Connection error: Thread response error".

Add qbz_cast::ensure_crypto_provider() (installs aws-lc-rs once, idempotent) and
call it at the top of ChromecastHandle::connect and DlnaConnection::connect.

cc
2026-06-18 12:02:44 -06:00
vicrodh 28fe9fa773 feat(slint): route new-track plays to cast + offline gate (Phase 5)
- play_audible now gates Cast-first (before the QConnect peer route): when a
  renderer is connected, a newly-played track is cast to it instead of starting
  the local audio backend (no double audio). Mirrors the existing QConnect
  play_on_peer_if_active chokepoint.
- Offline gate: casting a Qobuz track while offline is refused with a clear
  message (the external-stream resolver is network/CMAF only; local files still
  cast offline). Offline-cached Qobuz cast is a tracked follow-up.

Deferred (documented, non-blocking): continue-locally prompt on disconnect
(needs a small Slint modal); skipIfRemote UI gate (cast while this instance is
a QConnect remote — rare edge).

cargo check -p qbz-slint: clean.

cc
2026-06-18 10:08:51 -06:00
vicrodh 6429273d77 feat(slint): cast picker modal + cast teardown on logout/exit (Phase 4)
- CastPicker.slint: real modal (scrim + 400px card) replacing the static
  PlayerBar/PlayerBarSmall cast-menu PopupWindow stubs. Two rectangular tabs
  (Chromecast/DLNA, no pills, plain count) + per-tab device list from
  CastState.devices, connect-on-click (DLNA rows gate on can-play), connected
  banner with Disconnect + delivered-quality line (D3), scanning/empty states,
  error line. Mounted last in AppShell (on top).
- PlayerBar + PlayerBarSmall cast buttons now open the modal
  (CastState.picker-open = true; CastActions.open()) instead of the dead popup.
- Cast teardown wired: shutdown() on logout (fixes the Tauri connection + poll
  leak #33) and best-effort on app exit (renderer Stop + media server, #32).

cargo check -p qbz-slint: clean (only the 6 pre-existing warnings).

cc
2026-06-18 10:04:59 -06:00
vicrodh 3e1101ff64 feat(slint): cast service + transport gating for Chromecast/DLNA (Phase 2-3)
The Slint-side seam over the qbz-cast crate, modeled on qconnect_service.rs.

cast_service.rs (singleton):
- discovery (mDNS + SSDP) with a 2s device-refresh loop and 15s scan window;
- connect/disconnect: snapshot local playback, stop the local backend, suspend
  QConnect (remember + restore), connect, then re-cast the current track
  passing its REAL source (fixes the Tauri resume-source bug) + deferred seek;
- cast_track: source-routed (qobuz via the Phase-0 shared resolver at
  UltraHiRes; local via register_file streaming + rich MIME; plex = TODO),
  one shared lazy MediaServer, per-device source-IP URL, Chromecast auto-play
  vs DLNA two-step load->play;
- 1s position poll mirroring position/duration/elapsed to the bar + CastState,
  with the verbatim track-end heuristic (Chromecast ->IDLE, DLNA ->STOPPED/
  NO_MEDIA_PRESENT) driving auto-advance;
- delivered-quality (D3) pushed to CastState; shutdown() for logout/exit.

state.slint: CastState global + CastActions + CastDevice (tagged record with
DLNA capability flags); re-exported in app.slint.

main.rs: init + CastActions wiring (open/close/refresh/connect/disconnect) and
transport gating — play/pause/next/previous/seek/volume now route Cast >
QConnect > local.

Compiles clean (only stop_if_cast/shutdown unused pending the stop callback +
logout/exit wiring, next).

cc
2026-06-18 09:54:27 -06:00
vicrodh 8dc5f9c5c5 feat(cast): qbz-cast crate hardening for the Slint port (Phase 1)
Additive, backward-compatible enhancements to the shared cast crate (the
Tauri shims are pure re-exports, so existing callers are unaffected).

- DLNA timeouts: pause/stop/seek/set_volume now run through a shared
  run_action() with a 10s timeout (was none) so a hung renderer can't block
  the caller forever. New DlnaError::Timeout / CastError::Timeout variants.
- DLNA mute: add set_mute / get_mute (RenderingControl SetMute/GetMute,
  Master channel) — was missing alongside set_volume.
- DLNA capability detection is now version-agnostic (matches AVTransport:2/:3,
  not only :1) so newer renderers report has_av_transport correctly.
- Media server endpoint auth: served path is now /audio/<token>/<id> with a
  128-bit per-session token (RandomState-seeded, no new dep). Token lives in
  the PATH, not a query string, so DLNA renderers that strip queries still
  authenticate. Mismatch -> 403.
- register_file content-type parity: content_type_for_path now mirrors the
  rich local-cast MIME map (audio/x-ape, mp3/ogg/opus/aac, m4a/alac->audio/mp4)
  instead of the poorer table; add register_file_with_content_type so the
  caller can supply an exact MIME. Local files stream from disk (no full-RAM
  read) per decision D4.

Unit-tested: tokened-path parsing, rich MIME map, token randomness.

cc
2026-06-18 09:25:39 -06:00
vicrodh fdf2fec3bb feat(core): shared external-stream asset resolver for Cast (Phase 0)
Add a frontend-agnostic API to resolve a track's bytes + MIME + actually-
delivered quality for an external renderer (Chromecast / DLNA), so the Slint
Cast port does not need an improvised downloader (ADR-006).

- qbz-models: ExternalStreamAsset { bytes, content_type, quality, duration,
  origin }, StreamQualityInfo (kHz-normalized via from_raw, handles the
  kHz-vs-Hz endpoint ambiguity), AssetOrigin.
- qbz-qobuz/cmaf: download_full_with_quality(_progress) returns the resolved
  format_id/sampling_rate/bit_depth alongside the FLAC bytes; download_full is
  now a thin wrapper (no duplicated segment assembly).
- qbz-player: Player::fetch_for_external_stream — CMAF-first (FLAC, accurate
  quality) with legacy stream-URL fallback; never reads the local playback
  cache (casting attempts the best tier and must report the real delivered
  quality); never serves an empty content type (external_content_type helper).
- qbz-core: CoreBridge::fetch_for_external_stream_resolved wrapper.

Decision D3 (attempt UltraHiRes first + surface delivered quality) is satisfied
by passing Quality::UltraHiRes and returning StreamQualityInfo. Unit-tested:
content-type fallback by format id, sampling-rate unit normalization.

cc
2026-06-18 09:19:38 -06:00
vicrodh c974b8a973 feat(slint): miniplayer — second borderless window with five surfaces
Port the Tauri MiniPlayer to a second Slint MiniPlayerWindow (not an
AppWindow morph). Borderless via the native no-frame property (Slint's
winit adapter re-applies decorations from no-frame on every realization,
so the attributes hook alone was undone); the vendored renderer gives the
transparent rounded floating card. First QBZ surface with no system
titlebar.

State is mirror-driven with no second poll loop: the existing 450ms
playback poll and the 30Hz lyrics tick each fan out one mirror call into
the mini's per-window globals (REQ-1), gating the expensive copies
(artwork / queue / lyric lines) on track-id change. The queue surface owns
a self-contained navigable model (current + full upcoming, not the 40-row
sidebar page), and per-row play routes remote-first and bails before
mutating local (REQ-2). Transport callbacks delegate to the main window's
already-wired remote-first handlers (zero duplication).

Surfaces: micro / compact / artwork / queue / lyrics (reuses
LyricsLinesView + LyricsState). Footer with pending-seek state, transport,
volume popover, and the hover-expand controls capsule (surface tabs +
background-blur toggle + move-drag + close). Optional static
artwork-derived background-blur backdrop. Lifecycle in src/miniplayer.rs
(create-once / enter / exit / close / per-surface geometry persistence /
winit hooks). Menu entry enabled in PlayerBar + PlayerBarSmall.

cc
2026-06-17 18:35:28 -06:00
vicrodh 5fc1beb869 fix(slint): vendor femtovg-wgpu renderer for transparent window surface
Slint 1.16's femtovg-wgpu renderer configures the wgpu surface via
get_default_config() and leaves the composite alpha mode at Auto, which
resolves to an opaque surface on KWin/Wayland — a borderless transparent
window then shows a black rectangular backing behind the rounded card.
WGPUConfiguration exposes no surface/alpha hook, so the only fix is a
renderer patch.

Vendor i-slint-renderer-femtovg-1.16.1 with a preferred_alpha_mode() that
picks a supported non-opaque mode (PreMultiplied / PostMultiplied /
Inherit, guarded by the surface's advertised alpha_modes, else Auto) and
wire it into set_surface(). Pulled in via [patch.crates-io]; Slint stays
pinned =1.16.1. The main window is unaffected (it paints opaque).

cx
2026-06-17 18:35:03 -06:00
vicrodh e88de3b9ee feat(slint): auto-hide hover-reveal scrollbars (Discover/Home/Blacklist manager)
ListScrollbar gains an auto-hide mode: track and thumb fade in on list hover
or active scroll (900ms idle timer) and out otherwise. Discover and Home derive
hover from the global ShellState pointer over the flickable bounds; the
Blacklist manager swaps std ScrollView for Flickable + ListScrollbar driven by
a per-row hover counter. Resolves the hover-only scrollbar over album cards that
a TouchArea overlay would have broken.

cx
2026-06-17 11:01:41 -06:00
vicrodh e3577fc528 feat(slint): winit input hook — mouse back/forward nav + global pointer mirror
Drop to the winit backend (on_winit_window_event) to (1) route the browser
Back/Forward mouse buttons to navigation before Slint hands them to the
topmost TouchArea, so cards/sidebar rows no longer swallow them, and (2)
mirror the cursor position into ShellState (pointer-x/y/in-window) so passive
hover chrome can react without installing a TouchArea over interactive
content. This is the seam that unblocks the auto-hide scrollbars.

cx
2026-06-17 11:01:29 -06:00
vicrodh c4cf300c6b feat(slint): Settings content-filtering blacklist row (count/disabled/manage)
cc
2026-06-17 01:55:24 -06:00
vicrodh dbc62be90e feat(slint): Blacklist Manager view (list/search/toggle/remove/clear)
cc
2026-06-17 01:51:08 -06:00
vicrodh 67d82efd30 feat(slint): ArtistView overflow menu (create collection / artist scene / blacklist) + hidden banner
cc
2026-06-17 01:31:12 -06:00
vicrodh c90440ab8d feat(slint): featured-aware blacklist filtering on discovery/catalog surfaces; re-filter scene cache (D-FIX-c)
cc
2026-06-17 01:22:08 -06:00
vicrodh d4020b88b5 fix(slint): album-shuffle honors album-primary blacklist fallback; correct stale comment
cc
2026-06-17 01:16:26 -06:00
vicrodh 905de3dcd9 feat(slint): blacklist filter at all play/queue builders; fix AlbumDetail builder (D-FIX-b)
cc
2026-06-17 01:08:55 -06:00
vicrodh 0d724d1457 fix(slint): include composer id in blacklist row stamp (match queue predicate)
cc
2026-06-17 01:01:50 -06:00
vicrodh 6566b507de feat(slint): stamp is-blacklisted on album/playlist/favorites/suggest rows; protect local+Plex; nav-only menu on blacklisted rows
cc
2026-06-17 00:44:47 -06:00
vicrodh 95629713b3 feat(slint): TrackItem.is-blacklisted + TrackRow greyout/inert state
cc
2026-06-17 00:31:47 -06:00
vicrodh 06aba4d403 feat(slint): combined search consumes real blacklist snapshot (gated on enabled)
cc
2026-06-16 22:59:28 -06:00
vicrodh 836dd24901 feat(slint): per-user blacklist lifecycle wrapper, init on online+offline sessions
cc
2026-06-16 22:55:05 -06:00
vicrodh 0bdcf5415e feat(core): featured-aware blacklist helpers (album any-artist, track performer|composer)
cc
2026-06-16 22:26:43 -06:00
vicrodh ef93c86437 feat(app): headless artist-blacklist service extracted from src-tauri
cc
2026-06-16 22:19:36 -06:00
vicrodh a4cba30fcf feat(slint): wire album header backdrop setting
Persist the existing appearance toggle in ui_prefs and use it to enable or disable the album and artist header blur backdrops.

cx
2026-06-16 16:17:36 -06:00
vicrodh a274e602ec feat(slint): use immersive blur in album and artist headers
cx
2026-06-16 15:55:45 -06:00
vicrodh bac0e8ca76 feat(slint): HiFi wizard usability — clickable checkbox rows, queue guardrail, test hint
- Checkboxes are now whole-row clickable (new CheckRow primitive, HTML <label>
  behavior): clicking the text toggles it, not just the box. Applied to the
  welcome accept + the three Configure progress checks.
- "Use my current queue" guards an empty queue: it checks get_all_queue_tracks
  and shows "Your queue is empty — add some tracks first, or press Play test."
  instead of sitting on a dead read-back.
- Welcome step gains a "What to test with" notice recommending one track of each
  bit-depth/sample-rate (16/44.1, 24/44.1, 24/96, 24/192) so users who bring
  their own queue exercise every rate.

cc
2026-06-16 13:23:12 -06:00
vicrodh f0deed2b44 feat(slint): HiFi wizard test — explicit Prev/Next + clearer queue label
"Use my own music" -> "Use my current queue" (the button resumes the existing
queue, it doesn't open a picker). Adds explicit Prev/Next icon buttons that call
the proven NowPlayingState.previous()/next() transport, so they step through
whatever is playing — the 4 curated test tracks or the user's own queue.

cc
2026-06-16 12:42:35 -06:00
vicrodh 1e5e4d3ce5 feat(slint): HiFi wizard polish — scrollbar, progress checkboxes, FLACDalf, trigger move
From owner feedback:
- The body Flickable now has a visible ListScrollbar (wrapped in a Rectangle so
  it can overlay) — the review step with multiple DAC accordions can be tall.
- Configure step gains Tauri-style progress checkboxes (backup / config files /
  restart) so the user can track what they ran; Next is gated on all three.
- The trigger moves to the end of the BIT-PERFECT group (the wizard's whole
  point is bit-perfect) and now wears the FLACDalf (gandalf) icon, which also
  replaces the modal header icon. gandalf.svg copied into the Slint icon assets.

cc
2026-06-16 12:20:53 -06:00
vicrodh 3db43b4481 chore(slint): drop the dead StepPlaceholder now that all 6 wizard steps are real
cc
2026-06-16 10:49:57 -06:00
vicrodh ca09b35917 feat(slint): HiFi wizard review-and-apply + done steps — config generation (Slice 10)
The review step generates the copy-paste config per selected DAC (read-only —
QBZ never writes these files, Decision 2): an honest info banner, a backup
CommandBlock first, then one collapsible accordion per DAC (Decision 5 multi-DAC)
holding the three snippets ported 1:1 from the Tauri wizard — pipewire
allowed-rates, per-app bit-perfect client rules, and the WirePlumber rule that
pins node.name + rates + disables resample/channelmix — and finally an
init-aware restart CommandBlock. Rates are re-probed at generation time
(query_dac_capabilities); the filename slug is the description (fixes the old
dacShortName regex that only kept two underscore tokens). The done step lists
the config paths.

Controller: checked_dacs -> gen_configs_blocking (off-thread re-probe + template
build via line-join, no format!-brace escaping) -> apply_configs; toggle_config
flips an accordion. gen-configs fires on the select-dacs -> review transition.
2 unit tests (slugify, wireplumber pins node+rates). DacConfigRow state +
gen-configs/toggle-config actions.

cc
2026-06-16 10:47:54 -06:00
vicrodh 97fd942aa0 fix(slint): HiFi wizard test step — audio, bit-perfect read-back, track jump, UX
Fixes from owner testing of the Slice 9 playback test:

- No audio: removed the incomplete reinit_device(node) that routed output to the
  selected DAC (the proper switch is set_output_device -> reload_settings ->
  reinit; doing it half-way broke playback). The test now plays through the
  current output; route QBZ to the DAC under test in Settings > Audio.
- Bit-perfect read-back: dropped the pw-top panel (batch snapshot never reflected
  the live nodes) and enriched the N6 read-back to show the DAC's real
  /proc/asound hw_params — rate + ALSA container format (S32_LE etc.) + channels.
  That container format is the bit-perfect proof. Probe scans for the actively
  playing card, so it's DAC-agnostic (answers the multi-DAC case: one output at
  a time).
- Track jump: clicking a test row now re-sets the queue at that index via the
  working play_tracks path (play_index alone only moved the pointer). Resolved
  tracks are stashed for this.
- "Use my own music" button: starts the read-back + resumes the user's own queue
  for those who don't want the curated tracks.
- Row hover no longer changes the row height (fixed-size glyph slot; the ♪->▶
  swap can't reflow what's below).

cc
2026-06-16 10:42:18 -06:00
vicrodh 7157090d98 fix(slint): read player rate via player.state in the wizard test poll
player.get_sample_rate/get_bit_depth don't exist on Arc<Player>; the accessors
live on player.state (as the QConnect engine already does). Fixes the Slice 9
build.

cc
2026-06-15 21:29:46 -06:00
vicrodh f87f298681 feat(slint): HiFi wizard playback test — self-service with N6 read-back (Slice 9)
Replaces the impossible "watch pw-top" verify step with an in-wizard test. The
overlay modal doesn't grab the window, so playback runs underneath while the
test plays.

start-test resolves the 4 owner-curated tracks by id-hint first, then by
"artist title" search if the id 404s (a pulled license — never raw-id-only),
routes QBZ output to the selected DAC (reinit_device), and plays them via the
existing play_tracks path. A 1.5s Slint Timer drives poll-test while playing:
it reads the rate QBZ REQUESTED (player.get_sample_rate — honest) and the DAC's
REAL negotiated rate (N6 / negotiated_stream_rate over /proc/asound), showing a
green check only when they actually match. Read-only; protected audio path
untouched.

State: reuses the test-* fields from Slice 5; adds a poll-test callback and a
TEST_NODE thread_local (no extra model). 3 unit tests already cover the pure
seed-matching/formatting helpers.

cc
2026-06-15 21:24:52 -06:00
vicrodh 0ad789fc12 feat(slint): HiFi wizard select-dacs step — auto-detect + escape hatch (Slice 7)
Replaces the manual node.name paste with auto-enumeration. Controller
detect_blocking() enumerates via the Slice-0 pw-dump path, projects each sink to
a DacCandidate (looks_like_dac = is_hardware && bus in {usb,pci}), and probes
rates (Slice-2 query_dac_capabilities) for the likely DACs; apply_candidates
pre-selects them and flips has-enumeration off when empty. toggle_dac flips a
VecModel row + recomputes the Next gate; validate_manual is a 1:1 port of the
Tauri validateNodeName/detectDacType (+3 unit tests).

UI step 2: circular SelectionCheckbox rows with a bordered bus label (no pill),
a default star and the probed rate list; a "Can't see your DAC?" disclosure
reveals the two wpctl CommandBlocks + a validated node.name input (shown
unconditionally when nothing enumerated). Next gates on any-dac-selected ||
manual-valid; enumeration fires on the check->dacs transition. Read-only.

cc
2026-06-15 21:16:55 -06:00
vicrodh 9c5febdaa8 feat(slint): HiFi wizard check step — stack health, distro/init override, sandbox (Slice 6)
Wires the check step on top of the Slice-0/2/6 backend: a health verdict
(success/warning WarningBanner — new `success` variant), a per-missing-piece
CommandBlock with copy, and TWO overridable dropdowns — distro (package
manager) and init system (service commands), which are orthogonal so a Gentoo
box on systemd vs OpenRC gets the right restart command.

New `src/dac_wizard.rs` controller: open() runs the probe off-thread
(spawn_blocking → upgrade_in_event_loop), caches it, and recompute() rebuilds
remediations from the cached probe + the current distro/init selections.
Init-aware restart_cmd (systemd/OpenRC/runit/s6/dinit). NixOS special-cased to
a declarative configuration.nix block.

Sandbox honesty: in Flatpak/Snap the host probes are blind, so the check step
shows an info banner + reference setup commands (full stack incl. pipewire-alsa
+ restart) for the chosen distro/init instead of a false health verdict.

main.rs wires on_open/on_set_distro/on_set_init/on_copy_command; the Audio
settings trigger calls DacWizardActions.open().

cc
2026-06-15 21:04:23 -06:00
vicrodh 2b52a3c01c feat(audio): init override metadata + Flatpak/Snap sandbox-aware host detection
InitSystem gains ALL/index/label so the wizard can offer a manual init override
(for sandboxes and for generating commands for another machine).

Sandbox awareness: detect_sandbox() (/.flatpak-info, $SNAP). Inside a sandbox
/etc/os-release is the RUNTIME's (Flatpak freedesktop-sdk) or the snap base's,
not the user's distro, and /run + /proc/1 reflect the sandbox — so detect_distro
now reads the host-exposed os-release first (Flatpak /run/host/os-release, Snap
/var/lib/snapd/hostfs/etc/os-release, then /etc), and detect_init returns
Unknown in a sandbox (the host init is invisible; the wizard's override decides).

cc
2026-06-15 20:41:52 -06:00
vicrodh 93da676fd7 feat(audio): runtime init-system detection + antiX/Artix/NixOS distros (wizard)
Decouple service commands from the distro: the init system is detected at
RUNTIME (detect_init: /run/systemd/system, /run/openrc, /run/runit, /run/s6-rc,
/run/dinitctl, then /proc/1/comm), because it is orthogonal to the distro —
Gentoo runs OpenRC *or* systemd, Debian runs systemd or sysVinit/runit (antiX).
So install commands key off the distro (package manager) and service/restart
commands key off the detected init.

Adds the systemd-free derivatives Antix (Debian) and Artix (Arch) — matched
BEFORE their parent family since their ID_LIKE would otherwise misclassify them
and emit systemd commands — plus NixOS (declarative). InitSystem enum +
parse_init_from_comm. 6 health tests (incl. systemd-free-beats-parent + init
classification).

cc
2026-06-15 20:31:28 -06:00
vicrodh b266fb2ed2 feat(audio): audio_stack_health probes + distro detection (Slice 6 backend)
`qbz-audio::health` for the wizard's check step: audio_stack_health() probes
wireplumber (systemctl OR `pgrep` fallback so non-systemd inits like
Gentoo/OpenRC and Void/runit don't read as down), pw-dump, the ALSA->PipeWire
bridge PCM (`aplay -L` `^pipewire$` — needed for CPAL PLAYBACK, not just
enumeration), pactl, and any-sink presence. detect_distro() classifies
/etc/os-release (ID then ID_LIKE; strips single AND double quotes — Gentoo
single-quotes its value). Distro enum carries the dropdown order + labels.

Pure parse_distro + 4 unit tests (Ubuntu, Pop/EndeavourOS via ID_LIKE,
fedora/arch/suse/gentoo+single-quote/void/other, index round-trip). Read-only.

cc
2026-06-15 20:13:39 -06:00
vicrodh 9bb392c262 feat(slint): DAC wizard shell — 6-step modal + state + trigger (Slice 5)
DacWizardState/DacWizardActions/DacCandidateRow in state.slint (re-exported in
app.slint). DacWizardModal: scrim + 620px card + dot/label stepper rail +
Flickable body with if-step blocks + footer Back/Close/primary. Navigation is
inline state mutation (no Rust yet); the Actions callbacks (copy-command/
run-detect/query-caps/start-test) are declared for Slices 6-9. welcome step is
real (disclaimer + accept checkbox gating Start); steps 1-5 are titled
placeholders. Mounted in AppShell; "Open Wizard" 160x34 trigger added to Audio
settings, gated on PipeWire.

cc
2026-06-15 20:09:35 -06:00
vicrodh 5e57db7a0c feat(slint): CommandBlock + WarningBanner primitives (HiFi wizard Slice 4)
CommandBlock: surface-elevated copy-paste card (Radius.sm, no pills) with an
optional caption, a monospace wrapping command body and a copy button that
flips to a green check for 2s (Timer). Read-only — the copy() callback is wired
to the clipboard by the consumer; nothing is executed.

WarningBanner: info/warning/error variants (tone drives icon + 10%/30% alpha
bg/border, matching the existing inline banners). Adds lucide copy.svg.

cc
2026-06-15 20:09:35 -06:00
vicrodh f08943ad27 feat(audio): headless query_dac_capabilities for the Slint wizard (Slice 2)
Extract the DAC capability assembly out of the Tauri-only
`v2_query_dac_capabilities` into `qbz-audio::dac_capabilities` so the Slint
wizard can probe a DAC's real supported sample rates + pretty description
without a Tauri command. The detection itself already lived in this crate
(`PipeWireBackend::get_sink_supported_rates` -> /proc/asound, with the
`get_device_supported_rates` ALSA-direct fallback); this just assembles the DTO
frontend-agnostically and benefits from the Slice-0 pw-dump-robust enumeration
for the description.

Formats stay nominal (S16/S24/F32) and are documented as NOT probed — honest
port of the prior behavior, not a fake measurement. Pure `assemble` helper +
3 unit tests. Read-only.

cc
2026-06-15 19:38:51 -06:00
vicrodh 1151c96e09 feat(audio): N6 DAC negotiated-rate probe via /proc/asound hw_params (Slice 8b)
The playback test needs the rate the DAC is ACTUALLY clocked at, not the rate
QBZ requested (`player.state.get_sample_rate()` only proves "QBZ asked for X").
Ground truth on Linux is `/proc/asound/cardN/pcm*p/sub0/hw_params` (`rate:` line
while a stream is open, `closed` when idle). The card number is resolved from
the PipeWire node.name via `pw-dump` (robust — no pactl/pipewire-pulse).

New `qbz-audio::dac_probe`: `NegotiatedRate { sample_rate, format, channels }`,
pure `parse_hw_params` + `parse_alsa_card_for_node` helpers, and the composed
`negotiated_stream_rate(node_name)`. Read-only — never opens/reconfigures a
stream, protected bit-perfect path untouched. 4 unit tests (active 24/192
fixture, closed/empty/no-rate, card resolution from int and string props).

cc
2026-06-15 19:36:00 -06:00
vicrodh 381eafdf21 feat(audio): native pw-dump enumeration with pactl fallback (HiFi wizard Slice 0)
Enumerate PipeWire sinks via `pw-dump` (the daemon's native socket) as the
primary path, falling back to the existing `pactl` parser only when pw-dump is
absent or empty. pw-dump needs only `pipewire-bin` — not `pipewire-pulse` (the
Pulse server pactl talks to) nor `pipewire-alsa` (the bridge PCM CPAL relies
on), which are commonly missing on PipeWire-only Ubuntu and produced the empty
device list. As a bonus it yields the exact `alsa_output.*` node.name that the
HiFi wizard otherwise asks the user to paste by hand.

Discovery code only: `create_output_stream` and the protected sample-rate
passthrough path are untouched. max_sample_rate stays None from pw-dump because
its EnumFormat reports the currently negotiated rate, not the device maximum —
the /proc/asound capability probe remains the honest source.

Pure `parse_pw_dump_sinks` helper + 2 unit tests (fixture: USB DAC + PCI card +
filtered-out capture source; garbage/empty JSON).

cc
2026-06-15 19:31:37 -06:00
vicrodh 30bd959bf7 feat(album): multi-disc "Disc N" headers with per-disc context menu
Album and local-album track lists render a "Disc N" header above the
first track of each disc when the album spans more than one disc
(media_number-driven; single-disc albums render flat), matching Tauri.
Each header carries a context menu (new — Tauri has none) with Play all /
Shuffle / Add to queue / Play next scoped to that disc's tracks only; the
whole-album header buttons are unchanged.

The menu lives in a DiscHeaderMenu wrapper because Slint rejects a
PopupWindow placed directly under a for/if delegate — wrapping it makes
the popup a non-root child (same pattern as TrackRow + TrackContextMenu).
Every TrackItem constructor gains disc-header-number: 0; artist
top-tracks (a flat cross-album list) default the disc to 1.

cc
2026-06-15 19:19:21 -06:00
vicrodh 2e337f6039 feat(discover): polish Qobuz Playlists cards with contain covers and category filter
Single-cover Discover playlist cards now letterbox the cover with
image-fit: contain over its dominant colour (computed host-side from the
decoded cover), matching Tauri, and show the first tag as an accent
category subtag. Add a multi-select category filter dropdown (sm toolbar
variant, no pills per ADR-008) that re-filters the cached playlists row
client-side; an empty selection shows everything. Raise the playlists
cap from 18 to 100 so the filter operates on a full set.

cc
2026-06-15 19:19:01 -06:00
vicrodh 46f455629e feat(slint/discover): DailyQ/WeeklyQ primary track_to_analysed path
Bring the Slint mix generation to Tauri parity: build a track_to_analysed
payload from up to 9 spread-sampled seeds (pick_spread -> get_track ->
{track_id,artist_id,genre_id,label_id}, drop artist_id==0) for the PRIMARY
/dynamic/suggest algorithm, limit = max(1, 50 - analysed), and fall back to
the empty-analysis call when the primary returns nothing. The listened-seed
build is factored into mix_listened_seed_ids (recents + favorites, ~120,
Qobuz-only) as a seam the reco-store swap (b3) replaces. Logs seed/analysed/
result counts so an empty mix is diagnosable.

cc
2026-06-15 16:47:30 -06:00
vicrodh f3982c12ed fix(slint/discover): rename reserved 'row' property in ConfigRowView
Slint reserves 'row' as a GridLayout attached property, so the configurator
modal's 'in property <ConfigRow> row;' failed to compile ("Cannot override
property 'row'"). Rename it to 'entry' — the declaration, the seven
root.row.* accesses, and the for-binding pass-through.

cc
2026-06-15 16:47:30 -06:00
vicrodh 314ed8e6ba feat(reco): shared headless reco-store module (qbz-app)
Cleanroom port of the Tauri reco-store into qbz-app::settings::reco_store
(frontend-agnostic, no tauri::State, ADR-006) so the Slint frontend can seed
DailyQ/WeeklyQ, the WeeklyQ 7-day window, and top-genres. Opens the SAME
per-user reco/events.db that Tauri uses (cross-frontend history share); ports
the reco_events schema + indexes, log_play/favorite_event, get_recent and
get_favorite track ids, a windowed get_recent_track_ids_since, get_top_genres,
get_home_seeds, and the train() scorer verbatim. 6 headless tests green.
Tauri's own reco_store is left as-is (rewiring it is a deferred cleanup).

cc
2026-06-15 16:00:41 -06:00
vicrodh ee83734fba feat(discover): add get_dynamic_suggest_full carrying track_to_analysed
Tauri's DailyQ/WeeklyQ /dynamic/suggest seeds a track_to_analysed payload
(~9 resolved {track_id,artist_id,genre_id,label_id} tuples) for the PRIMARY
mix algorithm; the empty-analysis call is only its fallback. The Slint port
only ever sent the empty-analysis path. Add a TrackToAnalyse model
(qbz-models) and a get_dynamic_suggest_full method on the qobuz client and
qbz-core that carries the payload; the existing get_dynamic_suggest now
delegates with an empty analysis (behaviour unchanged). Plumbing only — the
mix.rs build of the analysis tuples + the two-call fallback lands next (a2).

cc
2026-06-15 15:50:41 -06:00
vicrodh 76406aa746 fix(slint/discover): seed DailyQ/WeeklyQ with Qobuz-only track ids
DailyQ/WeeklyQ build their /dynamic/suggest seed from recently-played track
ids. Recently-played now includes local and Plex tracks whose ids are not
Qobuz catalog ids — numeric Plex rating keys even passed the u64 parse, so
they reached Qobuz and the mix request failed. Filter the seed to Qobuz (and
legacy pre-source) tracks before parsing, and skip the request when no Qobuz
seeds remain. Local tracks stay visible in the Recent rows.

cc
2026-06-15 13:58:39 -06:00
vicrodh 5fd3456a47 fix(slint/discover): give the configurator section list an explicit height
The section list used vertical-stretch inside a panel sized to
preferred-height; a stretch child there collapses to ~0 (a Flickable's
intrinsic preferred-height is ~0 — the documented Slint trap), so the list
was near-invisible. Size it to its content capped at the window minus the
modal chrome; the Flickable scrolls when the rows exceed it.

cc
2026-06-15 13:57:53 -06:00
vicrodh 2035cd125e fix(slint/discover): keep Qobuzissimes in the Home section cache
The configurator offers Qobuzissimes on the Home tab (in DEFAULT_PREFS.home,
off by default), but Slice 2d had removed it from the Home cache, so enabling
it rendered nothing (descriptors_for found no backing data and dropped it).
Visibility is now governed by the prefs (off by default), so keep the data in
the Home cache pool; enabling Qobuzissimes on Home now renders.

cc
2026-06-15 13:57:53 -06:00
vicrodh 3c4f36e65c fix(slint/discover): show skeleton during initial Home load, not placeholders
The prefs-driven Home skeleton gated on home-sections/editor-sections being
empty, but the descriptor list already carries the non-album rows at seed
time, so the gate never fired and the user saw empty-state placeholders
during the initial fetch instead of the skeleton. Gate the skeleton on
HomeState.loading alone, and suppress the Recently-Played placeholders while
loading, so only the skeleton shows during the fetch (1:1 Tauri).

cc
2026-06-15 13:57:53 -06:00
vicrodh aa5224abe9 feat(slint/discover): section configurator modal and gear trigger
Add the "Customize" modal that drives the Slice 5 prefs: reorder + show/hide the
active tab's Discover sections, live-persisted (no Save button).

- DiscoverConfigModal.slint: scrim + centered panel (CreatePlaylistModal idiom),
  title + close-X, an amber triangle-alert perf-warning banner, an "{} of {}
  enabled" count, a scrollable section list, and a Reset-to-defaults footer
  pinned left. ConfigRowView = [QbzCheckbox] [label] [up] [down]: the row tap and
  the ADR-008 checkbox both fire toggle-section; the 28px ghost ReorderButtons
  fire move-section and dim at the list boundary (index 0 / last). Section labels
  come from DiscoverState.config-rows (resolved in Rust); chrome strings are @tr
  literals.
- HomeView.slint: bind the previously-dead gear to
  DiscoverActions.open-configurator() (opens for the active tab).
- AppShell.slint: mount DiscoverConfigModal after the other modals so it sits on
  top of them (ADR-009 z-stack by declaration order).

cc
2026-06-15 13:40:46 -06:00
vicrodh a06f06e9d8 feat(slint/discover): prefs-driven render loop for Home and For You
Replace the fixed Discover layouts with the prefs-driven descriptor repeaters
that read DiscoverState's ordered ENABLED section lists, so the configurator's
visibility + reorder choices drive what renders.

- HomeView.slint: drop `for section in HomeState.sections` + the 5 hardcoded
  typed blocks; render one repeater over the active tab's descriptor list
  (editor-sections when active-tab == "editorPicks", else home-sections). The
  single-root delegate dispatches on desc.id: generic album carousels bind the
  embedded desc.section; qobuzPlaylists / continueListening / recentlyPlayedAlbums
  / mostStreamed(slim) bind HomeState fields and keep their length gates +
  placeholders. `if forYou: ForYouView` stays a static sibling.
- ForYouView.slint: replace the fixed if-sequence with a descriptor repeater
  over foryou-sections; each arm reads the typed ForYouState field by id and
  keeps its own length gate (qobuzMixes excepted — always rendered). The
  skeleton stays a static sibling. essentialsByGenre has no arm (Slice-2c-blocked;
  Rust drops it from the list).
- home.rs: select_tab writes DiscoverState.active-tab (single source of truth,
  alongside the kept HomeState.active-tab pill bindings) and re-renders the
  active tab from the cache via the descriptor lists; apply_home pushes the
  descriptor lists once the cache is populated.
- main.rs: the initial discover load fires album-section artwork via the
  descriptor-targeted jobs returned by select_tab (DiscoverSectionAlbum), spawned
  on the UI thread; slim-grid / recent-album / playlist covers still target the
  HomeState fields the fixed arms render.

Build-time verifications to confirm (documented in the .slint comments): the
for-over-ternary-model form compiles, and an empty delegate does not double the
outer 40px spacing (Rust already drops data-empty album ids — policy b).

cc
2026-06-15 13:40:46 -06:00
vicrodh 0bb0f73699 feat(slint/discover): DiscoverState global + prefs controller + load/persist
Add the Slice 5 foundation for the Discover section configurator: a single
DiscoverState/DiscoverActions global pair owning both the prefs-driven render
descriptor lists and the modal payload, plus a thin frontend controller over
the headless qbz_app discover_prefs store.

- state.slint: SectionDescriptor + ConfigRow structs and the DiscoverState /
  DiscoverActions globals (active-tab lives here; render loop + modal read it).
- app.slint: re-export the new globals/structs so the Rust layer can bind them.
- discover_prefs.rs: per-user store lifecycle (init_for_user/teardown mirror
  fav_cache), in-memory authoritative prefs, descriptor + config-row push
  helpers, id->kind/label maps, and toggle/move/reset/open/close handlers
  (mutate -> persist -> re-push -> re-render, re-firing artwork for the active
  Home/Editor tab). Labels resolve in Rust (English today) since Slint @tr needs
  a literal key and the gettext pipeline is unwired.
- home.rs: add the SectionData.id key; build the Home/Editor ordered descriptor
  lists from the cached section data (album ids embed their DiscoverSection,
  fixed ids carry an empty section); rerender_active_tab + descriptor artwork
  jobs. Empty album sections are dropped (policy b); placeholder-bearing Home
  sections are kept and gated in the view.
- artwork.rs: DiscoverSectionAlbum target so covers paint on the descriptor
  list (DiscoverState.home-sections / editor-sections) rather than HomeState.
- main.rs/auth.rs: mod + seed at both shell entries + per-user init/teardown at
  every session-activation point + the 5 DiscoverActions callback registrations.

Descriptor lists are pushed but not yet rendered (the views still draw the old
way); no behavior change until the render loop lands.

cc
2026-06-15 13:40:46 -06:00
vicrodh ab330d85de fix(slint/discover): open playlist on body-click in Search and Label
The new ("playlist","play") media-action arm gave these cards a body-click
action for the first time. Without body-opens they defaulted to play, so a
playlist card body-click played instead of opening (and before the arm
existed, did nothing at all). Set body-opens:true on the Search carousel,
Search grid, and Label carousel so body-click opens the playlist while the
overlay button plays — matching the album-card convention and Tauri.

cc
2026-06-15 13:07:40 -06:00
vicrodh c2e5fce150 style(slint/discover): enlarge Spotlight hero avatar to 140px
The Spotlight hero portrait was 96px; enlarge to 140px (border-radius
70px to stay circular) for parity with Tauri. Layout-safe: the inner
Image is 100% image-fit:cover, the fallback glyph re-centers, the hero
HorizontalLayout has no fixed height so it grows, and the page Flickable
absorbs the vertical growth.

cc
2026-06-15 12:58:17 -06:00
vicrodh 6d33b94cf7 fix(slint/discover): similarAlbums title shows "Similar to {seed}"
The More From Your Library / similarAlbums row was hardcoded "More From
Your Library"; Tauri titles it "Similar to {seed}" where seed is the album
the suggestions are seeded from (discovery.similarTo).

Thread a seed_title through apply_more_from_library: the common case passes
the most-recent album title (recents_seed_title), the no-recent-history
fallback passes the first favorite album title. Empty seed falls back to
"More From Your Library" so the row is never titleless. Title stays a Rust
data string (rendered raw at Carousel.slint), matching the other For You
section titles.

cc
2026-06-15 12:57:58 -06:00
vicrodh 26acebc977 fix(slint/discover): drop qobuzissimes from Home default tab
Qobuzissimes was pushed into the Home sections vec unconditionally, so
it always rendered on the Home tab — but Tauri's home default has it OFF.
Editor's Picks keeps it (push_section_ref, correct). Remove the Home push;
borrow-safe (containers.qobuzissims is now consumed only by the editor
push_section_ref).

cc
2026-06-15 12:56:56 -06:00
vicrodh 613a3f009b feat(slint/discover): favoriteAlbums row in For You
Add the missing For You "Favorite Albums" carousel (Tauri's
favoriteAlbums), the user's favorited albums capped at 18 in favorite
order, self-hiding when empty. Reuses the album fav-fetch already done in
albums_branch — no new endpoint.

- state.slint: ForYouState.favorite-albums: DiscoverSection.
- foryou.rs: build_favorite_albums (cap 18, unfiltered) + apply_favorite_albums
  (mirrors apply_rediscover); wired into albums_branch right after fav_albums
  resolves, painting in the same layer as rediscover/radio.
- artwork.rs: ForYouFavoriteAlbum { index } variant + apply arm.
- ForYouView.slint: mount the Carousel after Your Top Artists, before More
  From Your Library, gated on favorite-albums.albums.length > 0.

Titled "Favorite Albums" (not Tauri's literal "More From Your Library")
to avoid the label collision with similarAlbums.

cc
2026-06-15 12:56:33 -06:00
vicrodh 6d06a8aa83 feat(slint/discover): qobuzPlaylists row on Home and Editor's Picks
Add the missing Discover "Qobuz Playlists" row, present on the Home and
Editor's Picks tabs (never For You), 1:1 with Tauri's PlaylistCardLite:
single cover (rectangle || covers[0]), name only, body=open / overlay=play.

- home.rs: PlaylistCardData + map_playlist (drops owner/duration/count);
  HomeData + TabSections playlist fields; capture containers.playlists
  (capped 18) in load_home; playlist_to_item (single-cover SearchPlaylistItem,
  mirrors label.rs); playlist_artwork_jobs; select_tab swaps the active tab's
  row + concatenates its artwork jobs; apply_home caches both sets + pushes Home.
- state.slint: HomeState.playlists: [SearchPlaylistItem].
- PlaylistCarousel.slint: forward a new body-opens prop to PlaylistCard.
- HomeView.slint: mount PlaylistCarousel after the section loop, gated on
  active-tab != forYou && playlists.length > 0, body-opens: true.
- artwork.rs: HomePlaylistCover { idx } variant + apply arm (cover1).
- main.rs: reload_home extends jobs with the active tab's playlist covers.

cc
2026-06-15 12:55:28 -06:00
vicrodh a053f0d67f fix(slint): wire ("playlist","play") media-action arm
The on_media_action chain had no ("playlist","play") arm, so the
PlaylistCard play-overlay button and context-menu Play (which emit
"play") fell through to the dead _ => {} no-op everywhere they were
used (Search, Label, and now Discover).

Add a playback::play_playlist(id) that fetches the playlist fresh,
interleaves the mixed-playlist sidecar rows (same as enqueue_playlist),
replaces the queue and starts at the first track (set_queue + context),
then wire the new ("playlist","play") arm to it. Unlike the stateful
play-all arm (which reads the open PlaylistView state), this serves a
cold card play from any carousel.

cc
2026-06-15 12:52:26 -06:00
vicrodh 2a37f2ad91 feat(discover): add per-tab section-prefs core store (configurator model)
Frontend-agnostic port of Tauri discovery-v2/sectionPrefs.ts (ADR-006):
the ordered per-tab {id,enabled} model for the Discover configurator
(Home / Editor's Picks / For You). Pure model logic (default_prefs,
migrate with the legacy-array / object / garbage branches, reconcile_list
with drop-unknown + first-wins dedup + append-missing, toggle, move_section
with boundary clamp, reset_tab, is_enabled, enabled_count, enabled_ordered)
plus a per-user SQLite store (dedicated discover_prefs.db, single JSON-blob
column in the Tauri-compatible shape). 10 headless tests green.

Lives in qbz-app::settings::discover_prefs so any frontend (Slint, Tauri)
drives the configurator from one source of truth.

cc
2026-06-15 12:45:14 -06:00
vicrodh 454a6d70af perf(slint): load For You progressively and in parallel
Replace the sequential ~9-round-trip load_for_you + monolithic
apply_for_you with a progressive, parallel loader. The recently-played
sections paint instantly (local, no network); the independent API calls
fan out into concurrent branches (release-watch, favorite-artists,
favorite-albums, album-suggest) and each section applies the moment its
data resolves via upgrade_in_event_loop. The loaded flag is latched only
after every branch resolves, so the ensure_for_you_loaded re-entry guard
can never strand a partially-loaded tab.

Artists to Follow keeps byte-identical dedup/cap semantics (concurrent
per-seed fetch via join_all in seed order, then sequential dedup + cap).
album-suggest runs concurrently in the common case (recent-album seed),
falling back to the first favorite album only when there is no history.
The For You skeleton now hides as soon as the first section paints.

cc
2026-06-15 12:37:25 -06:00
vicrodh 8d26b64297 Merge feature/wgpu-underlay-spike into slint-mvp
wgpu fragment-shader underlay spike for ImmersiveView (validated Linux KDE/Wayland + macOS Metal). Renderer swap renderer-femtovg -> renderer-femtovg-wgpu (Linux/Windows) + renderer-skia on macOS (femtovg-wgpu pegs CPU on Metal). Slint pinned =1.16.1, unstable-wgpu-28.

cc
2026-06-15 11:41:51 -06:00
vicrodh 1ea784bb14 chore(slint): add slint-run.sh dev helper (run prebuilt binary directly)
Builds in release then execs crates/target/release/qbz-slint directly instead of
via 'cargo run', so process monitors show it as 'qbz-slint' (a cargo-run child
inherits CARGO_* env and shows as 'cargo'), cleanly separate from the build
processes. Same release flags as slint-dev.sh.

cc

(cherry picked from commit 41269aabbe)
2026-06-15 02:08:51 -06:00
vicrodh dc1764e09b fix(slint): immersive spectrum colors use the album's real palette
spectrum_colors derived the secondary gradient colour as dom_hue + 55deg, which
fabricated a hue the cover does not contain (a mono pink/magenta cover became
pink->orange). Use real album colours: a second genuine hue cluster when the
cover has one (>=45deg from the primary, >=35% of the peak mass), otherwise the
same dominant hue deeper + more saturated. Mono-colour covers now read as a
one-hue light->deep gradient.

cc

(cherry picked from commit 6aa8d3b3d1)
2026-06-15 02:08:51 -06:00
vicrodh eef8d965b5 fix(slint): SongCard title elides at exact available width in every NPB layout
The now-playing title elided early (the wrapping Rectangle content-sized to the
meta line) and, when forced to width:100%, overflowed into the audio stamp.
Replace both with an explicit `title-avail` width = card width - cover - art-gap
- (in-card stamp + 4px, when present), mirroring the inner row's width formula.
The title now elides at precisely the free space in New / Classic / Small at any
window size (the formula is parametric on root.width + has-stamp + show-art, so
Big inherits it), leaving the intended ~4px gap before the stamp and never
overlapping it.

cc

(cherry picked from commit 2acf53ed20)
2026-06-15 02:08:51 -06:00
vicrodh 41269aabbe chore(slint): add slint-run.sh dev helper (run prebuilt binary directly)
Builds in release then execs crates/target/release/qbz-slint directly instead of
via 'cargo run', so process monitors show it as 'qbz-slint' (a cargo-run child
inherits CARGO_* env and shows as 'cargo'), cleanly separate from the build
processes. Same release flags as slint-dev.sh.

cc
2026-06-15 02:08:34 -06:00
vicrodh 6aa8d3b3d1 fix(slint): immersive spectrum colors use the album's real palette
spectrum_colors derived the secondary gradient colour as dom_hue + 55deg, which
fabricated a hue the cover does not contain (a mono pink/magenta cover became
pink->orange). Use real album colours: a second genuine hue cluster when the
cover has one (>=45deg from the primary, >=35% of the peak mass), otherwise the
same dominant hue deeper + more saturated. Mono-colour covers now read as a
one-hue light->deep gradient.

cc
2026-06-15 02:08:34 -06:00
vicrodh 2acf53ed20 fix(slint): SongCard title elides at exact available width in every NPB layout
The now-playing title elided early (the wrapping Rectangle content-sized to the
meta line) and, when forced to width:100%, overflowed into the audio stamp.
Replace both with an explicit `title-avail` width = card width - cover - art-gap
- (in-card stamp + 4px, when present), mirroring the inner row's width formula.
The title now elides at precisely the free space in New / Classic / Small at any
window size (the formula is parametric on root.width + has-stamp + show-art, so
Big inherits it), leaving the intended ~4px gap before the stamp and never
overlapping it.

cc
2026-06-15 02:08:34 -06:00
vicrodh 62449c757d fix(slint): remove animated idle cat in SongCard that forced continuous repaint
SongCard lives in the always-mounted now-playing bar. Its idle (no-track) state
drew a sleeping cat with two animation-tick()-driven drifting "z"s, which forced
the whole window to repaint at the display rate forever while idle — ~4% CPU on
Linux and ~55% on macOS/Metal on a static Discover screen (Metal's higher
per-frame cost made it egregious). Replace with a static music glyph placeholder
(matches TrackPlayCell). Idle is now lazy (~0 fps).

cc
2026-06-15 00:19:44 -06:00
vicrodh 43c89a978f fix(slint): remove animated idle cat in SongCard that forced continuous repaint
SongCard lives in the always-mounted now-playing bar. Its idle (no-track) state
drew a sleeping cat with two animation-tick()-driven drifting "z"s, which forced
the whole window to repaint at the display rate forever while idle — ~4% CPU on
Linux and ~55% on macOS/Metal on a static Discover screen (Metal's higher
per-frame cost made it egregious). Replace with a static music glyph placeholder
(matches TrackPlayCell). Idle is now lazy (~0 fps).

cc
2026-06-15 00:19:43 -06:00
vicrodh fb0aa619a7 fix(slint): use Skia renderer on macOS (femtovg-wgpu pegs CPU on Metal)
The wgpu underlay spike validated the GPU-shader path, but femtovg-wgpu has a
high per-frame CPU cost on macOS/Metal: continuously-animating views
(ImmersiveView atmosphere, Discover) hit 100-120% CPU on a Mac mini M2 vs
0.5-4% for the same view on Linux. Skia is Slint's mature Metal renderer and
does not have this cost (immersive ~55%, never 100%); text renders correctly.
Static views stay lazy/idle on both renderers.

Choose the renderer per-platform: Linux/Windows keep renderer-femtovg-wgpu
(cheap per-frame there + the femtovg text fixes #5177/#11335); macOS (Intel and
Apple Silicon, CICD included) uses renderer-skia. Both keep unstable-wgpu-28 and
resolve to a *-wgpu renderer, so the shader underlay (require_wgpu_28 +
Image::try_from) works unchanged on both.

Cargo.lock updated with the Skia dependency graph.

cc
2026-06-14 23:52:33 -06:00
vicrodh e46e85546a feat(slint): wgpu fragment-shader underlay spike for ImmersiveView
Swap the winit renderer femtovg(GL) -> femtovg-wgpu (+ unstable-wgpu-28,
slint pinned =1.16.1) and render a WGSL plasma fragment shader into a wgpu
texture composited under ImmersiveView. The shader is fed by the existing
30fps visualizer drain (sub-bass energy + decayed transient) and toggled
in-view with the 'g' key via ImmersiveState.shader-mode; when active it
replaces the atmosphere + mode panels as the bottom layer, chrome stays on
top. Device/queue captured from Slint's rendering notifier so Image::try_from
shares Slint's wgpu device.

Phase 0 spike: validates the app-wide renderer swap with no font/UI/tray
regression. Pending macOS Metal smoke before the swap lands on slint-mvp.

cc
2026-06-14 10:59:56 -06:00
vicrodh b03c8fcb5c feat(slint): spectrum bar colors track the cover's dominant hue (vivid gradient)
The original RGB "most saturated sample" extraction produced a near-grey color
with no perceptible gradient on dark/metallic covers. Rework in HSL: bin
chromatic pixels by hue, pick the most ABUNDANT hue (coverage), force it vivid
(sat 0.85, mid-bright) so it reads on the black bg, and rotate +55° for the
secondary stop -> a clear gradient. True B&W covers fall back to a default
duotone. (Hue selection can still surprise on some covers; further tuning of
which tone wins is deferred.)

cc
2026-06-14 04:13:01 -06:00
vicrodh bc22362dc0 feat(slint): immersive responsive sizing + shared track-info block
On large windows the panels left big empty space; on small they were fine.
Make the art/covers grow to fill while keeping small-window behavior.

- AlbumReactivePanel: art cap 460->660, width frac 0.55->0.62 (grows more,
  center-anchored pulse untouched).
- StaticPanel: cap 460->640, width 0.55->0.62 (fills large windows).
- CoverflowPanel: center cover cap 440->560, width 0.42->0.52; wrap the fan +
  track-info in ONE center-aligned VerticalLayout so the composition is
  vertically balanced (kills the "covers clustered at top, empty bottom" look
  on large windows). Persistent-element model / dual repeaters / animated
  scroll / z-order all untouched — only sizing + the wrapping layout changed.
- New shared ImmersiveTrackInfo.slint (Now Playing indicator + EqualizerBars +
  title/artist/album/quality badge), standardized on Static's look; all three
  panels use it, removing three duplicated inline copies (they can't drift).

cc
2026-06-14 04:13:01 -06:00
vicrodh 25512d0d00 fix(slint): no background flicker on click-driven track change
refresh_now_playing_meta cleared ImmersiveState.bg-image (set default) on every
track change; the async 300px decode+blur then re-set it a beat later, so the
immersive atmosphere blanked then reappeared. Natural advances hid it (warm
art), but a click (cover or next button) showed the flicker.

Stop clearing bg-image on track change: the previous blurred ambient bg now
persists until load_now_playing_artwork_large swaps in the new one — a brief
stale blur is imperceptible; a blank is not.

cc
2026-06-14 04:13:01 -06:00
vicrodh 421e84c571 fix(slint): immersive Coverflow z-order + ghost (left/right repeaters, no per-element z)
Slint 1.16 has no per-element z-index (paint order = model/child order), so a
single Repeater painted the right (upcoming) side near->far = far covers on top
(disordered), and it also drew a ghost center card under the dedicated one.

- Split the fan into a LEFT Repeater (forward coverflow-tracks: paints
  far-left->near-left, near on top) and a RIGHT Repeater over a new reversed
  model coverflow-tracks-rev (walks far-upcoming->near-upcoming, near on top).
  Both compute offset from the original flat index so geometry matches and the
  ±0.5 hand-off during a slide is seamless. Center band owned solely by the
  dedicated top card -> no ghost.
- coverflow-tracks-rev is built only under the same id-sequence-hash rebuild
  gate (no churn on advance) by cloning+reversing the forward QueueItems, so a
  track's element holds the SAME decoded image on both lists: no source
  reassignment on advance (no spike), and the animated `scroll` slide is intact.
- 3 past + center + 3 upcoming, mirror POSITIONS (scale/dim by |offset| only;
  no reflection). Nav mapping (play-history / play-coverflow-upcoming) preserved.

cc
2026-06-14 03:04:33 -06:00
vicrodh d00ec1fa71 fix(slint): immersive atmosphere always regenerates (remove broken art-URL dedupe)
The Coverflow rebuild added an ATMOSPHERE_LAST_URL dedupe to skip re-blurring
the same cover. But the track-change path clears bg-image (set_bg_image default),
and the dedupe then SKIPPED the regen (URL recorded as unchanged) -> bg-image
stayed empty -> ImmersiveAtmosphere fell back to the raw (sharp) cover instead
of Codex's blurred ambient background. Affected ALL immersive modes.

Removed the dedupe entirely (static + atmosphere_url_changed fn + the track-clear
reset). load_now_playing_artwork_large now ALWAYS regenerates bg + glow + spectrum
colors from the decoded cover, as the original code did. The regen is the same
modest 300px-decode+blur it always was; it was never the CPU spike (that was the
coverflow re-decode, fixed separately).

cc
2026-06-14 03:04:33 -06:00
vicrodh c57437ce59 fix(slint): immersive Album Reactive - center-anchored speaker pulse, no lateral drift
The album art appeared to drift sideways while pulsing; Tauri's art only scales
in place (transform: scale, intrinsically center-anchored) like a vibrating
loudspeaker cone, with no translate.

Cause: the Slint port animated `x, y` alongside `width, height` on the art +
glow. x/y are the centering offset (parent.width - self.width)/2; putting them
on their own 100ms easing timeline desynced the centering from the size, so the
box eased off-center mid-pulse - the reported lateral movement.

Fix: animate only `width, height`; x/y stay plain bindings that recompute in
lockstep with the animated size, so the art grows/shrinks from a rock-solid
center. Faithful to Tauri's center-anchored scale (scale source kept on
global-energy, not bass - bass only drives the glow in Tauri). Atmosphere,
other panels, player, and audio backend untouched.

cc
2026-06-13 21:34:41 -06:00
vicrodh 5ded7b1610 perf(slint): immersive Coverflow - persistent elements + animated scroll (CSS/iPhone model)
Rebuild that finally kills the per-click CPU spike, using the classic
coverflow architecture (the owner's reference: Addy Osmani / iPhone-2007).

Root cause of the spike (now removed): every navigation re-ran refresh_async
which REPLACED the coverflow VecModels, so Slint dropped + rebuilt all 7 bound
Image elements and re-uploaded/re-decoded every cover on each click.

New architecture:
- A single STABLE flat cover model, QueueState.coverflow-tracks =
  [history oldest..newest, NOW, upcoming...], + an int coverflow-index. An
  order-sensitive id-sequence hash gates the model setter: a pure track advance
  (same sequence, pointer moves) does NOT rebuild the model - only the index
  updates. So the Repeater is never rebuilt and visible covers never re-decode.
  Rebuild happens only on a real content change (new queue / shuffle / add /
  remove).
- CoverflowPanel: a Repeater over coverflow-tracks; each card's transform is a
  pure function of offset = index - scroll. `scroll` is a float bound to
  coverflow-index with `animate scroll { 320ms }` - GPU-composited slide that
  repaints only during the transition then idles (no animation-tick / Timer, so
  idle = no continuous render). Flat scaled cards (no rotateY/skew/reflection),
  per-depth black-overlay dim, center painted last + non-interactive, ~7 visible.
- Windowed lazy decode (+-4) reusing the DECODED_PIXEL_CACHE; at most the one
  newly-entering cover decodes per advance.
- Side cards navigate via queue-wide play_history / play_coverflow_upcoming.
- Bonus: atmosphere bg de-dupes by URL (ATMOSPHERE_LAST_URL) so a track change
  no longer re-blurs the same cover. [coverflow-perf] debug timers added.

cc
2026-06-13 21:34:30 -06:00
vicrodh 763df2eab5 perf+feat(slint): immersive Coverflow jukebox pyramid + kill the per-click CPU spike
Owner rebuild: cheap "rocola" of flat scaled cards, and eliminate the CPU spike
on every navigation click.

CPU spike (root cause): each queue navigation re-ran refresh_async, whose
to_item reset EVERY rebuilt row's artwork to Image::default(), discarding the
already-decoded handles for the 6-of-7 on-screen covers; each was then
re-decoded (the disk cache stored only compressed bytes, so even a hit ran a
full image::load + thumbnail). Dozens of full JPEG/PNG decodes per click.
Fix: (A) artwork.rs decoded-pixel cache (DECODED_PIXEL_CACHE keyed by url+size;
fetch_and_decode_ref consults it before any disk read/decode); (B) queue.rs
to_item_reuse + per-list prior-art id-diff carries unchanged decoded handles
across the model rebuild (no blank, no re-decode); load_artwork short-circuits
on a decoded-cache hit. Net: at most the one newly-revealed cover decodes.

Pyramid (CoverflowPanel.slint rebuilt): 7 flat cards (3 history left + center +
3 upcoming right), center declared last (paints on top), step-down scale
(1.00/0.80/0.64/0.50) + per-depth black-overlay attenuation on an inner Rectangle
(0/0.22/0.40/0.55). NO rotateY/skew/perspective, NO reflection, NO far-edge
gradient, NO root transparency. Removed the 500ms x/width/height reflow (it
re-laid-out clipped images every frame); only a 120ms GPU opacity cross-fade on
the dim overlay remains. Center drop-shadow static. 132px player clearance kept.

Correctness fix (review blocker): the coverflow upcoming cards index the
UNFILTERED next-3 (coverflow-upcoming), so routing their click through the
paged/filtered play-upcoming played the wrong track on a paged/searched sidebar.
Added QueueState.play-coverflow-upcoming -> queue.play_coverflow_upcoming, which
plays the queue-wide upcoming index directly via play_upcoming_at. History
already indexes queue-wide via play-history.

cc
2026-06-13 11:34:35 -06:00
vicrodh 5146acf286 feat(slint): immersive Spectrum bar colors derived from album art (negative fallback)
The bars used a fixed cyan->purple default. Now they take contrast colors from
the album artwork, with a negative-fallback for dark covers (a near-black
Metallica album would vanish against the black background -> invert so the bars
pop).

- immersive.rs: spectrum_colors() extracts the most saturated sample as primary
  + a hue-distinct secondary (channel-rotated if none distinct); if the cover is
  too dark/desaturated it uses the NEGATIVE of the average. ensure_visible_on_black()
  inverts a too-dark color and lifts a dim one so both stops read on black.
- ImmersiveState gains spectrum-primary / spectrum-secondary (defaults cyan->purple
  until art resolves); set in playback.rs from the same decoded artwork as
  glow-color / bg-image.
- SpectrumPanel binds the bar gradient to those (base = primary, tip = secondary).

cc
2026-06-13 11:08:29 -06:00
vicrodh 03dfd66101 perf(slint): immersive Spectrum - collapse ~2240 cubelet nodes to ~28 gradient bars
The cubelet port instantiated ~80 Rectangles per column x2 mirror x14 bins
(~2240 retained scene-graph nodes) whose `visible` flipped every frame off an
animated `shown-cubes`. Audio updates at 30fps kept that animation from ever
settling, so ~2240 visible-bindings re-evaluated per frame and femtovg
re-rasterized hundreds of tiny rects - ~5fps and a large CPU spike. Tauri is
cheap because it is immediate-mode Canvas2D (fillRect), not a retained tree.

Fix: one solid gradient bar per column (2 nodes/pair, ~28 total) with an
animated height. Same geometry (28 mirrored columns, baseY 0.85H, maxBarHeight
0.7H, widths/offsets), same data binding (VisualizerState.bars, bounds-safe),
same cyan->purple default gradient (now a vertical fill instead of per-cube).
Dropped the discrete-cubelet texture for the perf win; it can return cheaply as
a static stripe overlay if wanted. Removed the unused cube-indices array.

cc
2026-06-13 10:34:41 -06:00
vicrodh fa7aa46ce1 feat(slint): immersive header - segmented mode bar in the compact-player style
Replaces the provisional S2 ModeBar with the polished segmented mode pill,
copying the compact player's visual language (owner instruction).

- Pill tokens copied verbatim from ImmersivePlayerBar: background #00000080,
  1px #ffffff2e border, drop-shadow blur 32 / #00000066 / offset-y 8 (the
  shadow is the main upgrade - the provisional bar had none), radius 12.
- 4 tabs (icon + label): Album Reactive / Static / Coverflow / Spectrum, with
  existing icon assets. States per chrome.md: idle #ffffffb3, hover #ffffff1f
  bg / #fffffff2, active #ffffff33 bg / #ffffff; 13px, weight 500->600;
  150ms background animate. Leading panel-left glyph + 1px divider (decorative).
- Mount site unchanged: same chrome-visible auto-hide opacity (on the instance,
  not the root), same select(idx) => mode + wake() wiring, no second timer.
- The 4 mode foregrounds, player, volume fix, atmosphere, responsive sizing,
  and ESC are untouched.

Logged nits: border alpha matches the player (0.18) not the Tauri header tabs
(0.15) - intentional for one design language; leading panel icon is inert
(Tauri's is a functional split/focus toggle, out of scope).

cc
2026-06-13 09:19:11 -06:00