Skip to content

Studio 权限页:横幅和术语改成业务说法,批量按钮常显并用中文,对象不带内部名 #34795

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #34571(控制台核心业务操作体验专题,维护者直派,「都是p1」)。⛔ 不是认领。
维护者 2026-11-17 原话:「studio 主要的常用界面也综合评估,看如何优化。」;看过图 21、22 后:「可以,立卡」。

现状(读码,objectstack origin/main 6091b64;界面实测在本地 cloud 环境,自建应用「会议纪要」,zh-CN)

  • 横幅读不懂。 接受了包建议的默认权限集后,顶部写的是「「app_ti8v_member_access」已为所有已登录用户(Everyone 岗位)接受。[撤销]」(ui/packages/i18n/src/namespaces/studio/zh.ts:2406 engine.studio.access.suggestAcceptedState,StudioDesignSurface.tsx:10392 起的 SuggestedBindingsPanel,ADR-0090 D5/D9)。权限集用的是内部名,「接受」「Everyone 岗位」是机制用语,用户读不出「所有成员默认都有这个权限」这层意思。
  • 标题被截断,旁边挤着三个标签。
  • 术语是平台内部说法:「记录共享模型(OWD)」(zh.ts:2120、:2248)、「受父级控制 → {master}」(:3289,PackageOwdOverviewPanel.tsx:619)、页签「行级安全」「标签页可见性」「系统能力」(zh.ts:2422–2426,PermissionMatrixEditor.tsx:522)。
  • 批量按钮藏着且是缩写。 对象矩阵的批量操作只在鼠标悬停或键盘聚焦的行上出现,表格下方用一行脚注解释:「批量操作(R · CRUD · All · None)显示在指针所在或获得键盘焦点的行上。」(zh.ts:2445,PermissionMatrixEditor.tsx:2447)。
  • 对象行带内部名(ti8v_meeting)。

要做的(只改文案与呈现,不改权限模型和任何接口)

  1. 横幅改成一句话,用权限集的显示名:已生效时「所有成员默认拥有这个权限集,新加入的人也会自动拥有。」,右边的「撤销」改为「取消默认授予」。待确认、未生效、已忽略三种状态按同样口吻改写;访客(Guest)那一句同理。
  2. 标题用「应用名 · 权限集显示名」,不截断;内部名和三个标签收到标题下的一行小字或悬停提示里。
  3. 术语(zh-CN;其他语言按同样原则):
    • 「记录共享模型(OWD)」→「谁能看到哪些记录」
    • 「私有 / 公共只读 / 公共读写」→「只有负责人能看 / 所有人能看 / 所有人都能看和改」
    • 「受父级控制 → {master}」→「跟随所属的{master}」
    • 页签:「对象」→「对象权限」,「系统能力」→「系统功能」,「行级安全」→「数据范围规则」,「标签页可见性」→「菜单可见」
  4. 批量按钮每行常显,写成「全选 · 只读 · 清空」(对应现有的 All / R / None;CRUD 那一档并入「全选」旁的下拉或保留为第四个,由实现者定),去掉脚注。
  5. 对象行只显示名称,内部名放悬停提示。

不做的

  • 不改 ADR-0090 的建议与确认机制,不改「撤销」实际做的事,只改它的叫法。
  • 不改权限矩阵的列(新建 / 查看 / 编辑 / 删除 / 导出 / 转移 / 查看全部 / 修改全部)。
  • 不动 Setup 里的权限集页面;那边若共用同一批词条会跟着变,属于预期。

验收

  • 自建应用的权限页顶部读作「所有成员默认拥有这个权限集,新加入的人也会自动拥有。」,页面上不出现 app_…_member_access 这类内部名,也不出现「Everyone 岗位」「OWD」「CRUD」。
  • 标题完整显示。
  • 不悬停也能看到每行的「全选 · 只读 · 清空」,点了之后矩阵的勾选与现在的 All / R / None 一致。
  • 「取消默认授予」点下去的效果与现在的「撤销」相同。

设计图(静态示意稿,标「新」的是改动;示例数据是虚构的)

图 22 Studio 权限页

图 22 Studio 权限页

Reader: domain:ui 车道,改 ui/packages/i18n/src/namespaces/studio/(各语言)、ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx、ui/packages/app-shell/src/views/studio-design/PackageOwdOverviewPanel.tsx、StudioDesignSurface.tsx 的权限栏。

