Repository navigation
Fix the small things the localization reviews left - #1010
Conversation
The box between − and + was 72 pixels on a phone and 76 on a computer, and Swedish "Obegränsat" needs about 88 at the box's 16-pixel text, so it was cut off. It's now 96 and 100, the room taken from the item's name beside it, as the Build tab's Spots box was widened for the same word. The owner chose a wider box over a shorter word, so the glossary's open question about it moves to the settled list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
The brand blue was 4.36:1 on the open editor's grey, under WCAG AA's 4.5:1 for text this small, so axe failed it. The darker blue the Editing badge took in #999 is 6.1:1 there, and 5.2:1 on the hover's tint. An axe check of the Build tab with a slot's editor open keeps it so, and the help page's picture of the editor is taken again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
The small print under "Switch them to …" said "column names" (Swedish "kolumnnamn"), where the rest of the app calls them fields (Fält). Both now say fields, and Swedish's record of its English is marked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
The link and "Pick another slot." answer one question, offersAlternatives (#806). This test pins the link to it: a capacity_full with remaining -1 and an alternative shows the link, and it fails with the dialog's old check of its own (remaining === 0) put back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
…atus The stand-in translator answers the same whatever values it's given, so the test of the tip in another language couldn't tell a call that drops status from one that passes it. The test's translator now notes each call with its values, and a new test checks that the button's title and its description both pass the signup's status, draft and open, in every language with a catalog besides English. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
|
Translation review (Swedish) Key: English: "Only OpenSignup's own words change: buttons, messages, dates and emails. Titles, slots and fields you typed stay as they are. People who already signed up see the new language too." Swedish: "Bara det som OpenSignup själv skriver byts: knappar, meddelanden, datum och mejl. Titlar, pass och fält som du har skrivit ändras inte. De som redan är anmälda ser också det nya språket." Verdict: fine, no change suggested.
I reviewed the catalog text and the glossary, not the screen. https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt Generated by Claude Code |
Tophat: failedRan 0345e90 locally with
Failure: item names cut off at 320 pxTo reproduce: at 320 px wide, open Magic Compose's questions and pick an item with a word longer than about 10 letters, such as "Refreshments coordinator". The how-many row now gives the name 66 px next to the 96 px box (90 px on What happens on this PR: "Refreshments coordinator" reads "Refreshme / coordinato", in English and in Swedish. "Bemanna försäljningsbordet" shows "försäljnings", and "Föräldraföreningens kafferep" shows "Föräldrafö". On What should happen: the whole name reads at 320 px (the width WCAG's reflow criterion is tested at), as these names did on For the ownerWhat changes for people: Swedish organizers see "Obegränsat" in full in Magic Compose's how-many box, and the item name next to it gets less room (136 px instead of 160 px at 390, and 66 px instead of 90 px at 320). The slot editor's Done is a slightly darker blue. Account Settings' note says "fields" / "fält". The before and after screenshots are Screenshots are in https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt. Generated by Claude Code |
The wider how-many box left an item's name 66 pixels on a 320-pixel phone, and any word longer than that ran under the box and was hidden: "Refreshments coordinator" read "Refreshme / coordinato". The row now wraps. The name keeps at least 128 pixels and its longest word, and where the box doesn't fit beside that, the box goes on its own line under the name, on the right as before. That happens on a narrow phone, and on a wider screen only for a word too long to sit beside the box. A word wider than the whole row breaks rather than spilling. Computers keep one line. A new e2e test, for each catalog language, picks a short name, a long one and one long word, and checks at 320, 390 and 1280 pixels that no name spills or runs under the box, that the box's placeholder fits, where the box goes, and that the page doesn't scroll sideways; then the box still counts by pointer and keyboard at 320, and axe finds nothing. With the previous row put back it fails on "Refreshments coordinator" at 320. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Tophat finding: fixed in
|
| Width | Before (0345e90) |
After (ebc00b0) |
|---|---|---|
| 320 | The name gets 66 px. Three of the four names are hidden behind the box: "Refreshme / coordinato", "Föräldrafö", "Antidisestc". | Every box sits under its name. Each name reads in full on one line, 254 px wide. |
| 360 | The name gets 106 px. Both long words are cut. | Every box sits under its name, which gets 294 px. |
| 390 | The name gets 136 px. "Föräldraföreningens" and "Antidisestablishmentarianism" are cut. | "Cake" and "Refreshments coordinator" stay beside the box as before (the second on two lines). The two long words get a line of their own, with the box under them in the same right-hand column. |
| 768 | The name gets 84 px. "Refreshments" and both long words are cut. | Every box sits under its name, which gets 282 px. |
| 1280 | One line per row. | Same pixels as before, in both languages. |
Checks
- Compared with
mainat 1280 px in English, the names column has the same pixels. Only the −/box/+ group differs: it's 24 px wider, as this PR intends. - At 320 px, in both languages, the box still works by pointer and keyboard. Clicking + twice gives 2. Enter on − gives 1. Tab moves into the box, and ArrowUp gives 2. Tab moves to +, and Space gives 3.
- Axe (WCAG 2.0/2.1 A and AA) on the questions screen at 320 and 1280 px, in English and Swedish, finds nothing. On one early run, axe once reported
color-contraston a.text-sm.text-ink.font-mediumelement just after a resize to 1280. It happened on the old code as well as the new, didn't come back in five later runs, and nothing in the how-many rows has those classes. - None of the widths scrolls sideways.
- New e2e test in
organizer-language.spec.ts, run in each catalog language: "reads every name and how-many box in full …, down to 320px". It uses a short name, a long one and one long word. At 320, 390 and 1280 px it checks that no name spills or runs under the box, that the placeholder fits, where the box goes, and that the page doesn't scroll sideways. Then, at 320 px, it counts with + and ArrowUp and runs axe. With the old row it fails on "Refreshments coordinator" at 320 px, in English and Swedish. Like the other Magic Compose tests, it skips itself on a server with noLLM_BASE_URL, and that includes CI. pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: pass (3428 passed, 1 expected fail).pnpm build && pnpm budgets: pass./app/signups/newis still 119.7 kB.- e2e on Chromium against a production build, with
E2E_UNSHIPPED_LOCALES=sv, a dummyLLM_BASE_URLand Magic Compose's replies stubbed:organizer-language(new test included),a11yandhelp/create-and-publish-a-signup, 45 passed. - No help page shows this screen, so no screenshots needed retaking.
The screenshots are 1010-before-compose-{en,sv}-{320,360,390,768,1280} and 1010-after-compose-… in https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt.
Runtime code changed, so this goes back to tophat.
Generated by Claude Code
Tophat: passedI ran ebc00b0 locally with The how-many list had eight names. Four came as the AI's options: "Cake", "Refreshments coordinator", "Antidisestablishmentarianism" and "Föräldraföreningens kafferep". Four were typed into Add another: "Bring folding chairs, set up tables and put out the signs in the school gym" (the name that runs to two lines or more), "Bemanna försäljningsbordet", "www.example.com/bakesale-volunteer-list" and a 43-letter word, "Barnkalasplaneringskommittéordförandeskapet".
A note on design, not a failure: at 390 the long sentence stays beside the box, five lines deep in 136 px. It reads in full. Under the box it would take two lines. Outside this PR (also on
|
richshaw
left a comment
There was a problem hiding this comment.
Review: passed (round 1)
Six small leftovers from the localization stack, and each does what the description says. The how-many row's wrap is plain flexbox: flex-wrap on the row, w-min min-w-32 grow break-words on the name, ml-auto on the stepper. Space decides where the box goes, not a breakpoint, and break-words leaves the name's minimum width at its longest word, so short words are never split. The only sizes tied to a word are the box's 96 and 100 px, and both the comment beside them and the glossary say which word. The −, box and + keep their accessible names: the diff doesn't touch them. The catalog change is complete: en.json, sv.json, the regenerated en.d.json.ts and translated-from/sv.json agree, and no "column names" or "kolumnnamn" is left. Glossary question 6 moved to settled item 5 and nothing else refers to its old number.
Blocking (0): none.
Optional (2):
tests/e2e/organizer-language.spec.ts, the new layout test: it skips in CI, as the two Magic Compose tests before it do, because CI's server has noLLM_BASE_URL. The skip is honest: the test gives the reason, and the description and the fix comment both say CI skips it. But the test only stubs the route in the browser, so stand-inLLM_*values on the e2e server would let all three run in CI. Until then nothing in CI checks that the next language's "No limit" fits the box. Filed as #1014, since it covers tests that were here before this PR.tests/e2e/organizer-language.spec.ts, theboxBelowtable: where the box goes at 390 px depends on the page's font having loaded. It holds today. If #1014 turns the test on in CI and a fallback font changes the widths, this table is what will fail. #1014 notes it.
Earlier threads: none. Copilot answered that it couldn't review (quota), so there's nothing of its to check.
Checks:
- CI is green on ebc00b0 (
lint-type-test,e2e, CodeQL). - Locally on ebc00b0:
pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm testpass (3428 passed, 1 expected fail).pnpm build && pnpm budgetspass withbudgets.jsonunchanged:/app/signups/new119.7 kB of 119.7,/app/signups/[id]/build151.2 of 151.4. - The new tests fail on the old code. With the dialog's old check put back (
alternatives?.length && remaining === 0), "offers See alternatives … when remaining is below 0" fails and the other 66 in the file pass. Withstatushard-coded at the button'stitle, the new tip test fails for an open signup; withstatusdropped at the description, it fails for draft and open. Both edits were reverted. to-translate.mjs sv, for participant and organizer text: 0 missing, 0 stale, 0 unrecorded, 0 extra, 0 unneeded.- Help:
slot.pngshows the same editor with the darker Done. The article still names the button "Done" from itsUIlist, and no on-screen name changed, so the article and its walkthrough stand. The walkthrough ran in CI's e2e job. - CHANGELOG: two entries under Changed, and the quoted note in the #639 entry updated. No personal data (
pat@example.com, "Pat Example"), no secrets, no AI model named. - Tophat: passed on this commit (round 2), and no code has changed since.
- I didn't run e2e myself: CI ran it, and the tophat ran the skipped layout test in both languages.
For the owner (gate: UX). Three things change for people. In Magic Compose's how-many list, the box is wider, and on narrow screens (320 and 360 px phones, and 768 px where the card is narrow) it sits on its own line under each item's name, so that list is about twice as tall there. The slot editor's Done is a darker blue. Account Settings' note says "fields" / "fält". Worth a look before merging: the tophat's 1010b-pr-compose-{en,sv}-{320,390,768,1280} screenshots against 1010b-main-compose-…, and its note that at 390 px a long sentence stays beside the box, five lines deep. The tophat also found long names spilling out of the What do people sign up for? chips on main; that isn't from this PR and has no issue yet.
https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Generated by Claude Code
|
The owner approved this in the orchestrating session on 16 November 2026:
The tophat (round 2, 6923613469) and the review (round 1) both passed on ebc00b0. #1011 merges first; then I'll bring this up to date with https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt
Part of #619: the leftovers the localization stack's reviews and tophats found, which the owner approved once the stack was on
main.The changes
One commit each, plus one for the tophat's finding on item 1.
docs/translating.mdmoves to "Settled after the owner's walkthrough" as item 5, and the later open questions keep their numbers.text-brand-hover, as #999 did for the Editing badge: 6.12:1 on the open editor's grey (#f7f8fa), 5.23:1 on the hover's tint. A newa11y.spec.tstest runs axe on the Build tab with a slot's editor open. With the old colour put back in the page, axe reportscolor-contraston that button at 4.36:1. The help page'sslot.pngis taken again: only the Done button's pixels changed.column namesfields you typed stay as they are." Swedish: "Titlar, pass ochkolumnnamnfält som du har skrivit ändras inte."mark-translated.mjs sv organizer.settings.language.switchNoterecords the new English. The CHANGELOG entry that quotes the note is updated too.capacity_fullwithremaining: -1and an alternative/s/<slug>) both show, which ties the link tooffersAlternatives(#806). It fails when the dialog's old check from before #806 is put back (alternatives?.length && remaining === 0). It still passes withremaining <= 0, which is the ruleoffersAlternativesuses, so it can't tell that one apart.statusfromorganizer.preview.signUpDisabledsignup-view.test.tsx's mocked translator now records each call with its values. A new test checks that the disabled button'stitleand its description both pass the signup's status, for draft and open, in each non-English catalog language. It fails if either call site dropsstatusor hard-codes it. The existing test for those languages passes either way, because the stand-in gives the same text whatever values it gets. Typecheck and the English tests already catch a droppedstatus; the gap was only in the stand-in path.Screenshots (described)
Taken at 2× against a production build with
E2E_UNSHIPPED_LOCALES=sv, with Magic Compose's questions stubbed as the e2e specs stub them. Each width was checked in English and Swedish.slot.pngchanged.Translation review
Done: see the review comment on this PR. The one changed message is
organizer.settings.language.switchNote(sv: "Bara det som OpenSignup själv skriver byts: knappar, meddelanden, datum och mejl. Titlar, pass och fält som du har skrivit ändras inte. De som redan är anmälda ser också det nya språket."). It uses the glossary's word for a field, fält. No screenshot shows it: it only appears in account Settings once a second language has shipped, andE2E_UNSHIPPED_LOCALESdoesn't make one choosable.Budgets
No changes.
pnpm budgetsgives the same figures asmain's last CI run (622ff81):/app/signups/new119.7 kB (budget 119.7),/app/signups/[id]/build151.2 kB (budget 151.4), and every other page the same as onmain.Checks
pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: pass (3428 passed, 1 expected fail).pnpm build && pnpm budgets: pass, with no budget changes.E2E_UNSHIPPED_LOCALES=sv, Magic Compose's questions stubbed):a11y,build-tab-language,slot-row-layout,organizer-language(its Magic Compose tests included) andhelp/create-and-publish-a-signup: 69 passed.pnpm help:screenshots: 8 passed. After the tophat's fix:organizer-language,a11yandhelp/create-and-publish-a-signup, 45 passed.organizer-language.spec.tstest, for each catalog language, checks Magic Compose's how-many rows at 320, 390 and 1280 px: no name spills or runs under the box, the placeholder fits, where the box goes, no sideways scroll, the box still counts by pointer and keyboard, and axe finds nothing. With the previous row it fails on "Refreshments coordinator" at 320 px. Like the other Magic Compose tests, it skips itself on a server with noLLM_BASE_URL.to-translate.mjs svandto-translate.mjs sv --audience organizer: nothing listed.pnpm test:dbwasn't run: no service,src/db,src/mcp,src/oauthor jobs code changed.🤖 Generated with Claude Code
https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt