Skip to content

[WIP] Update and fix backend code for Spotify-TUI#3

Open
Copilot wants to merge 4 commits into
masterfrom
copilot/update-fix-backend-code
Open

[WIP] Update and fix backend code for Spotify-TUI#3
Copilot wants to merge 4 commits into
masterfrom
copilot/update-fix-backend-code

Conversation

Copilot AI commented Nov 26, 2025

Copy link
Copy Markdown
  • Investigate repository structure and understand the codebase
  • Identify outdated/deprecated dependencies causing build failures
  • Update dependencies in Cargo.toml:
    • Update rspotify from 0.10.0 to 0.13.x (major API changes)
    • Update tokio from 0.2 to 1.x (major API changes)
    • Replace tui with ratatui 0.26.0 (active fork)
    • Update crossterm from 0.20 to 0.27
    • Update clap from 2.33 to 4.5
    • Add chrono, clap_complete, webbrowser dependencies
  • Refactor core code to work with updated dependencies:
    • Update Spotify API integration (rspotify API changes in network.rs)
    • Update async runtime (tokio 0.2 → 1.x)
    • Update terminal UI types (crossterm/ratatui changes)
    • Update main.rs authentication flow
    • Update app.rs types and duration handling
    • Update redirect_uri.rs for new auth flow
  • Fix CLI modules for clap v4 API changes
  • Fix remaining compilation errors in network.rs (recommendations API)
  • Fix remaining compilation errors in handlers/UI
  • Build and test the application
  • General code cleanup and optimization
Original prompt

The request is to update and fix the backend code for the Spotify-TUI project. Specific tasks include:

  1. Investigating and resolving the app's startup issues (e.g., potentially resolving 'localhost' bindings and port problems).
  2. Updating Spotify API integration to support the latest Spotify Developer Panel changes, including updates to API scopes, token handling, and playback controls.
  3. Refactoring any deprecated or broken dependencies to their modern equivalents.
  4. General code cleanup and optimization to ensure high performance and adherence to best practices.
  5. Comprehensive testing to validate that all changes are stable, functional, and compatible with Spotify's current API.

This pull request was created as a result of the following prompt from Copilot chat.

The request is to update and fix the backend code for the Spotify-TUI project. Specific tasks include:

  1. Investigating and resolving the app's startup issues (e.g., potentially resolving 'localhost' bindings and port problems).
  2. Updating Spotify API integration to support the latest Spotify Developer Panel changes, including updates to API scopes, token handling, and playback controls.
  3. Refactoring any deprecated or broken dependencies to their modern equivalents.
  4. General code cleanup and optimization to ensure high performance and adherence to best practices.
  5. Comprehensive testing to validate that all changes are stable, functional, and compatible with Spotify's current API.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@AntoneBrewer AntoneBrewer marked this pull request as ready for review November 26, 2025 10:52
Copilot AI review requested due to automatic review settings November 26, 2025 10:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AntoneBrewer AntoneBrewer self-requested a review November 26, 2025 10:53
Copilot AI and others added 3 commits November 26, 2025 10:59
- Updated rspotify from 0.10 to 0.13 (major API changes)
- Updated tokio from 0.2 to 1.x (async runtime update)
- Replaced tui with ratatui 0.26.0 (fork/successor)
- Updated clap from 2.33 to 4.5 (CLI framework)
- Added chrono and clap_complete dependencies
- Refactored authentication flow for new rspotify API
- Updated network.rs with new Spotify API integration
- Fixed type renames: PlayingItem→PlayableItem, PlaylistTrack→PlaylistItem
- Fixed Duration handling (duration_ms→duration.num_milliseconds())
- Updated Frame type for ratatui (removed generic parameter)
- Fixed Spans→Line rename for ratatui

Co-authored-by: AntoneBrewer <16599519+AntoneBrewer@users.noreply.github.com>
- Update CLI modules for clap v4 API changes
- Fix ArgMatches API changes (get_flag, get_one, get_count)
- Fix rspotify ID types (.id() method via trait import)
- Update duration fields (duration_ms → duration.num_milliseconds())
- Fix progress field (progress_ms → progress)
- Update playlist_items → playlist_items_manual for pagination
- Update get_saved_show_manual parameters
- Update redirect_uri.rs for new auth flow

Co-authored-by: AntoneBrewer <16599519+AntoneBrewer@users.noreply.github.com>
Co-authored-by: AntoneBrewer <16599519+AntoneBrewer@users.noreply.github.com>
@gonzolively

Copy link
Copy Markdown

Hey @AntoneBrewer , so excited to see someone with an active fork of spotify-tui! I was planning to do the same as you, fork and re-factor. Any other plans that what is in this Copilot plan?

Also, are you planning to build/publish packages anytime soon with this repo?

Thanks and looking forward to seeing what you do next with this repo! (after copilot tokens get refreshed of course! 😆 )

@AntoneBrewer

AntoneBrewer commented Dec 3, 2025 via email

Copy link
Copy Markdown
Owner

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.

4 participants