You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Studio flow designer ignores the package's translations: zh-CN shows the flow's English label and English approval-step labels a package ships translated #34903
Found by the hotcrm lane while re-capturing the large-deal approval screenshot for hotcrm#2605 (PR hotcrm#2613) on @objectstack 18.5.0, signed in with zh-CN. Read in code on objectstack mainfc5913e.
What happens
hotcrm ships flows.opportunity_approval.label: '大额商机审批' and approvals.manager_review.label / approvals.director_signoff.label in its zh-CN pack (hotcrm src/sales/translations/zh-CN/app.ts 567–572; the keys are the spec's, pinned in packages/spec/src/system/translation.test.ts ~1761). The Studio flow designer still shows "Large Deal Approval", the approval nodes' English labels, and English edge labels.
Why, in code
ui/packages/app-shell/src/views/metadata-admin/previews/ (FlowPreview, FlowCanvas, flow-canvas-parts) localizes node types (translateNodeLabel reads engine.flowNode.<type>.label from the studio catalogue, metadata-admin/i18n.ts ~592) and flow meta tokens, and renders the authored label as is (selection.label ?? selection.id, FlowPreview ~143–150). Nothing there reads the package bundle's flows.<flow>.* translations. The spec's flows.<flow> group (packages/spec/src/system/translation.zod.ts ~1929) has keys for screens, refusals, approvals, notices and records, but none for a decision or other node's label or for an edge label, so a package cannot ship those at all.
Asked
Decide which of these Studio shows translated (it is an authoring surface, so source labels may be intended; then say so and show the translation beside it). At least the flow label and approval-step labels, which the spec lets a package translate, appear in the viewer's language where a translation exists. Say whether node and edge labels get keys.
Done when
A zh-CN admin opening opportunity_approval in Studio reads 大额商机审批 and the two translated step labels, or the doc says why not.
First touch (R1198, 15:5xZ): p1 · domain:ui → pm:queue.
Themes: zh-CN customers and HotCRM, with a named effect. Signed in with zh-CN, the Studio flow designer shows English flow and approval-step labels that HotCRM ships translated. So p1.
Claim: PM loop round 2 · 2026-11-17T16:37Z
Session: session_01WGufzi3ezPzTysQPDEjmVz
Account: os-support-ai
Branch: claude/issue-34903-flow-designer-translations
Worktree: objectstack-issue-34903
Domain: domain:ui
Seat: repo:objectstack#3
File surface: ui/packages/app-shell/src/views/metadata-admin/previews/FlowPreview.tsx, FlowCanvas.tsx, flow-canvas-parts.tsx and their existing tests, a small translation read beside them (reusing the spec's translateFlow path FlowRunner already uses), ui/packages/i18n/src/namespaces/studio/** (only if the inspector's source-label line needs a key), root .changeset/
Container & model: S, mode:subagent, model: TIER_DEFAULT (no path-derived mandate on these paths), effort: medium (small console card: one Studio preview surface, no spec change; area-order addendum 16:27Z)
Clause-②: yes
Metadata-protocol: none
Responsibility: objectstack ui/packages/app-shell metadata-admin/previews (FlowPreview renders the authored label as is, selection.label ?? selection.id at :143/:150; only node TYPES go through the studio catalogue) | none | every non-English admin opening a translated package's flow in Studio (HotCRM zh-CN: opportunity_approval)
Thread-read: 6953297789
Premise: holds on origin/main: FlowPreview.tsx:143 and :150 render selection.label untranslated; the spec already lets a package translate flows.<flow>.label and flows.<flow>.approvals.<step>.label (packages/spec/src/system/translation.zod.ts flows group); FlowRunner.tsx already resolves them through the spec's translateFlow; the spec has no key for a decision/other node label or an edge label
Serial constraints cleared: open PR #34932 (flow designer edge conditions, another thread) may touch flow-canvas-parts / FlowCanvas; overlap-check before every push, report on overlap
Pre-claim lane: domain:ui — every path is under ui/**
Pre-claim deps: none named on the card
Prior rulings read: authoring surface,source label,translated label,studio translation → 6 hits (keyword-only; none on Studio label translation); PagePreview's useObjectTranslation is the precedent for a Studio preview rendering metadata translations; thread: none
Ruling-ref: seat ruling (repo:objectstack#3, 2026-11-17 16:36Z) on this card's ask, option A
Scope (seat ruling A): the flow label and the approval-step labels show the package's viewer-language translation where one exists, falling back to the authored label; the authored source label stays visible in the selection inspector beside the translation (Studio is the authoring surface). ⛔ No new spec keys: the spec has no keys for decision/other node labels or edge labels, so those stay authored text; if the filer wants them, the filer files that card. Clause-②: yes covers a possible new studio-namespace key for the source-label line (locale keys only; L1 at TIER_DEFAULT the review of record); the PR states whether one was added.
Amends claim 6954368456 (area o3-D, same session, same branch claude/issue-34903-flow-designer-translations). Measured by the dev on origin/main 189358f: the flow's own label is drawn by Studio's auto-canvas-caption header (current.label || current.name) and the inspector header comes from flowSelectionHeading(draft, selection, locale), both in StudioDesignSurface.tsx; nested approval cards draw their label in previews/flow-region-view.tsx. The File surface adds:
ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx: call-site lines only (one hook call, the caption title, the heading argument)
ui/packages/app-shell/src/views/metadata-admin/previews/flow-region-view.tsx: the nested approval card label (one line)
Serial: open PRs that edit StudioDesignSurface.tsx are checked by overlap-check before every push; #34932 lands before this PR (seat order). Everything else in 6954368456 stands.
{
"issue": 34903,
"status": "done",
"branch": "claude/issue-34903-flow-designer-translations",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34947",
"session": "session_01WGufzi3ezPzTysQPDEjmVz",
"premise_still_valid": true,
"summary": "The Studio flow designer now reads the package bundle FlowRunner reads (activeFlowsBundle, flow label through the spec's translateFlow; approval step via the spec-typed flows.FLOW.approvals.NODE.label) in a new previews/flow-label-translations.tsx. Approval node cards on the canvas (nested regions included), the inspector header title and the Automations header caption show the viewer-language translation and fall back to the authored label. The inspector shows the authored label on a second line ('Authored label: ...', one new lazy studio key engine.inspector.flowNode.sourceLabel in en/zh; eager locales/en.ts untouched). Decision/other node and edge labels stay authored (no spec keys). Premise check: the claim cited FlowPreview ~:143/:150 as where the labels render, but the flow label and the inspector header are drawn by StudioDesignSurface.tsx. The PM approved that growth as claim amendment 6954477935: call-site lines in StudioDesignSurface.tsx and the nested-approval line in flow-region-view.tsx.",
"tests": "Head 4972af642: `cd ui && pnpm exec vitest run` FlowCanvas.test.tsx + flowNodeLabels-13143 + flowNodeLabels.sites-13200 + packages/i18n/ + scripts/ -> 'Test Files 276 passed | 2 skipped (278)', 'Tests 7041 passed | 15 skipped', lock VERDICT command-exit 0. An earlier wider run (previews/, studio-design/, packages/i18n/, 602 files) had its only red in the sites-13200 ledger (keys are source lines). The ledger was re-keyed with verdicts, count and floors unchanged, and then passed (70/70). `pnpm --filter @object-ui/app-shell run type-check` VERDICT command-exit 0; @object-ui/i18n type-check Done. Ablation (fix committed; scripts/ablation-replace.mjs; app-shell resolves via src alias, no dist): FlowCanvas call site reverted to `label={node.label || node.id}` -> 2 failed (canvas pin + FlowPreview-in-I18nProvider pin), restored blob == HEAD, git diff HEAD empty. Six new cases in the existing FlowCanvas.test.tsx harness (one top-level describe).",
"gates": "Local: dispatch-gates --commands = 38 families. All ran; `--ran` gives 38 derived / 38 run / 0 UNRUN. All exited 0, except check:test-source-alias, which exited 1 because the test reached a dynamic import('@objectstack/lint'). The fix is the module-top import the gate prescribes, and the rerun printed 'check-test-source-alias OK'. check:new-line-citations (ui) '0 new citation(s)' exit 0; check-nul-bytes OK; check-i18n-call-site-keys exit 0; overlap-check VERDICT clean before pushes (shares files with #34932/#34926/#34925/#34914/#34799, all merge cleanly). One push went out before its overlap-check (a transient PREREQUISITE NOT MET exit 3 on another PR's file read); the re-run on the same content was clean. i18n-locale-en budget (check-eager-locale-catalogues) NOT MEASURED: PREREQUISITE NOT MET (needs built console eager-closure.json); locales/en.ts diff empty. CI check-runs at report time on 4972af642: Check Changeset, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling, scoped), Type Check (workspace, source, consumer, debt ledger), Governed Surface Queue Guard, PR-body guards = in_progress; UI jobs not yet listed.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 — git push (not REST); fleet-write relay pr_create POST /repos/objectstack-ai/objectstack/pulls (+ assignees leg POST /issues/34947/assignees); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/34903/comments",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — utils/flowsBundle.ts docblock says three surfaces read the flows bundle; the flow designer is now a fourth (file outside the surface, left unedited)",
"carrier: none · noted, not filed — the Automations rail row listing flows still shows the authored flow label; only the open flow's header caption is translated",
"carrier: none · noted, not filed — live console reading with a zh-CN package flow NOT MEASURED (not cheap); the FlowPreview-inside-I18nProvider pin is the fixture reading"
]
}
{
"issue": 34903,
"status": "done",
"branch": "claude/issue-34903-flow-designer-translations",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34947",
"session": "session_01WGufzi3ezPzTysQPDEjmVz",
"premise_still_valid": true,
"summary": "Fix round for L1 REWORK 6956195648, M1. The head CHANGED from 4972af642 to f5c62bde2: bf090e865 merges origin/main forward (#34932 had merged, no rebase), and f5c62bde2 is a test-only fix. No product code changed. Live readings in the real console (Vite over this worktree's ui/, real I18nProvider and loadLanguage, nothing injected) show the feature working. Studio already holds the designed package's flows translations, because the console's loadLanguage fetches GET /api/v1/i18n/translations/LOCALE, the server's merged tree of every installed package, including the flows group. So the L1 hypothesis (Studio never loads the package) is refuted, and no fix or surface growth was needed. Readings: (a) caption 项目预算审批 (showcase, real) and 大额商机审批 (fixture); (b) approval cards translated, decision and edge labels authored; (c) the inspector shows the translation over 原文标签:“authored”, and after 定制 the Label field edits the authored text while the card keeps the translation; (d) en, and a zh flow with no entry, show authored text with no source line. A nested approval card cannot be produced live: FlowSchema refuses approval inside region bodies (ruling 5724940095 D). The merge turned one pin red: #34932 draws an approval's approve out-edge as a localized outcome pill, so the authored-edge assertion moved to a decision branch edge. Live readings paragraph for the PR body, ready to paste: 'Live readings (comment 6958860242): real console over bf090e865, zh-CN. Showcase (real pack): caption 项目预算审批; approval cards 经理审核 and 高管审核; inspector 经理审核 / 原文标签:“Manager Review”. Fixture package mirroring opportunity_approval: caption 大额商机审批; cards 经理审核 and 总监签批; after Customize, the Label field edits the authored text while the card keeps the translation. en, and a zh flow with no entry: authored labels, no source line. A nested approval card is not producible, because the spec refuses approval in region bodies. Screenshots, readings.txt and scripts: /mnt/project-files/objectstack-seat3/34903-live/.'",
"tests": "Head f5c62bde2, all under os-verify-lock. (1) `pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build && pnpm --filter @object-ui/app-shell run type-check && cd ui && pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/ packages/app-shell/src/views/metadata-admin/previews/ packages/i18n/` -> 'Test Files 605 passed (605)', 'Tests 6315 passed | 13 skipped (6328)', VERDICT command-exit 0. (2) The previews/ run at bf090e865, before the fix, had one red: FlowCanvas.test.tsx 'draws the translated approval-step labels...' with 'Unable to find an element with the text: approve' (the #34932 outcome pill). After f5c62bde2, FlowCanvas.test.tsx gives 29/29, VERDICT command-exit 0. (3) `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` -> 'Test Files 171 passed | 2 skipped (173)', VERDICT command-exit 0. Live: scripts live-readings.mjs and live-edit.mjs, outputs in readings.txt. No ablation: the diff since the last round is a test-assertion move, not a tested behaviour change.",
"gates": "Local: dispatch-gates --commands at f5c62bde2 = 38 families. 37 ran with exit captured before any pipe. 36 exited 0 at first run; check:type-check-debt first exited 3 (queued behind the shared lock) and exited 0 on rerun ('OK — 128/131 workspace packages type-checked'). `pnpm --dir ui exec vitest run scripts/` exited 0. `--ran` gives 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. check:new-line-citations (ui): '0 new citation(s)', exit 0. check:nul-bytes OK. overlap-check VERDICT clean exit 0 before both pushes (bf090e865 and f5c62bde2), against #34925, #34914 and #34799. Budget, on a `vite build` of the console from this tree (tsc, sdui-manifest and plugin steps not run): check:eager-closure exit 0, 'i18n-locale-en 60.4 KB / 60.5 KB ceiling (headroom 0.2 KB)', closure '1896.9 KB gzipped across 103 of 2536 chunks (budget: 2431.6 KB)'; check:eager-locale-catalogues exit 0, one eager catalogue (en). CI on f5c62bde2: all completed success. That includes the 11 required contexts (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core skipped by selector, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI 16/16, Build & E2E UI, Live E2E UI, Dogfood Regression Gate) plus Check Changeset and the PR-body guards.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 — git push x2 (bf090e865, f5c62bde2; not REST); post-stamped relay POST /repos/objectstack-ai/objectstack/issues/34947/comments (6958860242); post-stamped relay POST /repos/objectstack-ai/objectstack/issues/34903/comments (this report). PR body not edited.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — the flow-region-view.tsx nested-approval label line is unreachable for spec-valid flows: FlowSchema refuses approval inside loop, parallel and try_catch bodies (ruling 5724940095 D). The line is harmless, and only the unit pin's off-spec fixture exercises it.",
"carrier: none · noted, not filed — after an author renames an approval step in Studio, the canvas still shows the package translation, which is keyed by node id. That is the runner's rule too, and the inspector's 原文标签 line shows the edit.",
"carrier: none · noted, not filed — the Automations rail rows still show the authored flow label (already stated in the PR's acceptance notes).",
"carrier: none · noted, not filed — i18n-locale-en has 0.2 KB headroom on main's eager catalogue; this PR adds nothing eager (locales/en.ts untouched)."
]
}
PR #34947 merged at 2026-11-17T21:10Z (Fixes #34903). The Studio flow designer reads the package's flows.<flow>.label and flows.<flow>.approvals.<step>.label translations for the viewer's language: the Automations caption, the approval cards and the inspector title (with the authored label on a source line). The draft never carries a translation. Live zh-CN readings 6958860242 (showcase and a fixture mirroring opportunity_approval); L1 ACCEPT 6958985947 on the landed head. Noted, not filed: the nested-approval canvas line is reachable only off-spec (ruling 5724940095 D); the Automations rail rows keep the authored label. pm:dispatched and lease:o3-D removed.
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1198, 15:5xZ): p1 · domain:ui →
pm:queue.Themes: zh-CN customers and HotCRM, with a named effect. Signed in with zh-CN, the Studio flow designer shows English flow and approval-step labels that HotCRM ships translated. So p1.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
Claim: PM loop round 2 · 2026-11-17T16:37Z
Session:
session_01WGufzi3ezPzTysQPDEjmVzAccount:
os-support-aiBranch:
claude/issue-34903-flow-designer-translationsWorktree:
objectstack-issue-34903Domain:
domain:uiSeat:
repo:objectstack#3File surface:
ui/packages/app-shell/src/views/metadata-admin/previews/FlowPreview.tsx,FlowCanvas.tsx,flow-canvas-parts.tsxand their existing tests, a small translation read beside them (reusing the spec'stranslateFlowpath FlowRunner already uses),ui/packages/i18n/src/namespaces/studio/**(only if the inspector's source-label line needs a key), root.changeset/Container & model:
S,mode:subagent,model: TIER_DEFAULT (no path-derived mandate on these paths),effort: medium(small console card: one Studio preview surface, no spec change; area-order addendum 16:27Z)Clause-②: yes
Metadata-protocol: none
Responsibility:
objectstack ui/packages/app-shell metadata-admin/previews (FlowPreview renders the authored label as is, selection.label ?? selection.id at :143/:150; only node TYPES go through the studio catalogue) | none | every non-English admin opening a translated package's flow in Studio (HotCRM zh-CN: opportunity_approval)Thread-read: 6953297789
Premise: holds on origin/main: FlowPreview.tsx:143 and :150 render
selection.labeluntranslated; the spec already lets a package translateflows.<flow>.labelandflows.<flow>.approvals.<step>.label(packages/spec/src/system/translation.zod.tsflowsgroup); FlowRunner.tsx already resolves them through the spec'stranslateFlow; the spec has no key for a decision/other node label or an edge labelSerial constraints cleared:
open PR #34932 (flow designer edge conditions, another thread) may touch flow-canvas-parts / FlowCanvas; overlap-check before every push, report on overlapPre-claim lane:
domain:ui— every path is underui/**Pre-claim deps: none named on the card
Prior rulings read: authoring surface,source label,translated label,studio translation → 6 hits (keyword-only; none on Studio label translation); PagePreview's
useObjectTranslationis the precedent for a Studio preview rendering metadata translations; thread: noneRuling-ref: seat ruling (repo:objectstack#3, 2026-11-17 16:36Z) on this card's ask, option A
Scope (seat ruling A): the flow label and the approval-step labels show the package's viewer-language translation where one exists, falling back to the authored label; the authored source label stays visible in the selection inspector beside the translation (Studio is the authoring surface). ⛔ No new spec keys: the spec has no keys for decision/other node labels or edge labels, so those stay authored text; if the filer wants them, the filer files that card.
Clause-②: yescovers a possible new studio-namespace key for the source-label line (locale keys only; L1 at TIER_DEFAULT the review of record); the PR states whether one was added.Lease
o3-D(seat post #34584).objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
Claim amendment · 2026-11-17T16:41Z
Amends claim 6954368456 (area o3-D, same session, same branch
claude/issue-34903-flow-designer-translations). Measured by the dev on origin/main 189358f: the flow's own label is drawn by Studio'sauto-canvas-captionheader (current.label || current.name) and the inspector header comes fromflowSelectionHeading(draft, selection, locale), both inStudioDesignSurface.tsx; nested approval cards draw their label inpreviews/flow-region-view.tsx. The File surface adds:ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx: call-site lines only (one hook call, the caption title, the heading argument)ui/packages/app-shell/src/views/metadata-admin/previews/flow-region-view.tsx: the nested approval card label (one line)Serial: open PRs that edit
StudioDesignSurface.tsxare checked by overlap-check before every push; #34932 lands before this PR (seat order). Everything else in 6954368456 stands.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
os-dev-report
{ "issue": 34903, "status": "done", "branch": "claude/issue-34903-flow-designer-translations", "pr": "https://github.com/objectstack-ai/objectstack/pull/34947", "session": "session_01WGufzi3ezPzTysQPDEjmVz", "premise_still_valid": true, "summary": "The Studio flow designer now reads the package bundle FlowRunner reads (activeFlowsBundle, flow label through the spec's translateFlow; approval step via the spec-typed flows.FLOW.approvals.NODE.label) in a new previews/flow-label-translations.tsx. Approval node cards on the canvas (nested regions included), the inspector header title and the Automations header caption show the viewer-language translation and fall back to the authored label. The inspector shows the authored label on a second line ('Authored label: ...', one new lazy studio key engine.inspector.flowNode.sourceLabel in en/zh; eager locales/en.ts untouched). Decision/other node and edge labels stay authored (no spec keys). Premise check: the claim cited FlowPreview ~:143/:150 as where the labels render, but the flow label and the inspector header are drawn by StudioDesignSurface.tsx. The PM approved that growth as claim amendment 6954477935: call-site lines in StudioDesignSurface.tsx and the nested-approval line in flow-region-view.tsx.", "tests": "Head 4972af642: `cd ui && pnpm exec vitest run` FlowCanvas.test.tsx + flowNodeLabels-13143 + flowNodeLabels.sites-13200 + packages/i18n/ + scripts/ -> 'Test Files 276 passed | 2 skipped (278)', 'Tests 7041 passed | 15 skipped', lock VERDICT command-exit 0. An earlier wider run (previews/, studio-design/, packages/i18n/, 602 files) had its only red in the sites-13200 ledger (keys are source lines). The ledger was re-keyed with verdicts, count and floors unchanged, and then passed (70/70). `pnpm --filter @object-ui/app-shell run type-check` VERDICT command-exit 0; @object-ui/i18n type-check Done. Ablation (fix committed; scripts/ablation-replace.mjs; app-shell resolves via src alias, no dist): FlowCanvas call site reverted to `label={node.label || node.id}` -> 2 failed (canvas pin + FlowPreview-in-I18nProvider pin), restored blob == HEAD, git diff HEAD empty. Six new cases in the existing FlowCanvas.test.tsx harness (one top-level describe).", "gates": "Local: dispatch-gates --commands = 38 families. All ran; `--ran` gives 38 derived / 38 run / 0 UNRUN. All exited 0, except check:test-source-alias, which exited 1 because the test reached a dynamic import('@objectstack/lint'). The fix is the module-top import the gate prescribes, and the rerun printed 'check-test-source-alias OK'. check:new-line-citations (ui) '0 new citation(s)' exit 0; check-nul-bytes OK; check-i18n-call-site-keys exit 0; overlap-check VERDICT clean before pushes (shares files with #34932/#34926/#34925/#34914/#34799, all merge cleanly). One push went out before its overlap-check (a transient PREREQUISITE NOT MET exit 3 on another PR's file read); the re-run on the same content was clean. i18n-locale-en budget (check-eager-locale-catalogues) NOT MEASURED: PREREQUISITE NOT MET (needs built console eager-closure.json); locales/en.ts diff empty. CI check-runs at report time on 4972af642: Check Changeset, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling, scoped), Type Check (workspace, source, consumer, debt ledger), Governed Surface Queue Guard, PR-body guards = in_progress; UI jobs not yet listed.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — git push (not REST); fleet-write relay pr_create POST /repos/objectstack-ai/objectstack/pulls (+ assignees leg POST /issues/34947/assignees); post-stamped comment POST /repos/objectstack-ai/objectstack/issues/34903/comments", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — utils/flowsBundle.ts docblock says three surfaces read the flows bundle; the flow designer is now a fourth (file outside the surface, left unedited)", "carrier: none · noted, not filed — the Automations rail row listing flows still shows the authored flow label; only the open flow's header caption is translated", "carrier: none · noted, not filed — live console reading with a zh-CN package flow NOT MEASURED (not cheap); the FlowPreview-inside-I18nProvider pin is the fixture reading" ] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
os-dev-report
{ "issue": 34903, "status": "done", "branch": "claude/issue-34903-flow-designer-translations", "pr": "https://github.com/objectstack-ai/objectstack/pull/34947", "session": "session_01WGufzi3ezPzTysQPDEjmVz", "premise_still_valid": true, "summary": "Fix round for L1 REWORK 6956195648, M1. The head CHANGED from 4972af642 to f5c62bde2: bf090e865 merges origin/main forward (#34932 had merged, no rebase), and f5c62bde2 is a test-only fix. No product code changed. Live readings in the real console (Vite over this worktree's ui/, real I18nProvider and loadLanguage, nothing injected) show the feature working. Studio already holds the designed package's flows translations, because the console's loadLanguage fetches GET /api/v1/i18n/translations/LOCALE, the server's merged tree of every installed package, including the flows group. So the L1 hypothesis (Studio never loads the package) is refuted, and no fix or surface growth was needed. Readings: (a) caption 项目预算审批 (showcase, real) and 大额商机审批 (fixture); (b) approval cards translated, decision and edge labels authored; (c) the inspector shows the translation over 原文标签:“authored”, and after 定制 the Label field edits the authored text while the card keeps the translation; (d) en, and a zh flow with no entry, show authored text with no source line. A nested approval card cannot be produced live: FlowSchema refuses approval inside region bodies (ruling 5724940095 D). The merge turned one pin red: #34932 draws an approval's approve out-edge as a localized outcome pill, so the authored-edge assertion moved to a decision branch edge. Live readings paragraph for the PR body, ready to paste: 'Live readings (comment 6958860242): real console over bf090e865, zh-CN. Showcase (real pack): caption 项目预算审批; approval cards 经理审核 and 高管审核; inspector 经理审核 / 原文标签:“Manager Review”. Fixture package mirroring opportunity_approval: caption 大额商机审批; cards 经理审核 and 总监签批; after Customize, the Label field edits the authored text while the card keeps the translation. en, and a zh flow with no entry: authored labels, no source line. A nested approval card is not producible, because the spec refuses approval in region bodies. Screenshots, readings.txt and scripts: /mnt/project-files/objectstack-seat3/34903-live/.'", "tests": "Head f5c62bde2, all under os-verify-lock. (1) `pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build && pnpm --filter @object-ui/app-shell run type-check && cd ui && pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/ packages/app-shell/src/views/metadata-admin/previews/ packages/i18n/` -> 'Test Files 605 passed (605)', 'Tests 6315 passed | 13 skipped (6328)', VERDICT command-exit 0. (2) The previews/ run at bf090e865, before the fix, had one red: FlowCanvas.test.tsx 'draws the translated approval-step labels...' with 'Unable to find an element with the text: approve' (the #34932 outcome pill). After f5c62bde2, FlowCanvas.test.tsx gives 29/29, VERDICT command-exit 0. (3) `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` -> 'Test Files 171 passed | 2 skipped (173)', VERDICT command-exit 0. Live: scripts live-readings.mjs and live-edit.mjs, outputs in readings.txt. No ablation: the diff since the last round is a test-assertion move, not a tested behaviour change.", "gates": "Local: dispatch-gates --commands at f5c62bde2 = 38 families. 37 ran with exit captured before any pipe. 36 exited 0 at first run; check:type-check-debt first exited 3 (queued behind the shared lock) and exited 0 on rerun ('OK — 128/131 workspace packages type-checked'). `pnpm --dir ui exec vitest run scripts/` exited 0. `--ran` gives 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. check:new-line-citations (ui): '0 new citation(s)', exit 0. check:nul-bytes OK. overlap-check VERDICT clean exit 0 before both pushes (bf090e865 and f5c62bde2), against #34925, #34914 and #34799. Budget, on a `vite build` of the console from this tree (tsc, sdui-manifest and plugin steps not run): check:eager-closure exit 0, 'i18n-locale-en 60.4 KB / 60.5 KB ceiling (headroom 0.2 KB)', closure '1896.9 KB gzipped across 103 of 2536 chunks (budget: 2431.6 KB)'; check:eager-locale-catalogues exit 0, one eager catalogue (en). CI on f5c62bde2: all completed success. That includes the 11 required contexts (Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core skipped by selector, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI 16/16, Build & E2E UI, Live E2E UI, Dogfood Regression Gate) plus Check Changeset and the PR-body guards.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — git push x2 (bf090e865, f5c62bde2; not REST); post-stamped relay POST /repos/objectstack-ai/objectstack/issues/34947/comments (6958860242); post-stamped relay POST /repos/objectstack-ai/objectstack/issues/34903/comments (this report). PR body not edited.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — the flow-region-view.tsx nested-approval label line is unreachable for spec-valid flows: FlowSchema refuses approval inside loop, parallel and try_catch bodies (ruling 5724940095 D). The line is harmless, and only the unit pin's off-spec fixture exercises it.", "carrier: none · noted, not filed — after an author renames an approval step in Studio, the canvas still shows the package translation, which is keyed by node id. That is the runner's rule too, and the inspector's 原文标签 line shows the edit.", "carrier: none · noted, not filed — the Automations rail rows still show the authored flow label (already stated in the PR's acceptance notes).", "carrier: none · noted, not filed — i18n-locale-en has 0.2 KB headroom on main's eager catalogue; this PR adds nothing eager (locales/en.ts untouched)." ] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
Closed by merge · 2026-11-17T21:15Z
PR #34947 merged at 2026-11-17T21:10Z (
Fixes #34903). The Studio flow designer reads the package'sflows.<flow>.labelandflows.<flow>.approvals.<step>.labeltranslations for the viewer's language: the Automations caption, the approval cards and the inspector title (with the authored label on a source line). The draft never carries a translation. Live zh-CN readings 6958860242 (showcase and a fixture mirroring opportunity_approval); L1 ACCEPT 6958985947 on the landed head. Noted, not filed: the nested-approval canvas line is reachable only off-spec (ruling 5724940095 D); the Automations rail rows keep the authored label.pm:dispatchedandlease:o3-Dremoved.