feat(pagespeed): render audit sub-group headers in diagnostics

Group audits within each category by sub-group (e.g., "Names and
Labels", "Contrast") with small uppercase headers, matching the
pagespeed.web.dev layout.
This commit is contained in:
Usman Baig
2026-03-22 22:03:13 +01:00
parent a0173636d4
commit 98429f82f5
2 changed files with 49 additions and 3 deletions

View File

@@ -21,6 +21,8 @@ export interface AuditSummary {
savings_ms?: number
category: 'opportunity' | 'diagnostic' | 'passed'
group?: string // "performance", "accessibility", "best-practices", "seo"
sub_group?: string // "a11y-names-labels", "a11y-contrast", etc.
sub_group_title?: string // "Names and Labels", "Contrast", etc.
details?: AuditDetailItem[]
}