[PR #82] [MERGED] Lay foundation for indicating if a track is saved #597

Closed
opened 2026-02-28 14:50:09 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/82
Author: @Rigellute
Created: 10/19/2019
Status: Merged
Merged: 10/20/2019
Merged by: @Rigellute

Base: masterHead: liked-songs


📝 Commits (1)

  • 0410ba9 Lay foundation for indicating if a track is saved

📊 Changes

3 files changed (+45 additions, -2 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 src/app.rs (+34 -1)
📝 src/ui/mod.rs (+10 -1)

📄 Description

This commit will show if the currently playing track is saved or not.

Screenshot 2019-10-19 at 12 08 51

The idea here is to build a HashSet of saved track ids, to which UI components can simply look at to see if the track is saved or not.

As we fetch tracks around the app, we need to make an additional request to see if any are liked.

So it should be pretty straightforward from here to add this to other views.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Rigellute/spotify-tui/pull/82 **Author:** [@Rigellute](https://github.com/Rigellute) **Created:** 10/19/2019 **Status:** ✅ Merged **Merged:** 10/20/2019 **Merged by:** [@Rigellute](https://github.com/Rigellute) **Base:** `master` ← **Head:** `liked-songs` --- ### 📝 Commits (1) - [`0410ba9`](https://github.com/Rigellute/spotify-tui/commit/0410ba984c4d8fb850b1451a494fd6f3fe577e62) Lay foundation for indicating if a track is saved ### 📊 Changes **3 files changed** (+45 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `src/app.rs` (+34 -1) 📝 `src/ui/mod.rs` (+10 -1) </details> ### 📄 Description This commit will show if the currently playing track is saved or not. <img width="391" alt="Screenshot 2019-10-19 at 12 08 51" src="https://user-images.githubusercontent.com/12150276/67144182-e2159b00-f26b-11e9-8266-d34c5c00b283.png"> The idea here is to build a HashSet of saved track ids, to which UI components can simply look at to see if the track is saved or not. As we fetch tracks around the app, we need to make an additional request to see if any are liked. So it should be pretty straightforward from here to add this to other views. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 14:50:09 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#597
No description provided.