Skip to content

feat(studio): flow node and list-view panels lead with labels; node delete moves to the title-bar menu; nav kinds read in words - #34983

Merged
objectstack-fleet[bot] merged 14 commits into
mainfrom
claude/issue-34796-studio-automation-interface
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 14 commits into
mainfrom
claude/issue-34796-studio-automation-interface

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34796
Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:Studio 的流程节点面板先显示「标签」,节点 ID 收进默认折叠的「开发者信息」;「删除节点」从面板底部移到标题栏「···」菜单;面板里的对象一律显示名称(如「会议」),不再露出内部名;「CEL 表达式」改称「公式」;新建自动化对话框第一项改为「自动化名称」;列表视图面板去掉 对象.视图 内部名,未创建提示缩成一句「改动先存为草稿。」,列行只显示字段名称、内部名放到悬停提示;导航编辑模式的类型标签改成与左侧列表一致的中文(对象 / 视图 / 仪表盘 / 页面)。
  • 为什么改:这些面板是业务人员日常用的,内部名、ID 和 CEL 术语对他们没有意义,还挤占首屏。
  • 风险与回滚:只改界面文字与布局,不改元数据、不改保存内容;删除逻辑不变(菜单项与画布 Delete 键走同一处理,都不弹确认,引用中的节点照样拒删)。回滚即 revert 本 PR。
  • 先看:ui/packages/app-shell/src/views/metadata-admin/inspectors/FlowNodeInspector.tsx(删除按钮移入菜单、开发者信息折叠)、ui/packages/app-shell/src/views/metadata-admin/inspectors/_shared.tsx(菜单经 portal 画进宿主标题栏)、ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectPicker.tsx(对象名称一次读取、按需读取)。
  • 两分钟验证:在 Studio 打开任一记录触发的自动化,点画布上的「更新记录」节点:右侧第一项是「标签」,对象显示「会议」这类名称,标题栏右侧有「···」,里面是「删除节点」;展开底部「开发者信息」才看到 node_1。
  • 需要你做的:无,席位落地

What changes

All seven items of the card, in the Studio (/studio/...) surfaces; Setup's designers are byte-identical in behaviour.

  1. Node panel leads with Label. FlowNodeInspector drops the top-of-panel ID field; the ID (and the nested-node hint) now sits in a details section "Developer info" / 「开发者信息」 that starts closed, at the end of the panel.
  2. Labels, not machine names, and "formula". A new ObjectLabelsProvider (in ObjectPicker.tsx) wraps the node panel and lends object labels to useObjectDisplayName, used by the "Targets / Updates the “{object}” record…" and "Fields of “{object}”." sentences. It reads the object catalog once per panel, and only after a sentence that names an object mounts (a panel naming no object reads nothing). ObjectPicker gains an opt-in nameOnHover (used by FlowReferenceField): no visible name line, machine name on the input's title. Studio-namespace values: kv.asExpression 写成公式 / "Write as a formula", kv.expressionNeeded (the blank-formula notice) 这个值需要一个公式… / "This value needs a formula…", the expression and recipient placeholders, and the zh flow-field help table (metadata-admin/i18n.ts) for the trigger, Decision (branch help, the expression column and its help, legacy condition), record, loop, map, HTTP, action, screen, subflow and notify rows say 公式; the Update Records filter help no longer names recordId; the zh Update Records multi row is added (it showed English). The 「了解更多」 link is untouched.
  3. Remove node in the title-bar "···" menu, no confirmation. The footer InspectorRemoveButton is gone; headerActions carries a DropdownMenu whose item calls the same remove handler. InspectorShellHost gains headerActionsTarget; in hosted mode the shell portals headerActions into it. AutomationsPillar hands the aside's StudioInspector an actions slot element and passes it as that target, so the menu sits in the automation panel's title bar. Read-only disables the trigger. The canvas Delete key is unchanged.
  4. New automation dialog: engine.studio.auto.nameLabel 自动化名称 / "Automation name".
  5. List-view panel: the list-view-name (object.view) line is removed (the view id stays on the root as data-view-id); listView.notCreated is 改动先存为草稿。 / "Changes save as a draft first."
  6. Column rows name on hover (Studio only): ViewColumnPanes.FieldListRow takes nameOnHover (prop, else the new FieldListRowNameOnHover context, default false); ObjectListViewInspector provides true. Setup provides nothing, so its rows still show the code name.
  7. Nav edit-mode kinds: AppNavCanvas takes an optional kindLabel; Studio passes navKindName (the same words the navigation list tags entries with), so a kanban entry reads 视图. Setup passes nothing and keeps the raw type.

