Repository navigation
fix: Play/Pause on the queue slot's playbar resumes Spotify instead of pausin... - #383
Conversation
…f pausing the queued track (LargeModGames#374)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughSpotify queue-slot playback toggles now dispatch native pause or resume events before streaming fallback logic. The Spotify queue router consumes those events, updates ChangesSpotify queue playback control
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant App
participant QueueRouter
participant StreamingPlayer
App->>App: Toggle native_is_playing
App->>QueueRouter: Dispatch PausePlayback or bare StartPlayback
QueueRouter->>StreamingPlayer: Pause or play
QueueRouter-->>App: Consume transport event
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/core/app.rs`:
- Around line 4597-4603: Update the queue-toggle logic in the visible playback
handler and its corresponding implementation near the alternate location so
native_is_playing is optimistically flipped before dispatching the event. Use
the updated value to choose between PausePlayback and StartPlayback, and add or
adjust a test that performs two toggles without draining the channel to verify
they dispatch opposite actions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: a1993d51-4c35-4483-b29e-c51a347c5b25
📒 Files selected for processing (2)
src/core/app.rssrc/infra/queue/dispatch.rs
Fixes #374.
Summary
Play/Pause on the queue slot's playbar resumes Spotify instead of pausing the queued track
Validation
🤖 AI-authored PR, operated by @yhay81.
Summary by CodeRabbit