feat: configurable provenance badge and dependency provenance donut#165
Merged
Conversation
Adds a tri-state setting (present / absent / none) so users can hide the provenance badge, keep current behavior, or flip it to surface unsigned packages with an amber warning. The package details panel now also shows a donut of the share of dependencies that are signed with provenance.
commit: |
The flatDependents snapshot still referenced node-modules-inspector@2.0.1, causing CI to fail after the v2.1.0 release bump landed in 1c69114.
…ion bar to Deps tab DisplayPackageSpec now exposes a default slot so callers can inline the provenance badge (or other badges) with the name/version parts. Grid cards and tree items use that slot, which also surfaces the badge in the dependency tree for the first time. The dependency provenance visualization moves out of the package info header and into the "Deps on" tab next to "Dependency Composition", rendered as a stacked Percentage bar (matching the ESM/CJS style) instead of a donut, and now includes the focused package alongside its dependencies. The unused DonutSegments helper is removed.
Switch the badge to inline-flex with an h-1.1em icon and accept a class prop so callers can nudge its position; tree and grid items pass a small translate to align the badge optically with the version text.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
showProvenanceBadgesetting (present/absent/none) so users can hide the provenance badge, keep the current green-check behavior, or flip it to surface unsigned packages with an amber warning icon.UiDonutSegments(multi-segment SVG donut) andUiPercentageProvenance(wrapper that counts deps and renders donut + legend).Test plan