Skip to content

fix(studio): permission title, AI panel 正在看 line and field panel header use names, not internal names - #35082

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-35018-studio-names-a
Nov 18, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-35018-studio-names-a

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Part of #35018 (PR 1 of 2: card items 1–3, the Studio surfaces. Item 4, the landing page app cards and 最近访问, is PR 2.)

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:Studio 三处不再显示内部名。权限页标题只写权限集名字;标题下方和页签右侧改成业务说法(「随应用提供」「本应用对象 · 发布后生效」)。权限栏、自动化栏的 AI 面板「正在看」改为「权限 · 组织成员」「流程 · 新会议提醒」。字段属性面板合并成一行标题、一个关闭按钮,内部名只在「开发者信息」里;右栏底部「AI 助手 / 回到对话 →」条去掉。
  • 为什么改:卡片 Studio:权限页标题重复应用名、AI 面板上下文和字段面板第一行还是内部名;着陆页应用卡片显示包 ID 和「可写」 #35018 的界面实测:应用名在标题里重复,AI 面板显示 permission · app_…_member_access,字段面板两行标题、两个关闭按钮。
  • 风险与回滚:只改显示和文案,不改数据、接口和布局。底部回到对话条是右栏共用的,自动化栏、界面栏也一起去掉,顶部「属性 | AI 助手」切换做同样的事。回滚就是 revert 本 PR。
  • 先看:StudioDesignSurface.tsx(字段面板 InspectorShellHostProvider 那一段,和权限栏、自动化栏的「正在看」上报)、StudioRightSlot.tsx(去掉底部条)、PermissionMatrixEditor.tsx(标题一行)。
  • 两分钟验证:中文 Studio 打开自建应用的「权限」栏选一个权限集,标题只显示权限集名字;打开 AI 面板,输入框上方显示「正在看:权限 · 权限集名字」;在「数据」栏表单里点一个字段,属性面板只有一行标题、面板里只有一个关闭按钮,看不到 meeting_name 这类内部名。
  • 需要你做的:无,席位落地。

