You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(gui): show an E badge on explicit songs in the track lists - #858
The server already sends explicit: true on each track, but the GUI never showed it. A row the server marks explicit now shows a small grey E badge at the start of its artist line, before the artist names and after the source badge, in every page that uses TrackTable: playlists, Liked Songs, albums, an artist's Popular songs, song radio and Recently played.
The badge markup follows the sketch in the issue: the visible E is aria-hidden, a sr-only span says the word Explicit for screen readers, and the title shows it on hover. The style sits in ListPage.css right after the source badge rules, with flex-shrink: 0 so a narrow window cannot squash it, and it uses the existing --sub/--panel/--mono tokens. The badge is not Spotify-only: any source that sends explicit: true gets it, so the Qobuz case is covered too.
The e2e fixture marks the second Film scores row explicit, so the library playlist, track menu and list sort and filter scenes show the badge. Screenshot from the library playlist scene (Cornfield Chase carries the badge):
Reviewing files that changed from the base of the PR and between 5d66123 and c47d8e9.
📒 Files selected for processing: 5
CHANGELOG.md
gui/e2e/fixtures.ts
gui/src/ListPage.css
gui/src/TrackTable.tsx
gui/src/library.test.tsx
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
📝 Walkthrough
TrackTable now displays an accessible E badge for tracks marked explicit. The change includes badge styling, test coverage for Spotify and Qobuz tracks, an explicit track in the filmScores fixture, and an Unreleased changelog entry.
TrackTable renders an E badge with an accessible “Explicit” label for explicit tracks. The CSS styles the badge. The test checks explicit tracks from two sources and a non-explicit track. The fixture marks one track explicit, and the changelog describes the badge.
The badge is a localized display change, and the inspected Spotify and Qobuz paths preserve the flag through to the track table. No concrete merge-blocking risk remains.
Pre-merge checks: 4
Passed checks: 4 passed
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title uses the accepted conventional-commit prefix feat(gui):, clearly describes the explicit-song badge change, and uses a concise imperative subject.
Linked Issues check
Issue #838 requires an explicit badge in shared TrackTable rows. gui/src/TrackTable.tsx renders the badge only when track.explicit is true, after SourceBadge and before Artists. The visible …
Out of Scope Changes check
The changes stay within issue #838. They modify TrackTable, its list styling, its focused test, the e2e fixture, and the Unreleased changelog. These changes support the requested implementation, ver…
✨ Finishing Touches
🧪 Generate unit tests (beta)
Create a new PR
✨ Simplify code
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The server already sends
explicit: trueon each track, but the GUI never showed it. A row the server marks explicit now shows a small grey E badge at the start of its artist line, before the artist names and after the source badge, in every page that usesTrackTable: playlists, Liked Songs, albums, an artist's Popular songs, song radio and Recently played.The badge markup follows the sketch in the issue: the visible E is
aria-hidden, asr-onlyspan says the word Explicit for screen readers, and thetitleshows it on hover. The style sits inListPage.cssright after the source badge rules, withflex-shrink: 0so a narrow window cannot squash it, and it uses the existing--sub/--panel/--monotokens. The badge is not Spotify-only: any source that sendsexplicit: truegets it, so the Qobuz case is covered too.The e2e fixture marks the second Film scores row explicit, so the library playlist, track menu and list sort and filter scenes show the badge. Screenshot from the library playlist scene (Cornfield Chase carries the badge):
Closes #838
Summary by CodeRabbit