ROX-33741: Add component for filter in image vulnerability report#19993
ROX-33741: Add component for filter in image vulnerability report#19993pedrottimark wants to merge 4 commits intomasterfrom
Conversation
🚀 Build Images ReadyImages are ready for commit 1329c77. To use with deploy scripts: export MAIN_IMAGE_TAG=4.11.x-654-g1329c778cb |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #19993 +/- ##
=======================================
Coverage 49.61% 49.61%
=======================================
Files 2765 2765
Lines 208596 208643 +47
=======================================
+ Hits 103493 103520 +27
- Misses 97444 97467 +23
+ Partials 7659 7656 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…criptionListGroups
…or view-based report
|
@pedrottimark: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
gke-ui-e2e-tests passes and 3 non-required tests might have failed because of quote problem recently reported |
Description
Review: Hide space in case refactoring becomes clearer.
Objective
Provide equivalent filter for schduled reports as view-based reports
Analysis
ViewBasedReportJobDetails.tsx file renders
CompoundSearchFilterLabelselement for consistency with results page.CompoundSearchFilterLabels.tsx file computes
labelGroupDescriptionsarray that is also relevant for:Solution part 1
Edit src/Components/CompoundSearchFilter/utils/utils.tsx file.
getCompoundSearchFilterLabelDescriptionsfunction.Add src/Components/CompoundSearchFilter/components/CompoundSearchFilterDescriptionListGroups.tsx file.
Solution part 2
Replace
LabelGroupwithFlexcolumn layout for attribute values.Simplify headings and description lists in ViewBasedReportJobDetails.tsx file.
Replace placeholder
CompoundSearchFilterLabelswithCompoundSearchFilterDescriptionListGroupselement.Replace temporary label with Area of concern and reorder attributes for view-based report in searchConfig.ts file.
Residue
Investigate more consistent layout for view-based report job details.
Investigate pro and con of modal versus page.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
npm run tscin ui/apps/platform folder.npm run lint:fast-devin ui/apps/platform folder.npm run startin ui/apps/platform folder with staging demo as centralManual testing
Visit /main/vulnerabilities/platform
Select search filter criteria to see

CompoundSearchFilterLabelselement after refactor.Visit /main/vulnerabilities/reports/view-based and then click a link.
Before changes with compound search filter labels:

After changes with description list groups:
