fix(detail): label the phase of all-through admissions figures (Batch F review fix) #69

Merged
tudor merged 1 commits from fix/detail-allthrough-admissions-phase into main 2026-07-20 16:18:44 +00:00
Owner

Batch F — final Ofsted/education-expert review of the school detail page (primary, secondary, all-through; desktop + mobile), verified against source API payloads.

Verdict: fit for production. No must-fixes.

Verified correct: all three Ofsted regimes (report card / ungraded post-Sept-2024 / carried-forward), England-average anchoring on every delta, gap-honest KS2 and KS4 trend charts, all-through dual-phase rendering, plain-English Progress-8 absence, and the 390px mobile layout.

Two changes in this PR

  1. All-through admissions labelling (review should-fix): an all-through school's Admissions block shows a single entry point — Hessle's is the Year 7 secondary intake (admissions.school_phase="Secondary") — but was titled just "Admissions". Added a phase subtitle for all-through schools. Pure-primary/secondary unchanged.
  2. e2e fix: the Batch E all-through journey (already on main via #68) asserted #results getByText('Attainment 8'), which collides with hidden MetricTooltip labels and failed the staging gate. Now asserts the unique visible sub-headings ("Primary — KS2 SATs" / "Secondary — GCSEs"). Merging this greens up main's staging gate.

tsc --noEmit clean; npm test 105/105; e2e 17/17 against staging.

🤖 Generated with Claude Code

Batch F — final Ofsted/education-expert review of the school detail page (primary, secondary, all-through; desktop + mobile), verified against source API payloads. ### Verdict: fit for production. No must-fixes. **Verified correct:** all three Ofsted regimes (report card / ungraded post-Sept-2024 / carried-forward), England-average anchoring on every delta, gap-honest KS2 **and** KS4 trend charts, all-through dual-phase rendering, plain-English Progress-8 absence, and the 390px mobile layout. ### Two changes in this PR 1. **All-through admissions labelling (review should-fix):** an all-through school's Admissions block shows a single entry point — Hessle's is the **Year 7 secondary** intake (`admissions.school_phase="Secondary"`) — but was titled just "Admissions". Added a phase subtitle for all-through schools. Pure-primary/secondary unchanged. 2. **e2e fix:** the Batch E all-through journey (already on `main` via #68) asserted `#results getByText('Attainment 8')`, which collides with hidden MetricTooltip labels and failed the staging gate. Now asserts the unique visible sub-headings ("Primary — KS2 SATs" / "Secondary — GCSEs"). **Merging this greens up `main`'s staging gate.** `tsc --noEmit` clean; `npm test` 105/105; e2e 17/17 against staging. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
tudor added 1 commit 2026-07-20 16:13:56 +00:00
fix(detail): label which phase all-through admissions figures cover (Batch F)
PR Checks / Frontend Typecheck + Tests (pull_request) Successful in 1m9s
PR Checks / Backend Smoke (pull_request) Successful in 7s
PR Checks / Build Backend (no push) (pull_request) Successful in 11s
PR Checks / Build Frontend (no push) (pull_request) Successful in 48s
PR Checks / Build Pipeline (no push) (pull_request) Successful in 10s
PR Checks / AI Code Review (Claude) (pull_request) Successful in 43s
733faefb98
Final Ofsted/education-expert review of the detail page (Batch F) found one
clarity gap: on an all-through school the Admissions block shows a single
entry point's figures (Hessle's are the Year 7 secondary intake —
admissions.school_phase = "Secondary") but is titled just "Admissions", so a
parent interested in the reception/primary intake could read the Year 7
numbers as the whole school.

Add a phase subtitle for all-through schools ("These figures are for secondary
entry (Year 7)." / "...primary entry (Reception)."). Pure-primary and
pure-secondary pages are unambiguous and unchanged.

Rest of the review verified correct against source payloads: all three Ofsted
regimes (report card / ungraded post-Sept-2024 / carried-forward), England-
average anchoring, gap-honest trend charts (KS2 + KS4), all-through dual-phase
rendering, and the mobile layout.

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

🤖 AI Code Review (Claude Code)

Adds a one-line clarifying subtitle to the admissions section for all-through schools, stating which entry phase (Reception vs Year 7) the displayed admissions figures cover. The logic correctly uses the existing 'Primary'/'Secondary' school_phase values from SchoolAdmissions, renders as plain text (no injection risk), and reuses an existing CSS class already defined in the stylesheet.

No issues found.

## 🤖 AI Code Review (Claude Code) Adds a one-line clarifying subtitle to the admissions section for all-through schools, stating which entry phase (Reception vs Year 7) the displayed admissions figures cover. The logic correctly uses the existing 'Primary'/'Secondary' school_phase values from SchoolAdmissions, renders as plain text (no injection risk), and reuses an existing CSS class already defined in the stylesheet. ✅ No issues found.
tudor merged commit 4e316b4e38 into main 2026-07-20 16:18:44 +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#69