Skip to content

feat(redesign): the last two screens without a heading get one - #876

Merged
thinkclay merged 3 commits into
mainfrom
redesign/r1-860-bare-headings
Sep 22, 2026
Merged

thinkclay merged 3 commits into
mainfrom
redesign/r1-860-bare-headings

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Closes #860. Release 1, epic #847. Replaces #875, which GitHub auto-closed when its base branch fix/858-table-stack was deleted on merging #872; the branch and its history are unchanged, now rebased onto main.

What was left

The route sweep found 120 of 200 captures with no heading in the accessibility tree. #864 closed almost all of it by moving the title into the four layouts, and #873 reached the Office lists through OfficePageLayout. These two were the remainder: they render no layout at all — the Office navigator's screenLayout only wraps them in a scroller — and each drew its own title as a plain <Text> inside a space-between Row.

Both take ScreenHeader instead, with the description as the tip and Refresh in the actions slot.

Note on the merge with #872

#872 gave those same title Rows flex={1} minWidth={0} to stop them overflowing a phone. ScreenHeader replaces the Row entirely and has no such problem, so that fix retires with the markup it fixed — the conflict resolves in favour of the header, not against #872's reasoning. The other five screens #872 fixed are untouched and keep theirs.

Verified

Route Heading 1440 390
/office/storage "Storage Analytics" ✅ ✅
/office/violations "Anti-Circumvention Violation Reports" ✅ ✅

No horizontal scroll at either width. nx run scf-core:test 1175/1175, typecheck and pnpm prepush clean.

With this, every screen the sweep reaches has a real heading, except /dashboard (deliberately opted out — the profile hero carries the name) and four mid-flow wizard steps that get theirs with #830 and #832.

🤖 Generated with Claude Code

thinkclay and others added 3 commits September 21, 2026 18:30
The issue blamed the web Table's 150px column floor. That was wrong, and
measuring said so: `stackBelow` already defaults to 768, so the Table
stacks into cards at 390 and was never the overflow. Walking the DOM for
elements wider than the viewport found three unrelated causes, none of
them the table.

**A text block beside a button, with nothing allowed to shrink.**
`<Row justify="space-between">` holding a bare `<Stack>` of title and
description next to a Refresh button. React Native defaults `flexShrink`
to 0, unlike the web, so the text keeps its content width and the row
pushes past the screen — 460px on Payment Analytics, 412 on Violation
Reports. `flex={1} minWidth={0}` on the text side fixes it, which is the
same treatment `BlockedUsersSection.tsx:54` already uses. Six screens
carried the pattern; all six are fixed, including the three that were
not yet overflowing but would at a longer title.

**Six status filters on one line.** `/office/oauth-apps` laid them in a
`nowrap` Row. They wrap now: a filter scrolled out of frame is one the
user does not know exists — the same call the Tabs strip made.

**Three form fields side by side.** `/office/cms/projects/create` put
Status, Start date and End date in one Row of `flex={1}` children, and
the same `flexShrink: 0` default kept them at content width. They wrap,
with a 200px floor each.

Measured at 390, before → after:

  /office/payments              571 → 390
  /office/violations            524 → 390
  /office/transactions          522 → 390
  /office/cms/projects/create   505 → 390
  /office/oauth-apps            491 → 390

A 94-capture sweep of every `/office` and `/employers` route at 390
reports zero horizontal scroll.

Closes #858

Co-Authored-By: Claude Opus 5 <[email protected]>
The route sweep found 120 of 200 captures with no heading in the
accessibility tree. #864 closed almost all of it by moving the title into
the four layouts, and #873 reached the Office lists through
OfficePageLayout. These two were left: they render no layout at all — the
Office navigator's screenLayout only wraps them in a scroller — and each
drew its own title as a plain `<Text>` inside a space-between Row.

Both take `ScreenHeader` instead, with the description as the tip and
Refresh in the actions slot, so a page-level action sits at header right
like everywhere else.

Measured, signed in:

  /office/storage      "Storage Analytics"                    heading found
  /office/violations   "Anti-Circumvention Violation Reports" heading found

at 1440 and 390, no horizontal scroll at either. They sit at x=308/8
rather than the app's 332/16 because this branch is off main and does not
carry the screen rhythm; #865 moves them onto the shared gutter along
with every other Office screen.

Closes #860

Co-Authored-By: Claude Opus 5 <[email protected]>
…headings

# Conflicts:
#	packages/scf-core/features/office/legal/OfficeViolationReports.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(a11y): 120 of 200 captured screens have no programmatic page heading

1 participant