Skip to content

Conversation

@soul2zimate
Copy link
Contributor

@soul2zimate soul2zimate commented Oct 28, 2025

feat: separate Red Hat and Community profiles for HTML report

fixes: #523

The community version HTML report is like:

Screenshot 2025-10-28 at 13 34 03

Hi @ruromero, I am making this draft PR to review, of course we might choose other approach.

Copy link
Collaborator

@ruromero ruromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the right approach but let's make it more generic and move the brandingConfig to the ReportTemplate.java

@soul2zimate
Copy link
Contributor Author

@ruromero I have updated according to your comments and added the back-end general solution too. Could you review again ? thanks.

@soul2zimate soul2zimate marked this pull request as ready for review October 28, 2025 12:32
@soul2zimate soul2zimate requested a review from ruromero October 28, 2025 12:32
Copy link
Collaborator

@ruromero ruromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't added a comment in each place where Red Hat is mentioned but it should be deleted everywhere.
The use of the icon should allow any arbitrary icon and we will override it in the private project that we will deploy in the cloud.
Also don't repeat the default values each time.

Copy link
Collaborator

@ruromero ruromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all the changes. Some small remarks and suggestions.

@soul2zimate
Copy link
Contributor Author

soul2zimate commented Oct 30, 2025

I misunderstood the requirement. Now I

  • remove all RH references from my PR
  • slim the README
  • add proposed imageRecommendation to brandingConfig and update HtmlReportTest
  • fix a test issue about @ConfigMapping interface injection as Optional, it programmatically access now.

Please review again. Thanks.

Copy link
Collaborator

@ruromero ruromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realized about the imageRecommendationLink.
Also please make sure you validate all the cases and properties in your local development before merging.

  • Icon and properties customization, overrides
  • Image text and links

fix: add imageRemediationLink

fix: adapt HtmlReportTest by adding imageRecommend and imageRemediationLink to test configuration
Copy link
Collaborator

@ruromero ruromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think all the points are now addressed. Thank you

@soul2zimate
Copy link
Contributor Author

Thank you for patiently reviewing.

@soul2zimate soul2zimate merged commit a8c449e into guacsec:main Nov 4, 2025
2 checks passed
@soul2zimate soul2zimate deleted the html_report_main branch November 4, 2025 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Separate Red Hat and Community profiles for HTML report

2 participants