In-app listening stats, streaks, monthly recap popup, and per-song cloud sync#361
Merged
Merged
Conversation
…fline share card, and per-song cloud history sync
LargeModGames
added a commit
that referenced
this pull request
Jul 10, 2026
…avigation, and custom screens (#363) ## What's new A major expansion of the Lua plugin API (v4 shipped in #302), made this a while ago but forgot to merge it: - **Async data reads**: `get_playlists`, `get_queue`, `get_search_results`, `get_saved_tracks`/`albums`/`shows`, `get_recently_played`, `get_devices`, `get_lyrics`, all with the `(data, err)` callback convention. - **More actions**: `set_repeat`/`cycle_repeat`, `transfer_playback`, `play_uri`/`play_context`, `add_to_queue`, playlist create/edit, and save/follow actions. - **Timers**: `set_timeout`, `set_interval`, `cancel_timer`. - **Per-plugin storage**: JSON-backed `storage_get`/`set`/`remove`/`keys`. - **Navigation**: `navigate`, `back`, `current_route`, plus a `config()` read of the user config. - **New events**: `shuffle_change`, `repeat_change`, `device_change`, `search_results`, `route_change`. - **Custom screens**: `register_screen`/`set_screen`/`show_screen`/`close_screen` with paragraph/list/gauge widgets and per-key callbacks (new `RouteId::PluginScreen` / `ActiveBlock::PluginScreen`, `src/tui/ui/plugin_screen.rs`, example plugin `examples/plugins/queue-browser.lua`). Documented in `docs/scripting.md`. ## Notes - Rebased onto current main (post #360 and #361); the new Stats and RecapPrompt routes got plugin-facing names in the exhaustive `route_name` map. - `get_recently_played` gained a `navigate` flag so plugin data reads don't hijack the current screen; the handler path still navigates as before. ## Testing - `cargo fmt`, `cargo clippy -- -D warnings` (with and without `scripting`), and `cargo test --no-default-features --features telemetry,scripting` (572 tests) all pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's new
[/].d(never again, persisted; re-enable in Settings). Never steals focus from an input field.Implementation notes
IoEvent::GenerateRecapon the network layer withspawn_blocking; the UI thread never blocks on export.Testing
cargo fmt,cargo clippy --no-default-features --features telemetry -- -D warnings, andcargo test --no-default-features --features telemetry(409 tests) all pass.