Skip to content

feat(gui): show an E badge on explicit songs in the track lists - #858

Merged
LargeModGames merged 1 commit into
LargeModGames:mainfrom
niukanen1:gui-explicit-badge-838
Oct 15, 2026
Merged

LargeModGames merged 1 commit into
LargeModGames:mainfrom
niukanen1:gui-explicit-badge-838

Conversation

@niukanen1

@niukanen1 niukanen1 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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):

library playlist with the explicit badge

Closes #838

Summary by CodeRabbit

  • New Features
    • Explicit tracks now display an “E” badge in track lists, with an accessible “Explicit” label.

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: LargeModGames/spotatui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1d2c3c36-eec0-4aee-beed-ae47420c7b14
📥 Commits

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.

Changes: Explicit Track Badges

Layer / File(s) Summary
Render and verify explicit track badges
gui/src/TrackTable.tsx, gui/src/ListPage.css, gui/src/library.test.tsx, gui/e2e/fixtures.ts, CHANGELOG.md
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.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to c47d8

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: Passed 4
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 Passed 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 Passed 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LargeModGames
LargeModGames merged commit 15ab76c into LargeModGames:main Oct 15, 2026
32 checks passed
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.

GUI: show an E badge on explicit songs in the track lists

2 participants