Skip to content

feat(ui): add /badge/compare/ endpoints#2641

Draft
OrbisK wants to merge 3 commits intonpmx-dev:mainfrom
OrbisK:feat/compare-badges
Draft

feat(ui): add /badge/compare/ endpoints#2641
OrbisK wants to merge 3 commits intonpmx-dev:mainfrom
OrbisK:feat/compare-badges

Conversation

@OrbisK
Copy link
Copy Markdown
Contributor

@OrbisK OrbisK commented Apr 27, 2026

🔗 Linked issue

NA

🧭 Context

For the npmx Renovate preset, I wanted to add some e18e related badges. I think it would be useful to be able to identify e18e changes when reviewing a Renovate PR.

📚 Description

This PR adds /badge/compare/ endpoints. One for single package compare and one for cross package compare.

single package compare:

image image

cross package compare:

image image

I am not fully satisfied with the API. Perhaps it could be made a bit cleaner. Feedback welcome! (opening as draft for now)

This PR includes the changes of #2640


Disclaimer: I have used claude for docs and to extract the shared utils for compare and normal badges

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 27, 2026

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

Project Deployment Actions Updated (UTC)
docs.npmx.dev Ready Ready Preview, Comment Apr 27, 2026 11:47am
npmx.dev Ready Ready Preview, Comment Apr 27, 2026 11:47am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
npmx-lunaria Ignored Ignored Apr 27, 2026 11:47am

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 27, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • release

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d1399e9b-961f-4598-8716-452a64671b83

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ 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.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 27, 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!

@OrbisK
Copy link
Copy Markdown
Contributor Author

OrbisK commented Apr 27, 2026

@43081j what do you think from an e18e perspective?

@serhalp any thoughts on the compare stuff?

@graphieros graphieros added the needs review This PR is waiting for a review from a maintainer label May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review This PR is waiting for a review from a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants