fix(detail): 'England average' provenance labelling (Batch B) #65

Merged
tudor merged 1 commits from fix/detail-provenance-anchoring into main 2026-07-20 07:52:55 +00:00
Owner

Batch B (points 5-6): provenance labelling on the detail page.

Every national figure on the detail page was labelled "National avg". All of them come from the official-DfE national-averages marts (KS2/KS4 headlines) — verified the endpoint returns only official attainment figures (the EAL/SEN/absence national fields are null, so those hints never render). So they are England averages, and are now labelled as such, matching the compare screen's provenance convention.

The detail page has no computed-from-our-dataset benchmarks (those are compare-only), so no "state-school average (computed from our dataset)" label is needed here.

Point 6 (every number anchored with a verdict indicator) is already satisfied on the detail page via DeltaChip, which shows the +/- delta vs the England baseline with good/neutral/bad tone — so no change needed there.

Copy-only change; 105 frontend tests green.

Note: these detail-page PRs (#64 Batch A, this Batch B) branch off main and touch different regions of the two view files, so they merge independently.

🤖 Generated with Claude Code

https://claude.ai/code/session_0146VHeLAWjDVE2B5uU67jCB

Batch B (points 5-6): provenance labelling on the detail page. Every national figure on the detail page was labelled "National avg". All of them come from the official-DfE `national-averages` marts (KS2/KS4 headlines) — verified the endpoint returns only official attainment figures (the EAL/SEN/absence national fields are null, so those hints never render). So they are **England averages**, and are now labelled as such, matching the compare screen's provenance convention. The detail page has no computed-from-our-dataset benchmarks (those are compare-only), so no "state-school average (computed from our dataset)" label is needed here. Point 6 (every number anchored with a verdict indicator) is already satisfied on the detail page via `DeltaChip`, which shows the +/- delta vs the England baseline with good/neutral/bad tone — so no change needed there. Copy-only change; 105 frontend tests green. Note: these detail-page PRs (#64 Batch A, this Batch B) branch off main and touch different regions of the two view files, so they merge independently. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_0146VHeLAWjDVE2B5uU67jCB
tudor added 1 commit 2026-07-20 06:19:38 +00:00
fix(detail): label official DfE figures as 'England average' (provenance)
PR Checks / Frontend Typecheck + Tests (pull_request) Successful in 1m0s
PR Checks / Backend Smoke (pull_request) Successful in 6s
PR Checks / Build Backend (no push) (pull_request) Successful in 11s
PR Checks / Build Frontend (no push) (pull_request) Successful in 43s
PR Checks / Build Pipeline (no push) (pull_request) Successful in 10s
PR Checks / AI Code Review (Claude) (pull_request) Successful in 13s
e36125b24a
Batch B (points 5-6): the detail page called every national figure a
'National avg'. All of them come from the official-DfE national-averages
marts (KS2/KS4 headlines), so they are England averages — relabel to
match the compare screen's provenance convention ('England average' for
official figures; the detail page has no computed benchmarks, so no
'state-school average (computed)' label is needed). Point 6 (anchoring
every number) is already satisfied on the detail page via DeltaChip.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0146VHeLAWjDVE2B5uU67jCB

🤖 AI Code Review (Claude Code)

This PR renames the label 'National avg' to 'England avg' across two school detail view components for consistency with official DfE terminology. It's a purely cosmetic, mechanical string change with no logic modifications.

No issues found.

## 🤖 AI Code Review (Claude Code) This PR renames the label 'National avg' to 'England avg' across two school detail view components for consistency with official DfE terminology. It's a purely cosmetic, mechanical string change with no logic modifications. ✅ No issues found.
tudor merged commit 452ec77449 into main 2026-07-20 07:52:55 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tudor/school_compare#65