cli icon indicating copy to clipboard operation
cli copied to clipboard

Allow to customize the theme for report export

Open fraxken opened this issue 1 year ago • 4 comments

When exporting a report (home > generate report) it could be cool to be able to select the theme by adding a new checkbox or something like that (light by default or dark).

You need to provide the data to the API and update the http endpoint here: https://github.com/NodeSecure/cli/blob/master/src/http-server/endpoints/report.js

fraxken avatar Mar 15 '24 22:03 fraxken

hey @fraxken , can you please elaborate this more?

ankiiisharma avatar Mar 16 '24 02:03 ankiiisharma

@ankiiisharma The report (https://github.com/NodeSecure/report) project we use to generate the report can take a light or dark theme.

Current static config use the light one by default https://github.com/NodeSecure/cli/blob/537e9987f4b3dc2c8ae7782cc8808c618dce1a41/src/http-server/endpoints/report.js#L14

In the Web UI we want to add an option to choose between light or dark theme image

This popup is generated when you click "generate report" in the home view image

fraxken avatar Mar 16 '24 12:03 fraxken

@fraxken so you want a toggle there so that user can switch their theme. Am i right?

ankiiisharma avatar Mar 16 '24 12:03 ankiiisharma

Yes (since we only have two right now no need to go with something complicated). A boolean is enough.

fraxken avatar Mar 16 '24 12:03 fraxken