Skip to content
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

feat: Add link to suppressed vulnerabilities header in HTML report #5620

Merged
merged 3 commits into from
Mar 31, 2023
Merged

feat: Add link to suppressed vulnerabilities header in HTML report #5620

merged 3 commits into from
Mar 31, 2023

Conversation

Marcono1234
Copy link
Contributor

@Marcono1234 Marcono1234 commented Mar 29, 2023

Fixes Issue

none

Description of Change

Adds a link to the "Suppressed Vulnerabilities" section from the summary. This makes it easier for users to discover this section, and navigate to it, especially if there are multiple (vulnerable) dependencies listed in front of it.
Also automatically expands the section (is collapsed by default) for convenience. Due to expanding being animated the browser might not scroll exactly to the correct location, but at least the section will be visible at the lower part of the screen. (fixed in latest commit)

As side note: Maybe the UI for collapsible sections could be improved in general, for me it was not directly obvious previously that the "Suppressed Vulnerabilities" section can be expanded.

I am not sure if this is a clean enough solution and implementation, so feedback is appreciated!

Have test cases been added to cover the new functionality?

no

@boring-cyborg boring-cyborg bot added the core changes to core label Mar 29, 2023
This makes it easier to spot the link
This makes sure that the browser correctly scrolls to header when clicking
the suppressed vulnerabilities link
@jeremylong jeremylong added this to the 8.2.2 milestone Mar 31, 2023
@jeremylong jeremylong merged commit 58ca803 into dependency-check:main Mar 31, 2023
@Marcono1234 Marcono1234 deleted the html-report-suppressed-link branch March 31, 2023 17:26
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
core changes to core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants