Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: show provenance badge on grid view cards#151

Merged
antfu merged 2 commits intomainantfu/node-modules-inspector:mainfrom
antfu/vilnius-v1antfu/node-modules-inspector:antfu/vilnius-v1Copy head branch name to clipboard
May 7, 2026
Merged

feat: show provenance badge on grid view cards#151
antfu merged 2 commits intomainantfu/node-modules-inspector:mainfrom
antfu/vilnius-v1antfu/node-modules-inspector:antfu/vilnius-v1Copy head branch name to clipboard

Conversation

@antfu
Copy link
Copy Markdown
Owner

@antfu antfu commented May 7, 2026

Description

Closes #134 — the npm provenance badge is now visible on each card in the grid view, so users can see provenance status at a glance without opening the detail panel.

This is a rework of #135 following @antfu's review feedback: instead of embedding the badge inside PackageSpec (which would silently broadcast it to every consumer — tree, chart, graph, reports), the badge is added at the grid call site only. PackageSpec stays narrowly responsible for name/version/deprecation/vulnerability styling.

A new ProvenanceBadge.vue component is extracted from the existing inline tooltip in PackageDetails.vue and reused in both places.

Linked Issues

Fix: #134
Reworks: #135

Closes #134. Reworks #135 per review feedback: keeps the badge out of
PackageSpec and adds it at the grid call site instead. The inline tooltip
in PackageDetails is also factored into the new component.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 7, 2026

Open in StackBlitz

npm i https://pkg.pr.new/node-modules-inspector@151
npm i https://pkg.pr.new/node-modules-tools@151

commit: 0abf8b2

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@antfu antfu merged commit 30dd7e3 into main May 7, 2026
11 checks passed
@antfu antfu deleted the antfu/vilnius-v1 branch May 7, 2026 08:59
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.

Add the provenance badge on package cards of the grid view

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.