Repository navigation
feat(spec): every step a flow drawing shows can be translated, under flows.FLOW.nodes.NODE_ID.label - #36383
Conversation
…flows.FLOW.nodes Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc
…teps a flow embed draws Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc
…ad their own family Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc
…r row planned until the reader lands Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc
…les' new step-label debt Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc
📓 Docs Drift CheckThis PR changes 3 package(s): 28 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 15 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 185 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin e95517f99a24043c8c78eef304a4c996482b9a9d && git checkout e95517f99a24043c8c78eef304a4c996482b9a9d
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 07b17542a24a6d1cc89342a949901f47e93c76aa 04d28e04f9310fed7f4c981e5f12771d8df2f861 && git checkout -B drift-repro 07b17542a24a6d1cc89342a949901f47e93c76aa && git merge --no-ff 04d28e04f9310fed7f4c981e5f12771d8df2f861
node scripts/docs-audit/affected-docs.mjs --json 07b17542a24a6d1cc89342a949901f47e93c76aa
|
…tion keys Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract-review-claim: session_01QsR2jTeURPvEm465RcoYEC · head 47a645c · 2026-11-22T09:36Z |
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc
…-t9wf57 Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc
The shared step-label resolution in @object-ui/i18n now reads the one key
each step's name has: approvals.<node_id>.label for an approval,
screens.<node_id>.title for a screen with no config.title, and
nodes.<node_id>.label for any other node. The docs viewer's flow embed and
the Studio canvas (nested region nodes included) read it through
stepLabel. The docs embed names a titled screen by its heading,
translated where the bundle carries it, unless the heading holds a {{ }}
hole, and folds technical steps by the spec's FLOW_TECHNICAL_NODE_TYPES.
The flows.nodes ledger row flips to live, citing the readers.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 REWORK · head 维护者速读
要改的(2 项)
席位核对
|
…lls follow-up by its number Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Read: card #35979 body and all 10 comments (ruling 7076440876, the item 1 report and closing note, dev report 7083079826), the PR body, its 27-file list, the net diff against merge-base dda5e74, and the 74 check-runs on this head (63 success, 11 skipped, none failed or pending). The whole PR is judged, not the delta since 47a645c. The PR is still a draft. Follow-up cards #36400, #36401 and #36402 exist and are open. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
S1 (should-fix): the walk does not ask for every step name the embed draws at business altitude. N1 (nit): the N2 (nit): an untitled screen's translated Implemented-by: VERDICT: PASS |
…mes it The docs flow embed lists each drawn decision's branches and names the step a branch leads to by its label, a folded technical step included (app-todo's check_recurring branches to the compute_next_due_date script). The walk now asks for nodes.<node_id>.label for those targets too, mirroring which out-edges the viewer lists, so the steps the embed names and the steps the coverage check asks for are the same set. The examples' new debt is frozen (showcase +1, todo +2). The nodes docblock says a titled screen's canvas label has no key, and two designer comments name every key stepLabel reads. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 ACCEPT(增量)· head 维护者速读
增量核对(
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Delta review of the record on bc0171d (comment 7083158017). Read: the two commits since that head (6f67076, 04d28e0), the PR body, its 29-file list, the tree at this head, and the 74 check-runs on this head (63 success, 11 skipped, none failed or pending). Everything the earlier record judged right and this delta does not touch stands. The PR is still a draft. S1: closed ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
No must-fix, no should-fix. N2 (nit): carried from the earlier record, untouched by the delta. An untitled screen's translated N3 (nit): the branch-listing rule now lives in two places. Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Landing (seat 7, 2026-11-22T19:32Z): head |
… opening the report editor keeps the page in the session language (objectstack-ai#36420) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_ repo:objectstack#7 · zhuangjianguo · session_01QsR2jUP9hxdL4RzdzTs9eK Fixes objectstack-ai#36373 Clause-②: yes (widening) — the report and widget panels accept an edit of a translated name or title in the session's language, stored as the inline locale map `{ default: SOURCE, LANG: EDIT }` that `I18nLabel` already allows; for an item with a packaged base the server no longer lets the base's translation replace that entry on report `label`/`description` and widget `title`. Nothing is removed or renamed. Metadata-protocol: semantic — `translateReport` and `translateDashboard` now treat a report `label`/`description` or a widget `title` as changed when its inline locale-map entry for the requested locale (the entry the panel writes: exact tag, then the locale's own script, else base tag or a sibling region; never `default`) differs from the packaged base's own, so the base's translation no longer replaces it; a translation the paired `.custom` package ships still answers first (ruling record 6631250894), and with none the entry is served; dataset members (`translateDataset`, ADR-0149) are unchanged Skills-docs: none — no `skills/` file names these panels, their wording or the report/widget label precedence (`git grep` over `skills/` for `translateReport`, `translateDashboard`, `inline locale map`, `ReportDefaultInspector`, `DashboardWidgetInspector`: 0 hits). ## 维护者速读 - **改了什么**:运行界面报表的「编辑」面板、仪表盘卡片属性栏、Studio 里同一套面板,一律显示字段/指标/数据来源的标签(悬停才看到内部名);用词改成「数据来源」「分组」「指标 · 合计」「跟着页面顶部的筛选变」,图表类型是中文名加图标;数据来源下面是一句人话。名称、标题框显示当前语言的文字,改动只写当前语言(`{ default: 原文, zh-CN: 新文字 }`);对已安装应用的报表/仪表盘,服务端不再用应用包的翻译盖掉这一条(定制包自己带的翻译仍然优先)。另修:打开编辑面板时页面标题和副标题不再变成英文。 - **为什么改**:维护者要求对照 Attio 把面板换成业务用词;中文管理员原来看到 `total_amount`、`bar`、「维度」「度量」「受治理…RLS」,页面标题一开编辑就变英文。 - **风险与回滚**:服务端 `i18n-resolver.ts` 改了报表名称/描述和卡片标题的取值顺序(只在有打包基线、且内联条目与基线不同的时候才生效;三仓源码普查 0 个内联 map;部署里已存的定制行若带这种 map,该语言会改读定制自己的文字);数据集成员不变。回滚即 revert 本 PR。 - **先看**:`servedLabel.ts`(显示与写回规则)、`i18n-resolver.ts` 的 `slotRead` / `inlineEntryFor`、`ReportView.tsx` 的 `previewWithServedText`,以及 PR 里的前后截图说明。 ## What changes **Wording and names (both panels).** `ReportDefaultInspector` (runtime 「编辑」 and Studio) and `DashboardWidgetInspector` (Studio's widget property bar, which objectstack-ai#36372 reuses at runtime): - The data-source picker lists each dataset by its label alone (`datasetLabelOptions`); the machine name is the option's `title`. No `(name)`, no description. - Bound measure and dimension rows, the add-member popover and the chart-axis selects show labels; the machine name moves to a `title` (`nameOnHover` on `FieldListRow`, `AddFieldPopover` and `InspectorComboField`). A measure reads `LABEL · AGGREGATE`, the aggregate in words from the new `engine.inspector.report.aggregate.*` keys (「金额 · 合计」, "Amount · Sum"). - Catalogue wording (`studio/{en,zh}.ts`): 数据来源 / Data source, 分组 / Group by, 指标 / Metrics, 列分组 / Group columns by, 横轴(分组)/ 纵轴(指标), 不显示图表(只看表格); the widget's section heading is 数据 / Data; the filter section is 跟着页面顶部的筛选变 / Follows the filters at the top of the page; the data-source hint is one plain sentence (no 受治理 or RLS), on the report panel too (`report-dataset-hint`). - The chart-type select shows each type's catalogue name and its icon (`InspectorSelectField` options take an `icon`). - A filter binding row names the filter: its label, 时间 / Date for the date range, else the label of the dimension whose column (`columnIdentity()`) it filters; the empty field face reads 默认(LABEL) or 默认字段. - The report form rows below the curated fields (`metadata-form-zh-cn.ts`, the zh-CN overlay this console renders the bundled report form with) use the same words; those leaves are marked ⟨36373⟩. **Current-language name and title.** `servedLabel.ts`: the name box (report) and title box (widget) show the served translation while the buffer still equals the published value it was translated from; an edit writes the session language's entry only (`writtenLabel`). The report's served text reaches the panel through the new `ServedReportTextContext`, provided by `ReportView` (paired at editor open) and `StudioDesignSurface`; the widget's through the existing `ServedWidgetTextContext`, now also wrapped around Studio's selection inspector and, after objectstack-ai#36405, around the dashboard page's edit panel (`DashboardEditPanel` pairs the page's served dashboard with the stored document the edit opened; `useDashboardInPageEdit` keeps that opened document as `published`). **Heading fix.** `ReportView` drew the authored edit buffer (objectstack#35008) as the page, so opening the editor turned 「各阶段商机」 into "Opportunities by Stage". `previewWithServedText` now draws the served value of every translated key (`title`, `label`, `description`, `blocks`) the edit has not changed. **Server precedence (spec).** `packages/spec/src/system/i18n-resolver.ts`: `valueOverridesPackagedBase` (a re-authored string, as before) and `inlineEntryOverridesPackagedBase` (an inline map whose entry for the requested locale differs from the base's) decide what `slotRead` hands the lookup. `translateReport` (label, description) and `translateDashboard` (widget title) read through `slotRead`: a re-authored string reads the pair's translations along the locale chain, as before (`catalogFor(catalogs, true)`); a slot changed through its map entry reads the pair's translation for the requested language only (the same tag, case aside, or another spelling of the same platform-table tag: a `zh-CN` request reads a row under `zh-Hans`, `ja-JP` one under `ja`; no fallback chain, no base-language or regional-variant step), so rank 1 of ruling record 6631250894 (the paired `.custom` package's translation) still answers first for that locale, the base's translation never, and with no pair answer for that locale the map is served and the reader picks its entry (L2 7079950960 S3 and 7080413623 S4, seat ruling: way 1, the requested language). `inlineEntryFor` picks the entry the panel's writer (`localeWriteKey`) replaces: exact tag, then, where the platform table splits the language by script, only an entry of the locale's own script (bare base, then sibling), else the bare base, then the first sibling. ⛔ never `default`. The jsdoc of `labelCatalogs`, `translateReport` and `translateDashboard` names the rule; `inlineEntryOverridesPackagedBase` says why it is a separate twin of `valueOverridesPackagedBase` (the exported `scalarOverridesPackagedBase` and the object fold stay string-only). Docs: `content/docs/protocol/kernel/i18n-standard.mdx` (the precedence), `content/docs/ui/reports.mdx` (new "Editing a report beside it"), `content/docs/ui/dashboards.mdx` (filter bindings wording). ## Tests - New `packages/spec/src/system/i18n-report.test.ts` describe (14 cases): zh entry served; the en `default` byte-identical; ja still reads its bundle text (ステージ別商談); a base-tag `zh` entry answers `zh-CN`; control, a map equal to the base's map reads the bundle; control, no base reads the bundle (the panel gap below); the widget title follows the same rule; scope control, a dataset member's map still loses to the bundle (ADR-0149). L2 rework: with `pairBundle`, the pair's translation answers ahead of the zh entry on a report label and on a widget title, and a pair with no entry for the slot leaves the map (the base's translation never answers); a `zh-TW` request over `{ default, zh }` reads its Traditional bundle text; a `zh-TW` request over `{ default, zh, zh-HK }` gates on the `zh-HK` entry `resolveI18nLabel` shows; a bare-`zh` session reads the `zh-CN` entry its own edit replaced. L2 S3: a pair translation for `en` down a `fallbackChain` does not outrank the `zh-CN` entry (report and widget title), a `zh-TW` pair does not answer a `zh-CN` request over the `zh-CN` entry, and a re-authored plain string still reads the pair along the chain (control). L2 S4: a `zh-CN` request reads a pair row stored under `zh-Hans`, the `zh-Hans` mirror over `zh-CN`, and `ja-JP` over `ja`; the `zh-TW` pin stays the control. 19 cases in the describe. - New `servedLabel.test.ts` (11 cases): show/write rules, the `{ default, zh-CN }` write with the source byte-identical, a map keeps every other language, clears, a second edit. - New `panelBusinessWording-36373.test.tsx` (8 cases), on the HotCRM `opportunity_metrics` shape: the zh panel reads 数据来源 商机指标, 金额 · 合计, 平均赢单概率 · 平均, 分组 阶段, 柱状图 and the served 各阶段商机; a sweep of both panels' visible text finds none of `total_amount`, `avg_probability`, `account_industry`, `opportunity_metrics`, `stage`, `bar`, `RLS`, 维度, 度量, 受治理 (and on the widget `dateRange`, `owner_id`, `lead_source`); machine names are present as `title`; the chart-type options are Chinese names, each with an `svg`; en reads English labels with no machine name; an edit of the served name sends `{ default: SOURCE, 'zh-CN': EDIT }`. The sweep caught the residual report form rows still saying 维度/度量, fixed here. - New `ReportView.headingStaysServed-36373.test.tsx` (3 cases) on the real `ReportView` and `ReportConfigPanel`: heading and subtitle stay served with the editor open; an edited key shows the edit; the panel receives the served/authored pair. - `DashboardView.inPageEdit-36372.test.tsx`: new case, through the real `DashboardView`: the card panel on the dashboard page reads the served title beside the stored one (`Total (served) ← Total (stored)`); ablation (provider value `null`) → that case red, 10 others green. - Moved to the new wording: `ReportDefaultInspector.test.tsx`, `DashboardWidgetInspector.test.tsx`, `datasetPickers.authorText-11161.test.tsx` (restated for objectstack-ai#36373), `InterfacesPillar.componentListServedTitles-12688.test.tsx` (the Title box now reads the served title), `InterfacesPillar.heldWidget-11910.test.tsx`, `InterfacesPillar.reportHeld-27785.test.tsx`, `StudioDesignSurface.heldWidgetPublish-11910.test.tsx`. - Ablations (`scripts/ablation-replace.mjs`, restored blob == HEAD each time): precedence reverted (`return false`) → 3 of 24 spec cases red (zh entry, base tag, widget title); `previewWithServedText` replaced by the raw buffer → 2 of 3 heading cases red (the context case is a separate seam). L2 rework: `i18n-resolver.ts` swapped back to `e2d307a1`'s → 4 of 30 red (pair on report, pair on widget, zh-TW over `{ default, zh }`, bare zh over `zh-CN`); restored, 30/30. S3: `i18n-resolver.ts` swapped back to `0df531f9`'s → 3 of 34 red (fallback chain on report and widget, `zh-TW` variant); restored, 34/34. S4: `i18n-resolver.ts` swapped back to `8ad569b7`'s → the S4 case red; restored, 35/35. ## Acceptance notes - **Stored shape.** An edit typed over a translation of a plain-string label stores `{ default: SOURCE, LANG: EDIT }`. Pinned: after a zh edit the English `default` is byte-identical; a third locale (ja) still reads its bundle translation; the precedence between bundle and inline map is named and pinned (below). - **Precedence.** For report `label`/`description` and widget `title`, on an item with a packaged base whose inline entry for the requested locale differs from the base's: 1. a translation the paired `.custom` package ships; 2. the entry; never the base's translation (ruling record 6631250894's order, kept). A map equal to the package's own map changes nothing (control pin); an item with no packaged base reads the bundle as before (control pin). - **Owed, not in this PR (L2 S2).** With no packaged base (a report or dashboard no code package ships), the panel still stores `{ default: SOURCE, LANG: EDIT }`, the server still serves the bundle where it has an entry for that language, and the box shows that translation again after save, with no message. The same holds for an override once the pair carries a translation for that locale. `servedLabel.ts` now states this. Carried by objectstack-ai#36481 (write the translation row, or say so in the panel). - **ADR-0149.** Its bundle-wins clause is scoped to dataset members; `translateDataset` is untouched, and a pin shows a dataset member's inline map still loses to the bundle. `check-prior-rulings` over the precedence terms: 0 hits; `docs/adr` has no other ruling on report/widget label precedence. - **Census** of inline locale maps on report `label`/`description` and widget `title`: objectstack `67132dd7` (2 report files, 6 dashboard files) 0; hotcrm `689166c` (5, 7) 0; gallery `782d801` (1, 1) 0. The only map in those files is a dashboard `globalFilters` label in hotcrm `activity.dashboard.ts`, not a covered prop. No packaged source changes reading; the census cannot see override rows stored in a deployment, where a row carrying such a map now reads its own entry in that locale (the change the semantic line names). - **Supersedes on these two panels only:** objectui#11161's `LABEL (name)` and objectui#12303's trailing machine name. Other dataset pickers (the spec-form `ref:dataset` widget, view and page pickers) are unchanged. - **Not changed:** the panels' structure and items; the report `description` field (it stays in the form rows below and edits the authored text); Studio's dataset designer. The en form rows below the curated fields still read the spec's English (`Dataset binding`, "Values are the dataset’s measures…"): the console deliberately carries no `en` overlay, and rewording the spec form ripples into ten generated locale bundles — a follow-up if wanted. The platform's own zh-CN `metadata-forms` bundle (the generic server-rendered form) keeps 数据集/维度/度量 for the same reason. - 「查看明细」 is objectstack-ai#36256 and is not rebuilt here. ## Live run (L1-e REWORK) At head `c6ab9f25`, a fresh local backend (`objectstack dev --seed-admin`, file DB, the worktree's CLI and freshly built `@objectstack/spec`) ran HotCRM `689166c` (a scratch copy with `initialStates` added to its twelve state-machine validations, because the current author-time rules refuse the copy without them; no HotCRM file changed). The console ran from this branch's sources (`ui/apps/console` Vite against it), driven by Playwright as the seeded admin in a `zh-CN` and an `en-US` browser. | Acceptance | Reading | |---|---| | Open 各阶段商机, press 编辑: heading and subtitle | Before: 「各阶段商机」 / 「按阶段分组汇总商机」. With the panel open: the same. en: "Opportunities by Stage" / "Summary of opportunities grouped by stage", both states. | | Panel words (zh-CN) | 数据来源 商机指标; 报表从这里取数;每个人只能看到自己有权限的记录。; 指标 总金额 · 合计、平均赢单概率 · 平均; 分组 阶段; 图表类型 柱状图; 横轴(分组)阶段; 纵轴(指标)总金额 · 合计. HotCRM labels the measure 「总金额」, so the panel reads that, not 「金额」. Name box 各阶段商机. | | Forbidden-word sweep of the panel's visible text | zh-CN and en-US: none of `total_amount`, `avg_probability`, `opportunity_metrics`, `stage` (en: as a word), `bar`, `RLS`, 维度, 度量, 受治理. Machine names are on `title` only: `total_amount`, `avg_probability`, `stage`. | | Chart types | zh: 不显示图表(只看表格), 柱状图, 柱形图, 折线图, 面积图, 饼图, 环形图, each chart with its icon. en: No chart (table only), Bar Chart, Column Chart, … | | English | Opportunity Metrics, Total Amount · Sum, Avg Probability · Average, Group by Stage, Bar Chart; no machine name. | | Studio, same report | `/studio/app.objectstack.hotcrm/interfaces?surface=report:opportunities_by_stage`: the same words, name box 各阶段商机, sweep clean (zh and en). | | Studio, same dataset's widget | 销售业绩 (`sales_dashboard`) → 阶段管道分布: 数据 · 数据来源 商机指标, 卡片从这里取数…, 分组 阶段, 指标 总金额 · 合计, 跟着页面顶部的筛选变 with 时间 「默认(预计成交日)」, 销售代表 「默认(负责人)」, 商机类型; title box 阶段管道分布. en: Data source "Opportunity Metrics", "Total Amount · Sum", "Follows the filters at the top of the page", Date / Sales Rep / Deal Type. Sweep clean (also `owner_id`, `close_date`, `dateRange`). | | Untranslated self-built report | A dataset `my_deal_figures` (label 我的成交数据, dimension 销售阶段(自建), measure 合同额) and a report `my_deal_report` (我的成交报表) created over REST in `app.objectstack.hotcrm.custom`, no bundle entries. zh-CN panel: 数据来源 我的成交数据, 指标 合同额 · 合计, 分组 销售阶段(自建); en-US: the same author text with "· Sum". Machine names `contract_value`, `phase` on `title` only. | | Round trip: edit the name in zh-CN, Save, reload | Runtime 「编辑」 → Save on this package report is refused before this PR's code is reached: `PUT /api/v1/meta/report/opportunities_by_stage?mode=draft` → **403 NOT_OVERRIDABLE** ("ships in 'app.objectstack.hotcrm': save it into 'app.objectstack.hotcrm.custom'"); the panel stays open and dirty, as objectui#11583 has it (finding below). So the round trip ran through Studio's 定制: `POST /packages/app.objectstack.hotcrm/ensure-customization` (201), then `PUT …/opportunities_by_stage?mode=draft&package=app.objectstack.hotcrm.custom` with body `"label":{"default":"Opportunities by Stage","zh-CN":"各阶段商机(本公司)"}` and `"overrides":{"package":"app.objectstack.hotcrm","basedOn":"6.5.0"}` (200), then 发布 → `POST /packages/app.objectstack.hotcrm.custom/publish-drafts` (200, 1 published). After a reload: zh-CN heading 「各阶段商机(本公司)」, name box 各阶段商机(本公司); en-US heading and box "Opportunities by Stage"; `GET /meta/report/…?locale=zh-CN` and `?locale=en` serve the stored map `{"default":"Opportunities by Stage","zh-CN":"各阶段商机(本公司)"}`; `?locale=ja-JP` serves the bundle's 「ステージ別商談」. | Findings from the run, not fixed here (for the seat): 1. Runtime 「编辑」 → Save on a report an installed package ships is refused 403 NOT_OVERRIDABLE: `ReportView`'s save names no package and declares no override. Not touched by this diff (the save path is unchanged); objectstack-ai#36405 gives the dashboard page this route (ensure door + `overrides`), the report page has none. Carried by objectstack-ai#36374 (item 8, 保存后对所有人生效). 2. The report form's 描述 box shows the English source ("Summary of opportunities grouped by stage") while the subtitle beside it reads 「按阶段分组汇总商机」. The card's current-language rule covers the name box; the description stays in the form rows (stated under "Not changed"). Carried by objectstack-ai#36374 (item 2, 说明可直接改). 3. Studio's canvas strip reads 「已选中:Pipeline by Stage」 in a zh-CN session (`selection.label` in `StudioDesignSurface`): outside the panels, same class. Carried by objectstack-ai#36480. 4. English form rows (Dataset binding, "semantic-layer dataset", dimensions/measures) stay out, per the seat; carried by objectstack-ai#36447. ## Verification <details><summary>Tests</summary> Readings at the merged head `20c4ea00` unless named. S4 at `85e6baf9`: spec `vitest run src/system src/ui/i18n-label-resolver.test.ts` 77 files, 2768 passed (`i18n-report.test.ts` 35/35); `tsc` and `eslint` exit 0; `overlap-check` clean. S3 at `8ad569b7`: spec `vitest run src/system src/ui/i18n-label-resolver.test.ts` 77 files, 2767 passed (`i18n-report.test.ts` 34/34); `tsc --noEmit -p packages/spec` exit 0; `eslint` on the two spec files exit 0; `overlap-check` clean against main and objectstack-ai#36383. At `0df531f9` (main `8a741abd` with objectstack-ai#36405 merged in): `@object-ui/app-shell` `type-check` exit 0 (after rebuilding its dependencies, 68/68 turbo tasks); one locked `vitest run` of 266 app-shell files (every Dashboard*/ReportView*/ReportConfigPanel* view test, every inspector test, the moved Studio tests, the runtime-metadata persistence test): 266 files, 3371 passed, 1 skipped; `check:test-source-alias` OK; core `column-identity.ratchet` 7/7. L2 rework at `c6ab9f25`: spec `vitest run src/system src/ui/i18n-label-resolver.test.ts` 77 files, 2763 passed (`i18n-report.test.ts` 30/30); `tsc --noEmit -p packages/spec` exit 0; `eslint` on the two spec files exit 0. - ui: one locked `vitest run` of 117 files (every app-shell, i18n and console test that names a changed module, the moved tests and the four new files): 117 files, 1141 passed, 7 skipped. - spec: `vitest run src/system/`: 76 files, 2642 passed (`i18n-report.test.ts` 24/24). - `@object-ui/app-shell` `type-check` (`tsc --noEmit` and `tsc -p tsconfig.test.json`): exit 0. - `eslint` on the touched ui files: 0 errors (warnings only in `StudioDesignSurface.tsx`, none on changed lines). - Full `pnpm build --concurrency=2` after the merge: 120/120 tasks. - Ablations: see Tests above. </details> <details><summary>Gates</summary> - `dispatch-gates --commands` at the merged head `20c4ea00`: 112 families. `dispatch-gates --ran` with recorded exit codes: 112 derived, 112 run, 0 NOT-MEASURED, every family exit 0. - The first sweep (pre-merge) found one real red, fixed in this PR: `check:test-source-alias` asked the edited tests that reach `import('@objectstack/lint' | '@objectstack/formula')` to pay that load at collection (module-top side-effect imports). Its other exit-3 rows were prerequisites (a shallow-clone fixture commit; built output), cleared by fetching the fixture and a full `pnpm build --concurrency=2` (120/120 tasks), then green. - `overlap-check`: VERDICT clean exit 0 against `origin/main` `97b9d1e6` and objectstack-ai#36383 (shares `i18n-standard.mdx`, merges cleanly). At `c6ab9f25`: clean against `origin/main` `6a35635a` and objectstack-ai#36383. At `0df531f9`: clean against `origin/main` `7ae5e074`, objectstack-ai#36461 (shares `DashboardView.tsx`, `ReportView.tsx`) and objectstack-ai#36383. - CI at the final head `e2d307a1`: 70 check-runs, 61 success and 9 skipped, none failed. The first CI run, at `20c4ea00`, went red on Test UI 9/16. The core `column-identity.ratchet` refused a new `name`/`field` dual read in the widget panel's filter-label lookup (`dimensionLabelOf`), which now reads the dimension's column through `columnIdentity()`. Locally, the ratchet, the five affected ui files (62 tests) and the app-shell type-check pass, and `overlap-check` is clean. - Changed lines vs `origin/main`: under the 3000 threshold (30 files). </details> <details><summary>Screenshots</summary> Live shots (2× scale) from the run below, in the project's shared files under `repo-objectstack-7/card-36373/`; they cannot be uploaded to GitHub from the cloud seat. They replace the harness shots, which are deleted. - `live-report-panel-zh-CN.png`: runtime 「编辑」 on 各阶段商机 after the round trip: heading 「各阶段商机(本公司)」 and subtitle 「按阶段分组汇总商机」 with the panel open, 数据来源 商机指标, 指标 总金额 · 合计 / 平均赢单概率 · 平均, 分组 阶段, 柱状图. - `live-report-panel-en-US.png`: the same report in English: "Opportunities by Stage", Data source "Opportunity Metrics", "Total Amount · Sum", Group by "Stage", "Bar Chart". - `live-report-charttypes-zh-CN.png`: the chart-type list, Chinese names with icons. - `live-studio-report-zh-CN.png`, `live-studio-widget-zh-CN.png`, `live-studio-widget-en-US.png`: Studio's report panel and the 销售业绩 dashboard's 阶段管道分布 widget panel. - `live-selfbuilt-report-panel-zh-CN.png`: an untranslated report created over REST. - `live-roundtrip-publish-dialog.png`: Studio's publish dialog for the customized name. </details> --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jUP9hxdL4RzdzTs9eK <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jUP9hxdL4RzdzTs9eK --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steedos · project thread
Part of #35979 (Asked item 2 only, as ruled in comment 7076440876; Asked item 1 is PR #36335, merged)
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTrJZvNaijgX3NxBMc
Clause-②: yes (widening: a new translation key
flows.FLOW.nodes.NODE_ID.label; the new exportsFLOW_TECHNICAL_NODE_TYPESandisFlowTechnicalNodeTypefrom@objectstack/spec/automation; and@object-ui/i18n's exportedFlowLabelTranslationstype gains the memberscreenTitle, and itsstepLabelparameter accepts aconfig)Metadata-protocol: added
Skills-docs: follow-up #36401
维护者速读
What changes
Both halves are on this branch: the key, its validation and its coverage demand, and the readers that draw it (on
mainsince PR #36335 merged the shared flow-label resolution into@object-ui/i18n).packages/spec/src/system/translation.zod.ts).flows.FLOW.nodes.NODE_ID.label, a strict entry with one plain-text leaf,label, overlaying the node's ownFlowNode.label. It addresses every node but ascreen(whosescreens.NODE_ID.titlecoversconfig.title ?? node.label) and anapproval(approvals.NODE_ID.label), so one string keeps one key.nodeswas an unknown-key alias ontoscreens; it is now the real group (nodealiases onto it). The## nodesdocblock section states the rule; the convention list gains the row.examples/app-showcaseat c448c61: of the start/end labels, 25 areEndand 11Start, but the rest name an outcome or a trigger (Approvedx5,Rejectedx5,Signed Off,Declined,On Task Createdx3,Daily at 06:00, ...), which a generic word would erase.packages/lint/src/validate-translation-references.ts). Anodeskey over an unknown node istranslation-target-unknownwith the nearest node offered; over ascreenit is pointed atscreens.NODE_ID.title, over anapprovalatapprovals.NODE_ID.label. The reverse slips now point at the new key: ascreensorapprovalskey over any other node saysits label is keyed nodes.NODE_ID.label(two existing messages gain that clause instead of "so nothing resolves").packages/lint/src/i18n-walk.ts,i18n/missing-flow). Every top-level node the docs embed draws at its defaultdetail: businessaltitude, minus screens and approvals, which were already demanded; and, since the embed's branch list names the step each branch of a drawn decision leads to, a folded technical step a branch names (seat reading L2 S1; live case: app-todo'scheck_recurringbranching to thecompute_next_due_datescript).decisionBranchTechnicalTargetsmirrors which out-edges the viewer lists (flow-branches.tsdecisionBranches). Region-nested nodes are accepted by validation but not demanded: the embed does not draw them.packages/cli/src/utils/i18n-coverage.tsonly updates the bucket's description.ui/packages/i18n/src/flowLabels.ts). The sharedstepLabelnow reads each step's one key by node type:approvals.NODE_ID.labelfor an approval,screens.NODE_ID.titlefor a screen with noconfig.title,nodes.NODE_ID.labelfor any other node. The docs viewer'stype: flowembed (metadata-viewer.tsx, newflowStepName) names each drawn step and each decision-branch target by it; the Studio canvas (FlowCanvas, andflow-region-view'sRegionNodefor nested region nodes) and the inspector heading read the samestepLabelunchanged, so a nested node's key, which validation accepts, has a reader.config.titleshows that heading at run time, translated underscreens.NODE_ID.title; its canvas label has no key. The docs embed names such a screen by its heading (translated where the bundle carries it), unless the heading holds a{{ }}hole a drawing cannot fill, in which case it keeps the authored label.FlowLabelTranslationsgainsscreenTitlefor this read. The Studio canvas keeps a titled screen's authored label, since that is the label the designer edits.packages/spec/src/automation/flow-altitude.ts). The viewer's privateTECHNICAL_NODE_TYPESset becomesFLOW_TECHNICAL_NODE_TYPES+isFlowTechnicalNodeTypein@objectstack/spec/automation; the viewer folds steps by it and the walk demands by it, so they agree on which steps a reader sees.app-crm's lead-conversion wizard gets its three drawn steps in zh-CN (its baseline stays 0). The ratchet inscripts/i18n-coverage-baseline.jsonis raised for the new population, as the PR that first walked the validation-message family did:app-showcase317 -> 425 (+108, one of them the foldedshowcase_inquiry_purge.purgea branch names),app-todo106 -> 130 (+24, two of themtodo_task_completion.compute_next_due_datein its two translated locales); the other 12 configs are unchanged (the ten bundle packages stay 0,check:i18nin sync).liveness/translation.jsongainsflows.nodes(+label),live, citingflowLabelTranslations,flowStepName,FlowCanvasandRegionNode.flows-translation-face.test.ts: thenode.labelrow now listsnodes.NODE.labelbesideapprovals.NODE.label.api-surface/automation.json,export-origins/automation.json,content/docs/references/system/translation.mdx, the strictness-ledger counts and the liveness state counts, regenerated bycheck:generated --fix.Read first (by risk)
packages/lint/src/i18n-walk.ts, the new loop at the end ofwalkScreenFlows: what is demanded (top level, not technical, not screen/approval).ui/packages/i18n/src/flowLabels.tsstepLabelandmetadata-viewer.tsxflowStepName: which key each node type reads, and the titled-screen rule.packages/spec/src/system/translation.zod.ts, thenodesentry and thenodes/stepsalias changes.packages/lint/src/validate-translation-references.ts, thenodesblock and the two redirect clauses.Two-minute check:
pnpm --filter @objectstack/cli exec vitest run --project unit test/i18n-flow-node-coverage.test.ts; expect 6 passed, including HotCRM'sopportunity_approvalshape asking for its start, decision, notify, loop and end labels and nothing for its approvals, screen or record write.Tests
Pins
packages/cli/test/i18n-flow-node-coverage.test.ts(new family file, like the screen / approval / refusal family files beside it): the walker harvests exactly the drawn steps with no other key, seeded with the authored label; a folded step only where a drawn decision's listed branch names it, once (a conditions-free decision lists every out-edge; aconditionsdecision its default and its claimed labels; an unclaimed label and a non-decision source name nothing); nothing for any otherFLOW_TECHNICAL_NODE_TYPESstep or an id-less node; every harvested key parses and is kept byTranslationDataSchema; the coverage gate lists them in the flow bucket and goes quiet once translated.packages/lint/src/validate-translation-references.test.ts: a new top-level describe (clean run over start / decision / loop / nested notify / end beside the other groups;nodesover an approval and over a screen redirected; unknown node with suggestion), the two changed redirect messages, and the one-line-verdict arm list gains the four new arms.packages/cli/test/pin exact key lists of their own family; they now read every key but thenodesfamily (one predicate per file, pointing at the new file).ui/packages/components/src/__tests__/metadata-viewer.test.tsx: a new top-level describe: start / decision / notify / end bynodes, an untitled screen byscreenstitle, a titled screen by its translated heading and a holed heading by its label, a decision-branch target bynodes, and the business view folding exactlyFLOW_TECHNICAL_NODE_TYPES.ui/packages/app-shell/src/views/metadata-admin/previews/FlowCanvas.test.tsx:stepLabelreads each group by node type (and never another type's group under the same id); the canvas draws a decision's and a nested notify's translation; the inspector heading titles a decision by itsnodeskey with the authored label beside it.Runs at cafc3fd (the spec half) unless noted
@objectstack/lintwhole suite (before the L2 S1 widening):Test Files 225 passed (225),Tests 9431 passed (9431)(at eabf0e6; lint unchanged since).@objectstack/cliunit project, the 60 i18n / translation / lint test files: 18 failures at eabf0e6, all exact key lists in the three family files above; after the predicate, those 4 filesTests 52 passed (52).@objectstack/spec:flows-translation-face.test.ts+translation.test.ts,Tests 238 passed (238).pnpm --filter @objectstack/spec check:generated: 5 stale before regeneration, all 5 green after--fix.node scripts/check-i18n-coverage.mjs: before the baseline editapp-crm 0 -> 3,app-showcase 317 -> 424,app-todo 106 -> 128; after:OK (14 config(s), 552 baselined untranslated string(s), none new).pnpm check:i18n: all ten bundle packages in sync.pnpm check:i18n-walk-parity: 17 declared, 15 walked, 2 exempted.dispatch-gates --commands, 127 commands): 126 exit 0, 1 NOT MEASURED (check:dual-build-cjs-loads, exit 3 for want of a full build; left to CI).dispatch-gates --ran: 127 accounted for.Runs at bc0171d (the reader half, after merging main at dda5e74)
ui/:FlowCanvas.test.tsx+flowNodeLabels.sites-13200.test.ts, 64 tests passed;metadata-viewer.test.tsxat its final edit,Tests 22 passed (22)(two runs before it failed on the test's own isolation: a shared i18n instance and a locale-specific string, both fixed in the test).pnpm --filter @object-ui/i18n run type-check,@object-ui/components,@object-ui/app-shell: all exit 0 (after building app-shell's dependency closure, 68 of 68 tasks).pnpm --filter @objectstack/spec check:generated --fix: the 2 artifacts the merge deferred plus the liveness counts regenerated, all 3 re-checked green.dispatch-gates --commands, 96 commands): 96 exit 0.dispatch-gates --ran: 96 accounted for, 0 NOT MEASURED (derived from recorded exit codes).overlap-check.mjs: merges cleanly withorigin/mainat 316f757.Runs at 04d28e0 (the L1 / L2 rework)
@objectstack/lintwhole suite:Test Files 225 passed (225),Tests 9444 passed (9444).@objectstack/cliunit project, the 4 flow family files:Tests 53 passed (53)(the new folded-branch-target pin included).node scripts/check-i18n-coverage.mjs:app-showcase 424 -> 425,app-todo 128 -> 130before--update; the new keys areflows.showcase_inquiry_purge.nodes.purge.labelandflows.todo_task_completion.nodes.compute_next_due_date.label.check:generatedgreen after rebuilding spec.dispatch-gates --commands, 105 commands): 105 exit 0;--ran: 105 accounted for, 0 NOT MEASURED.overlap-check.mjs: clean againstorigin/mainand the open PRs sharing files (feat(spec): the paired .custom package declares an installed object's field-group and tab arrangement #36517, docs(skills): teach an object extension'splace; another package's child list still shows on a declared tab list #36527).Acceptance notes
flows.FLOW.labelis still demanded only for a flow with a screen or an approval node, although item 1's viewer draws the label of every embedded flow. Not widened here, by the seat's word: filed as i18n coverage: demand flows.FLOW.label for every embedded flow, not only the ones the walk reaches today #36400.opportunity_approval: 9 of 11 drawn steps) are a follow-up in that repository now that the key has a reader: HotCRM: translate the 9 step names of opportunity_approval #36402.nodestranslation group #36401.{{ }}hole is drawn in the docs embed by its authored label, which has no key, so it stays in the authored language: carded as flow step names: a titled screen whose heading holds a {{ }} hole keeps its untranslated label in the docs embed #36530 with the L2's N2. Every other step the embed names has a key and a reader.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc