Skip to content

Save the organizer screens in pnpm translation:screenshots - #1017

Merged
richshaw merged 6 commits into
mainfrom
claude/issue-991-organizer-translation-shots
Nov 17, 2026
Merged

richshaw merged 6 commits into
mainfrom
claude/issue-991-organizer-translation-shots

Conversation

@richshaw

@richshaw richshaw commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Fixes #991.

The problem

Since #1016, pnpm translation:screenshots saves the organizer screens on the way to a published signup, from translated-organizer.spec.ts: Your signups, New signup, the Build tab, its Fields dialog and a slot's editor, the share panel, Responses and account Settings. The screens and states around them have no screenshot. So a review of an organizer sentence on one of them has nothing to look at unless the translator takes it by hand.

The fix

  • organizer-language.spec.ts saves the screens translated-organizer.spec.ts doesn't reach. It calls translationShot once each screen or state is checked. It does this only for an account that stores a language other than English, and only with TRANSLATION_SCREENSHOTS=1. That makes 17 screens at each width, or 18 where LLM_BASE_URL is set:
    • the Build tab: Publish's check, the share chip, the close question, a closed signup, and the banner on a draft Magic Compose made
    • New signup: Magic Compose's hourly-limit error (only where an AI is set up)
    • a signup's Settings tab: saved, its delete question and a refusal
    • Responses: the remove question, and the table after a removal
    • Connected apps, empty and with an app, and the consent screen
    • Preview, the strip on the signup's own page, the note on your own draft, and a signup that can't be found
  • No clashes with Test the organizer app in every test language #1016's screenshots. Each new file is named organizer-… beside the others, and none matches a name translated-organizer.spec.ts uses. Screens that spec already saves aren't saved again.
  • It runs in the screenshot command. The spec is in TRANSLATION_SPECS in playwright.config.ts, so it also runs in the chromium-phone project, and in the translation:screenshots script in package.json.
  • Docs. The translate skill, review.md, docs/translating.md and CLAUDE.md list the organizer screenshots as one set. What's left to take by hand is Magic Compose's later steps and the refusals other than the Settings tab's.
  • No CHANGELOG entry. Nothing changes for anyone using or hosting OpenSignup.

Tests

  • I ran pnpm build, then pnpm translation:screenshots -c .claude/skills/run-opensignup/playwright.container.config.ts: 122 passed and 8 skipped (Magic Compose's, since no AI is set up here), at both chromium and chromium-phone. It wrote 25 organizer-*.png in each folder: translated-organizer.spec.ts's 8 and this PR's 17, with no name used twice. I opened organizer-signup-settings-refused (phone), organizer-consent (desktop) and organizer-build-share-chip (phone), and each shows its screen in Swedish.
  • pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: all pass (244 files, 3471 tests).
  • Without the flag translationShot returns before it writes anything, so CI's e2e job runs these specs as before.

🤖 Generated with Claude Code

https://claude.ai/code/session_016YZ9SVwh9pcQeEc28jgf1b

The organizer-language and Build tab specs now save a screenshot of each
organizer screen they check, for an account that stores a language other
than English, when TRANSLATION_SCREENSHOTS=1, at desktop and phone width.
A translation review of organizer text gets them beside the participant
screens, named organizer-*. Without the flag nothing is written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9STSwDbdd1D9udJZomH
@richshaw richshaw added the pipeline:working A session is working on it right now label Nov 16, 2026 — with Claude
@richshaw
richshaw requested a balanced review from Copilot November 16, 2026 19:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@richshaw richshaw added pipeline:tophat pipeline:working A session is working on it right now and removed pipeline:working A session is working on it right now labels Nov 16, 2026 — with Claude
main renamed swedish-signup.spec.ts to translated-signup.spec.ts and runs
it in every catalog language (#935). The screenshot command, the config's
TRANSLATION_SPECS and the docs now name it beside the two organizer specs.

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

Copy link
Copy Markdown
Owner Author

Conflict resolved in a11e9f3

#935 landed on main (ba54e25) and renamed swedish-signup.spec.ts to translated-signup.spec.ts, which now runs in every catalog language. That conflicted with this PR in five files. I merged main in and kept both sides:

  • package.json and playwright.config.ts: the screenshot command and TRANSLATION_SPECS now name translated-signup beside organizer-language and build-tab-language.
  • tests/e2e/build-tab-language.spec.ts: kept both imports (translationShot from this PR, UNSHIPPED_LOCALES from main).
  • docs/translating.md and the translate skill: took main's wording ("every language with a catalog", translation-review/<code>/) and added this PR's organizer screenshots to it.

No runtime code was touched. After the merge, these ran and passed: pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test (243 files, 3463 tests). CI's e2e job will run the merged specs. No tophat has passed yet, so once CI is green this goes back to tophat.

https://claude.ai/code/session_016YZ9SSv8YrdMQVvWsYteJB


Generated by Claude Code

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

Copy link
Copy Markdown
Owner Author

Tophat: passed

I ran a11e9f3 locally against a production build (pnpm build), with Postgres 16 and Chromium through .claude/skills/run-opensignup/playwright.container.config.ts, at the chromium and chromium-phone projects. This PR changes only e2e specs, the Playwright config, a package.json script and docs, so there was nothing to click in the app. Instead I ran the command it changes and looked at what it wrote.

Check Result What I saw
pnpm translation:screenshots -c …container.config.ts ✅ 142 passed, 8 skipped (Magic Compose's: no LLM_BASE_URL here). It wrote 26 organizer-*.png in translation-review/sv/screens/chromium/ and 26 in …/chromium-phone/, next to the participant screens
The screenshots show what their names say ✅ organizer-responses-remove (phone) shows the remove question, organizer-consent (desktop) the consent screen, organizer-build-ai-draft (desktop) the AI-draft banner and its warnings, and organizer-publish-check (phone) Publish's check as a sheet. All are in Swedish
Without TRANSLATION_SCREENSHOTS ✅ The two specs on chromium gave 44 passed and 4 skipped, and no translation-review/ folder was created
pnpm lint, pnpm format:check, pnpm typecheck ✅ All pass. CI is green on this SHA

On my first full run, one test failed once. It was organizer-language.spec.ts:904 › "an organizer who stores no language › sees the banner on a draft Magic Compose made … in en" on chromium, with a minified React #418 hydration error in its hydration check. It doesn't look like this PR's doing: the English case never calls the new shot (it returns early when nothing is stored). The test passed 3 times out of 3 when I ran it alone, and the second full run was clean. I'm noting it in case it turns up again as a flake on main.

Not UX: nothing someone using or hosting OpenSignup sees changes. Only the translation review's tooling does.

Screenshots are in https://claude.ai/code/session_016YZ9SS6UPHpRmKh7DhZJUc.


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 16, 2026 — with Claude

Copy link
Copy Markdown
Owner Author

Stopping here: this PR conflicts with main, and the conflict needs a decision.

#1016 landed on main after this PR opened. It adds tests/e2e/translated-organizer.spec.ts, which already saves organizer screenshots (organizer-dashboard, -compose, -new-signup, -build-new, -build-fields, -build-slot, -share, -responses, -account-settings). It also points TRANSLATION_SPECS, the translation:screenshots script, the translate skill, review.md and docs/translating.md at that spec. This PR adds 26 screenshots from organizer-language.spec.ts and build-tab-language.spec.ts instead, and its docs describe that set.

The two can't be merged together as they are:

  • Both write organizer-build-fields.png, so one overwrites the other.
  • Several screens would be saved twice under different names (Your signups, New signup, the share panel, Responses, account Settings).
  • The conflicting docs say opposite things about which organizer screens have screenshots. For example, main says a signup's Settings tab and Connected apps have none, and this PR says they do.

Whichever side I picked, I'd drop the other side's screenshots or leave the docs wrong. Options:

  1. Keep main's spec as the base, and move only the screens it lacks into this PR (Settings tab, refusal, Connected apps, consent, Preview and page strip, closed and AI-draft states, not-found), with names that don't collide.
  2. Close this PR, since Test the organizer app in every test language #1016 covers most of Translation screenshots have no organizer screens, so reviews of organizer text have no context #991.

I aborted the merge and pushed nothing. Labelled pipeline:stuck until you decide.

Session: https://claude.ai/code/session_016YZ9SU6wDACX1rVtYYwgag


Generated by Claude Code

@richshaw richshaw added pipeline:stuck Needs the owner; the pipeline leaves it alone and removed pipeline:working A session is working on it right now labels Nov 16, 2026 — with Claude
#1016 added translated-organizer.spec.ts, which already saves the organizer
screens on the way to a published signup. Keep that as the base, and from
organizer-language.spec.ts save only the screens and states it doesn't reach,
under names that don't clash with its own. Drop the Build tab spec's shots,
which repeat main's, and the note that account Settings' language choice has
no screenshot, which #1019 made untrue.

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

Copy link
Copy Markdown
Owner Author

Conflict resolved in 3413873: option 1

The owner picked option 1 from the comment above. I merged main in, kept #1016's translated-organizer.spec.ts as the base, and kept only the screens it doesn't reach:

  • Kept, from organizer-language.spec.ts (17, or 18 with an AI set up): Publish's check, the share chip, the close question, a closed signup, the AI-draft banner, Magic Compose's hourly-limit error, the Settings tab (saved, delete question, refusal), Responses' remove question and the table after a removal, Connected apps (empty and with an app), the consent screen, Preview, the page strip, the own-draft page and a signup that can't be found.
  • Dropped, because main already saves them: Your signups, account Settings, New signup, Magic Compose's first screen, a draft's Build tab, the share panel and Responses. Also dropped: all three build-tab-language.spec.ts shots (the Build tab, a slot's editor and Fields), along with that spec's place in TRANSLATION_SPECS and the script. So organizer-build-fields.png now has one writer.
  • Dropped as out of date: the notes saying account Settings' language choice has no screenshot. Switch Swedish on for organizers and participants #1019 shipped Swedish, so the choice now shows, and main's organizer-account-settings captures it.
  • Docs: the translate skill, review.md, docs/translating.md and CLAUDE.md now describe one set of organizer screenshots across both specs.

No runtime code under src changed, so this goes back to review. The screenshot command and the pre-push checks passed. The PR description has the numbers.

https://claude.ai/code/session_016YZ9SVwh9pcQeEc28jgf1b


Generated by Claude Code

@richshaw richshaw added pipeline:working A session is working on it right now and removed pipeline:stuck Needs the owner; the pipeline leaves it alone labels Nov 17, 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)

This PR follows option 1 from the owner's decision. It keeps #1016's translated-organizer.spec.ts as the base and has organizer-language.spec.ts save the 17 (18 with an AI set up) organizer screens and states that spec doesn't reach. Each shot call comes right after the checks for its screen. The local shot wrapper returns when stored is unset, so the English describe block never writes, and translationShot returns before anything else unless TRANSLATION_SCREENSHOTS=1, so CI's e2e run is unchanged. I compared the names with translated-organizer.spec.ts's nine (dashboard, compose, new-signup, build-new, build-fields, build-slot, share, responses, account-settings), and none of the new ones collides. TRANSLATION_SPECS matches organizer-language.spec.ts but not organizer-language-story.spec.ts. Running the spec in chromium-phone doesn't share state with chromium, because createOrganizerIn makes a separate account per project, and that covers the connected app and the Magic Compose limit. Taken together with main's spec, #991's outline is covered: Your signups, New signup, the Build tab (rail, slot editor, Fields), the Settings tab, Responses, the share panel and account Settings. The skill, review.md, docs/translating.md and CLAUDE.md describe one set.

Blocking (0): none
Optional (1):

  • docs/translating.md:719: the new list is one long sentence and mixes Build tab states with the share panel ("…and the banner on a draft Magic Compose made, the share panel, …"). Grouping it by screen, as the skill's version does, would make it easier to scan.

Earlier threads: none. Copilot couldn't review (quota).
Checks: CI is green on 3413873 (lint-type-test, e2e, CodeQL). The tophat passed on a11e9f3, and the shared check finds 0 runtime hunks under src since then: the PR changes only an e2e spec, the Playwright config, a script and docs. Locally I read the diff, the shot helper, translated-organizer.spec.ts's names and the config. The branch is behind main but has no conflict.

Not UX and not high-risk: only the translation review's tooling and docs change.

https://claude.ai/code/session_016YZ9SRnHjozzAKbySFqMW4


Generated by Claude Code

@richshaw richshaw added pipeline:merge and removed pipeline:review pipeline:working A session is working on it right now labels Nov 17, 2026 — with Claude
@richshaw richshaw added the pipeline:working A session is working on it right now label Nov 17, 2026 — with Claude
@richshaw
richshaw merged commit 51facb4 into main Nov 17, 2026
5 checks passed
@richshaw
richshaw deleted the claude/issue-991-organizer-translation-shots branch November 17, 2026 03:54
@richshaw richshaw removed pipeline:merge pipeline:working A session is working on it right now labels Nov 17, 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.

Translation screenshots have no organizer screens, so reviews of organizer text have no context

3 participants