feat(detail): move religious character into header details + mobile reveal #83

Merged
tudor merged 1 commits from feat/detail-header-details-reveal into main 2026-07-24 12:15:14 +00:00
Owner

Follow-up to the GIAS detail-fields PR (already merged).

Changes

  • Religious character moved out of the identity chips into the labelled header details, next to County / Constituency: Religious character: <denomination> ("None" for the Does not apply / None values).
  • Mobile/tablet (≤768px): the header-details block — previously hidden outright on the primary view and merely stacked on the secondary view — is now collapsed behind a "Show all details ▾" toggle that reveals the full block (headteacher, website, pupils, trust, phone, religious character, county, constituency) and flips to "Hide details ▴". Desktop is unchanged (details always shown, toggle hidden).
  • Applied to both the primary and secondary detail views for parity.

Verification

  • Frontend tsc --noEmit: clean
  • Frontend jest: 112/112 pass
  • E2E: added a mobile-viewport test asserting the details start hidden, the toggle is visible, and clicking reveals them (flips to "Hide details"). Specs compile via playwright test --list; run against staging in CI.

🤖 Generated with Claude Code

Follow-up to the GIAS detail-fields PR (already merged). ### Changes - **Religious character** moved out of the identity chips into the labelled header details, next to County / Constituency: `Religious character: <denomination>` ("None" for the *Does not apply* / *None* values). - **Mobile/tablet (≤768px):** the header-details block — previously hidden outright on the primary view and merely stacked on the secondary view — is now collapsed behind a **"Show all details ▾"** toggle that reveals the full block (headteacher, website, pupils, trust, phone, religious character, county, constituency) and flips to **"Hide details ▴"**. Desktop is unchanged (details always shown, toggle hidden). - Applied to **both** the primary and secondary detail views for parity. ### Verification - Frontend `tsc --noEmit`: clean - Frontend jest: 112/112 pass - E2E: added a mobile-viewport test asserting the details start hidden, the toggle is visible, and clicking reveals them (flips to "Hide details"). Specs compile via `playwright test --list`; run against staging in CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
tudor added 1 commit 2026-07-24 11:24:49 +00:00
feat(detail): move religious character into header details + mobile reveal
PR Checks / Frontend Typecheck + Tests (pull_request) Successful in 1m1s
PR Checks / Backend Smoke (pull_request) Successful in 7s
PR Checks / Build Backend (no push) (pull_request) Successful in 10s
PR Checks / Build Frontend (no push) (pull_request) Successful in 47s
PR Checks / Build Pipeline (no push) (pull_request) Successful in 10s
PR Checks / AI Code Review (Claude) (pull_request) Successful in 52s
96d5fcf5b0
Religious character now sits with the other labelled header details (near
County / Constituency) as "Religious character: <denomination>" ("None" for
Does not apply / None), instead of as an identity chip.

On mobile/tablet (≤768px) the header details block was hidden outright; it's
now collapsed behind a "Show all details" toggle that reveals the full block
(headteacher, website, pupils, trust, phone, religious character, county,
constituency). Applied to both the primary and secondary detail views for
parity. Extends the e2e journey with the mobile toggle behaviour.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

🤖 AI Code Review (Claude Code)

This PR adds a mobile/tablet 'Show all details' toggle that collapses secondary header info (headteacher, contact, trust, area) behind a disclosure button, and relocates the religious character badge from the always-visible meta row into this collapsible details block for both SchoolDetailView and SecondarySchoolDetailView. The implementation is consistent across both components (matching CSS override order, correct aria-expanded/aria-controls wiring, no SSR/hydration issues), and the two view components are rendered mutually exclusively so the duplicated DOM id is not a practical conflict.

🟡 Minor

  • e2e/tests/journeys.spec.ts: The new e2e test only exercises the toggle on SchoolDetailView (primary schools); SecondarySchoolDetailView got the identical feature but has no corresponding test, leaving a coverage gap for that view.
## 🤖 AI Code Review (Claude Code) This PR adds a mobile/tablet 'Show all details' toggle that collapses secondary header info (headteacher, contact, trust, area) behind a disclosure button, and relocates the religious character badge from the always-visible meta row into this collapsible details block for both SchoolDetailView and SecondarySchoolDetailView. The implementation is consistent across both components (matching CSS override order, correct aria-expanded/aria-controls wiring, no SSR/hydration issues), and the two view components are rendered mutually exclusively so the duplicated DOM id is not a practical conflict. ### 🟡 Minor - **e2e/tests/journeys.spec.ts**: The new e2e test only exercises the toggle on SchoolDetailView (primary schools); SecondarySchoolDetailView got the identical feature but has no corresponding test, leaving a coverage gap for that view.
tudor merged commit cab7b4fe91 into main 2026-07-24 12:15:14 +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#83