Music Library: active-tab color + collapsible player drawer #40

Merged
parkerhdavis merged 1 commit from music-qol into main 2026-06-01 13:59:30 -06:00
parkerhdavis commented 2026-06-01 13:59:25 -06:00 (Migrated from github.com)

What

Two QoL tweaks to the Music workspace.

  • Active Albums/Artists tab now uses the garnet accent (btn-primary) instead of the faint btn-active, so the current view reads at a glance.
  • Collapsible player bar — a chevron-down button hides the global player bar; a small floating control (album art + playing indicator, bottom-right) restores it.

How

Collapsing only hides the UI — playback keeps running. useNativeAudio fires audio_stop on unmount, so PlayerBar stays mounted and just swaps its render instead of unmounting. The bar reopens on its own when playback resumes from a pause or when something new is played (the play actions clear the collapsed flag); an end-of-track auto-advance does not reopen it, so it can stay hidden across a whole album. Collapsing also closes the queue, which anchors to the bar.

playerCollapsed + setPlayerCollapsed live in the music store; the floating restore control is rendered by PlayerBar itself so the audio hook stays alive.

Testing

tsc, Biome, and full-repo lint pass. Verified via make dev: active tab stands out, collapse hides the bar while music keeps playing, the floating control and new playback both restore it, and the queue closes on collapse.

## What Two QoL tweaks to the Music workspace. - **Active Albums/Artists tab** now uses the garnet accent (`btn-primary`) instead of the faint `btn-active`, so the current view reads at a glance. - **Collapsible player bar** — a chevron-down button hides the global player bar; a small floating control (album art + playing indicator, bottom-right) restores it. ## How Collapsing only hides the UI — playback keeps running. `useNativeAudio` fires `audio_stop` on unmount, so `PlayerBar` stays mounted and just swaps its render instead of unmounting. The bar reopens on its own when playback resumes from a pause or when something new is played (the play actions clear the collapsed flag); an end-of-track auto-advance does **not** reopen it, so it can stay hidden across a whole album. Collapsing also closes the queue, which anchors to the bar. `playerCollapsed` + `setPlayerCollapsed` live in the music store; the floating restore control is rendered by `PlayerBar` itself so the audio hook stays alive. ## Testing `tsc`, Biome, and full-repo lint pass. Verified via `make dev`: active tab stands out, collapse hides the bar while music keeps playing, the floating control and new playback both restore it, and the queue closes on collapse.
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
parker/garnet!40
No description provided.