Skip to content

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

Merged
merged 7 commits into from
Jul 10, 2025
Merged

Show summary of total vulnerability count #233

merged 7 commits into from
Jul 10, 2025

Conversation

dotNomad
Copy link
Collaborator

@dotNomad dotNomad commented Jul 9, 2025

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.

Copy link
Contributor

@marcosnav marcosnav left a 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

Comment on lines 54 to 61
return scannerStore.content.reduce(
(acc, item) => acc + item.vulnerabilityCount,
0,
);
});

const anyContentLoadingPackages = computed<boolean>(() => {
return scannerStore.content.some((content) => content.isLoadingPackages);
Copy link
Contributor

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

Copy link
Collaborator Author

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 👍

Base automatically changed from dotnomad/refactor-scanner-stores to main July 10, 2025 22:45
@dotNomad dotNomad merged commit 155d3f2 into main Jul 10, 2025
18 checks passed
@dotNomad dotNomad deleted the dotnomad/208 branch July 10, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include a summary of number of vulnerabilities across number of items
2 participants