Repository navigation
Keep the organizer header's crumbs clear of Help, Account and Sign out on a phone - #1104
Conversation
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
Tophat: passedSee it: https://claude.ai/artifact/VwNPJofBGkE1bjVqwBsRTD
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
left a comment
There was a problem hiding this comment.
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
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
Reworked: shortened breadcrumbs on a phoneThe owner asked in a live session for shortened breadcrumbs on a phone, in place of the crumbs before the current page shrinking first.
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 https://claude.ai/code/session_016YZ9SVKGAKHipCeP5JGe1n Generated by Claude Code |
Tophat: passedSee it: https://claude.ai/artifact/VwNPJofBGkE1bjVqwBsRTD (updated for the reworked header)
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
left a comment
There was a problem hiding this comment.
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
|
Approved by the owner at https://claude.ai/code/session_016YZ9SVEZdRizJssntdwLA8 Generated by Claude Code |
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:
md(768px),layout.tsxhides 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.mdis where the signup header already switches to its phone layout. A very long site name still ends in "…".mdup, the whole trail shows. InCrumb.tsx, the crumbs before the current page keep their words (shrink-0, capped at8remfor long translations), and the site's name keeps its own (md:shrink-0, capped at10rem). Only the current page's crumb shortens with "…". The separators don't shrink.page.tsx: New signup getsshrink-0 whitespace-nowrap, so the heading beside it wraps instead.affected-articles.mjsnames no help article, and the help screenshots don't show the organizer header.Tests
tests/e2e/organizer-header-layout.spec.tscovers an organizer who stores each language inCATALOG_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:/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 visibleh1.expectOneLine). The current crumb is at least 24px wide and every item is clear of the header's links.pnpm lint,pnpm format:check,pnpm typecheck,pnpm knip,pnpm test(252 files, 3869 passed, 1 expected fail),pnpm build && pnpm budgetswith CI'sNEXT_PUBLIC_*values, and the new spec against the production build (18 passed).🤖 Generated with Claude Code
https://claude.ai/code/session_016YZ9SVKGAKHipCeP5JGe1n