Skip to content

Keep the organizer header's crumbs clear of Help, Account and Sign out on a phone - #1104

Merged
richshaw merged 4 commits into
mainfrom
claude/issue-978-header-crumbs-phone
Nov 25, 2026
Merged

richshaw merged 4 commits into
mainfrom
claude/issue-978-header-crumbs-phone

Conversation

@richshaw

@richshaw richshaw commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Fixes #978.
Session: https://claude.ai/code/session_016YZ9SUnLoRm6mAdeSxNnfY (first version), https://claude.ai/code/session_016YZ9SVKGAKHipCeP5JGe1n (the reworked header)

The problem

On a phone, the organizer header's crumb trail shares one row with Help, Account and Sign out. The site's name had no truncate, so it wrapped to two lines, and a long trail ran under the links ("Connected apps" over Help at 390px). On Your signups at 320px, Swedish "Ny lista" wrapped inside the New signup button.

The fix

The first version let every crumb shrink, the ones before the current page first. On a phone that removed the wrong ones. The site's name and "Settings" are links, and they shrank to nothing ("› › Conne…" at 320px, and the site's name was gone on a signup's Build tab at 390px). Meanwhile the current page, which repeats the heading just below, kept its room. On a signup's tabs and the settings pages, the site's name is the header's only link back to Your signups. The collapsed links also stayed in the tab order. The owner asked for shortened breadcrumbs on a phone instead, so:

  • Below md (768px), layout.tsx hides the crumbs (hidden md:contents). The header shows the site's name, which stays a link back to Your signups, beside Help, Account and Sign out. The page's own heading says where you are. This follows common guidance for breadcrumbs on small screens: GOV.UK keeps only the first and last item, USWDS only the parent. Here the last item is the heading, so only the first is left. md is where the signup header already switches to its phone layout. A very long site name still ends in "…".
  • From md up, the whole trail shows. In Crumb.tsx, the crumbs before the current page keep their words (shrink-0, capped at 8rem for long translations), and the site's name keeps its own (md:shrink-0, capped at 10rem). Only the current page's crumb shortens with "…". The separators don't shrink.
  • page.tsx: New signup gets shrink-0 whitespace-nowrap, so the heading beside it wraps instead.
  • No new JavaScript, no new strings, no budget change.
  • CHANGELOG entry under Unreleased › Fixed. affected-articles.mjs names no help article, and the help screenshots don't show the organizer header.

Tests

  • tests/e2e/organizer-header-layout.spec.ts covers an organizer who stores each language in CATALOG_LOCALES (createOrganizerIn). Their open signup is renamed to a 65-character title (retitleSignup) so the trail has to shorten. The spec opens New signup, account Settings, Connected apps, and a signup's Build, Responses and Settings tabs:
    • at 320 and 390px, every crumb is hidden. The site's name is visible, links to /app, is at least 24px wide (WCAG 2.2 target size), sits on one line and is clear of Help, Account and Sign out. The page has a visible h1.
    • at 768 and 1024px, the full trail is there. The site's name and earlier crumbs read in full on one line (expectOneLine). The current crumb is at least 24px wide and every item is clear of the header's links.
    • on Your signups at 320 and 390px, New signup stays on one line.
  • Ran and passed: pnpm lint, pnpm format:check, pnpm typecheck, pnpm knip, pnpm test (252 files, 3869 passed, 1 expected fail), pnpm build && pnpm budgets with CI's NEXT_PUBLIC_* values, and the new spec against the production build (18 passed).

🤖 Generated with Claude Code

https://claude.ai/code/session_016YZ9SVKGAKHipCeP5JGe1n

The site's name and every crumb can now shorten with an ellipsis, the
crumbs before the current page first, so the trail no longer runs under
Help, Account and Sign out. New signup on Your signups stays on one line.
A new e2e spec measures both at 320 and 390 px in every catalog language.

Fixes #978.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SUnLoRm6mAdeSxNnfY
@richshaw richshaw added pipeline:tophat pipeline:ux Changes what a person using OpenSignup sees or does pipeline:working A session is working on it right now and removed pipeline:working A session is working on it right now labels Nov 22, 2026 — with Claude

Copy link
Copy Markdown
Owner Author

Tophat: passed

See it: https://claude.ai/artifact/VwNPJofBGkE1bjVqwBsRTD
What changes for people: on a phone, the organizer header now stays one line high. A long crumb trail shortens with "…", earlier crumbs first, instead of wrapping the site's name or running under Help, Account and Sign out. In Swedish, "Ny lista" on Your signups stays on one line. Screens at computer width look the same as before.

Check Result What I saw
Bug on the base, 320 and 390 px, English and Swedish ✅ reproduced The site's name wraps to two lines on every page with crumbs. At 320 px, "Connected apps" spills under Help. In Swedish at 320 px, "Ny lista" is 56 px high.
PR head, same pages and widths (Your signups, New signup, Connected apps, Build) ✅ Every crumb sits on one line and none overlaps Help, Account or Sign out. "Ny lista" is 36 px high.
Desktop, 1280 px ✅ Every crumb is the same width as on the base, in both languages.
Shrunk crumbs still work (390 px) ✅ "S" (Settings) and "O.." (site name) go to the right pages. Screen readers still get the full labels, and the focus ring isn't clipped.
Console and server log ✅ No browser console errors. The only server error is the health check's worker query, because no worker was running. That isn't related to this PR.

For the owner to weigh: at 320 px, on deeper pages (Connected apps, a signup's tabs), the site's name and "Settings" shrink to nothing and only their "›" marks are left. At that width the header has no tappable way back to Your signups. At 390 px they stay as "O.." and "S" and still work. The PR description points this out, and it follows the issue's "truncate, not wrap" default. The card shows both widths.

Not checked: German in the running app. The PR's e2e spec covers every catalog language in CI.

Ran 99473b0 against 6bcf25d locally, Chromium at 1280×700, 390×700 and 320×700, made-up data. https://claude.ai/code/session_016YZ9SVKGAKHipCeP5JGe1n


Generated by Claude Code

@richshaw richshaw added pipeline:review pipeline:working A session is working on it right now and removed pipeline:tophat pipeline:working A session is working on it right now labels Nov 22, 2026 — with Claude

@richshaw richshaw left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: passed (round 1)

The fix is CSS only: every crumb gets min-w-0 truncate, crumbs before the current page and the site's name shrink at ten times its rate, separators don't shrink, and New signup gets shrink-0 whitespace-nowrap. Every crumb, SignupTitleCrumb included, goes through Crumb, so the fix reaches each trail. The new spec measures every crumb against Help, Account and Sign out, at 320 and 390px, in each catalog language.

Blocking (0)
Optional (1): at 320px on deeper pages, the site's name and "Settings" shrink to nothing, leaving bare "›" marks. The header then has no tappable way back to Your signups. This matches the issue's "truncate, not wrap" default, so it's the owner's call, not a defect.
Earlier threads: none
Checks: CI green on 99473b0 (lint-type-test, e2e, CodeQL). The tophat passed on this same SHA.

Waits for the owner because it's UX (the organizer header on a phone). Card: https://claude.ai/artifact/VwNPJofBGkE1bjVqwBsRTD. No risk from the code beyond the screens.

https://claude.ai/code/session_016YZ9SU2MPB6onKV23n82Sf


Generated by Claude Code

@richshaw richshaw added pipeline:owner Passed; waits for the owner (UX or high-risk) and removed pipeline:review pipeline:working A session is working on it right now labels Nov 22, 2026 — with Claude
@richshaw richshaw added pipeline:fix pipeline:working A session is working on it right now and removed pipeline:owner Passed; waits for the owner (UX or high-risk) labels Nov 24, 2026 — with Claude
The crumbs before the current page used to shrink first, so on a phone
the links in the trail (the site's name, Settings) shrank to nothing
while the current page, which repeats the heading below it, stayed. On
a signup's tabs and the settings pages the site's name is the only way
back to Your signups, and it vanished at 320px and on Build at 390px.
The collapsed links also stayed in the tab order.

Below md the header now shows the site's name and Help, Account and
Sign out, and hides the trail; the page's heading says where you are.
From md up the whole trail shows, and only the current crumb shortens:
the links before it keep their words, up to a cap for long names and
translations.

The header spec now checks, in every catalog language, that the trail
is hidden and the site's name is at least 24px wide on a phone, and
that at 768 and 1024px, with a long signup title, the earlier crumbs
read in full and nothing overlaps the header's links.

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

Copy link
Copy Markdown
Owner Author

Reworked: shortened breadcrumbs on a phone

The owner asked in a live session for shortened breadcrumbs on a phone, in place of the crumbs before the current page shrinking first.

  • b449a5e merges main in. No conflicts.
  • df9d1fd reworks the header:
    • Below 768px (md): the crumbs are hidden. The header shows the site's name, a link back to Your signups at least 24px wide, beside Help, Account and Sign out. The page's heading says where you are.
    • From 768px up: the whole trail shows. Only the current page's crumb shortens with "…", and the links before it keep their words.
  • That change also fixes what a design review found in the first version:
    • the site's name, the header's only link back to Your signups, shrank to 0px (at 320px on Connected apps, and at 390px on a signup's Build tab)
    • the collapsed links stayed in the tab order
    • separators were left with nothing between them ("› ›")
    • the spec couldn't catch any of these, because it never checked that a link was visible or wide enough and its signup title was short
  • The spec now checks all of that in every catalog language, at 320, 390, 768 and 1024px, with a 65-character title.

Correction to my tophat above: it says that at 390px the site's name and "Settings" stay as "O.." and "S". That held on Connected apps, but on a signup's Build tab the site's name was already 0px at 390px. My own measurements showed it and I missed it in the write-up.

Ran on df9d1fd and passed: pnpm lint, pnpm format:check, pnpm typecheck, pnpm knip, pnpm test (3869 passed, 1 expected fail), pnpm build && pnpm budgets with CI's values, and organizer-header-layout.spec.ts against the production build (18 passed). The full chromium e2e suite is running locally. Runtime code changed, so this goes back to tophat once CI is green.

https://claude.ai/code/session_016YZ9SVKGAKHipCeP5JGe1n


Generated by Claude Code

@richshaw richshaw added pipeline:tophat pipeline:working A session is working on it right now and removed pipeline:fix pipeline:working A session is working on it right now labels Nov 24, 2026 — with Claude

Copy link
Copy Markdown
Owner Author

Tophat: passed

See it: https://claude.ai/artifact/VwNPJofBGkE1bjVqwBsRTD (updated for the reworked header)
What changes for people: on a phone (below 768 px), the organizer header shows only the site's name, as a link back to Your signups, beside Help, Account and Sign out, on one line. The page's own heading says where you are. From 768 px up the whole trail shows, and only the current page's crumb shortens with "…". In Swedish, "Ny lista" on Your signups no longer wraps.

Check Result What I saw
Bug on the base, 320, 390 and 768 px, English and Swedish ✅ reproduced Header 65 px high: the site's name wraps on every page with crumbs at 320 and 390 px, and on a signup's tabs at 768 px. At 320 px the crumbs shrink to bare "›" marks. Swedish "Ny lista" is 56 px high.
Head, phone (320 and 390 px): Your signups, New signup, Connected apps, Build and Settings tabs, both languages ✅ Header 49 px (one line) on all 20 screens. No crumbs, the site's name visible (100–125 px wide), the page's heading present, no sideways scroll. "Ny lista" 36 px high.
Way back and keyboard, 320 px ✅ Tab goes site name → Help → Account → Sign out, so the hidden crumbs aren't in the tab order. Clicking the site's name goes to Your signups.
768 px ✅ Full trail on one line. Settings and Connected apps keep their words; a 65-character signup title shortens with "…" and stays clear of Help.
Computer, 1280 px ✅ Every crumb the same width and place as on the base, in both languages.
Console and server log ✅ No browser console errors. The only server warning is the health check's worker query (no worker running), unrelated.

Worth a look: a long site name still ends in "…" at 320 px. This test instance is called "OpenSignup (local)" and showed as "OpenSignup (l…"; a plain "OpenSignup" fits. That's what the PR describes.

Not checked: German in the running app (the PR's e2e spec covers every catalog language in CI); Firefox and Safari (only Chromium here).

Ran df9d1fd against 90369ba locally, Chromium at 320, 390, 768 and 1280 px wide, made-up data. https://claude.ai/code/session_016YZ9SRpedX4U58yHdwwnhd


Generated by Claude Code

@richshaw richshaw added pipeline:review and removed pipeline:tophat pipeline:working A session is working on it right now labels Nov 24, 2026 — with Claude
@richshaw richshaw added the pipeline:working A session is working on it right now label Nov 24, 2026 — with Claude

@richshaw richshaw left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: passed (round 2)

The rework is CSS only and does what the description says. Below md the trail sits in a hidden md:contents span, so it leaves both the layout and the tab order, and the site's name (min-w-0 truncate, with no shrink cap below md) is the one link back to Your signups. From md up, the earlier crumbs and separators are shrink-0, and the crumbs are capped at 8rem. The current page's truncate span is the only one that shrinks (its overflow: hidden lets it go below its content width). Every trail goes through Crumb (SignupTitleCrumb too), so the change reaches each page. The new spec checks the round-1 optional finding (the site's name shrinking to nothing) at 320, 390, 768 and 1024px in every catalog language, and it no longer happens.

Blocking (0)
Optional (0)
Earlier threads: none
Checks: CI green on df9d1fd (lint-type-test, e2e, CodeQL). Tophat passed on this same SHA. No conflict with main.

Waits for the owner because it's UX (the organizer header on a phone hides the crumb trail). Card: https://claude.ai/artifact/VwNPJofBGkE1bjVqwBsRTD. The code adds no risk beyond what's on screen.

https://claude.ai/code/session_016YZ9SUXdWjAwJhK7qPRd9V


Generated by Claude Code

@richshaw richshaw added pipeline:owner Passed; waits for the owner (UX or high-risk) and removed pipeline:review pipeline:working A session is working on it right now labels Nov 24, 2026 — with Claude
@richshaw richshaw added pipeline:merge and removed pipeline:owner Passed; waits for the owner (UX or high-risk) labels Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Approved by the owner at df9d1fd.

https://claude.ai/code/session_016YZ9SVEZdRizJssntdwLA8


Generated by Claude Code

@richshaw richshaw added the pipeline:working A session is working on it right now label Nov 25, 2026 — with Claude
@richshaw
richshaw merged commit ff52b51 into main Nov 25, 2026
5 checks passed
@richshaw
richshaw deleted the claude/issue-978-header-crumbs-phone branch November 25, 2026 22:12
@richshaw richshaw removed pipeline:merge pipeline:ux Changes what a person using OpenSignup sees or does pipeline:working A session is working on it right now labels Nov 25, 2026 — with Claude
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.

The organizer header's crumbs run into Help and Account on a phone

2 participants