New studio-namespace keys (lazy namespace only): engine.inspector.flowNode.moreActions, engine.inspector.flowNode.developerInfo. engine.inspector.action.target.flow.label (「流程名称」, the action-target surface) is not touched. en strings are rewritten in the same plain spirit.

Before / after (live, zh-CN, 1280×800, self-built app 会议纪要, object 会议 = huiyi_jiyao_huiyi)
Acceptance line Before (round 1, main @ c513d62) After (this branch)
Node panel first field ID first (ID, 标签, 节点类型…) first label 标签; labels 标签, 节点类型, 对象*, 筛选
Node ID in visible text node_1 in an always-visible field details closed; id input checkVisibility() false, panel innerText has no node_1; after expanding: visible
Internal object name huiyi_jiyao_huiyi under the picker, in 「目标为启动此流程的那条 huiyi_jiyao_huiyi 记录。」 and 「huiyi_jiyao_huiyi 的字段。」 no huiyi_jiyao_huiyi in panel text; picker value 会议, title huiyi_jiyao_huiyi; 「目标为启动此流程的那条「会议」记录。」, 「「会议」的字段。」
CEL wording 「写成 CEL 表达式」; filter help 「或 CEL 表达式(如 id → 以表达式写的 recordId)」 toggle 「写成公式」; 「每个值是字面量,或公式(如 id 一栏用公式指向触发记录)。」; no CEL/recordId in panel text
Update every matching record (zh) English 「更新所有匹配的记录」 + zh help
Delete node full-width footer 「删除节点」 no footer button; title-bar ··· (inside auto-config-header-actions) → menu ["删除节点"] → node removed, no confirm dialog
Canvas Delete key (control) removes node removes node, no confirm dialog
New automation dialog labels ["流程名称", …] labels ["自动化名称","标识",…], title 新建自动化
List-view panel huiyi_jiyao_huiyi.default line; long not-created paragraph no object.view text (data-view-id attribute only); 「改动先存为草稿。」
Column rows label + code name 名称 only, title="name", 0 code elements
Nav edit badges object object entry 对象; type switched to page → 页面, dashboard → 仪表盘 (left list shows the same words)
Nav kanban entry → 视图 — NOT MEASURED live: the self-built app has no named (kanban) view to point an entry at; pinned by InterfacesNavRail.editKinds-34796.test.tsx

