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
This pull request wraps the package page like control in TooltipApp, moving the dynamic aria-label/title and heart icon class handling into the nested button. The tooltip text now toggles between localized like and unlike keys based on likesData.userHasLiked. New i18n entries (like, unlike) were added to i18n/locales/en.json, lunaria/files/en-GB.json, and lunaria/files/en-US.json. The optimistic update and fallback skeleton for likes remain unchanged.
fix(ui): align like button #926: Reworks the like-button markup in app/pages/package/[...package].vue, changing DOM nesting, icon/count placement and related attributes.
The PR description relates to the changeset by referencing issue #956 and showing before/after screenshots of the like button tooltip functionality.
Linked Issues check
✅ Passed
The PR addresses all coding requirements from issue #956 by adding missing i18n strings for like/unlike states and wrapping the like button with a tooltip component.
Out of Scope Changes check
✅ Passed
All changes directly address the linked issue requirement to add missing i18n translations and configure the like button tooltip; no unrelated modifications are present.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing touches🧪 Generate unit tests (beta)
Create PR with unit tests
Post copyable unit tests in a comment
Comment @coderabbitai help to get the list of available commands and usage tips.
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.
Fixes #956
Before:

After:
