ROX-37387: Simplify layout of compliance wizard steps as in reports - #23217
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (10)
💤 Files with no reviewable changes (2)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe compliance scan configuration wizard is reorganized into dedicated step components within a page section. Profile selection and delivery configuration use dedicated components. The create and edit pages now use the renamed wizard section. ChangesCompliance scan configuration wizard
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Refactor Merge Risk: ⚪ Minimal · up to This change simplifies the compliance scan wizard layout and renames its step components. No new behavioral risk was found. The retained-data-on-error behavior on the edit page already existed before this PR. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #23217 +/- ##
==========================================
- Coverage 51.96% 51.93% -0.03%
==========================================
Files 2904 2908 +4
Lines 183013 183034 +21
==========================================
- Hits 95104 95066 -38
- Misses 79591 79628 +37
- Partials 8318 8340 +22
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🚀 Build Images ReadyImages are ready for commit 145d7ee. To use with deploy scripts: export MAIN_IMAGE_TAG=5.1.x-144-g145d7eeb52 |
dvail
left a comment
There was a problem hiding this comment.
Review nit: I think if the file rename ProfileSelection => ScanConfigReviewStep is done alone in a single commit, and then the layout refactor done in a second commit, that GitHub will show the diff as a rename+change instead of a delete/new. At least for the PR review, the distinction is probably lost once the branch is squash merged.
Although I don't think a subheader pattern is unreasonable, in this case
Subheading sentence restates what is obvious from a semantic heading.
certainly applies for 90% of what was removed.
Bonus points for more vertical space allowed in the business-end of the Wizard, which is one of the main downsides of using that component anywhere (Policies like you noted being the biggest sufferer of this.)
Super suggestion. I will keep that in mind. |
Description
Review: Hide space because of indentation changes
Problem
Cost and benefit are unfavorable for design embellishment:
Titleelement of wizard stepDividerelement to separate heading and subheading from formOne side of coin:
classNameprops which require changes at evern PatternFly upgrade.Other side of coin:
Analysis
Compare layout of components in compliance Wizard folder to vulnerability reports Wizard folders.
Compare files names of steps in compliance Wizard folder to views in components folder.
Probably from design churn and especially inconsistency between step label and heading
Belated discovery that
typeprop ofPageSectionelement helps layout (see Residue).type="breadcrumb"whenBreadcrumbis childtypewhenTitleis childtype="wizard"whenWizardis descendantSolution
Delete elements in excess of the following pattern:
Following the precedent of components folder, rename files in wizard folder.
ScanConfigWhateverStep.tsx corresponds to ScanConfigWhateverView.tsx
Except postpone ScanConfigParameters.tsx to reduce merge conflicts with $22990
Rename ScanConfigWizardPageSection.tsx file.
PageSectionand itsWizardchild together in same file.Residue
typeproperty ofPageSectionelement.PageSectionelement.PatternFly examples have such limited step content that it is hard to decide what they intend.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
npm run tscin ui/apps/platform folder.npm run lintin ui/apps/platform folder.npm run startin ui/apps/platform folder with staging demo as central.Manual testing
Visit Visit /main/compliance/schedules and click a schedule, click Actions click Edit scan schedule
Parameters step with presence of subheading and divider before changes:

Parameters step after changes:

Clusters step with presence of subheading and divider before changes:

Clusters step after changes:

Profiles step with presence of subheading and divider before changes:

Profiles step after changes:

Delivery step with presence of subheading and divider before changes:

Delivery step after changes:

Review step with presence of subheading and divider before changes:

Review step after changes:
