Skip to content

流程设计器:发布前就能在「问题」页签看到检查结果;连线条件可视化填写;审批节点自带通过 / 驳回出边;补齐未翻译文案 #34818

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。
维护者 2026-11-17 原话:「把流程设计器剩下的部分也走一遍」。

与 #34796(节点属性面板先标签后内部名、删除收进菜单)互补,那张卡管面板的排布,本卡管设计器的流程本身。没有设计图。

现状(界面实测:本地 cloud 环境,objectstack origin/main a34eb07 的控制台,自建应用「会议纪要」,窗口宽 1280,zh-CN,2026-11-17)

做法:新建「新建记录时」的流程,依次加「更新记录」「条件分支」「审批」三个节点,都不填配置,看「变量 / 运行 / 问题 / 调试」四个页签,然后发布。

  1. 「问题」页签说没有问题,发布之后才报。 三个节点都没配完时,「问题」页签写「没有问题 —— 该流程结构有效。」(engine.flowProblems.empty,ui/packages/app-shell/src/views/metadata-admin/previews/flow-problems.ts);发布抽屉里也没有任何提示。点「全部发布」后发布成功,随后弹出一条提示:「已发布 — 编辑检查提出了 2 条建议」,正文是两条检查的原文,带规则号 [approval-approvers-may-resolve-empty]、[flow-decision-unconditional-branch],内部名 xin_huiyi_tixing、node_2、node_3,第二条整段英文("gates on NOTHING … the gateway is decoration …",出自 packages/lint/src/lint-flow-patterns.ts)。提示消失后界面上找不到这两条。
  2. 连线条件只能写公式。 条件分支的每条出边只有一个输入框「CEL 表达式 —— 为真时走此连线」(engine.inspector.flowEdge.conditionHint)。旁边的引用选择器先列 record.organization_id、record.created_at 等平台字段,业务字段排在最后,主文字是内部路径,显示名是右侧小字。同一个设计器里「更新记录」节点的「筛选」已经是「添加条目」的逐行填写。
  3. 审批节点要用户自己接线。 插入审批节点后只有一条普通出边,面板说明写「为节点的出边打上 "approve" 和 "reject" 标签」。不打标签也能发布,发布检查没有提到这一点。
  4. 面板里有未翻译的整段英文(都在 ui/packages/app-shell/src/views/metadata-admin/inspectors/flow-node-config.ts):条件分支的「Branch mode」及其说明;审批的「Resolve as」「If no approver resolves」及其说明、选项「Hold for admin takeover (default)」、分组占位「legal / finance — for per-group…」;中文说明里夹着 quorum、per_group。
  5. 调试页签放不下。 1280 宽、右栏展开时,画布、调试面板、右栏三栏并排,调试面板约 150px,工具栏「运行 / 单步 / 继续 / 重置」和状态徽标被裁掉一半。右栏此时显示的还是之前选中节点的属性,与调试无关。
  6. 变量页签是死胡同。 只有一句「未声明变量。」,没有新增入口。
  7. 保存提示盖住标题栏。 每次自动保存弹「已保存 新会议提醒 的草稿」,位置正好压在流程标题栏的状态徽标、启用开关和工具图标上,连续编辑时这一行一直被盖着。
  8. 运行页签的空状态把两种情况说成一句:「运行历史不可用 —— 自动化引擎已离线,或此流程尚未发布。」未发布的流程应只说未发布。

做得好、请保留的:调试是纯模拟,走到审批会停下等决策;节点菜单带搜索和「最近使用」;连线中间和节点下方都能插入节点。

要做的

  1. 发布检查(packages/lint 里针对流程的规则)在设计时就跑:结果进「问题」页签,点一条定位到对应节点;有结果时页签名带计数。发布抽屉里同样列出,用户确认后再发布。发布后的提示只留一句结果。
  2. 检查结果面向搭建者改写:用流程和节点的显示名,不带规则号和 config.conditions[] 这类写法,各语言都有译文。规则号可放在「了解更多」里。
  3. 连线条件默认用「字段 / 运算符 / 值」逐行填写(复用更新记录节点筛选的组件),可切到公式;引用选择器业务字段在前、显示名为主。
  4. 插入审批节点时自带「通过」「驳回」两条已打好标签的出边;缺任一条时在「问题」页签报出来。
  5. 补齐 flow-node-config.ts 里未翻译的标签、说明、选项和占位符;quorum、per_group 换成中文说法。
  6. 进入「调试」页签时右栏让位:调试面板占用右栏的位置,离开调试再还原。
  7. 「变量」页签加「新增变量」,空状态说明变量用来做什么。
  8. 自动保存不弹提示,改为标题栏状态徽标上的「已保存」;只有保存失败才弹。
  9. 运行页签:未发布时写「发布并启用后,这里显示每次运行的记录」;引擎不可用另写一句。

不做的

验收

  • 重复上面的做法:发布前「问题」页签列出条件分支没有条件、审批人可能解析为空这两条,点击能定位节点;发布抽屉里也看得到。
  • 两条的文字里没有 node_2、xin_huiyi_tixing、规则号和英文段落。
  • 不写公式能配出「会议日期 晚于 今天」这样的分支条件。
  • 新插入的审批节点有「通过」「驳回」两条出边。
  • zh-CN 下节点面板没有英文标签或英文说明。
  • 1280 宽下调试工具栏四个按钮和状态都完整可见。
  • 连续改三处配置,标题栏不被提示盖住。

Reader: domain:ui 车道为主(ui/packages/app-shell/src/views/metadata-admin/previews/flow-problems.ts、inspectors/flow-node-config.ts、inspectors/FlowNodeInspector.tsx、流程连线面板、ui/packages/i18n/src/namespaces/studio/);第 1、2 条要把 packages/lint 的流程规则接到设计时并改写文案,涉及 packages/lint/src/lint-flow-patterns.ts、validate-approval-approvers.user-text.ts、rule-explanations.ts。范围大,可按「检查前移(1、2)/ 条件与审批(3、4)/ 其余」拆 PR。

Dedupe: repo:objectstack-ai/objectstack 流程设计器 问题 页签 发布 建议、flow designer condition builder CEL edge → 0(未关)。

