mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[PR #94] [MERGED] Implement tracks context #625
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#625
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/aome510/spotify-player/pull/94
Author: @aome510
Created: 12/24/2022
Status: ✅ Merged
Merged: 12/25/2022
Merged by: @aome510
Base:
master← Head:add-tracks-context📝 Commits (10+)
10dda9dremove tracks page related structs and create new tracks context related structsee941dfhandle rendering for tracks context pagead830ecrefactorPlayRandomcommand and ordering commands handler codes7ff4ddaaddTrackIdconstants for some "tracks" contexts65128dccleanupcreate_new_radio_pageuses79b0599addkindfield toTracksIde1c9a4dfix compile error in client codes30151e5addonce_celland use it to construct global constant variablesede65e5usestaticinstead ofconstwhen constructingonce_cell::Lazy<TracksId>a2b4681modifyGetRadioTracksstructure📊 Changes
16 files changed (+304 additions, -346 deletions)
View changed files
📝
Cargo.lock(+3 -2)📝
spotify_player/Cargo.toml(+1 -0)📝
spotify_player/src/client/handlers.rs(+1 -0)📝
spotify_player/src/client/mod.rs(+39 -10)📝
spotify_player/src/event/mod.rs(+24 -20)📝
spotify_player/src/event/page.rs(+0 -120)📝
spotify_player/src/event/popup.rs(+36 -21)📝
spotify_player/src/event/window.rs(+73 -46)➕
spotify_player/src/state/consant.rs(+15 -0)📝
spotify_player/src/state/data.rs(+18 -8)📝
spotify_player/src/state/mod.rs(+2 -0)📝
spotify_player/src/state/model.rs(+39 -38)📝
spotify_player/src/state/ui/mod.rs(+12 -9)📝
spotify_player/src/state/ui/page.rs(+26 -9)📝
spotify_player/src/ui/mod.rs(+0 -1)📝
spotify_player/src/ui/page.rs(+15 -62)📄 Description
Overview
This PR adds new context type
Tracksthat should replace the use of tracks page and related structs. One benefit this change brings is that it allows to unify the handling codes for a tracks page and a context page, hence making the codes cleaner and easier to manage.Changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.