M8a: Listening stats, playlists, collections, more themes #22
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mett/cushion!22
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/m8a-extras"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First half of M8 (split agreed in the session): stats, playlists, collections and more themes. Library admin follows as M8b, which will close #8.
Part of #8
What's in it
/stats): total time, days listened, finished items, today, days in a row, a 7-day bar chart in local time, most listened items, top authors and genres, recent sessions. Summarized in Rust from/api/me/listening-stats; week and streak are computed in the UI so they follow the local calendar.updatepermission, deleting needsdelete(now onUserascanUpdate/canDelete). The server needs a book to create one, so new collections start from "Add to".AppState. Autoplay and Up Next follow it ("Playlist: Road trip"); playing anything not on it ends it.app.htmlpaints the body#0e0e0einline, which dimmed the content of every light theme (the existing Light too).theme.apply()now sets the body background.Tests
pnpm check: 0 errors. Prettier: clean on all tracked and new files. (pnpm lintas a whole trips over another session's untracked.claude/worktrees/checkout, not part of this branch.)cargo fmt --check,cargo clippy --all-targets -D warnings: clean.cargo testagainst the test server (ABS 2.37.2 via Podman): all pass. Newlive_lists.rscovers stats decoding and the playlist (books and episodes) and collection lifecycles, including the server deleting an emptied playlist. New unit tests cover the stats summary, playlist decoding and the queue.git diff --exit-code -- src/lib/bindingsclean.tauri dev(isolated XDG dirs, test server): stats page, creating a playlist, adding from a book and an episode, reorder, play from an entry with Up Next showing the playlist, creating and renaming a collection, removing the last playlist item, switching between all ten themes.🤖 Generated with Claude Code