Files
amethyst/amethyst
Claude 2210341291 refactor(music): align Add-to-Playlist with bookmark-management UI
Compared the music-playlist-management sheet against the existing
PostBookmarkListManagementScreen and noticed the playlist sheet was the odd
one out — custom TopAppBar with a Done action, inline TextField + Button row
for creating new lists, custom Row + Checkbox per playlist, no way to tap
into a playlist to view it.

The bookmark screen uses a richer Material3 pattern that's already familiar
to users. Aligning the music sheet to it:

- TopBarWithBackButton (back arrow + title) replaces the bespoke top bar.
- Scaffold FAB → NewListButton opens a small AlertDialog with a name field
  (lighter than the bookmark route to a full edit screen, but consistent in
  affordance). The previous inline create-row is gone.
- Each row is now a MusicPlaylistManagementItem mirroring
  BookmarkGroupManagementItem: leading icon + total-track-count chip,
  headline title, supporting "In this playlist" / "Not in this playlist"
  status text, trailing round IconButton (red Remove / blue Add).
- Tapping the row navigates into the playlist's note view (Route.Note with
  the addressable's tag); tapping the trailing button toggles membership.
  Previously these were collapsed into a single whole-row tap that toggled
  but never let the user actually see the playlist.

ViewModel unchanged — the same toggle()/createWithTrack() operations now
just feed a more conventional UI.
2026-05-27 02:37:52 +00:00
..