From 354331646baa393157114fd1876ebd2e0e96a78e Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Sun, 22 Mar 2026 23:38:58 +0100 Subject: [PATCH] =?UTF-8?q?fix(pagespeed):=20order=20accessibility=20sub-g?= =?UTF-8?q?roups:=20names/labels=20=E2=86=92=20contrast=20=E2=86=92=20best?= =?UTF-8?q?=20practices?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/sites/[id]/pagespeed/page.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/sites/[id]/pagespeed/page.tsx b/app/sites/[id]/pagespeed/page.tsx index 2f48d21..7a7af2a 100644 --- a/app/sites/[id]/pagespeed/page.tsx +++ b/app/sites/[id]/pagespeed/page.tsx @@ -566,7 +566,14 @@ function sortBySeverity(audits: AuditSummary[]): AuditSummary[] { // * Known sub-group ordering: insights-type groups come before diagnostics-type groups const subGroupPriority: Record = { + // * Performance 'budgets': 0, 'load-opportunities': 0, 'diagnostics': 1, + // * Accessibility + 'a11y-names-labels': 0, 'a11y-contrast': 1, 'a11y-best-practices': 2, + 'a11y-color-contrast': 1, 'a11y-aria': 3, 'a11y-navigation': 4, + 'a11y-language': 5, 'a11y-audio-video': 6, 'a11y-tables-lists': 7, + // * SEO + 'seo-mobile': 0, 'seo-content': 1, 'seo-crawl': 2, } // * Group audits by sub-group within a category (e.g., "Names and Labels", "Contrast")