Dedupe: repo:objectstack-ai/objectstack Studio 权限集 Everyone 横幅、Studio 权限 OWD 文案 → 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:47Z

    ⛔ 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_01WGufziunkXbDT7wUWqfmWz

    Claim: PM loop round 1 (area o3-C, epic #34571)
    Session: session_01WGufziunkXbDT7wUWqfmWz
    Account: os-support-ai
    Branch: claude/issue-34795-studio-permissions-wording
    Worktree: objectstack-issue-34795
    Domain: domain:ui
    Seat: repo:objectstack#3
    File surface: ui/packages/i18n/src/namespaces/studio/** (values of existing keys; new keys only where a string has none), ui/packages/i18n/src/locales/** only where an existing value there carries the same wording (value edits, no new keys), ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.tsx + tests, ui/packages/app-shell/src/views/studio-design/PackageOwdOverviewPanel.tsx + tests, ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx (access tab region) + ui/packages/app-shell/src/components/SuggestedBindingsPanel.tsx + tests, root .changeset/
    Container & model: M, mode:subagent (area o3-C os-dev), model: TIER_DEFAULT (dispatch-gates --tier on the surface: "no path-derived mandate"), effort: high
    Clause-②: yes (widening — locale keys only)
    Metadata-protocol: none
    Responsibility: @object-ui/app-shell and @object-ui/i18n in objectstack (Studio permissions page speaks mechanism: internal permission-set names, "Everyone 岗位", OWD, "受父级控制", hover-only bulk buttons with abbreviations, internal object names) | none | every app builder on Studio's permissions page (and Setup's permission-set page where it shares the keys, as the card expects)
    Thread-read: 6947149395
    Premise: holds at code level, measured on origin/main 1b0b5fe: engine.studio.access.suggest* in namespaces/studio/zh.ts:2397-2405 (en twin present), drawn by SuggestedBindingsPanel (StudioDesignSurface.tsx:10393, suggestAcceptedState at :10417); 记录共享模型(OWD) at zh.ts:2120/:2248 and also in locales/zh-Hans.ts; the bulk hint engine.studio.access.bulkHint at PermissionMatrixEditor.tsx:2447. The card's other line numbers drift by a few lines; the dev re-measures before code.
    Serial constraints cleared: overlap-check against the #34724 / #34725 / #34714 PRs and the sibling o3-C card #34794 (same StudioDesignSurface.tsx, data tab region) before every push.
    Pre-claim lane: domain:ui — every path is under ui/**.
    Pre-claim deps: no Blocked-by: / "after #N" on the card; triage first touch 6947149395 queued it; the seat assigned it to area o3-C (12:17Z).
    Prior rulings read: suggestacceptedstate,suggestedbindingspanel,owd,bulkhint,permissionmatrixeditor,everyone,sharingmodel → ADR-0090 D1, D4, D5/D9, D11, ADR-0056 D1, D3, D9, ADR-0055 §1, §4, ADR-0069 D3; display wording only: the OWD canonical values (ADR-0090 D4) and the suggestion/confirm mechanism (D5/D9) are unchanged; thread: none; repo: objectstack-ai/objectstack

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

    @objectstack-fleet
    ContributorAuthor

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

    Claim correction to 6947852041 (same session, same branch): the Premise: line was measured on origin/main c513d62, not 1b0b5fe as written. Nothing else changes.

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34795,
      "status": "done",
      "branch": "claude/issue-34795-studio-permissions-wording",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34914",
      "session": "session_01WGufziunkXbDT7wUWqfmWz",
      "premise_still_valid": true,
      "summary": "The Studio Access pillar now uses business wording in zh-CN and en. The accepted default-grant banner is the card's sentence, and its button 取消默认授予 calls the same dismiss handler as 撤销. The title reads app · set label, with the machine name as its tooltip. OWD and parent terms, the four tabs and the bulk labels are renamed. 全选 · 只读 · 清空 · 增删改查 shows on every row in a right-pinned column, and the footnote and its key are gone. Object rows in the matrix and in the OWD overview show the label only. Every premise was measured true at c513d62. The reach is wider, inside the card's acceptance: rail rows, the subtitle, the rail OWD row and the English default tag. Live readings found two layout defects this change created or exposed: the chip wrapped, and the bulk buttons sat past the edge at 1440 px. Both are fixed in this PR. Setup changes only through shared keys. Value edits only, Clause-② no.",
      "tests": "head 8edea22f14 (the final head 58be6ed5f5 only reverts two locale lines no test reads): 65 targeted files, 418/418 passed, lock VERDICT command-exit 0. Post-merge battery: 599 files, 4594/4594 passed, VERDICT command-exit 0. New tests: StudioDesignSurface.accessWording-34795 (12) and PackageOwdOverviewPanel.objectName-34795 (2). Ablations via ablation-replace, each restored with blob == HEAD and git diff HEAD empty: A1 hover-gated strip, 1 failed/12; A2 revoke label 撤销, 1 failed/12; A3 object name in the button text, 1 failed/12 (first attempt refused as a no-op and rerun); A4 appLabel dropped, 1 failed/12; A5 overview prints the machine name, 2 failed/2. Type-check of app-shell and i18n: exit 0, after a closure rebuild; the first post-merge run exited 2 on a stale plugin-chatbot dist. Live zh-CN Chromium readings on my own dev backend: title, tabs, 24/24 strips, tooltips, 0 forbidden terms, strip x 1228-1413 at 1440 px. Accepted banner live: NOT MEASURED (the producer is cloud-only, 403). Bulk clicks live: NOT MEASURED (read-only package).",
      "gates": "local on 58be6ed5f5: dispatch-gates --commands derived 38 families, all exit 0. The ui scripts/ family was OOM-killed once and rerun alone: 171 passed, 2 skipped, exit 0. --ran reconciliation: 38 derived, 38 run, 0 NOT-MEASURED, every family carrying an exit code. ui gates: check:i18n-keys 0, check:i18n-drift 0, check:new-line-citations 0; gen:zh-hant current. overlap-check: VERDICT clean exit 0 (an earlier exit 1 vs #34850 was cleared by dropping the zh-Hans hint edit). check:eager-closure exit 0 pre-merge: i18n-locale-en 60.2/60.5 KB; eager packs are byte-identical to origin/main. CI on 58be6ed5f5 at report time: 22 check-runs, 16 in_progress, 5 skipped, 1 success, 0 failure.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — relay dispatch POST /repos/objectstack-ai/objectstack/dispatches for pr_create (#34914 created as draft, plus its issue-assignees leg os-support-ai); post-stamped os-dev-report comment on #34795",
      "open_questions": [
        {
          "question": "The Draft Changes publish-refusal hint (securityBlockWhere, all 9 locale packs, plus the DraftChangesPanel default value) still says Settings → Record sharing / 记录共享模型. This PR renamed that label, so the hint is now stale.",
          "options": [
            "A — a follow-up card renames the hint in all 9 packs and the DraftChangesPanel default together",
            "B — widen this PR's surface to those files"
          ],
          "recommendation": "A, because the drift gate requires all 9 packs to move together and the default value sits outside this card's claimed surface; #34850 also edits that region of zh-Hans"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: public door — Studio → 权限 → Draft Changes publish refusal names Settings → Record sharing, a label that no longer exists · evidence: securityBlockWhere in every locale pack plus the DraftChangesPanel default value · dedupe words: securityBlockWhere, 记录共享模型, Record sharing, publish refusal hint",
        "carrier: none · noted, not filed — the delegated-admin tab's facet pills still show set machine names; the explain-access sheet strings still use OWD/CRUD; both are outside this card's surface",
        "carrier: none · noted, not filed — the suggestion list carries no bindingCreated, so a not-in-force row read back later shows the in-force sentence (behaviour unchanged, wording new)",
        "carrier: cloud · noted, not filed — why the live repro's banner showed the machine name app_ti8v_member_access is NOT MEASURED: the producer is in cloud (403); the panel already prefers the rail label"
      ],
      "deviations": [
        "The rail rows, header subtitle, rail OWD row and rail default tag go beyond the card's 要做的 list; they fall under its acceptance line (no internal name, OWD or CRUD on the page)",
        "Clause-② is no (value edits plus one dead key removed), not the brief's expected yes (widening)",
        "Additions found by the live readings: the OWD chip kept on one line, the bulk column pinned right, and the OWD overview object rows reduced to the label (PackageOwdOverviewPanel.tsx, which is in the claimed surface)",
        "The en pack hint edit and then the zh-Hans/zh-Hant hint edit were reverted; locales/** is byte-identical to origin/main",
        "18 edited test files gained module-top imports for check:test-source-alias; the ObjectSettingsPanel and DirectoryPage tests changed because they assert shared keys",
        "Commit trailers are model-free; the harness reminder's model-named trailer and robot footer were not used"
      ]
    }
  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-11-17T16:16Z

    This amends the claim on PR #34914 @ 58be6ed5 (o3-C; os-dev report 6953660171).

    Surface add (A): the PR renames Studio's "Settings → Record sharing" label. The Draft Changes publish-refusal hint securityBlockWhere still points the author at the old label, so this PR would make a shipped sentence false. The hint follows the new label in the same PR:

    • ui/packages/i18n/src/locales/*.ts, a value edit of the securityBlockWhere key only, in all 11 packs
    • ui/packages/app-shell/src/preview/DraftChangesPanel.tsx, the default text only

    Clause-②: no holds (value edits). Run overlap-check against #34850's merged state and any open PR on the zh-Hans region before pushing. Mind the i18n-locale-en eager headroom, about 145 B; a value edit must not grow the en pack past it.

  9. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment (same session, same branch claude/issue-34795-studio-permissions-wording) to claim 6947852041: the file surface adds ui/e2e/permission-field-panel-scroll.spec.ts. It finds the object row's expand button by the old "label + machine name" accessible name (:280), which card item 5 removes from the visible row. Value edits only: the spec matches the label-only name, and its scroll assertions are unchanged. Clause-② stays no.

  10. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 34795,
      "status": "done",
      "round": 2,
      "branch": "claude/issue-34795-studio-permissions-wording",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34914",
      "head": "5ba8869eae",
      "session": "session_01WGufziunkXbDT7wUWqfmWz",
      "premise_still_valid": true,
      "summary": "Round 2, delta only. (1) Seat ruling A: securityBlockWhere now names Settings → Who can see which records in all 11 locale packs (zh-Hant regenerated) and in the DraftChangesPanel default; value edits only. The two DraftChangesPanel tests that read the old en hint now assert the new wording and still pin that the panel says where to fix it. (2) The e2e spec ui/e2e/permission-field-panel-scroll.spec.ts finds the Studio row's expand button by its label-only name ^Project$. The environment host keeps the label-plus-name lookup, because the Setup table still prints both. Scroll assertions are unchanged. origin/main (#34850 included) was merged first. Premise re-measured: the old hint was in all 11 packs plus the default; the spec's only name lookup is the one changed, and no other e2e reader uses that name. Grepping ui/, e2e and docs found no other reader of 'Settings → Record sharing'.",
      "tests": "e2e spec in Chromium: 6 passed. Control: the old lookup on the studio host gave TimeoutError 30000ms (the CI failure), then the spec was restored and git diff HEAD was empty. Targeted vitest: 92 files, 597/597 passed. @object-ui/i18n: 102 files, 1894 passed and 13 skipped. VERDICT command-exit 0.",
      "gates": "On 5ba8869eae: dispatch-gates --commands derived 40 families, all exit 0; --ran: 40 derived, 40 run, 0 NOT-MEASURED. type-check app-shell and i18n: Done. check:i18n-keys 0, check:i18n-drift 0, check:new-line-citations 0. check:eager-closure exit 0: i18n-locale-en 60.4 KB / 60.5 KB (headroom 0.2 KB; ceiling untouched). overlap-check: VERDICT clean exit 0 (main plus #34926, #34925, #34799). CI on 5ba8869eae at report time: 57 check-runs, 43 success (including Build & E2E UI and Live E2E UI), 13 skipped, 0 failure, and Test UI (9/16) in_progress (a coordinator re-run after a runner fetch timeout).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "round 2: 1 — this post-stamped comment. Plus git push x2 (fafc1d6260, 5ba8869eae), which is not a REST write. The PR body was not PATCHed: see open_questions.",
      "open_questions": [
        {
          "question": "The dispatch asked me to update the PR body. os-dev.md says a subagent writes the PR body only at pr_create and the seat writes later edits, and that the file wins when it conflicts with a dispatch. The body is therefore stale in four places: the securityBlockWhere table row, the eager-edit sentence and budget reading, the removed acceptance note, and the round-2 tests and verification.",
          "options": [
            "A — the seat applies the prepared round-2 body",
            "B — the seat confirms I may PATCH it via post-stamped --body"
          ],
          "recommendation": "A, because it keeps the os-dev write rule intact; the prepared body is ready to paste"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "deviations": [
        "Two DraftChangesPanel test files are outside the amended surface; they were edited because they assert the old hint wording, which is value-only",
        "The PR body was not updated by me (os-dev rule; see open_questions)",
        "origin/main was merged again (merge commit 0fff641788)"
      ],
      "Dev-effort": "high",
      "Rounds": 2
    }
  11. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim amendment · 2026-11-17T17:30Z

    For PR #34914, answering L1-a M1 (comment 6955723311): the surface adds docs/qa/platform-checklist/areas/studio-authoring.json. The change is a value edit to one verify clause only, at line ~1019, the read-only Access item. That clause now says every object row draws the bulk strip, and in read-only Studio every button in it is disabled. The clause's FAIL condition stays. The PR deletes the cited engine.studio.access.bulkHint key, so the clause stops citing it. Clause-② stays no. Nothing else changes.

  12. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delivered by PR #34914 (merged, fff0ad0): Studio's permissions page speaks business wording in en and zh (record visibility values, the four tabs, suggestion lines, overview and settings labels, and bulk labels), the object-row bulk strip draws on every row instead of on hover, object rows show the label with the internal name in a tooltip, and the publish-refusal hint names "Settings → Who can see which records" in all 11 locale packs and the DraftChangesPanel default (seat ruling A). Stored values and calls are unchanged. The e2e scroll spec and the platform-checklist read-only Access clause now read the new UI. pm:dispatched comes off with the close.

    Open at the merge, nits only (merge standard 「只对 nit 级采用」): each row's bulk buttons carry no object in their accessible name (pre-existing, routed to the seat); the studio namespace exists in en/zh only (pre-existing); a toast anchor note. Records: L1 6955723311 and delta 6955863136.

  13. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:uienhancementpriority:p1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions