Skip to content

fix(v3): drawer fav-sync honours data-fav-idle (no dim-heart on List View)#717

Merged
byrongamatos merged 1 commit into
mainfrom
fix/v3-patch-card-fav-idle
Jul 2, 2026
Merged

fix(v3): drawer fav-sync honours data-fav-idle (no dim-heart on List View)#717
byrongamatos merged 1 commit into
mainfrom
fix/v3-patch-card-fav-idle

Conversation

@byrongamatos

Copy link
Copy Markdown
Contributor

Follow-up to #654 (found while merging the v3-library stack). #703's Song Details drawer syncs a like back to the rendered card via _patchCardFav, which hardcoded classList.toggle('text-white', !fav). On a List-View row (idle text-fb-textDim) that leaves the dim class in place, so favoriting from the drawer changes the glyph but the heart stays grey — the same bug #654 fixed for the on-card click handler, on a different code path.

Fix: read the heart's data-fav-idle and swap exactly that class, mirroring wireCards. Adds a regression assertion; v3_favorites_toggle.test.js 4/4 green.

🤖 Generated with Claude Code

…View)

_patchCardFav (the Song Details drawer's like -> card heart sync) hardcoded
`classList.toggle('text-white', !fav)`, so toggling the like from the drawer
left List-View rows' `text-fb-textDim` idle class in place — the exact
dim-heart bug #654 fixed for the on-card click handler, reintroduced on the
drawer path. Read the per-heart `data-fav-idle` and swap that class instead,
mirroring wireCards. +regression assertion in v3_favorites_toggle.test.js.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 2, 2026 12:52
@byrongamatos
byrongamatos merged commit 2e43835 into main Jul 2, 2026
0 of 3 checks passed
@byrongamatos
byrongamatos deleted the fix/v3-patch-card-fav-idle branch July 2, 2026 12: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.

The job was not started because recent GitHub Actions payments have failed or your spending limit needs to be increased.

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.

2 participants