Skip to content

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

Merged
jeremylong merged 3 commits intodependency-check:mainfrom
Marcono1234:html-report-suppressed-link
Mar 31, 2023
Merged

feat: Add link to suppressed vulnerabilities header in HTML report#5620
jeremylong merged 3 commits intodependency-check:mainfrom
Marcono1234:html-report-suppressed-link

Conversation

@Marcono1234
Copy link
Copy Markdown
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