[x] I used gofmt for formatting the code before submitting the pull request.
Summary:
This PR separates the logic for generating markdown related to modules.
Details:
The module display is now divided into two subsections:
Modules with scan results (currently, this applies only to Docker images).
Modules without scan results (e.g., an npm module that is packaged into a tar file and then deleted, which we currently cannot scan easily with a JF command).
Introduced refactoring to improve code maintainability for the future.
Made minor adjustments to titles and UI elements for a better user experience.
Before - Npm modules is displayed on a table
After - Generic module is displayed without table:
[![👍 Frogbot scanned this pull request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[x] I used gofmt for formatting the code before submitting the pull request.
Summary:
This PR separates the logic for generating markdown related to modules.
Details:
The module display is now divided into two subsections:
Modules with scan results (currently, this applies only to Docker images). Modules without scan results (e.g., an npm module that is packaged into a tar file and then deleted, which we currently cannot scan easily with a JF command). Introduced refactoring to improve code maintainability for the future.
Made minor adjustments to titles and UI elements for a better user experience.
Before - Npm modules is displayed on a table
After - Generic module is displayed without table: