refactor(ui): redesign compliance page layout and components#10767
Merged
Conversation
- Horizontal ThreatScore card with always-visible pillar breakdown and ActionDropdown - Client-side search for compliance frameworks via ComplianceOverviewGrid - Compact scan selector Badge trigger, full info kept in dropdown items - Responsive compliance filters: full-width on mobile, inline on sm+ - Download-started toast for CSV/PDF exports in downloadCompliance helpers - Enhanced compliance cards: truncated title with Tooltip and mobile-first buttons - Replace HeroUI Progress with shadcn Progress (radix-ui) - Alert-based empty/error states replacing ComplianceOverviewPanel wrappers - Add optional width field to FilterOption type (consumed by ComplianceHeader)
Contributor
|
✅ Conflict Markers Resolved All conflict markers have been successfully resolved in this pull request. |
75db3f0 to
9b42fb7
Compare
Contributor
|
✅ All necessary |
7 tasks
Contributor
🔒 Container Security ScanImage: ✅ No Vulnerabilities DetectedThe container image passed all security checks. No known CVEs were found.📋 Resources:
|
Contributor
pfe-nazaries
left a comment
There was a problem hiding this comment.
Inline review comments on the compliance UI refactor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Split from #10734 — this PR contains the Compliance UI refactor; the fixes for muted findings and filter/selector UX remain in #10734 as a backport.
Redesigns the Compliance page layout, migrates the Progress component from HeroUI to shadcn, adds a horizontal ThreatScore card with always-visible pillar breakdown, client-side search for compliance frameworks, a compact scan selector trigger, and improved download UX.
Description
<Progress>, backed by@radix-ui/react-progresswith semantic design tokens (bg-bg-pass,bg-bg-fail,bg-bg-warning)ActionDropdown) → compliance grid with client-side searchComplianceOverviewGridclient component with controlledDataTableSearch, since the backend does not support compliance search filteringComplianceScanInfowith aBadgeshowingScan: <name>; full info kept in dropdown itemsw-full), inline layout atsm:breakpointComplianceDownloadContainerwith dropdown/icon-only modesComplianceOverviewPanelwrapperswidthtoFilterOption(consumed byComplianceHeader) — note: same 1-line type addition also lives in fix(ui): exclude muted findings and polish filter selectors #10734 so the branch compiles standalone; the hunk is identical and resolves cleanly on rebaseSteps to review
ui/components/compliance/compliance-header/scan-selector.tsx: trigger showsScan:label +Badgewith scan name; dropdown items still render fullComplianceScanInfoui/components/compliance/compliance-header/compliance-filters.tsxui/lib/helper.tsdownloadComplianceCsvanddownloadComplianceReportPdfboth calltoast()before the server actionui/app/(prowler)/compliance/page.tsxfor the 3-row layout andAlertempty statesui/components/compliance/compliance-overview-grid.tsxui/components/compliance/threatscore-badge.tsxui/components/compliance/compliance-card.tsxcompliance-download-container.tsxui/components/compliance/andui/app/(prowler)/compliance/page.test.tsxui/CHANGELOG.mdentry under1.25.0Checklist
UI
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.