Backend for the live stack ran from dist/ built at the round-1 base (UI served from this branch's source by vite dev); none of the readings depend on the backend changes merged since.

Tests

New:

  • inspectors/FlowNodeInspector.labelFirst-34796.test.tsx (6): Label first + closed Developer info holding the id; object by label with picker hover title; menu remove patch equals edgesAfterNodeRemoval and clears selection; read-only trigger disabled, no menu item; control canvas Delete key makes the same removal; hosted portal into the host title-bar element.
  • studio-design/ObjectListViewInspector.namesOnHover-34796.test.tsx (2): Studio rows label-only with title; control FieldListRow without provider keeps the code name.
  • studio-design/InterfacesNavRail.editKinds-34796.test.tsx (3): zh object / view (kanban) / dashboard / page read 对象 / 视图 / 仪表盘 / 页面; en; control without kindLabel the raw type.

Updated (wording or the menu, behaviour unchanged): FlowNodeInspector.test, .readOnlyReason-28985, .removeEdges-11772, .removeRefusal-11838, .connectorInputEnvelope-28164, .fieldValueMap-11788, .updateRecordTarget-27834, ResourceEditPage.inspectorReadOnlyReason-29079, FlowPreview.removeNode-11772, FlowPreview.nodeIdPositions-11838, FlowKeyValueField.valueEnvelope, .stackedRows-27356, FlowRecipientsField.test, flowValueSlots-12101, flowValueSlots-12372, inspectorStrings.i18n-10586, AutomationsPillar.problemsAgree-27799, InterfacesPillar.offNavListViews-30046, StudioDesignSurface.listViewSwitch-27896, StudioDesignSurface.listViewInspector-11823, ObjectListViewInspector.addView-27836, ObjectListViewInspector.displayTitle-13151. Edited tests also import @objectstack/lint (and @objectstack/formula where reached) at module top, as check:test-source-alias asks.

Ablations (each red, then restored; git diff HEAD empty after)

Run through scripts/ablation-replace.mjs (anchor hit 1→0, restore blob == HEAD) under os-verify-lock:

Mutation Red test
menu item onSelect={remove} → no-op menu item makes the removal the footer made
details → details open id only inside a collapsed Developer info
picker title → undefined machine name on the picker hover title only
useObjectDisplayName returns the name object by its label
hosted portal branch off menu drawn into the host title-bar element
FieldListRowNameOnHover provider false a row reads its label alone
kindText = kind zh kinds + en kinds (2 red)

Final: === git diff HEAD (must be empty): printed nothing; lock VERDICT command-exit 0.

Acceptance notes

  • Still saying CEL outside this card's panels: the edge inspector's engine.inspector.flowEdge.conditionHint (「CEL 表达式 —— 为真时走此连线」), the condition builder's engine.condition.celLabel, and the list-view panel's conditional-formatting empty state (「添加一条以按 CEL 条件为行着色」). The engine-served en help for flow node fields (service-automation configSchema) and the en flow-node-config table are not reworded here.
  • Field-key suggestion lists in key/value rows still show label (name).
  • The nav item inspector (StudioNavItemInspector) still prints the entry id (nav_item_2) under its title; not in this card.
  • Item 6 uses a context (FieldListRowNameOnHover) so FieldsListEditor.tsx, outside the amended claim, is untouched.

Verification

Round 2 (gate and test readings at c24eb5aad5, origin/main db1a05cdae merged, #34955 included). The final head a70ab517e2 adds only the changeset wording; at that head the changeset families were re-run (check-changeset-no-major 0, check-empty-changeset 0, check:changeset-gate-self-tests 0, check:nul-bytes 0, check:closed-ceremony-text 0) and overlap-check exited 0 before the push. Round-1 readings at 0d906c6e7d are kept below.

Round 2: derived gate families (38) and the --ran reconciliation
node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-empty-changeset.mjs --base origin/main :: exit 0
node scripts/check-empty-changeset.mjs --self-test :: exit 0
node scripts/check-sdui-manifest.mjs :: exit 0
node scripts/check-sdui-manifest.mjs --self-test :: exit 0
node scripts/ci/snapshot-next.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0
node scripts/release-pending-publish.mjs --self-test :: exit 0
pnpm --dir ui exec vitest run scripts/ :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 3
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0

dispatch-gates --ran FILE --repo objectstack-ai/objectstack -> exit 0: "38 derived famil(ies) accounted for — 37 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)".

NOT MEASURED: check:type-check-debt, reason: os-verify-lock queue-timeout (exit 99) twice behind another seat's @objectstack/dogfood run (pid 30708, held 22+ min), so its re-measure never built; CI's run is the reading. The same gate exited 0 at 0d906c6e7d; round 2 changes only zh/en string values. The vitest run scripts/ family ran with --maxWorkers=2.

Round 2: tests, type-check, i18n gates, overlap
Round 1 (head 0d906c6)
  • 38 derived families all exit 0, --ran 38 run / 0 NOT-MEASURED. Edited tests 22 files / 221 passed; ui scripts/ 171 files / 5077 tests passed; wide run 841 files (4 failures in listViewInspector-11823, fixed, 7/7); type-check app-shell + i18n exit 0.
  • check:eager-closure 0 on a fresh console build: i18n-locale-en 60.4 KB / 78.7 KB ceiling (headroom 18.3 KB); ceiling untouched. check:eager-locale-catalogues 0.
  • Overlap: a line-adjacency conflict with fix(app-shell): Studio flow designer shows the package's translated flow and approval-step labels #34947 in StudioDesignSurface.tsx was cleared by moving the slot useState three lines down.

Generated by Claude Code

…the header menu, nav kinds read in words

The flow node panel leads with its label; the node id sits in a collapsed
"Developer info" section, and "Remove node" moves from the footer to the
header's "···" menu (in Studio, the automation aside's title bar). Object
sentences in the node panel name the object by its label, the object picker
keeps the machine name on hover, and the node help says "formula" instead of
"CEL expression". The new-automation dialog's name field reads "Automation
name". The list-view panel drops the object.view machine name and shortens
the not-yet-created sentence; its column rows keep field names on hover only.
Studio's navigation editor badges each entry with the kind the navigation
list shows.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
… names on hover and nav kind names

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…w the new wording

The flow node panel lends object labels to its sentences from one catalog
read, made only once a sentence names an object. Tests read "formula", the
quoted object names, and Remove node from the header menu. Changeset added.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…ay space before 公式

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
check:test-source-alias judges the test files a change edits; each now
imports @objectstack/lint (and @objectstack/formula where reached) at
module top, so no clocked case pays the first load.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 review · 2026-11-17T21:49Z

L1: ACCEPT
Head-sha: 0d906c6

What I read at this head

Checklist

Shape. Draft, Fixes #34796. The body and the changeset both carry Clause-②: no and Metadata-protocol: none, which is the amendment's ruling (see N2).

Scope. Every source file is in the claim or the amendment:

  • FlowNodeInspector.tsx, _shared.tsx, ObjectPicker.tsx, FlowNodeConfigField.tsx, FlowReferenceField.tsx, metadata-admin/i18n.ts, ViewColumnPanes.tsx, AppNavCanvas.tsx, ObjectListViewInspector.tsx, the studio en/zh packs, and the changeset.
  • StudioDesignSurface.tsx is touched in two places:
    • the automation aside's title-bar slot (amendment);
    • the kindLabel prop on the navigation canvas in InterfacesPillar, which is the original claim's "nav edit mode (navigation region)".
  • FieldsListEditor.tsx is untouched: the context route keeps it out, as the amendment's route B asked.
  • The 22 edited test files are tests of these surfaces.

Changeset. Patches app-shell, i18n and console (the SPA bundle). Its text matches the diff, including the Decision-row carve-out.

Code. I read each item against the card and the amendment.

  1. Label first. The ID field and the nested hint move into a closed details "Developer info" at the end. Rename and refusal still work inside it.
  2. Objects by label.
    • ObjectLabelsProvider reads the catalog once, and only after a useObjectDisplayName consumer mounts. A name the catalog does not know falls back to itself.
    • The three sentences (triggering-record hint and active, and both "Fields of …" sites) use the label.
    • nameOnHover on the picker is opt-in, and only FlowReferenceField passes it, so the other picker hosts are unchanged.
    • The zh update_record.multi row is added, as the amendment allowed.
  3. Delete in the title-bar menu.
    • The menu item calls the same remove. The refusal text moved from the footer to the top of the body.
    • In read-only, both the trigger and the item are disabled. Nested nodes get no menu, as they had no footer before.
    • headerActionsTarget is optional on the package-private InspectorShellHost. Only AutomationsPillar sets it, so AppNavInspector, ObjectFieldInspector, PageBlockInspector and ViewColumnInspector keep their in-body row elsewhere.
    • No confirmation is added, as the seat ruled.
  4. New-automation dialog. auto.nameLabel reads 自动化名称. action.target.flow.label is correctly left alone.
  5. List-view panel. The object.view line is gone; data-view-id keeps the id. notCreated is one sentence and no longer takes a parameter.
  6. Column rows. The FieldListRowNameOnHover context defaults to false. Studio provides true. The label span already carries title=fieldName (objectui#12693), so the name stays reachable. Setup is unchanged, and the control pin holds that.
  7. Nav kinds. kindLabel reuses navKindName, so there is no second table. An empty answer falls back to the raw kind, and Setup passes nothing.

Tests. The commands are real and exit codes are recorded. There are 3 new files with 11 cases, including three CONTROL cases: the canvas Delete key, a FieldListRow with no provider, and AppNavCanvas with no kindLabel. All seven ablations went red, each restored to blob == HEAD. The wide-run failure in listViewInspector-11823 was found and fixed.

Docs. None made false. UI strings. Both new keys and every reworded value are in en and zh, which is all the lazy studio namespace carries. The eager en pack is untouched (60.4 / 78.7 KB). Unrelated files. None.

Must-fix

None.

Should-fix

None.

Notes

CI at review time

There are 55 check-runs on this sha: 17 success, 13 skipped, 25 in progress (Test UI 1–16, Build & E2E UI, Type Check UI, Lint UI and several core lint/type lanes), 0 failed.

Landing needs every run on the landing head green.

Routing

L1 ACCEPT. No L2 is owed (N2), and the PR is not governed. The Decision-row alignment with #34955 (N1) is the seat's call. The area lands this PR once CI is fully green.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 delta review (#34796) · 2026-11-17T23:01Z

L1: ACCEPT
Head-sha: a70ab51

Delta from my ACCEPT 6961995376 at 0d906c6e7d. This verdict supersedes it.

Must-fix

None.

Should-fix

None.

Delta read

Notes

  • N1 (carried, nit): round-1 N4 (the menu shows in the body row on first paint) is left as it was. That is acceptable at nit level.
  • N2: the approval node's 表达式(CEL) option comes from feat(flow designer): add variables, say why Runs is empty, Debug takes the side column, and autosave reads 已保存 in the header #34955, not from this PR, so it is out of this card's scope.
  • N3: the report says check:type-check-debt was NOT MEASURED locally at the round-2 heads because of a lock timeout. CI's Type Check · debt ledger is the reading of record, so it has to be green before landing.
  • N4: CI at this head when I read it: 13 success, 15 skipped, 31 in progress (Test UI 16 shards, Build & E2E UI, Lint UI, Type Check UI, Type Check and Lint gates, Check Changeset re-run), 0 failed. Landing waits for every run to finish green on this sha.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · area o3-C · head a70ab51

Probe Reading
check-governed-merges.mjs --pr 34983 NOT governed (0 of 38 paths hit the register); 1047 changed lines (+897/−150) ≤ 3000 → Tier S
Review L1 delta ACCEPT 6963529091 at a70ab51 (supersedes 6961995376); no contract review owed (Clause-②: no, seat ruling 6949212415: lazy studio locale entries, no schema widening)
Open findings nits only: round-1 N4 (the title-bar menu shows in the body row for one frame before the slot ref lands). The approval node's 表达式(CEL) option comes from #34955 and is out of scope
CI K = 7 (< 15, no branch update); on a70ab51: 47 success, 15 skipped, 0 failed, Type Check · debt ledger green (the run of record for the locally NOT MEASURED family); mergeable clean

Dev-effort: high · Rounds: 2

State: ready + auto-merge now; on MERGED, #34796 closes via Fixes and its pm:* state label comes off.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 23:19
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 65ec3c5 Nov 17, 2026
63 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-34796-studio-automation-interface branch November 17, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Studio 自动化栏与界面栏:节点和视图的属性面板先标签后内部名,删除收进菜单,导航项类型用中文

2 participants