From 87442788d4b4f13876c3ba04a378a8bf9a179419 Mon Sep 17 00:00:00 2001 From: Tudor Sitaru Date: Tue, 2 Jun 2026 15:16:31 +0100 Subject: [PATCH] fix(chart): name the metric in the primary trend summary The "Peaked at X%" hint didn't say which metric it referenced, leaving parents to guess. Both branches now lead with "Reading, Writing & Maths". Co-Authored-By: Claude Opus 4.7 --- nextjs-app/components/PerformanceChart.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nextjs-app/components/PerformanceChart.tsx b/nextjs-app/components/PerformanceChart.tsx index 9870ec9..b4ec39f 100644 --- a/nextjs-app/components/PerformanceChart.tsx +++ b/nextjs-app/components/PerformanceChart.tsx @@ -110,9 +110,9 @@ export function PerformanceChart({ const delta = latest.rwm_expected_pct! - prev.rwm_expected_pct!; const arrow = delta > 1 ? '↑' : delta < -1 ? '↓' : '→'; if (best.year === latest.year) { - return `${arrow} Best year on record — ${latestPct}% Reading, Writing & Maths`; + return `${arrow} Best year on record — ${latestPct}% met the expected standard in Reading, Writing & Maths`; } - return `${arrow} Peaked at ${bestPct}% (${formatAcademicYear(best.year)}), currently ${latestPct}%`; + return `${arrow} Reading, Writing & Maths peaked at ${bestPct}% (${formatAcademicYear(best.year)}), currently ${latestPct}%`; })(); const hasCovidGap = isSecondary