Repository navigation
fix(gui): add a Spotify login button - #796
Conversation
The desktop app builds Spotify only, so after a failed first login it opened with no source picker and a hint for the terminal's `d` key. Your Library now offers Log in to Spotify while there is no session. A repeat login request shows the waiting pairing code again instead of replacing it. Fixes #787
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Summary
Fixes #787. The desktop app builds Spotify only, so after a failed first login the next launch opened with an empty library and no way to log in: the source picker only shows when a build has more than one source, and the status hint names the terminal's
dkey.SelectSource(Spotify), which already starts the device login. The page reads the session state fromLikedSongs.available, so the protocol does not change.Networknow keeps the prompt (login_promptreplaceslogin_in_flight) and shows it again. The terminal app gets the same behaviour.Testing
I tested the button by hand in the desktop app.
npm run lint,npm run format:check,npm run typecheck,npm test,npm run buildingui/:6 passed (4.8s)cargo fmt --all -- --check: exit 0cargo clippy -- -D warningson the slim, headless (telemetry), default and gui legs: allFinishedcargo test --no-default-features --features telemetry,tui:test result: ok. 1543 passed; 0 failedcargo test:test result: ok. 2000 passed; 0 failed; 7 ignoredAdditional notes
New screenshot scene: "Spotify login after a failed first login" (
library-spotify-login.png).Not in this PR:
dand pick Spotify" status texts still show in the GUI. The app does not know which frontend runs, so changing them would drop the key hint from the terminal app.💬 Questions or want to chat with other contributors? Join the spotatui Discord.
Summary by CodeRabbit