Activity

  1. added
    enhancement
    priority:p1
    on Nov 17, 2026
  2. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: domain:ui · pm:queue · 2026-11-17T11:48Z

    ⛔ Not a claim.

  3. added
    domain:ui
    pm:queue
    on Nov 17, 2026
  4. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL
    Premise: measured 2026-11-17T11:52Z on objectstack-ai/objectstack origin/main 3bbda33, by code reading (the live before-leg for each slice is taken in its own PR). All nine items hold. Causes and the slice 1 route:

    Item 1 (checks only after publish). A draft read folds only the publish REFUSAL into _diagnostics: draftPublishVerdict returns verdict.error.issues alone (packages/metadata-protocol/src/protocol-authoring-gate.ts:745) and withPublishVerdict writes them as errors[] (packages/metadata-protocol/src/metadata-diagnostics.ts:428). The gate's advisories reach the console only on a save or publish 2xx body, where the toast prints them as [rule] where — text (ui/packages/app-shell/src/providers/saveAdvisoryToast.ts:106). The designer half already exists: it re-reads the draft after every save (ResourceEditPage.tsx:2058-2064), maps _diagnostics.warnings to Problems rows with node targets (ResourceEditPage.tsx:922, previews/flow-problems.ts:286), and the Problems tab already carries a count (previews/FlowPreview.tsx:391). So the missing half is server-side.

    Item 2 (rule ids, internal names, English). flow-decision-unconditional-branch has no user-text catalog: its findings carry no userTextParams (packages/lint/src/lint-flow-patterns.ts; the catalogs are listed in packages/lint/src/finding-user-text.ts:55-74), so its English message is what is shown. approval-approvers-may-resolve-empty has a catalog (validate-approval-approvers.user-text.ts:279), but it interpolates the flow name and the node id (validate-approval-approvers.ts:673,720). That is where xin_huiyi_tixing and node_3 come from.

    Items 3-9. Item 3: the edge condition is one CEL text box (inspectors/FlowEdgeInspector.tsx:313, engine.inspector.flowEdge.conditionHint). Item 4: inserting an approval node creates one plain out-edge, and its help text asks the author to label the edges (metadata-admin/i18n.ts:394). Item 5: the English labels are at inspectors/flow-node-config.ts:762,1081,1097,1135,1137. Items 6, 8 and 9: engine.flowPreview.noVars, engine.studio.draftSaved and engine.flowRuns.unavailable (studio namespace zh.ts:3609,1981,3621). Item 7 (the debug panel layout) is measured live in slice 3.

    Route, slice 1 (items 1-2).

    • The draft read also folds the gate's advisories into _diagnostics.warnings. Each warning carries the finding's userMessage in the request's language when the finding has one, with the locale threaded the way the save door threads userTextLocalesOf(ctx).
    • flow-decision-unconditional-branch gains a sibling user-text catalog.
    • Both flow rules interpolate the node's and the flow's labels, keeping the id where there is no label.
    • The publish drawer lists the same warnings, and the post-publish toast keeps only its one title line.
    • Rules, severities and verdicts do not change.
    • Showing the rule id under "learn more" would need a code on _diagnostics.warnings[], and MetadataValidationResultSchema carries only path and message there (packages/spec/src/kernel/metadata-plugin.zod.ts:545). It stays out of slice 1 unless the seat wants that spec widening (the card says "可").

    Prior rulings read: advisory,usermessage,diagnostics,approval,decision,unconditional,condition,autosave,toast → 82 hits; ADR-0019 D1, ADR-0032 Decision §2, ADR-0044 D2, ADR-0077 Decision §1; thread: none; repo: objectstack-ai/objectstack. Ruling record 6819749037 (option C: the producer of a finding composes its user sentence) sets item 2's route. ADR-0044 D2 makes revise a third approval label; slice 2 inserts only approve and reject, as the card asks.

    Expected declarations: slice 1 Clause-②: no (no new export and no spec key; confirmed at code), slices 2 and 3 Clause-②: no, and Metadata-protocol: none for all three.

  5. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL

    Claim: card thread · 2026-11-17T11:55Z
    Session: session_01WGufzgh1zkZzDXL36ckWAG
    Thread session: session_01WGufzgae1jRRi8FRrTxaZL
    Account: os-support-ai
    Branch: claude/project-thread-jcwgnf (card-thread pinned branch; three PRs in order, the branch restarted from origin/main after each merges)
    Worktree: objectstack-34818 (thread checkout)
    Domain: domain:ui
    Seat: repo:objectstack#3
    Slices (the card's own split): PR 1 = items 1-2 (checks visible before publish, wording for builders), Part of #34818; PR 2 = items 3-4 (field/operator/value edge conditions, approval node with approve/reject edges), Part of #34818; PR 3 = items 5-9 (translations, debug layout, add variable, autosave status, runs empty state), Fixes #34818.
    File surface, slice 1 (measured on 3bbda33):

    • Server: packages/metadata-protocol/src/{protocol-authoring-gate,metadata-diagnostics,protocol-meta-item-reads}.ts (the draft read folds the gate's advisories into _diagnostics.warnings), the draft read doors that state the request's locales (packages/rest/src/meta-item-read-routes.ts, packages/runtime/src/domains/meta.ts), their tests
    • Lint: packages/lint/src/lint-flow-patterns.ts, a new packages/lint/src/lint-flow-patterns.user-text.ts, packages/lint/src/finding-user-text.ts, packages/lint/src/validate-approval-approvers.ts (labels in the user sentence params), their tests
    • UI: ui/packages/app-shell/src/providers/saveAdvisoryToast.ts, ui/packages/app-shell/src/preview/DraftChangesPanel.tsx, ui/packages/app-shell/src/views/metadata-admin/previews/flow-problems.ts, ui/packages/i18n/src/namespaces/studio/{en,zh}.ts (new keys only), their tests
    • Root .changeset/
      Slices 2 and 3 file surfaces are declared in a claim amendment before each starts.
      Container & model: L, mode:thread (large card; L1 is L1-b), effort: high
      Clause-②: no
      Metadata-protocol: none
      Responsibility: n/a — not a defect card
      Ruling-ref: the card body (maintainer 2026-11-17 「把流程设计器剩下的部分也走一遍」); ruling record 6819749037 option C (the producer of a finding composes its user sentence) sets item 2's route
      Premise: holds (6947269778)
      Accepted deviation: no rule id under a "learn more" line (it needs code on _diagnostics.warnings[], a spec widening this card does not make; seat ruling in the thread)
      Serial constraints: FlowNodeInspector.tsx panel ordering belongs to Studio 自动化栏与界面栏:节点和视图的属性面板先标签后内部名,删除收进菜单,导航项类型用中文 #34796 (slice 2 and 3 touch flow-node-config.ts text and the edge inspector only); overlap check before every push.

    Lease o3-D (seat post #34584); child of epic #34571.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 17, 2026
  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment (slice 1) · 2026-11-17T11:56Z

    Claim 6947324571. Item 2 (check wording in every language) needs the draft read to know the request's language, and GetMetaItemRequestSchema (packages/spec/src/api/protocol.zod.ts:409) carries none.

    • Ruling: A. GetMetaItemRequestSchema gains userTextLocales: userTextLocalesMember(), the member SaveMetaItemRequestSchema already carries (server: userMessage producers and the save door compose user-facing text in requestLocale (ruling C on #32440, layer 2) #32656 precedent), stated by the two draft-read doors (packages/rest/**/meta-item-read-routes.ts, packages/runtime/src/domains/meta.ts). Optional; a read that omits it answers as today. B (English only) fails item 2; C (a side channel outside the contract) is refused.
    • Surface adds: packages/spec/src/api/protocol.zod.ts (that one member), regenerated content/docs/references/api/protocol.mdx, the two read doors and their tests.
    • Slice 1 line: Clause-②: yes (widening: optional userTextLocales on GetMetaItemRequestSchema), Metadata-protocol: none.
    • Review: a published spec schema ⇒ seat L2 at CONTRACT_REVIEW_TIER after L1-b; not Tier H unless the PR crosses 3000 lines or a governed path.
  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL
    os-dev-report

    {
      "issue": 34818,
      "status": "done",
      "branch": "claude/project-thread-jcwgnf",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34850",
      "session": "session_01WGufzgae1jRRi8FRrTxaZL",
      "premise_still_valid": true,
      "summary": "Slice 1 of 3 (items 1-2), Part of #34818, head 762fafa44. A flow draft read now folds the publish gate's advisories into _diagnostics.warnings, each in the reader's language through a new optional GetMetaItemRequestSchema.userTextLocales that the REST door and the runtime dispatcher fill. flow-decision-unconditional-branch gained an 11-locale user-text catalog, and the approval-approvers sentences now name the flow and step by label. The console drawer lists each flow draft's checks above Publish, and a publish the author reviewed ends with the toast's title line only.",
      "tests": "lint 7 files 513 passed; metadata-protocol full suite 349 files, 23098 passed; rest full suite 420 files; runtime src/domains/meta 45 files, 2616 passed; ui preview/, providers/, console/ai/__tests__/, advisory sink suites and packages/i18n/: 246 files, 2984 passed; type-check exit 0 for spec, lint, metadata-protocol, rest, runtime, @object-ui/i18n and @object-ui/app-shell. Ablations through scripts/ablation-replace.mjs, each restored to HEAD: removing the withPublishAdvisories fold fails 3 of 4 new protocol tests; listedBeforePublish returning false fails 1 of 22 toast tests; stubbing readDraftChecks fails 3 of 5 drawer tests (the silent and control cases stay green).",
      "gates": "dispatch-gates --ran: 125 derived, 125 run, 0 NOT-MEASURED, 0 UNRUN. Two reds fixed in this branch: check:facade-delegation-only (protocol.ts 1 line over its ceiling) and check:test-source-alias (module-top import in the new test). Three exit-3s re-run to 0 after their prerequisites: check-plugin-teardown-shape --self-test, check:skill-examples, check:dual-build-cjs-loads. check-changeset-no-major with this body as the payload: exit 0 with Metadata-protocol: added. check-eager-closure-budget exit 0; i18n-locale-en 61,622 -> 61,648 bytes gzip (+26, ceiling 62,000). check-governed-merges --pr 34850: not governed, 1300 lines. CI check-runs are cited when they report.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "2 — mcp__github__issue_read (read), mcp__claude-code-remote__subscribe_pr_activity; no MCP write",
      "api_writes": "0 — writes went through the relay: git push, pr_create (#34850), this comment",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": [
        "Metadata-protocol: added, with @objectstack/spec at minor, instead of the seat's none. The level axis refuses none because authorable-surface/api.json gains api/GetMetaItemRequest:userTextLocales (precedent #34602 / PR #34674). Skills-docs: none, since the field is a request field the doors set.",
        "The drawer title is one key in the eager packs (preview.changes.flowChecksTitle, 11 packs), not in the studio namespace. DraftChangesPanel is in the eager graph, and importing the studio table would pull its resident en into it. Measured +26 bytes gzip on i18n-locale-en.",
        "Accepted (seat ruling): no rule id under a learn-more line; it needs code on _diagnostics.warnings[].",
        "The toast keeps its full body for publishes the author did not review (an AI surface, or an item the drawer listed nothing for). The existing *AdvisoryReachesAuthor suites pin those paths and stay green.",
        "Bound: the published read does not run the gate, so after a publish the Problems tab lists the advisories again only once the next save makes a draft.",
        "Claim surface: flow-problems.ts was not edited, because its existing nodes.N mapping already locates the node. Added beyond the claim: preview/flowDraftChecks.ts, preview/publishChecksShown.ts, ResourceEditPage.tsx (marks a designer publish as reviewed), the 11 locale packs, packages/spec protocol.zod.ts plus api.json, and content/docs/references/api/protocol.mdx."
      ],
      "files_changed": 40
    }
  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment (slice 1, restated) · 2026-11-17T13:52Z

    This restates amendment 6947353447 for PR #34850 @ 762fafa4, answering L1-b's M2 and M3 (6949980249, correction 6949998514). Ruling A is unchanged.

    • Face as shipped (M3): GetMetaItemRequestSchema gains an optional userTextLocales. The two draft-read doors state it from the resolved request context, language only. A read that omits it answers as it does today. The slice 1 line is Clause-②: yes (widening: optional userTextLocales on GetMetaItemRequestSchema) and Metadata-protocol: added with a spec minor. The amendment said none; the level axis refuses none once authorable-surface/api.json gains api/GetMetaItemRequest:userTextLocales (the 列表:「In a queue」筛选只在真正用到队列的对象上显示,默认不显示 #34602 / PR feat(sharing,ui): the In a queue toggle shows only on objects that use queues #34674 precedent). The seat's L2 reads this face.
    • Surface adds (M2), on top of amendment 6947353447 and claim 6947324571:
      • packages/spec/authorable-surface/api.json (regenerated, the one member)
      • packages/metadata-protocol/src/protocol-host.ts, protocol-meta-item-face.ts and protocol.ts (the language passed through to the draft-read checks)
      • packages/lint/src/authoring-rules.ts and flow-walk.ts (the flow checks the panel shows)
      • ui/packages/app-shell/src/preview/flowDraftChecks.ts (new) with its test, publishChecksShown.ts (new), and ui/packages/app-shell/src/views/metadata-admin/ResourceEditPage.tsx
      • ui/packages/i18n/src/locales/*.ts (all 11 locales: new keys only)
    • Still slice 1 only. Not Tier H: under 3000 lines, and check-governed-merges finds no governed path.
  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment (slice 1, addendum) · 2026-11-17T13:53Z

    This adds one file to the restated slice 1 surface: content/docs/deployment/validating-metadata.mdx. The docs-drift bot flagged it after the flow-check rules changed, and it is a docs-only edit. packages/spec/src/api/protocol.zod.ts and content/docs/references/api/protocol.mdx were already in amendment 6947353447.

  11. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment (slice 2: items 3 and 4) · 2026-11-17T13:59Z

    This amends claim 6947324571 for slice 2, a separate PR after slice 1 (PR #34850). Its declarations are Clause-②: no, Metadata-protocol: none and Skills-docs: none. It makes no spec change and no lint-rule change. Surface:

    • ui/packages/app-shell/src/views/metadata-admin/inspectors/FlowEdgeInspector.tsx: an edge-condition editor with field, operator and value rows, plus a switch to the formula. It compiles to the same CEL condition string as today, so stored metadata does not change.
    • ui/packages/app-shell/src/views/metadata-admin/inspectors/flow-node-config.ts (the insert defaults, or the designer's insert helper): inserting an approval node creates labeled approve and reject out-edges.
    • ui/packages/app-shell/src/views/metadata-admin/previews/flow-problems.ts: a Problems-tab structural check for an approval node that lacks either labeled edge. The check is designer-side only.
    • The reference picker's ordering (business fields first, the label as the main text), in the picker module the measurement finds. Name that file in the report.
    • The update-record filter row component is imported, not edited. If it needs a change, bring the file to the seat first.
    • ui/packages/i18n/src/locales/en.ts and zh-Hans.ts, studio namespace, new keys only. Mind the i18n-locale-en budget headroom. The other locales get keys only if the i18n gate requires them; name them if so.
    • The tests beside each, and a root .changeset.

    Not ours: FlowNodeInspector.tsx panel ordering belongs to #34796. If measurement against main grows the surface, report the new files before coding. The review route is L1-b, with no seat L2 while Clause-②: no holds.

  12. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment (slice 2, measured) · 2026-11-17T14:02Z

    This amends the slice 2 amendment after the card thread's measurement on main 7752cac7. Declarations are unchanged: Clause-②: no, Metadata-protocol: none.

    1. Condition rows: the update-record filter is a keyValue widget with no operator column, so the rows import FilterBuilder from @object-ui/components (the component FilterConditionField wraps). It is imported, not edited. Surface add: ui/packages/app-shell/src/views/metadata-admin/inspectors/flow-edge-condition-rows.ts (new), with its test. It writes only the CEL subset the formula engine accepts (today is in the formula stdlib) and reads back only what it wrote. Any other expression stays in formula mode untouched. Stored edges stay CEL strings.
    2. Reference picker. Surface adds:
      • inspectors/flow-scope.ts: triggerFieldRefs puts business fields before platform ones.
      • inspectors/VariableTextInput.tsx: the label is the main text and the path is muted. The input is shared by every flow expression input, so the change shows in all of them, as the card asks.
    3. Approval insert. Surface add: previews/FlowCanvas.tsx (addNode, insertOnEdge), in place of flow-node-config.ts. Inserting an approval creates an approve edge to the next step (or a new 已通过 end) and a reject edge to a new 已驳回 end.
    4. The missing-edge check stays in previews/flow-problems.ts. The approval help text in the studio namespace changes wording only.

    flow-node-config.ts comes out of the slice 2 surface unless the build needs it; if it does, name it. FlowNodeInspector.tsx is still not ours (#34796).

  13. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment (slice 2, two adds) · 2026-11-17T14:21Z

    This amends the measured slice 2 amendment.

    1. Surface add: ui/packages/app-shell/src/views/metadata-admin/previews/FlowPreview.tsx, one line. mintNodeId takes an optional alsoTaken list, so one approval insert can mint its three node ids (the approval, an Approved end, a Rejected end) without a repeat. It does not fall back to freshNodeId, which could reuse a removed node's id (os build --json's failure payloads carry no warnings, so the truncation notice's --json pointer is a dead end when a later gate fails #11772).
    2. Surface add: previews/flow-canvas-parts.tsx, comment only. The approval seed comment in defaultNodeExtras no longer says the author wires approve and reject.
    3. Accepted deviation: the approval help text that asks the author to label edges lives in flow-node-config.ts (en) and metadata-admin/i18n.ts (zh), not in the studio namespace. It moves to slice 3, which edits flow-node-config.ts for item 5. Until slice 3 lands, the help text still asks the author to label edges that the insert now creates. That is stale wording, with no wrong behaviour.
  14. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

    Claim amendment: slice 3 · 2026-11-17T16:41Z

    Amends the #34818 claim for its third and last slice: items 5 to 9, plus the approval help text moved from slice 2. Slice 1 merged (#34850); slice 2 is #34932 (L1-b ACCEPT 6954415659). Slice 3 builds on main after #34932 merges.

    Declarations

    • Clause-②: no, Metadata-protocol: none; changeset @object-ui/app-shell + @object-ui/i18n patch; Fixes #34818.
    • Not governed; estimated 900–1300 changed lines. Review: L1-b only, no seat L2 (Clause-② no). If the final file list reaches packages/spec, a protocol, an ADR or a governed path, stop and ask the seat.
    • New keys go to the lazy studio namespace only; no eager pack changes.

    Seat ruling on item 8 (autosave toast vs #28345 ruling 6545938831 ②)

    Ruling ② says the Studio top-bar 「已保存」 is not write feedback; only feedback that names the record, as a toast or inline, counts. Dropping the flow autosave toast is allowed only if the replacement is inline record-naming feedback:

    • The 已保存 badge sits in the flow pillar's own header row, beside the flow's title. It must not go in the global Studio top bar.
    • Its accessible text names the flow, for example an aria-live="polite" announcement 「流程「」已保存」 / Flow "<label>" saved. The visible text may stay short (已保存) because the title beside it names the item.
    • A refused save keeps the existing refusal strip and raises one error toast, as drafted.
    • Leaf, app-nav and object autosaves keep their toast.
    • A test pins the badge's placement in the flow header and its record-naming accessible text, with the leaf toast as a control.
      If the badge cannot sit in the flow's own header beside its title, keep the toast.

    Setup's flow page

    metadata-admin/ResourceEditPage.tsx is out of this slice. If coding finds the same Debug squeeze there, ask the seat for a one-line addendum. Don't widen the surface on your own.

    Not in this slice

    The node panel's field order, internal names and delete button belong to #34796. packages/lint rule text is untouched.

    File surface (slice 3)

    All paths are under ui/packages/app-shell/src/views/ unless the path is given in full.

    Item 5: untranslated words in the node panel, and the approval help text moved from slice 2

    Path Why
    metadata-admin/inspectors/flow-node-config.ts Wording: the approval approvers help drops "label the node's out-edges approve and reject", since slice 2 now inserts them, and says the edges come with the node. Placeholder overlay: localizeFlowFields learns a field and column placeholder, so the prose placeholder legal / finance — for per-group sign-off can be translated. Example literals such as cron strings and URLs stay English, as the table's header says.
    metadata-admin/i18n.ts FLOW_FIELD_ZH rows that are missing: decision.mode (label, help, both options); approval.approvers.cols.resolveAs (label, four options); approval.approvers.cols.group (placeholder); approval.onEmptyApprovers (label, help, three options). Wording: the approvers help changes to match the English. minApprovals help replaces quorum and per_group with 法定人数 and 分组会签, the words the behavior options already use. Type: the FlowFieldZh type gains placeholder.
    metadata-admin/inspectors/inspectorStrings.i18n-34818.test.tsx (new) Renders the decision and approval inspectors in zh-CN. It asserts every label, help, option and prose placeholder reads its zh row. It also asserts no quorum, per_group or ASCII sentence is left, with a lit control.

    Item 6: the Debug tab takes the right column's place

    Path Why
    studio-design/StudioDesignSurface.tsx (flow pillar) While the flow's section is debug, the Configuration aside is not drawn, in both the classic layout and the right-slot portal. The selection is kept, so leaving Debug brings the aside back as it was.
    metadata-admin/previews/FlowPreview.tsx The chrome debug section widens the simulator column from the fixed 240px to the aside's width.
    metadata-admin/previews/FlowSimulatorPanel.tsx Only if the toolbar (Run, Step, Continue, Reset and the status pill) still wraps at the new width: it lets the toolbar wrap instead of being clipped.
    metadata-admin/previews/FlowPreview.debugTakesAside-34818.test.tsx (new), or a new describe in an existing StudioDesignSurface flow suite Pins that the aside is gone while in Debug and back on leaving it, with the selection kept. Includes a control: the Canvas section keeps the aside.

    Item 7: "Add variable" on the Variables tab

    Path Why
    metadata-admin/previews/FlowVariablesPanel.tsx (new) Replaces the read-only FlowVariablesList. The empty state says what variables are for: values steps read as {{ name }}, inputs a caller passes, outputs the flow returns. Add variable appends a uniquely named text variable through onPatch({ variables }). Each row edits name, type, default, input and output. A name the spec refuses ($-led, or a duplicate) is held with a note and not written. Renaming or removing a variable that a node still references is refused with a note naming the steps; references are not rewritten in this card.
    metadata-admin/previews/FlowPreview.tsx Mounts the panel in both the chrome variables section and the classic side panel. Passes onPatch and the readOnly / editable state, so a read-only package keeps a list with no add button.
    metadata-admin/previews/FlowVariablesPanel-34818.test.tsx (new) Covers the add, edit, refusal and reference-guard cases, the read-only control, and what the patch writes, parsed with the spec's FlowVariableSchema.

    Item 8: autosave says "已保存" in the header, not in a toast

    Path Why
    studio-design/StudioDesignSurface.tsx (flow pillar) Stop the toast: a landed flow draft autosave no longer calls announceDraftSaved. Badge: the header's action row already shows the 正在保存 spinner (auto-autosaving). It now settles into 已保存 (auto-autosaved), which stays until the next edit. Failure: the existing refusal strip stays, and a failed save also raises one error toast.
    studio-design/StudioPillarKit.tsx Comment only: announceDraftSaved's header no longer lists the flow pillar. Its other callers (leaf, app nav, object) are unchanged.
    A new describe in the existing flow-autosave Studio suite, or StudioDesignSurface.flowAutosaveBadge-34818.test.tsx (new) Pins that a landed save shows 已保存 and raises no toast, and that a refused save shows the strip and an error toast. Controls: a leaf autosave still toasts, and a second edit clears 已保存.

    Item 9: the Runs tab says why it is empty

    Path Why
    metadata-admin/previews/FlowRunsPanel.tsx Takes a published flag. With no published version, the panel shows 发布并启用后,这里显示每次运行的记录 and does not fetch. With a published flow whose fetch fails, the engine-offline sentence shows alone.
    metadata-admin/previews/FlowPreview.tsx FlowPreviewChrome (and the classic props) carry published through to the panel.
    studio-design/StudioDesignSurface.tsx (flow pillar) Sets published from what the pillar already reads: the served declaration and whether the flow is draft-only.
    metadata-admin/previews/FlowRunsPanel.render.test.tsx A new describe covers the unpublished sentence (and that no fetch is made), the engine-offline sentence, and the existing empty and list cases as controls.

    Shared

    Path Why
    ui/packages/i18n/src/namespaces/studio/en.ts and zh.ts New keys: engine.flowRuns.unpublished, the reworded engine.flowRuns.unavailable (engine only), engine.flowPreview.noVars (now says what variables are for), engine.flowPreview.addVariable plus the panel's field, refusal and reference notes, and engine.studio.autoSaved. Everything is in the lazy studio namespace, and no eager pack changes.
    .changeset/34818-flow-designer-rest.md (new) app-shell and i18n patch, Clause-②: no, Metadata-protocol: none.
    Existing tests that pin the old words, if any (FlowPreview.*, FlowRunsPanel.*, inspectorStrings.*) Updated only where they pin noVars, unavailable or the draft-saved toast for flows. Each one will be listed in the PR body.
  15. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL

    On #34955: queue build 44173515593 failed. This is a new signature, so per landing-operations.md I am not re-queuing; the seat decides the next step.

    • Signature: Test UI (11/16) failed one test, 1 of 4739: packages/fields/src/widgets/__tests__/FilterConditionField.betweenBlankBound-9914.test.tsx:174, in "the stored-criteria path: clearing a bound of a saved range > withdraws the criteria instead of storing a blank bound". The assertion expect(to).toHaveValue(5) received "5", a string, instead of the number 5. So the To box that findByLabelText found was not a number input when the assertion ran.
    • First reading: likely a render-order race, not this PR.
      • The test's dataSource.getObjectSchema is async, and age is typed number only once that schema arrives. A To box drawn before that holds the bound as text.
      • This PR touches only app-shell flow-designer and Studio files and the lazy studio i18n namespace. @object-ui/fields imports neither, so the failing file's import closure is disjoint from the diff.
      • On the exact queue commit 471a3da09 (main 2ce9c7f99 + docs(lint): state where the dataset vocabulary advisory's reach ends #34943 + this PR), the file passes 3 of 3 runs locally (14/14 each). It also passes on the PR head 6de7553ef.
    • Three facts: (1) the import closure is disjoint: holds. (2) the queue base is green on this shard: not established. (3) the first error is a timeout: does not hold, since it is an assertion. With not all three established, the rule says no re-queue from this thread.
    • The 24h ledger shows only this PR on this file, read as a lower bound since the ledger read was incomplete. There is no anchor card.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:uienhancementpm:dispatchedpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions