Repository navigation
Save the organizer screens in pnpm translation:screenshots - #1017
Conversation
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
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
Conflict resolved in
|
Tophat: passedI ran a11e9f3 locally against a production build (
On my first full run, one test failed once. It was 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 |
|
Stopping here: this PR conflicts with #1016 landed on The two can't be merged together as they are:
Whichever side I picked, I'd drop the other side's screenshots or leave the docs wrong. Options:
I aborted the merge and pushed nothing. Labelled Session: https://claude.ai/code/session_016YZ9SU6wDACX1rVtYYwgag Generated by Claude Code |
#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
Conflict resolved in
|
richshaw
left a comment
There was a problem hiding this comment.
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
Fixes #991.
The problem
Since #1016,
pnpm translation:screenshotssaves the organizer screens on the way to a published signup, fromtranslated-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.tssaves the screenstranslated-organizer.spec.tsdoesn't reach. It callstranslationShotonce each screen or state is checked. It does this only for an account that stores a language other than English, and only withTRANSLATION_SCREENSHOTS=1. That makes 17 screens at each width, or 18 whereLLM_BASE_URLis set:organizer-…beside the others, and none matches a nametranslated-organizer.spec.tsuses. Screens that spec already saves aren't saved again.TRANSLATION_SPECSinplaywright.config.ts, so it also runs in thechromium-phoneproject, and in thetranslation:screenshotsscript inpackage.json.translateskill,review.md,docs/translating.mdandCLAUDE.mdlist 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.Tests
pnpm build, thenpnpm 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 bothchromiumandchromium-phone. It wrote 25organizer-*.pngin each folder:translated-organizer.spec.ts's 8 and this PR's 17, with no name used twice. I openedorganizer-signup-settings-refused(phone),organizer-consent(desktop) andorganizer-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).translationShotreturns before it writes anything, so CI's e2e job runs these specs as before.🤖 Generated with Claude Code
https://claude.ai/code/session_016YZ9SVwh9pcQeEc28jgf1b