Repository navigation
feat(redesign): every screen has a real heading, in one place, from one source - #864
Merged
Merged
Conversation
…ne source
120 of the 200 screens captured by the route sweep matched no heading at
all — not `h1`, not `aria-level`, not `role="heading"`. They were not
blank; they showed a visible title set as styled `Text`, which reaches
neither the accessibility tree nor a screen reader's heading navigation.
Of the 39 that did have one, the title started in 22 distinct positions
on desktop and 24 on mobile.
`DashboardPage`'s `pageTitle` only ever set the browser tab. The four
layouts now render a `ScreenHeader` and take the title from the route's
own `titleKey`, so a screen gets a heading without remembering to draw
one — and the nav label and the page title are the same string by
construction, which is the drift the prototype's audit called out ("Find
talent" opening a page titled "Worker search").
`OfficePageLayout` swaps its bare `<H2>` for the same component, with the
create button in the actions slot: page-level primary actions live at
header right, not inside the filter bar. Notifications was the one screen
with no header treatment at all; its hand-rolled 20px bold title is gone
and its Settings control moves to that same slot.
The first-run rule, from the prototype's second audit: a screen opens
expanded, and collapsing the tip is a choice it remembers per screen.
`useScreenHeaderCollapse` holds that; an unreadable store means expanded,
which is the first-visit answer anyway.
Measured after, at 1440:
/communities Communities (332,32)
/jobs/saved Saved Jobs (332,32)
/dashboard/notifications Notifications (332,32)
/office/cms/jobs Jobs (314,120)
/profile Profile (316,6)
/assessments Assessments (316,6)
22 positions down to three — one per layout. Collapsing those three into
one is #851, which is what that issue is for; the gutters and vertical
rhythm differ between the layouts, not the header.
Kickers and tips are wired through but no screen supplies copy yet: that
is per-screen writing and lands with each screen in releases 2 and 3.
`PageHeader` is untouched — despite #814's description it is a search and
filter toolbar, not a title header, so it belongs to #815.
Refs #814, #860
Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Sep 21, 2026
thinkclay
added a commit
that referenced
this pull request
Sep 22, 2026
The app drew a stat four ways: the CCPA dashboard's local `MetricCard` (seven bordered, tinted boxes), analytics' `KpiCard` (a bordered card with a 12px label and a 28px figure), VisibilityScreen's three more cards, and the shared `MetricBlock`/`MetricRow` that #621 added and almost nothing used. The prototype's audit named it twice — "metric labels change position" and "four ways to draw a stat block". The rule, from #817: a hairline band for a page's own metrics, a card grid only for the public transparency pages, and the tinted callout reserved for "the other side sees this". These three surfaces are a page's own metrics, so they become bands. - `office-ccpa-dashboard`: the local `MetricCard` is deleted and its seven call sites become one `MetricRow`. Tone is now stated rather than inferred from a colour prop — a rising overdue count is not good news, and `MetricCard` had each caller pick a hex for that itself. - `analytics/KpiCard`: rebuilt on `MetricBlock`. The sparkline survives as an adornment in the delta line rather than a second column, so the label-figure-delta order holds whether or not a metric has one. - `VisibilityScreen`: three summary cards become a band; the two remaining `fontSize: 28` figure literals go with them. `MetricWidget` in packages/ui needed no work: it is already commented out of the index and has no callers. Left: the four `fontSize: 22` in the analytics screens are page titles, not figures. They are duplicates of the heading the layout renders in #864 and should be deleted with that work, not here. Verified: typecheck and 1175/1175 clean; `/dashboard/analytics` and `/dashboard/analytics/visibility` render with no sideways scroll at 1440 or 390. The bands themselves need data to see — the seeded account has no analytics history, so both screens show their empty state. Refs #817 Co-authored-by: Claude Opus 5 <[email protected]>
thinkclay
added a commit
that referenced
this pull request
Sep 22, 2026
* fix(mobile): five Office routes stop scrolling sideways on a phone
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]>
* feat(redesign): the last two screens without a heading get one
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]>
---------
Co-authored-by: Claude Opus 5 <[email protected]>
This was referenced Sep 22, 2026
Closed
9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #814, and closes most of #860. Release 1, epic #847.
The problem, measured
The route sweep (#852) queried every rendered page for
h1, [aria-level], [role="heading"]. 120 of 200 captures matched nothing. Those screens are not blank — they show a visible title set as styledText, which reaches neither the accessibility tree nor a screen reader's heading navigation. Of the 39 captures that did have a heading, the title started in 22 distinct positions on desktop and 24 on mobile.DashboardPage'spageTitleturned out to only ever set the browser tab title. Nothing rendered it.The change
The four layouts render a
ScreenHeaderand take the title from the route's owntitleKey:DashboardLayout/DashboardPage— the ~60 screens under dashboard, jobs, communities, employersOfficePageLayout— swaps its bare<H2>for the same component, with the create button in the actions slotProfileLayout,AssessmentsLayout— had no title at allA screen now gets a heading without remembering to draw one, and the nav label and the page title are the same string by construction — the drift the prototype's audit named ("Find talent" opening a page titled "Worker search") can no longer happen.
Notifications was the one screen with no header treatment at all. Its hand-rolled
fontSize: 20, fontWeight: '700'title is gone and its Settings control moves to the header's actions slot, because page-level primary actions live at header right rather than in a row of their own.The first-run rule, from the prototype's second audit: a screen opens expanded, and collapsing the tip is a choice it remembers per screen.
useScreenHeaderCollapseholds that; an unreadable store means expanded, which is the first-visit answer anyway.Verified in the browser
Signed in as the office user against the worktree dev server, reading the rendered heading's
getBoundingClientRect:/communities/jobs/saved/dashboard/notifications/office/cms/jobs/profile/assessments22 positions down to three — one per layout. Collapsing those three into one is #851: the gutters and vertical rhythm differ between the layouts, not the header. The stored collapse key survives a reload.
nx run scf-core:test1175/1175,scf-core:typecheckand the app'stsc --noEmitclean,pnpm prepushclean.Deliberately not here
PageHeaderis untouched. Despite feat(redesign): ScreenHeader on every top-level screen, and one first-run rule #814's description it is a search and filter toolbar, not a title header — it has no title in it at all. It belongs to feat(redesign): ListToolbar on the worker-side list screens, one search-row grammar #815 (ListToolbar), and I have corrected both issues./office/storageand friends) render no layout at all, so they still have no heading. feat(redesign): ListToolbar on the Office and admin list screens #816 touches them.🤖 Generated with Claude Code