What changes

  • Permission page (item 1). PermissionMatrixEditor Studio header: the title is the set's label alone. PermissionStudioChrome.appLabel and AccessPillar's packageLabel prop (added by Studio 权限页:横幅和术语改成业务说法,批量按钮常显并用中文,对象不带内部名 #34795 only to prefix the title) are removed. The note under the title reads engine.studio.access.origin.app (随应用提供 / "Included with the app") instead of perm.badge.package (包内置). The Setup page badge keeps perm.badge.package. The tab-row note engine.studio.access.banner / bannerPair reads 本应用对象 · 发布后生效. Its hover texts (bannerTitle, bannerTitlePair, bannerTitleReadOnly) say "app" for "package" and no longer name a 「Save」 button.
  • AI panel 正在看 (item 2). AccessPillar and AutomationsPillar report the open item's label to the copilot through onSurfaceLabelChange, the seam the Data and Interfaces pillars already use: 权限 · LABEL (the record-visibility overview reads 权限 · 谁能看到哪些记录) and 流程 · LABEL (the label the flow canvas header reads). The chip's hover title keeps type · name, and the agent's context.surface is unchanged. The Interfaces rail already read labels on main (pinned by StudioDesignSurface.aiChipLabel), so it is not changed here.
  • Field properties panel (item 3). The Data pillar's field rail hosts ObjectFieldInspector under InspectorShellHostProvider. This is the objectui#12488 seam the flow inspector uses. The rail's StudioInspector header is now the only header: 字段属性, the field's label, the inspector's own actions (duplicate, reorder, ⋯ menu) portaled into its slot, and one close button. The machine name is no longer under the header. It stays in the inspector's collapsed 开发者信息. StudioRightSlot loses its foot strip. The header's 属性 | AI 助手 switch does the same thing and carries the same pending count. ObjectFieldInspector.tsx itself needed no change.
  • Three new studio namespace keys (lazy namespace, not the eager en pack): engine.studio.access.origin.app, engine.studio.copilot.subject.access, engine.studio.copilot.subject.flow. zh and en are kept in step.

Why

Card #35018 items 1–3, measured on main in the card's browser walk and again in this PR's before leg (below).

Tests

Pins (card-named, beside each file's existing tests)
  • Item 1, StudioDesignSurface.accessWording-34795.test.tsx: the title's text is exactly the set label (组织成员) and the header holds no app name. A new case checks that the note reads the origin key · default and that the header has no 包内置 and no 本包. The Studio 权限页:横幅和术语改成业务说法,批量按钮常显并用中文,对象不带内部名 #34795 "app · set label" case is rewritten to the card's ruling.
  • Item 2, StudioDesignSurface.aiChipLabel.test.tsx: a new describe mounts the real surface, dock and ChatPane at /access?surface=permission:SET and /automations?surface=flow:FLOW. The chip reads 正在看:权限 · 组织成员 / 正在看:流程 · 新会议提醒, contains neither permission/flow nor the machine name, its title is type · name, and the agent surface is the URL's.
  • Item 3, DataPillar.readOnlyRailReason-12303.test.tsx (real registered ObjectFieldInspector): exactly one Close button in the rail, one header, the header titled by the field label and holding the ⋯ menu, the inspector hosted (inspector-shell-hosted). The field's machine name is not in the visible text by default. CONTROL: the developer section's API-name input becomes visible after its toggle.
  • Updated for the change: the strip pins in pillarsClaimSlot-12725, rightSlot-12725, leafColumnSelection-12725, kanbanCardSelection-12725 and __tests__/studioRightSlot-12725 now drive the header switch and assert no strip. The Studio badge text in accessTabs-12456, accessPairCopy-29674 and PermissionMatrixEditor.badge (studio site only) is updated. baseObjectExtension-28575 reads the field's name from 开发者信息 instead of the header.
Ablations (scripts/ablation-replace.mjs, at 992a138; each restored to HEAD, `git diff HEAD` empty)
  • Item 1: const studioTitle = headerLabel || name; → an app-prefixed title. accessWording-34795: 1 failed / 12 passed (the title case). Restored blob 91c0958ffd00 == HEAD.
  • Item 2: the Access report's `${accessSubject} · ${currentSetLabel}` → undefined. aiChipLabel: 1 failed / 3 passed (the Access case, chip fell back to type · name). Restored blob f55bc71521c0 == HEAD.
  • Item 3: InspectorShellHostProvider value={{ … fieldHeaderSlot }} → value={null}. readOnlyRailReason-12303: 2 failed / 4 passed (one-header case and the ⋯-menu-in-header case). Restored blob f55bc71521c0 == HEAD.
Suites (local, under os-verify-lock)
  • pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/ …/PermissionMatrixEditor …/inspectors/ at 21b627f: Test Files 626 passed, 1 failed (627). The one failure was PermissionMatrixEditor.badge studio site, fixed in 992a138. Re-run there: 3 files / 33 tests passed.
  • pnpm --filter @object-ui/app-shell --filter @object-ui/i18n run type-check (src and tsconfig.test.json): exit 0.
  • pnpm --dir ui exec vitest run scripts/: 171 files passed, 2 skipped. The first run was killed by the box's OOM killer while the studio suite ran beside it, so it reads NOT MEASURED. This re-run ran alone.
  • adeba01 changes only locale values and the changeset after these runs (no test reads the reworded literals). The changeset gates and check:test-source-alias were re-run there: exit 0.

Acceptance notes

  • Live reading (zh-CN, 1280×800, fresh showcase backend + console served from src). A self-built app was created over HTTP: package com.qa.mtg 会议纪要, object 会议 with 会议名称, permission set 组织成员, flow 新会议提醒. Stand-in: /api/v1/ai/** answers an agents list with a build agent, so Studio serves its AI panel; no model is called. Before = the five changed source files checked out at the merge base, vite restarted with --force, served code checked with curl. After = branch head, served code checked the same way.
    • Before: title 「会议纪要 · 组织成员」, note 「包内置 · 新用户默认」, tab row 「仅本包对象 · 保存为草稿」; Access 「正在看:permission · mtg_member_access」, Automations 「正在看:flow · mtg_new_meeting_alert」; field panel 2 close buttons, header 「字段属性 meeting_name」, meeting_name visible, foot strip present.
    • After: title 「组织成员」, note 「随应用提供 · 新用户默认」, tab row 「本应用对象 · 发布后生效」; Access 「正在看:权限 · 组织成员」, Automations 「正在看:流程 · 新会议提醒」; field panel 1 close button, header 「字段属性 会议名称」, meeting_name not visible by default, no foot strip.
    • My first wording (本应用的对象) was one character wider than main's and got cut at the tab row's right edge with the AI panel open. The shipped wording has main's width and fits (after shot).
  • The card's own app had a set authored as 「会议纪要·组织成员」. Its title now reads that authored label as written, once. The app name is no longer added by Studio. A label that itself names the app is the author's text, and this PR does not rewrite it.
  • The foot strip lived in StudioRightSlot.tsx, not ObjectFieldInspector.tsx. The claim's PR 1 surface named the inspector file, so this file is an addition to the claim's surface. The strip is shared slot chrome, so it also goes on the Automations and Interfaces rails. Their property panels themselves (Studio 自动化栏与界面栏:节点和视图的属性面板先标签后内部名,删除收进菜单,导航项类型用中文 #34796) are not touched.

Verification

Gates derived by node scripts/pm/dispatch-gates.mjs --commands (38) plus pnpm check:changeset-fixed (a roster under .changeset/), run locally at 21b627f / 992a138. All exit 0, except three first-run reds, each resolved:

  • pnpm check:test-source-alias: exit 1 (two edited slot tests and the badge test lacked module-top preloads). Fixed in 992a138, re-run exit 0.
  • pnpm check:type-check-debt: exit 3, PREREQUISITE NOT MET (its build did not get the lock). Re-run: exit 0, "0 ledger entr(ies) re-measured … none above its recorded number".
  • pnpm --dir ui exec vitest run scripts/: SIGKILL (OOM, box contention). Re-run alone: exit 0.
  • node scripts/check-platform-checklist.mjs --changed-from origin/main: exit 0 (no anchored files). pnpm --dir ui run check:new-line-citations: 0 new citations.
  • node scripts/pm/overlap-check.mjs --branch=claude/issue-35018-studio-names-a: VERDICT clean (main, fix(objectql)!: a required field hidden by its own visibleWhen is required only when shown #34978, feat(ui): a timesheet list view, an editable row × weekday entry grid #34925 merge cleanly).
  • The CI type-check lanes and repo-wide scans are CI's.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa

…mes, not internal names

The open permission set's title is its label alone; the note under it and
the tab-row note read in the builder's words. The Access and Automations
rails report the open item's label to the copilot's 正在看 line. The Data
rail's field panel draws one header row with one close button; the field's
machine name stays under 开发者信息; the right slot's foot strip that
repeated the 属性 | AI 助手 switch is gone.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa
…s for the edited slot tests

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa
…th the AI panel open

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfrh8TiPJf1i2kMSoa
@github-actions github-actions Bot added size/m 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 18, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 review — #35082 (Part of #35018, PR 1: Studio items 1–3) · 2026-11-18T02:02Z

L1: ACCEPT
Head-sha: adeba01

Surface. All 18 files are inside claim 6964950830 (PR 1 slice) plus amendment 6966717997:

  • PermissionMatrixEditor.tsx and StudioDesignSurface.tsx are named in the claim. DataPillar, AccessPillar and AutomationsPillar live in that file, so the DataPillar.* tests are that file's existing tests.
  • StudioRightSlot.tsx and the studio en.ts / zh.ts come from the amendment. Those are the only studio locale files, so no other language is left stale.
  • Every edited test belongs to an in-surface file, and there is a root changeset.
  • ObjectFieldInspector.tsx and StudioAiCopilot.tsx are unchanged, which the claim allows.
  • I confirm NOT governed (check-governed-merges --branch): 0 of 18 paths hit the register, 416 changed lines.

Item 1, permission page.

  • studioTitle is now headerLabel || name. PermissionStudioChrome.appLabel and AccessPillar.packageLabel are removed along with their one caller.
  • The note reads engine.studio.access.origin.app (随应用提供 / "Included with the app"). Setup keeps perm.badge.package, so only the Studio site changes.
  • The banner, the pair banner and the three hover texts say 应用 / app instead of 包 / package, and no longer name a 「Save」 button.
  • 发布后生效 matches what the hover already said (saved as a draft, live on Publish).
  • Studio 权限页:横幅和术语改成业务说法,批量按钮常显并用中文,对象不带内部名 #34795's title pin is rewritten to an exact textContent === '组织成员' plus a no-app-name scan of the header. That reversal is the card's own acceptance line ("权限页标题里应用名只出现一次(顶栏)").

Item 2, 正在看. Access and Automations now report through onSurfaceLabelChange, the seam Data and Interfaces already use. Both use the ref-held callback keyed on primitives, and both clear on unmount. The labels:

  • the flow's label prefers useFlowLabelTranslations, the same label the canvas header reads;
  • the record-visibility overview reports its own title.

type and name still travel as before, so the hover title and the agent's context.surface are unchanged. Interfaces already used labels on main and has an existing pin.

Item 3, field panel.

  • The Data field rail mounts the inspector under InspectorShellHostProvider, the objectui#12488 seam the Automations config rail already uses. InspectorShell then draws no header of its own, and its actions portal into the aside's header slot.
  • The aside's title is the field label. The id (machine name) shows only when the rail is not hosted, which covers groups and the no-inspector fallback.
  • The host's onSelectionChange is setFieldSel. Only FlowObjectListField reads it today, so nothing calls it with the field inspector's selection shape.
  • The live reading shows one close button inside the panel, meeting_name hidden until 开发者信息, and no foot strip. The slot's own X is the slot collapse, a separate control.

On the scope of the strip removal, which the requester asked me to weigh: I accept it as slot-wide.

  • The strip is one element of the shared StudioRightSlot chrome, not part of any rail's property panel. The card offers removing it as one of its two options, and its stated reason holds on every rail: the header's 属性 | AI 助手 switch does the same thing and carries the same 「N 项待确认」 count.
  • Keeping the strip only on Automations and Interfaces would need a per-rail flag. It would also make the same slot behave two ways.
  • Studio 自动化栏与界面栏:节点和视图的属性面板先标签后内部名,删除收进菜单,导航项类型用中文 #34796's exclusion covers those rails' property panels, and they are untouched. The studio-slot-copilot-strip absence is pinned in the rightSlot, pillarsClaimSlot, leafColumn and kanban tests.
  • engine.studio.slot.backToChat is still used by the history toggle's aria-label, so no locale key is orphaned.

Pins and ablations. The pins are accessWording-34795 (exact title, no 包内置 / 本包), a new aiChipLabel describe (real surface, dock and ChatPane; the chip text plus the unchanged title and agent surface), and readOnlyRailReason-12303 (real ObjectFieldInspector: exactly 1 Close, a hosted shell, the machine name visible only after 开发者信息, as the CONTROL). Ablations ran at 992a138 and went 1, 1 and 2 red, each restored. The only later commit, adeba01, changes locale values and the changeset.

Live (zh-CN 1280, self-built app, before and after) in /mnt/project-files/objectstack-seat3/35018-live/a/. I read the after shots and log:

  • the title is 「组织成员」 and its note 「随应用提供 · 新用户默认」;
  • the tab note is 「本应用对象 · 发布后生效」 and is not cut with the AI panel open;
  • the chips read 「正在看:权限 · 组织成员」 and 「正在看:流程 · 新会议提醒」;
  • the field panel has one header (字段属性 · 会议名称 · actions · ×) and no strip.

Clause-②: no and Metadata-protocol: none are correct: this is display wording and chrome only.

Must-fix: none.
Should-fix: none.

Notes:

  • The out-of-scope observation is that an Interfaces leaf created without a label gets label = name, so its chip would show the machine name. It is noted and not filed. It is a creation-path default, not this card's chip seam.
  • CI at review time: 13 success, 13 skipped, 29 in progress. Landing waits on all checks being green.

Landing: ordinary queue landing (not Tier H) via the seat. PR 2 (item 4, landing, Closes #35018) follows from fresh main.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

L1 delta review (L1-d) — #35082 · 2026-11-18T02:18Z

L1: ACCEPT
Head-sha: 534a8d3

Delta from my ACCEPT on adeba01 (6966757774). The only new commit is 534a8d3, a merge of main (36d46b5) with parents adeba01 and 36d46b5.

Merge-only check. For each of the 18 files, the PR's sorted ^[-+] lines against its own merge base are identical before (adeba01) and after (534a8d3). The PR's change is byte-for-byte the one I accepted, and main's commits arrive untouched. Still NOT governed (check-governed-merges --branch): 0 of 18 paths, 416 changed lines.

Must-fix: none. Should-fix: none.

Notes: CI on this head at review time was 1 success, 5 skipped, 16 in progress. Landing waits on all checks being green on 534a8d3.

Landing: ordinary queue landing (not Tier H) once CI is green. PR 2 (item 4, Closes #35018) follows.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing (area o3-H, for the owning seat) · 2026-11-18T02:40Z

Reading Value
L1 ACCEPT. L1-d 6966757774 on adeba0162c, then a merge-only delta ACCEPT 6967038356 on head 534a8d315568b66bdf7ffeec2b3fd18329f287a3. No must-fix or should-fix. The slot-wide strip removal is accepted.
check-governed-merges.mjs --pr 35082 NOT governed: 0 of 18 paths. Ordinary queue landing. 416 changed lines.
CI on that head All suites completed with none failed (check_suite.completed).
K (first-parent, merge base..origin/main) 4 (under 15) after the main merge at 534a8d3; merges cleanly.
Dev effort medium, 1 round to ACCEPT (seat effort trial).

State change: ready + auto-merge enabled. Part of #35018 (PR 1 of 2: card items 1–3). PR 2 (item 4, the landing page) closes the card and is in development.

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/m 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.

2 participants