Collapse severity and delta chips behind an expandable detail area - #219
Merged
Conversation
The severity chip row could reach seven chips on a single card, which wraps into a block on a phone while the decision is usually made on the critical and high counts alone. VulnerabilitySeverityChips gains an opt-in Compact parameter that keeps those two chips and folds medium, low and unknown into one neutral counter chip, leaving the eight existing call sites untouched by default. The vulnerability assessment card now leads with that compact row and moves the full breakdown plus the reworded scan deltas into a collapse, and the four list pages opt into the compact row while the dashboard and the base-image chain rows keep the full breakdown. Refs #209
|
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
Adds an opt-in compact severity row and moves the full breakdown plus the scan deltas into an expandable detail area on the vulnerability assessment card.
VulnerabilitySeverityChipsgains aCompactparameter (defaultfalse). In compact mode it keeps the critical and high chips and folds medium, low and unknown into a single neutral+N morechip, which is omitted when nothing is folded away.VulnerabilityAssessmentCardleads with the compact row and offers a "Show details" toggle backed by aMudCollapsethat holds the full severity row and the delta chips. The expander state is component-local.+N since last scanand−N fixed since last scan(U+2212 minus sign).RuntimeContainers,MyImages,ObservedImagesandSharedBaseImagesswitch toCompact="true"; the dashboard tiles and the base-image chain rows on the three detail pages keep the full breakdown.Why
A single image can produce
20 Critical · 96 High · 365 Medium · 682 Low · 73 Unknownfollowed by+1236 newand−1236 resolved— seven chips, most of them four-digit, on a card whose actual message is that nothing is fixable. On a 390 px viewport that row wraps into a wall, and the medium/low/unknown buckets are rarely what the decision is made on. Nothing is removed; every number stays one interaction away.Linked issues
Closes #209
Review notes
VulnerabilitySeverityChipsTestsare unaffected becauseCompactdefaults tofalse.> 0guard is what keeps them off a first-scan card.aria-expandedis bound through a string property rather than theboolfield, because Blazor drops aboolattribute value offalsefrom the markup entirely.VulnerabilitySeveritySummaryViewData.HighestSeverityremains available if a named single-chip fallback is wanted there later.docs/ui-concept/README.mdis still worth doing.Follow-up work
None