This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
feat(app-shell): FlowRunner reads the flows option-label and terminal-toast keys (objectui#12075) - #12374
Merged
objectstack-fleet[bot] merged 5 commits intoOct 14, 2026
Conversation
…-toast keys The runner overlays each screen field's option labels through the spec's resolveFlowScreenFieldOptions, and interpretFlowResponse translates the flow's own successMessage / errorMessage through translateFlow for the resume and both launch hosts. The served screen heading is drawn as served (objectstack#22507 ruling A). A select now binds the option's own value, not its text. Claude-Session: https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB Co-authored-by: Claude <noreply@anthropic.com>
…jectui#12075) Claude-Session: https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB Co-authored-by: Claude <noreply@anthropic.com>
…jectui#12075) Claude-Session: https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB Co-authored-by: Claude <noreply@anthropic.com>
The runner no longer overlays the bundle's screen title (objectstack#22507 ruling A); the console loadLanguage pin and the objectui#11092 label pins now prove the bundle channel by a field label and read the served heading. The residue-namespaces pin reads RecordDetailView's binding by the same t-is-destructured pattern its siblings use, since that file now also takes the i18next instance. Claude-Session: https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB Co-authored-by: Claude <noreply@anthropic.com>
Contributor
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
…ectui#12075)
The `.test.ts` suffix put it in the `unit` project (`isolate: false`, one
module graph per worker), where its `vi.mock('sonner')` loses to any earlier
file in the worker that loaded `flowLaunch` against another `sonner`; the
success-toast pin then read zero calls (CI shard 4/12). As `.test.tsx` it
runs in the `dom` project, which isolates each file, so the mock is its own.
No assertion changed.
Claude-Session: https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gB
Co-authored-by: Claude <noreply@anthropic.com>
Contributor
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
objectstack-fleet
Bot
deleted the
claude/issue-12075-flow-runner-translations
branch
October 14, 2026 16:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12075
Clause-②: no
The screen-flow runner now reads the three
flowstranslation keys objectstack#22507 published, and draws the served screen heading as served (ruling A on objectstack#22507, folded into this card by comments 6093869675 / 6095081088).What changed
flows.FLOW.screens.NODE.fields.FIELD.options.VALUE).FlowRunner'slocalizeScreenhands each field to the spec'sresolveFlowScreenFieldOptionsbeforeScreenViewdraws its items. Not throughFLOW_SCREEN_FIELD_COPY_KEYS. An option the bundle does not address keeps its authored label.flows.FLOW.successMessage/errorMessage). They are translated in ONE place,interpretFlowResponseinutils/flowResponse.ts. That is where both strings come off the wire. It takes an optionalFlowCopyLocale(flow name, the activeflowsbundle, its locale) and answers thedonearm'ssuccessMessageandflowFailureMessage's authorederrorMessagethrough the spec'stranslateFlow. Each falls back to the served string.FlowRunner's resume passes its run's flow and bundle, so the terminal-success toast (byflowSuccessCopy) and the failure toast and inline alert read the translation.launchConsoleFlowtakes a newtranslation: { i18n, language }. It reads the bundle for the flow the run belongs to (the declared action'stargeton the action door, the clicked flow on the trigger route) and passes it intointerpretFlowResponse. Both hosts pass it:useConsoleActionRuntime's andRecordDetailView's flow handlers, withi18n/languageadded to theiruseCallbackdeps. A straight-through run'ssuccessToast(objectui#12274) and a failed launch's ActionRunner error therefore read the translation too.translateFlowoverlays a toast only where one is served, so a bundle never adds one. The engine's ownerrorprose has no key and is passed through.utils/flowsBundle.ts(activeFlowsBundle, unchanged). There are now two readers,FlowRunnerandflowLaunch. Module-internal, not re-exported.title. TheresolveFlowScreenTitlecall and import are gone. Nodescriptionoverlay is added. The header's "Deliberately NOT localized" list is rewritten, along with the client-side-pick boundary note, thelocalizeScreendocblock and the JSX comment. The old list saidFlowSchema.successMessageis off the translation surface, which is now wrong. It also saidinlineHelpTextis outsideFLOW_SCREEN_FIELD_COPY_KEYS, which has been stale since objectstack#17306 (the installed constant islabel,placeholder,inlineHelpText). After this change,resolveFlowScreenTitlehas no caller in this repo.ScreenView.tsx,ScreenFieldInput). Measured on a real render: it was a real wrong value. The fix is local, so it lands here with a pin. Items are still addressed by the value read as text, now through the spec'sflowScreenFieldOptionKey. On change, the field binds the matching option's declaredvalue. The spec refuses two options that collide as text, so the match is unique.A3, the measurement
The pin
resumes with the number and the boolean the picked options declare(FlowRunner.flowsTranslation-12075.test.tsx) drives the real Radix select inside a mountedFlowRunner, submits, and reads the resume request body. With the fix ablated (thepickOptionhandler swapped back for one that hands the item's text straight toonChange; both marker counts verified on disk before and after), the pin fails:The restore leg was
git checkout HEAD -- ABS_PATH. It was proven by an emptygit diff HEADand a matching HEAD blob hash.Reverse verification of the translation reads
I mutated two lines at once:
overlayFieldOptionsalways returns the field;translatedFlowMessagealways returns the served string.Both marker counts were 1 on disk. With the mutation, 9 pins fail across the three suites: both option-label pins, the runner's success and error toast pins, both
launchConsoleFlowpins and threeinterpretFlowResponsepins.Tests 9 failed | 51 passed (60). The restore was proven the same way (diff empty, hashes match).Tests and gates (final head 5b02025)
Every test file that names a touched module, 221 files. I took them from a
git grep -lof the test files forFlowRunner,ScreenView,flowResponse,flowLaunch,useConsoleActionRuntime,RecordDetailView,flowsBundleandScreenFieldInput, acrosspackages/**andapps/**. They ran under the verify lock at cdb61c5 (the last source commit):Test Files 3 failed | 218 passed (221),Tests 4 failed | 2051 passed (2055). All four failures were pins of the retired heading overlay, or a literal read of the line this diff widened:apps/console/src/loadLanguage.test.tsx("a flows-only bundle — the wizard draws the translation");FlowRunner.flowLabel-11092(two heading assertions);packages/i18n/.../residue-namespaces-3546(it read RecordDetailView'sconst { t, language } = useObjectTranslation();verbatim).5b02025 re-points them: the bundle channel is now proven by a field label, the served heading is asserted, and the binding is read by the sibling pattern. Those three files plus the four below ran at 5b02025:
Test Files 7 passed (7),Tests 122 passed (122). The commits after cdb61c5 touch test files only.The new and changed pins at 5b02025:
FlowRunner.flowsTranslation-12075,FlowRunner.flowsTranslation-5920,utils/__tests__/flowResponse.test.ts,utils/__tests__/flowLaunch.translation-12075.test.ts(in the 7-file run above).pnpm --filter @object-ui/app-shell type-check(tsc --noEmit && tsc -p tsconfig.test.json) exits 0. This was afterturbo run build --filter=@object-ui/app-shell^...(28/28 tasks).--listFilesOnlyconfirms the test program includes all four test files.ESLint on the 14 changed TS/TSX files,
--no-inline-config: 0 errors. All warnings are pre-existingno-explicit-any/exhaustive-deps/react-hookswarnings in the touched host files. Type-aware linting is not configured (noparserOptions.project/projectServiceineslint.config.js), so this diff cannot move a verdict on an untouched file.Pre-tsc battery, all exit 0:
check:phantom-deps,self-import,unreferenced-sources,doc-example-readers,handler-key-reads,side-effects-array,element-data-source-declaration,spec-symbols,action-forward-parity,designer-field-key-parity,icon-record-names,i18n-keys,i18n-drift,i18n-designer-parity,control-bytes,new-line-citations. Alsonode scripts/check-changeset-fixed.mjsandnode scripts/check-changeset-presence.mjs.check:spec-floorsexits 1 for the unrelated reason already tracked in objectui#12334 ("The scan collapsed: 0 package(s) declare @objectstack/spec…").Acceptance notes
interpretFlowResponse's newcopyparameter is optional. Without it, both toasts come back as served. The existing ~30 test call sites pass no bundle and are unchanged. Both production callers pass one.content/docspage or package README describes the runner's translation reads, so no doc moves with this change.Clause-②: no, measured.FlowRunner,FlowRunnerProps,ScreenFlowStateandScreenSpec/ScreenFieldSpecare the package-entry exports in this area, and none of them changed.flowResponse,flowLaunchandflowsBundleare not re-exported.d25b187203) and the keys half (f89b5f561) are both ancestors of@objectstack/spec@18.0.0-next.0, the version this lockfile resolves (triage comment 6163410517). The installeddistcarriesresolveFlowScreenFieldOptions,FLOW_TERMINAL_MESSAGE_KEYS,translateFlow's toast keys andflowScreenFieldOptionKey. I read them before building.Changeset:
.changeset/12075-flow-runner-translations.md,@object-ui/app-shell: minor.Session:
https://claude.ai/code/session_01XVp19E1MYUTFM3dnkwz8gBGenerated by Claude Code