Skip to content

feat(ui): make version colors consistent#2171

Merged
ghostdevv merged 6 commits intonpmx-dev:mainfrom
MatteoGabriele:feat/make-version-colors-consistent
Mar 21, 2026
Merged

feat(ui): make version colors consistent#2171
ghostdevv merged 6 commits intonpmx-dev:mainfrom
MatteoGabriele:feat/make-version-colors-consistent

Conversation

@MatteoGabriele
Copy link
Member

🧭 Context

The "latest" tag on the VersionSelector dropdown does not match the colors used for versions in the Package Version sidebar.

Screenshot 2026-03-20 at 15 39 38

📚 Description

Creates the badge-accent shortcut to synchronize accent colors for VersionSelector and Package Version matching.

Screenshot 2026-03-20 at 15 40 15

@vercel
Copy link

vercel bot commented Mar 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Mar 21, 2026 2:14am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Mar 21, 2026 2:14am
npmx-lunaria Ignored Ignored Mar 21, 2026 2:14am

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 20, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: fe1df75a-4f01-4f78-97e5-774c9e6df059

📥 Commits

Reviewing files that changed from the base of the PR and between 2f9fcc4 and 6fe87ee.

📒 Files selected for processing (1)
  • app/components/VersionSelector.vue

📝 Walkthrough

Walkthrough

Updated VersionSelector.vue to switch the "latest" tag class from badge-green to badge-accent in both primary and expanded tag lists. Added an UnoCSS shortcut badge-accent mapping to bg-accent/10 text-accent in uno.config.ts. Updated tests to assert the badge-accent class for the "latest" dist-tag.

Possibly related PRs

Suggested labels

front

Suggested reviewers

  • danielroe
  • alexdln
🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Description check ✅ Passed The PR description clearly explains the context and purpose of the changes - synchronising the accent colours for the 'latest' tag between VersionSelector and Package Version sidebar components.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a70d1caf-3d73-43d2-84ea-1675be41a552

📥 Commits

Reviewing files that changed from the base of the PR and between 4ad0679 and 2019184.

📒 Files selected for processing (2)
  • app/components/VersionSelector.vue
  • uno.config.ts

@codecov
Copy link

codecov bot commented Mar 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@RYGRIT
Copy link
Contributor

RYGRIT commented Mar 21, 2026

Should we use capital letters?

@ghostdevv
Copy link
Contributor

ghostdevv commented Mar 21, 2026

Should we use capital letters?

I think it's more consistent to leave it as is, but feel free to open an issue? or you can make a PR? generally I'll try to merge units of work to keep stuff moving, so it's better as a follow up if you see what I mean

@ghostdevv ghostdevv enabled auto-merge March 21, 2026 02:15
@ghostdevv ghostdevv added this pull request to the merge queue Mar 21, 2026
Merged via the queue into npmx-dev:main with commit 49aba47 Mar 21, 2026
19 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.

3 participants