Skip to content

feat: remember Tracks context in Currently Playing page#933

Merged
aome510 merged 2 commits intomasterfrom
tracks-currently-playing
Feb 18, 2026
Merged

feat: remember Tracks context in Currently Playing page#933
aome510 merged 2 commits intomasterfrom
tracks-currently-playing

Conversation

@aome510
Copy link
Owner

@aome510 aome510 commented Feb 18, 2026

Add support for preserving Tracks context (Top Tracks, Recently Played, Liked Tracks) when navigating to the Currently Playing page.

Since Spotify's native API only recognizes Playlist, Album, Artist, and Show as playback contexts, custom Tracks contexts were previously lost when viewing the Currently Playing page. This change tracks the currently playing Tracks context in UIState and displays it appropriately.

Resolves #825

Changes

  • Add currently_playing_tracks_id field to UIState to store the active Tracks context
  • Modify ContextPageType::CurrentPlaying to accept optional TracksId, indicating the currently playing Tracks context
  • Update playback handlers to set/clear currently_playing_tracks_id:
    • Set when playing from Tracks contexts (Top/Recent/Liked Tracks)
    • Clear when playing from other contexts (Playlist, Album, Show, etc.)

This allows users to see and navigate the Tracks context list when viewing the Currently Playing page after playing from these contexts.

Add support for preserving Tracks context (Top Tracks, Recently Played,
Liked Tracks) when navigating to the Currently Playing page.

Since Spotify's native API only recognizes Playlist, Album, Artist, and
Show as playback contexts, custom Tracks contexts were previously lost
when viewing the Currently Playing page. This change tracks the currently
playing Tracks context in UIState and displays it appropriately.

Changes:
- Add `currently_playing_tracks_id` field to `UIState` to store the active
  Tracks context
- Modify `ContextPageType::CurrentPlaying` to accept optional `TracksId`, indicating the currently playing Tracks context
- Update playback handlers to set/clear `currently_playing_tracks_id`:
  - Set when playing from Tracks contexts (Top/Recent/Liked Tracks)
  - Clear when playing from other contexts (Playlist, Album, Show, etc.)

This allows users to see and navigate the Tracks context list when
viewing the Currently Playing page after playing from these contexts.
@aome510 aome510 merged commit 9b80db6 into master Feb 18, 2026
5 checks passed
@aome510 aome510 deleted the tracks-currently-playing branch February 18, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When playing songs from Liked songs page: Cannot determine the current page's context

1 participant