Skip to content

fix(history): keep a dash in recap track titles - #705

Merged
LargeModGames merged 1 commit into
LargeModGames:mainfrom
niukanen1:fix/recap-dash-title-671
Oct 5, 2026
Merged

LargeModGames merged 1 commit into
LargeModGames:mainfrom
niukanen1:fix/recap-dash-title-671

Conversation

@niukanen1

@niukanen1 niukanen1 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #671

The recap split each ranked display on the first -, so a track title like Bohemian Rhapsody - Remastered 2011 lost its second half to the artist slot on the share card, and the Top Tracks list rendered the whole line bold with no artist under it. Albums like Live - 1985 hit the same split in the album list.

aggregate_top_tracks always appends the artists at the end of the display string, so the last - is the separator it added. A new split_track_display helper splits there with rsplit_once, CardData::from_tops and the tracks rendering use it, and render_ranked_entries now takes a split_artist flag so the artists and albums lists show their display whole with no artist line.

Three tests cover the card, the track list and the album list, all written first and failing on main.

Summary by CodeRabbit

  • Bug Fixes
    • Listening recaps now correctly separate artists from track titles when either contains dashes. This improves track details in recap cards and ranked lists without changing artist or album list formatting.

@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

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: 9cb026d6-a441-4845-b2d0-394e5a4d06fd
📥 Commits

Reviewing files that changed from the base of the PR and between 6e4d3a6 and 5d3cbba.

📒 Files selected for processing (2)
  • CHANGELOG.md
  • src/infra/history.rs

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

Walkthrough

The listening recap now splits track displays at the final - separator. The share card and top-tracks list preserve dashed track titles and show the artist separately. Artist and album lists remain unsplit.

Changes

Listening recap track display

Layer / File(s) Summary
Track display splitting
src/infra/history.rs
The share card separates track titles and artists at the final - separator.
Ranked track rendering
src/infra/history.rs, CHANGELOG.md
Only the top-tracks list enables title-and-artist splitting. Tests cover dashed track titles and album names. The changelog describes the fix.

Priority: ➖ Normal

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

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to 5d3cb

The recap changes preserve dashed track titles and show the appended artist in the card and top-tracks list. No merge-blocking issue is identified.

🚥 Pre-merge checks | ✅ 4
✅ 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 allowed fix prefix with the history scope. It clearly and concisely describes preserving dashes in recap track titles.
Linked Issues check ✅ Passed Issue #671 requires recap cards and Top Tracks to preserve dashed track titles and show the actual artist, and Top Artists and Top Albums to show names whole. The PR summary reports that `split_track_…
Out of Scope Changes check ✅ Passed The reported changes are limited to recap parsing and rendering, tests for the affected recap views, and the related #671 changelog entry. These changes support the issue. No unrelated change is estab…
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
✨ Simplify code
  • Create a new PR
  • Autopilot · 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.

@LargeModGames
LargeModGames merged commit b53aa60 into LargeModGames:main Oct 5, 2026
30 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.

Listening recap shows "Remastered 2011" as the artist of the top track

2 participants