mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 17:35:50 +03:00
[PR #419] [MERGED] Refactor ui and event modules #1696
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#1696
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/419
Author: @aome510
Created: 4/21/2024
Status: ✅ Merged
Merged: 4/21/2024
Merged by: @aome510
Base:
master← Head:misc-refactor📝 Commits (9)
c027ccfupdate command description forOpenCommandHelpandQueue60ffaf4refactor page event handling codes, add handlers for queue and popup pages89551f4moveQueue,CommandHelpfromPopupStatetoPageStatefd08c67update event handling codese4a907fupdate UI rendering codes6fd0e5blockUIStateonly once when handling terminal key eventbbb2942add command handle function for playlist track table13658a3construct track table's playback on premisee49f236cleanup codes in UI module📊 Changes
15 files changed (+599 additions, -748 deletions)
View changed files
📝
README.md(+3 -3)📝
spotify_player/src/command.rs(+2 -2)📝
spotify_player/src/event/mod.rs(+25 -36)📝
spotify_player/src/event/page.rs(+80 -56)📝
spotify_player/src/event/popup.rs(+74 -196)📝
spotify_player/src/event/window.rs(+127 -129)📝
spotify_player/src/state/data.rs(+5 -4)📝
spotify_player/src/state/ui/mod.rs(+1 -3)📝
spotify_player/src/state/ui/page.rs(+12 -0)📝
spotify_player/src/state/ui/popup.rs(+2 -14)📝
spotify_player/src/ui/mod.rs(+13 -20)📝
spotify_player/src/ui/page.rs(+230 -79)📝
spotify_player/src/ui/playback.rs(+19 -21)📝
spotify_player/src/ui/popup.rs(+3 -171)📝
spotify_player/src/ui/utils.rs(+3 -14)📄 Description
Breaking changes
OpenCommandHelpandQueuecommands were updated to go to a new page instead of opening a popupChanges
This PR refactors
uiandeventmodules, which involves🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.