From cbb7445d74b57177c152aa6bf26ab3a4d2329fe9 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Mon, 23 Mar 2026 14:55:05 +0100 Subject: [PATCH] feat(pagespeed): click score gauges to scroll to diagnostics category --- app/sites/[id]/pagespeed/page.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/app/sites/[id]/pagespeed/page.tsx b/app/sites/[id]/pagespeed/page.tsx index 6ff082c..0e9354b 100644 --- a/app/sites/[id]/pagespeed/page.tsx +++ b/app/sites/[id]/pagespeed/page.tsx @@ -416,10 +416,16 @@ export default function PageSpeedPage() { {/* Section 1 — Score Overview: 4 equal gauges + screenshot */}
- {/* 4 equal gauges */} + {/* 4 equal gauges — click to scroll to diagnostics */}
- {allScores.map(({ label, score }) => ( - + {allScores.map(({ key, label, score }) => ( + ))}
@@ -586,7 +592,7 @@ export default function PageSpeedPage() { const groupManual = manualByGroup[group.key] ?? [] if (groupAudits.length === 0 && groupPassed.length === 0 && groupManual.length === 0) return null return ( -
+
{/* Category header with gauge */}