-
Notifications
You must be signed in to change notification settings - Fork 3
Show summary of total vulnerability count #233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty straight forward, minor suggestion, feel free to ignore
return scannerStore.content.reduce( | ||
(acc, item) => acc + item.vulnerabilityCount, | ||
0, | ||
); | ||
}); | ||
|
||
const anyContentLoadingPackages = computed<boolean>(() => { | ||
return scannerStore.content.some((content) => content.isLoadingPackages); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar minor suggestion as the other PR, might be good to have operations to scannerStore.content.*
to be getters or methods within the same scannerStore
, e.g: scannerStore.totalVulnerabilities
and scannerStore.isLoadingPackages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah these can pretty easily be moved over to scannerStore
good call 👍
This PR introduces a new line on the first package of the Package Vulnerability Scanner showing the total number of content items and the total number of vulnerabilities across them.
Fixes #208
While the package data is loading it uses a
SkeletonText
component to show a shimmering box to imply that data is still loading in. This can be seen in the preview below.Preview
CleanShot.2025-07-09.at.13.57.30.mp4
These changes have been published to our internal Dogfood server here.