Skip to content

Commit fff0ad0

Browse files
feat(studio): the permissions page speaks business wording; bulk buttons show on every row (#34914)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBA6p6wR5XRGmnECFZqr87FM)_ Fixes #34795 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:Studio 权限页改用业务说法。默认授予横幅只写一句「所有成员默认拥有这个权限集,新加入的人也会自动拥有。」,按钮改为「取消默认授予」;标题是「应用名 · 权限集显示名」;「记录共享模型(OWD)」改为「谁能看到哪些记录」;页签改为 对象权限 / 系统功能 / 数据范围规则 / 菜单可见;批量按钮「全选 · 只读 · 清空 · 增删改查」每行常显;对象行只显示名称,内部名放在悬停提示里。 - 为什么改:搭应用的人读不懂横幅里的内部名和「Everyone 岗位」,批量按钮要悬停才出现,而且是缩写(卡 #34795,epic #34571)。 - 风险与回滚:只改文案和展示,权限模型、ADR-0090 的建议与确认机制、所有请求都不变。Setup 的权限集页共用几条文案(批量按钮、共享取值、三个分区标题),会一起变,布局不变。回滚就是 revert 本 PR。 - 先看:`PermissionMatrixEditor.tsx`(`StudioObjectRow` 的批量按钮和固定在右侧的批量列、`renderStudio` 的标题);`namespaces/studio/zh.ts`(`engine.studio.access.suggest*` 一组文案);`StudioDesignSurface.tsx`(`AccessPillar` 的左栏行和 `appLabel`)。 - 两分钟验证:`pnpm --dir ui exec vitest run packages/app-shell/src/views/studio-design/StudioDesignSurface.accessWording-34795.test.tsx`,预期 12 个测试全部通过;或者用中文界面打开 Studio → 权限,预期每一行都能看到「全选 · 只读 · 清空 · 增删改查」,页面上不出现 OWD、CRUD 或权限集的内部名。 - 需要你做的: 无,席位落地 ## What changes The Studio Access pillar now reads in an app builder's words, in zh-CN and in English. It changes wording and presentation only. The permission model, the ADR-0090 D5/D9 suggestion and confirmation flow, and every request stay the same. ADR-0090 D4 holds: display labels change, stored `sharingModel` values do not. - **Default-grant banner.** The accepted state is one sentence and no longer names the set or the Everyone position. The button reads 取消默认授予 and calls the same handler as 撤销 did (`dismissSuggestedBinding`). The pending, not-in-force, dismissed, guest, confirm and toast lines use the same tone. Pending rows name the set by its label. - **Title.** The open set's header is `appLabel · set label`. `AccessPillar` passes the package's name as the new `PermissionStudioChrome.appLabel`. The machine name moves to the title's tooltip, and the provenance, default and lock labels move to the line under the title. The title is not truncated: measured live, `scrollWidth == clientWidth`. - **Terms.** 记录共享模型(OWD) becomes 谁能看到哪些记录. The values read 只有负责人能看 / 所有人能看 / 所有人都能看和改, and 受父级控制 → {master} becomes 跟随所属的{master}. The tabs read 对象权限 / 系统功能 / 数据范围规则 / 菜单可见. - **Bulk buttons.** Every row shows 全选 · 只读 · 清空, then the CRUD set as a fourth button (增删改查). Before, the strip appeared only on the row under the pointer or with focus. Each button writes exactly what All / R / None / CRUD wrote before. The footnote that explained the hidden strip is removed, along with its key `engine.studio.access.bulkHint`. The bulk column is pinned to the right edge of the scroll pane, the way the Object column is pinned to the left. Without that, the third and fourth buttons sat past the right edge at 1440 px (live reading below). - **Object rows.** The matrix and the package's 谁能看到哪些记录 overview show the object's label only. The machine name is the tooltip. The record-visibility chip now stays on one line: the new labels are longer and had wrapped inside its fixed-height box. - **Rail.** The access rail rows show the set's label, with the machine name as the tooltip, and the hard-coded English `default` tag now uses the localized `perm.badge.default`. The rail's OWD row and the pillar subtitle (`对象 × CRUD`) use the new terms. All of this falls under the card's acceptance line that the page shows no internal name, OWD or CRUD. ### Wording, old → new | Key | zh-CN old | zh-CN new | en old | en new | | --- | --- | --- | --- | --- | | `engine.studio.access.suggestAcceptedState` | 「{set}」已为所有已登录用户(Everyone 岗位)接受。 | 所有成员默认拥有这个权限集,新加入的人也会自动拥有。 | "{set}" was accepted for all signed-in users (Everyone). | Every member has this permission set by default, and new members get it automatically. | | `engine.studio.access.suggestRevoke` | 撤销 | 取消默认授予 | Revoke | Stop granting by default | | `engine.studio.settings.sharing` / `access.colOwd` / `owd.railLabel` | 记录共享模型(OWD) / 记录共享模型 / 记录共享(OWD) | 谁能看到哪些记录 | Record sharing (OWD) / OWD | Who can see which records | | `perm.owd.private` · `public_read` · `public_read_write` | 私有 · 公共只读 · 公共读写 | 只有负责人能看 · 所有人能看 · 所有人都能看和改 | Private · Public read · Public read/write | Only the owner can see · Everyone can see · Everyone can see and edit | | `engine.studio.owd.byParent` | 受父级控制 → {master} | 跟随所属的{master} | By parent → {master} | Follows its {master} | | `engine.studio.access.tab.*` | 对象 / 系统能力 / 行级安全 / 标签页可见性 | 对象权限 / 系统功能 / 数据范围规则 / 菜单可见 | Objects / System capabilities / Row-level security / Tab visibility | Object permissions / System features / Record scope rules / Menu visibility | | `perm.bulk.read` · `perm.bulk.crud` | 读 · 增改删 | 只读 · 增删改查 | R · CRUD | Read only · Read & write | | `perm.rls.title` · `perm.tabs.title` · `perm.field.systemCapabilities` | 行级安全 · 标签页可见性 · 系统能力 | 数据范围规则 · 菜单可见 · 系统功能 | Row-Level Security · Tab Visibility · System Capabilities | Record Scope Rules · Menu Visibility · System Features | | `engine.studio.access.subtitle` | 对象 × CRUD · 字段级读写 | 对象权限 · 字段级读写 | — | Object permissions · field-level read/write | | `preview.changes.securityBlockWhere` (eager packs, all 11) | 请在对象的“设置 → 记录共享模型”中修改后重新发布。 | 请在对象的“设置 → 谁能看到哪些记录”中修改后重新发布。 | Fix it on the object under Settings → Record sharing, then publish again. | Fix it on the object under Settings → Who can see which records, then publish again. | `perm.bulk.all` / `perm.bulk.none` were already 全选 / 清空 (All / None) and are unchanged. Every changed key is a value edit. Most are in the lazy `studio` namespace (en and zh). One key was removed (`bulkHint`), and none was added. The only eager edit is `securityBlockWhere`, changed in all 11 packs, and the `DraftChangesPanel` default value was changed to match it (seat ruling A, claim amendment on #34795). The new label is translated in the other packs, the same way the old one was. ### Reach: Setup's permission-set page Setup reads some of the same keys, so it changes too, as the card expects: `perm.bulk.read`/`crud`, `perm.owd.*` values, `perm.rls.title`, `perm.tabs.title` and `perm.field.systemCapabilities`. Setup's layout is unchanged. The Setup-only `perm.owd.chip` / `perm.owd.tip` keys are untouched, so Setup's column chip still reads 记录共享模型:只有负责人能看(默认) in zh and `OWD Only the owner can see (default)` in en. `engine.studio.settings.sharing*` also feeds the Data pillar's object settings panel, which now offers the same four labels. ### i18n budget `check-eager-closure-budget` (`pnpm --dir ui check:eager-closure`) on a console built from `fafc1d6260`, which carries the hint edit, exited 0. It read: `i18n-locale-en 60.4 KB / 60.5 KB ceiling (headroom 0.2 KB)`, and the whole closure `1896.8 KB gzipped across 103 of 2536 chunks (budget 2431.6 KB)`. The en value grew by 11 bytes raw. The ceiling is not edited. ## Tests New tests: - `StudioDesignSurface.accessWording-34795.test.tsx` (12 tests, zh-CN): - the accepted sentence and its button; - 取消默认授予 calls `dismiss('sug_member')` exactly once, with confirm and reopen never called; - a pending row names the label; - the title and its tooltip; - the tab texts; - the visible page text holds no set machine name, `Everyone`, `OWD` or `CRUD`, and the machine name stays reachable as the tooltip; - object rows show the label only; - the strip renders on every row without hover, in order; - one test per button: 全选 = the seven grants that All sets, 只读 = read only, 清空 = none, 增删改查 = the four CRUD columns. - `PackageOwdOverviewPanel.objectName-34795.test.tsx` (2 tests): the overview row shows the label with the machine name as tooltip, and an unlabelled object shows its name once. Existing tests updated because they asserted the old wording or the old markup: - `StudioDesignSurface.accessTabs-12456`: the header tooltip; the always-shown strip replaces the hover tests; the button order. - `StudioDesignSurface.accessGuard`, `StudioDesignSurface.pillarNavGuard`: the renamed rail row; title lookups. - `StudioDesignSurface.accessPairCopy-29674`, `accessRailLabels-11862`, `accessCreateTaken-26836`: the rail and header tooltip. - `ObjectSettingsPanel.test`, `ObjectSettingsPanel.designerRegistryMissing`: the shared sharing labels. - `PackageOwdOverviewPanel.test`: the shared sharing labels. - `DirectoryPage.stateVocabulary-29705`: `colOwd` and `perm.owd.private`. - `PermissionMatrixEditor.columnHeaders-29729`, `.scope`: the Setup chip text with the new value. - `PermissionMatrixEditor.rlsAddPolicyHold-13113`, `.serverVerdict-26858`, `.serverVerdictHold-27482`, `.packageDoorFacets`: the renamed headings. - `PermissionMatrixEditor.bulkMergeKeys`, `.exportColumn-26885`, `.artifactTier`, `.readonly`, `.objectGrantInherited-27010`: the bulk labels. - `PermissionMatrixEditor.gridChrome-27866`: the object button's accessible name is now the label alone. - `DraftChangesPanel.securityProblems`, `DraftChangesPanel.securityLink`: the refusal hint's new en wording. What they pin is unchanged: the panel names where to fix it. - `ui/e2e/permission-field-panel-scroll.spec.ts`: the Studio row's expand button is found by its label-only name, `^Project$`. The environment-host lookup still matches label plus name, because the Setup table still prints both. The scroll assertions are unchanged. 18 of these files gained module-top side-effect imports (`@objectstack/lint`, plus `@objectstack/formula` and `@objectstack/spec/identity` in the matrix files), as `check:test-source-alias` requires of an edited test file. ## Acceptance notes - **Accepted banner, live: NOT MEASURED.** The self-built-app producer of a member-access suggestion lives in the cloud repo, and this session cannot read it (403). Stock `objectstack dev` boots the showcase set as the baseline, so the panel draws nothing. The banner is covered by the zh-CN unit test above. - The delegated-admin tab's facet pills still show set machine names. That tab is outside this card. - The explain-access sheet still uses OWD and CRUD in its own strings. It is a closed sheet, opened by its button, and outside this card. - The list endpoint does not carry `bindingCreated`. A row read back after a not-in-force confirmation therefore shows the in-force sentence. This behaviour is unchanged: only the wording is new. ## Verification All local readings below are on head `5ba8869eae`, after merging `origin/main` at `189358f212`. CI runs the full farm, and its check-runs are the authoritative readings. On `5ba8869eae`, `Build & E2E UI` and `Live E2E UI` pass. - `ui/e2e/permission-field-panel-scroll.spec.ts` in Chromium: 6 passed. A control run swapped the old label-plus-name lookup back in for the studio host and got `TimeoutError: locator.waitFor: Timeout 30000ms exceeded`, the CI failure on `58be6ed5`. The spec was then restored to HEAD and `git diff HEAD` was empty. - Targeted vitest: 92 files (`DraftChangesPanel*`, `PermissionMatrixEditor*`, `StudioDesignSurface.access*`, `PackageOwdOverviewPanel*`), 597/597 passed. `@object-ui/i18n` tests: 102 files, 1894 passed and 13 skipped. Lock `VERDICT command-exit 0`. - `type-check`, `@object-ui/app-shell` and `@object-ui/i18n`: both `Done`, `VERDICT command-exit 0`. - ui i18n gates: `check:i18n-keys` 0; `check:i18n-drift` 0 ("Every changed en value was followed by all 10 translation packs"); `check:new-line-citations` 0. `gen:zh-hant` regenerated zh-Hant from zh-Hans. - `check:eager-closure`: exit 0, `i18n-locale-en 60.4 KB / 60.5 KB`. - `overlap-check`: `VERDICT clean exit 0` against `origin/main` and the open PRs #34926, #34925 (which shares the locale packs) and #34799. <details><summary>Derived families: node scripts/pm/dispatch-gates.mjs --commands, 40 families, each with its exit code; --ran reconciliation: 40 derived, 40 run, 0 NOT-MEASURED</summary> - `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:merge-driver`: 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:role-word`: 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 0 - `pnpm check:undeclared-dep-imports`: exit 0 - `pnpm check:watch-hint-literal`: exit 0 - `pnpm check:where-matcher`: exit 0 </details> <details><summary>Ablations: each new behaviour mutated on disk with scripts/ablation-replace.mjs, then restored with git diff HEAD empty</summary> | # | Mutation | Reading | Restore | | --- | --- | --- | --- | | A1 | Bulk strip gated on hover/focus again | 1 failed / 12 (strip-on-every-row test) | blob == HEAD, `git diff HEAD` empty | | A2 | Revoke button back to 撤销 | 1 failed / 12 | blob == HEAD, `git diff HEAD` empty | | A3 | Object button text carries the machine name | 1 failed / 12 (first attempt refused by the tool as a no-op: replacement contained the anchor; rerun with a disjoint replacement) | blob == HEAD, `git diff HEAD` empty | | A4 | `appLabel` dropped from the chrome | 1 failed / 12 (title test) | blob == HEAD, `git diff HEAD` empty | | A5 | Overview row prints the machine name again | 2 failed / 2 | blob == HEAD (684612d), `git diff HEAD` empty | </details> <details><summary>Live readings: zh-CN, Chromium, own objectstack dev backend (showcase) and console dev server</summary> Studio → 权限 → 示例贡献者 (`showcase_contributor`): - Title: `ObjectStack Showcase · 示例贡献者`, with tooltip `showcase_contributor`. Not clipped at 1440 or 1920 px. The line under the title reads 包内置. - Tabs: 对象权限 / 系统功能 / 数据范围规则 / 菜单可见 / 委派管理. - Strip on every row: 24 of 24 rows show 全选 · 只读 · 清空 · 增删改查, disabled because the showcase package is read-only. - Before the right-pinned bulk column, at 1440 px, the buttons spanned x = 1333 → 1518, so 清空 and 增删改查 sat past the viewport. - After it, they span x = 1228 → 1413 at 1440 px and x = 1708 → 1893 at 1920 px. - Object row: `Account (Success Overlay)`, with tooltip `showcase_account`. Rail row: 示例贡献者, with tooltip `showcase_contributor`. - Record-visibility chips: none taller than 24 px after the one-line fix. Before it, 所有人都能看和改 wrapped to two lines. - `document.body.innerText` holds 0 hits for `OWD|CRUD|Everyone|showcase_|记录共享|受父级`, both on the access page and on the 谁能看到哪些记录 overview. - Bulk-button clicks live: NOT MEASURED. The only package on stock dev is read-only, so the buttons are disabled. The writes are pinned by the four per-button unit tests. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz)_ <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent d9e05f9 commit fff0ad0

46 files changed

Lines changed: 736 additions & 257 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/i18n': patch
4+
'@object-ui/console': patch
5+
---
6+
7+
feat(studio): the permissions page speaks business wording; the bulk buttons show on every row
8+
9+
Clause-②: no
10+
Metadata-protocol: none
11+
12+
Studio's permissions page now reads in the words an app builder uses, in zh-CN and in English. It changes wording and presentation only; the permission model, the suggestion and confirmation mechanism (ADR-0090 D5/D9) and every request are the same.
13+
14+
- **The default-grant banner is one sentence.** When an app's member permission set is accepted for everyone, the banner reads "所有成员默认拥有这个权限集,新加入的人也会自动拥有。" ("Every member has this permission set by default, and new members get it automatically."). Its button reads "取消默认授予" ("Stop granting by default") instead of "撤销" ("Revoke"), and it makes the same call. The pending, not-in-force, dismissed and guest lines say the same thing in the same tone. None of them names the Everyone or Guest position.
15+
- **The open set's title is "app · set label".** The set's machine name moves to the title's tooltip, and the provenance, default and lock labels move to the line under the title. The rail row shows the set's label, with the machine name as its tooltip.
16+
- **Plain terms.** "记录共享模型(OWD)" ("Record sharing (OWD)") is now "谁能看到哪些记录" ("Who can see which records"). The values read "只有负责人能看 / 所有人能看 / 所有人都能看和改" ("Only the owner can see / Everyone can see / Everyone can see and edit"), and "受父级控制 → {master}" reads "跟随所属的{master}" ("Follows its {master}"). The stored `sharingModel` values do not change. The tabs read "对象权限 / 系统功能 / 数据范围规则 / 菜单可见" ("Object permissions / System features / Record scope rules / Menu visibility").
17+
- **The bulk buttons show on every row**, not only on the row under the pointer, as "全选 · 只读 · 清空" ("All · Read only · None"), then the CRUD set as a fourth button ("增删改查", "Read & write"). Each button writes what All / R / None / CRUD wrote before. The footnote that explained the hidden buttons is gone.
18+
- **An object row shows the object's label**, in the matrix and in the package's "who can see which records" overview. Its machine name is the tooltip. The record-visibility chip stays on one line now that its labels are longer.
19+
20+
The Draft Changes publish refusal now points to "Settings → Who can see which records" (all 11 language packs), since the old "Settings → Record sharing" label no longer exists.
21+
22+
Setup's permission-set page reads some of the same strings, so it changes too: the bulk buttons' labels, the sharing values, and the record-scope-rules, menu-visibility and system-features headings. Its layout does not change.

‎docs/qa/platform-checklist/areas/studio-authoring.json‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@
955955
"title": "Permission-matrix editor UX: field-filter + bulk apply to EXACTLY the visible fields, and the Bulk column never clips at narrow widths",
956956
"since": "v16",
957957
"status": "active",
958-
"revision": 11,
958+
"revision": 12,
959959
"priority": "P2",
960960
"surface": "mixed",
961961
"personas": ["admin"],
@@ -1016,7 +1016,7 @@
10161016
{
10171017
"clause": "the read-only gate holds: a read-only set hides Save, offers no field bulk at all and no operating object-row bulk, and disables every checkbox; the read-only badge names WHICH gate holds",
10181018
"oracle": "screenshot",
1019-
"verify": "on the read-only set Save is absent, every checkbox is disabled, the field bulk buttons (Read-only all / Write all / Clear) are absent — not merely disabled (PermissionMatrixEditor.tsx FieldsSubTable renders them only while writable; QA run #26715 read them absent in read-only Studio) — and the object row's bulk, which appears only on hover or keyboard focus (engine.studio.access.bulkHint), is disabled when it appears; an operating bulk control is the FAIL. The badge names the gate that holds; the console distinguishes FOUR (objectui PermissionMatrixEditor.tsx at the pin): the package gate (engine.studio.pkg.readonly — Studio on a read-only package), the artifact gate (perm.readOnly.artifact, 'Read-only (this set is provided by a code package)' — a set a code package ships, in the metadata admin), the wall (perm.readOnly.walled — the security catalog under isolated/group tenancy) and the type gate (perm.readOnly — a type with no runtime write channel). On a stock boot only the package and artifact gates are reachable — the wall needs a walled tenancy posture and the type gate a permission type with no write channel, which stock does not have — so score those two on the packaged showcase_contributor set (Studio Access and the metadata admin) and record the other two as not reachable on stock. A badge that blames the wrong gate is the FAIL",
1019+
"verify": "on the read-only set Save is absent, every checkbox is disabled, the field bulk buttons (Read-only all / Write all / Clear) are absent — not merely disabled (PermissionMatrixEditor.tsx FieldsSubTable renders them only while writable; QA run #26715 read them absent in read-only Studio) — and every object row draws its bulk strip, every button of which is disabled in read-only Studio; an operating bulk control is the FAIL. The badge names the gate that holds; the console distinguishes FOUR (objectui PermissionMatrixEditor.tsx at the pin): the package gate (engine.studio.pkg.readonly — Studio on a read-only package), the artifact gate (perm.readOnly.artifact, 'Read-only (this set is provided by a code package)' — a set a code package ships, in the metadata admin), the wall (perm.readOnly.walled — the security catalog under isolated/group tenancy) and the type gate (perm.readOnly — a type with no runtime write channel). On a stock boot only the package and artifact gates are reachable — the wall needs a walled tenancy posture and the type gate a permission type with no write channel, which stock does not have — so score those two on the packaged showcase_contributor set (Studio Access and the metadata admin) and record the other two as not reachable on stock. A badge that blames the wrong gate is the FAIL",
10201020
"evidence": "the read-only screenshot"
10211021
},
10221022
{
@@ -1096,6 +1096,12 @@
10961096
"date": "2026-11-04",
10971097
"change": "steps[3] and acceptance[3].clause corrected from QA run #29893 (W5-STUDIO, at 589049b0): after Clear a field falls back to the object's grant (data-field-rule=\"inherited\"), not to a read-only default; the verify (keys absent from the saved map) is unchanged. Read at base f68b47ca",
10981098
"ref": "#29906"
1099+
},
1100+
{
1101+
"revision": 12,
1102+
"date": "2026-11-17",
1103+
"change": "acceptance[5].verify re-read for #34795 (PR #34914): every object row now draws its bulk strip, so the verify no longer says the strip appears only on hover or keyboard focus or cites engine.studio.access.bulkHint (that key is removed). It says every row draws the strip and every button in it is disabled in read-only Studio. The FAIL condition, an operating bulk control, is unchanged. Wording only; no clause weakened",
1104+
"ref": "#34795"
10991105
}
11001106
]
11011107
},

‎ui/e2e/permission-field-panel-scroll.spec.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,11 @@ async function mount(page: Page, c: Case): Promise<void> {
277277
}, c);
278278
await page.addScriptTag({ content: bundle, type: 'module' });
279279
const compiled = new Set<string>();
280-
const expand = page.getByRole('button', { name: new RegExp(`^Project\\W*${OBJECT}\\W*$`) });
280+
// The Studio row names the object by its label alone, the machine name being
281+
// the button's tooltip (objectstack#34795); the environment table still
282+
// prints the name beside the label.
283+
const name = c.host === 'studio' ? /^Project$/ : new RegExp(`^Project\\W*${OBJECT}\\W*$`);
284+
const expand = page.getByRole('button', { name });
281285
await expand.waitFor({ state: 'attached', timeout: 30_000 });
282286
await styleUntilStable(page, compiled);
283287
await expand.click();

‎ui/packages/app-shell/src/preview/DraftChangesPanel.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2078,7 +2078,7 @@ export function DraftChangesPanel({
20782078
</ul>
20792079
<p className="mt-1.5 text-[11px] text-amber-800/80 dark:text-amber-300/80">
20802080
{t('preview.changes.securityBlockWhere', {
2081-
defaultValue: 'Fix it on the object under Settings → Record sharing, then publish again.',
2081+
defaultValue: 'Fix it on the object under Settings → Who can see which records, then publish again.',
20822082
})}
20832083
</p>
20842084
</div>

‎ui/packages/app-shell/src/preview/__tests__/DraftChangesPanel.securityLink.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ describe('DraftChangesPanel — reaching the object the publish door refuses (ob
101101
// And what #5418 shipped is intact: the item is still named, and the
102102
// sentence still says where to fix it.
103103
expect(block.textContent).toContain('object/crmext_visit');
104-
expect(block.textContent).toMatch(/Settings → Record sharing/);
104+
expect(block.textContent).toMatch(/Settings → Who can see which records/);
105105
});
106106
});

‎ui/packages/app-shell/src/preview/__tests__/DraftChangesPanel.securityProblems.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ describe('DraftChangesPanel — pre-publish security posture (objectui#5418)', (
8282
// language (`SECURITY_RULE_TEXT`), not the ADR paragraph.
8383
expect(block.textContent).toMatch(/sharingModel/);
8484
// And where to go, which the toast never said.
85-
expect(block.textContent).toMatch(/Settings → Record sharing/);
85+
expect(block.textContent).toMatch(/Settings → Who can see which records/);
8686
});
8787

8888
it('reports without blocking — the server door stays the authority', async () => {

‎ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.stateVocabulary-29705.test.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,14 +288,14 @@ describe('Access: sharing settings in zh carry no English doublet or bare OWD (o
288288
});
289289

290290
it('the matrix column and the explain rule name the sharing model in Chinese', () => {
291-
expect(ZH['engine.studio.access.colOwd']).toBe('记录共享模型');
291+
expect(ZH['engine.studio.access.colOwd']).toBe('谁能看到哪些记录');
292292
expect(ZH['engine.studio.access.explain.ruleKind.owd_baseline']).toMatch(/^\p{Script=Han}/u);
293293
// The prose that names the Private option names it the way the picker does.
294294
expect(ZH['engine.studio.settings.sharingDescUnset']).not.toMatch(/Private/u);
295295
expect(ZH['engine.studio.data.owdHint']).not.toMatch(/Private/u);
296-
// en is untouched.
297-
expect(EN['perm.owd.private']).toBe('Private');
298-
expect(EN['engine.studio.access.colOwd']).toBe('OWD');
296+
// en names them in plain words too (objectstack#34795).
297+
expect(EN['perm.owd.private']).toBe('Only the owner can see');
298+
expect(EN['engine.studio.access.colOwd']).toBe('Who can see which records');
299299
});
300300
});
301301

‎ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.artifactTier.test.tsx‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@
5151
*/
5252

5353
import '@testing-library/jest-dom/vitest';
54+
// The source under test reaches these through dynamic imports: their first load is paid at collection.
55+
import '@objectstack/formula';
56+
import '@objectstack/lint';
57+
import '@objectstack/spec/identity';
5458
import { afterEach, describe, expect, it, vi } from 'vitest';
5559
import { cleanup, render, screen, within } from '@testing-library/react';
5660
import { MemoryRouter } from 'react-router-dom';
@@ -185,7 +189,7 @@ describe('PermissionMatrixEditPage — the ARTIFACT tier locks an env-scope over
185189
expect(screen.getByLabelText('a_account Read')).toBeDisabled();
186190
for (const box of screen.getAllByRole('checkbox')) expect(box).toBeDisabled();
187191
const row = screen.getByText('Account').closest('tr')!;
188-
for (const n of ['R', 'CRUD', 'All', 'None']) {
192+
for (const n of ['Read only', 'Read & write', 'All', 'None']) {
189193
expect(within(row).getByRole('button', { name: n })).toBeDisabled();
190194
}
191195
});
@@ -276,7 +280,7 @@ describe('PermissionMatrixEditPage — MUST NOT CHANGE: what the artifact tier m
276280
expect(screen.queryByRole('button', { name: /^Save$/ })).toBeNull();
277281
expect(screen.getByLabelText('a_account Read')).toBeEnabled();
278282
const row = screen.getByText('Account').closest('tr')!;
279-
for (const n of ['R', 'CRUD', 'All', 'None']) {
283+
for (const n of ['Read only', 'Read & write', 'All', 'None']) {
280284
expect(within(row).getByRole('button', { name: n })).toBeEnabled();
281285
}
282286
expect(lockBadge()).toBeNull();
@@ -399,7 +403,7 @@ describe('PermissionMatrixEditPage — the artifact verdict asks ADR-0010 proven
399403
expect(screen.getByRole('button', { name: /^Save$/ })).toBeEnabled();
400404
expect(screen.getByLabelText('a_account Read')).toBeEnabled();
401405
const row = screen.getByText('Account').closest('tr')!;
402-
for (const n of ['R', 'CRUD', 'All', 'None']) {
406+
for (const n of ['Read only', 'Read & write', 'All', 'None']) {
403407
expect(within(row).getByRole('button', { name: n })).toBeEnabled();
404408
}
405409
expect(lockBadge()).toBeNull();

‎ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.bulkMergeKeys.test.tsx‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
*/
5151

5252
import { describe, it, expect, vi, afterEach } from 'vitest';
53+
// The source under test reaches these through dynamic imports: their first load is paid at collection.
54+
import '@objectstack/formula';
55+
import '@objectstack/lint';
56+
import '@objectstack/spec/identity';
5357
import { render, screen, cleanup, fireEvent, waitFor, within } from '@testing-library/react';
5458
import { MemoryRouter } from 'react-router-dom';
5559

@@ -193,7 +197,7 @@ describe('PermissionMatrixEditor · bulk buttons vs unmodelled keys (objectui#66
193197
},
194198
});
195199

196-
fireEvent.click(bulkButton('a_account', 'CRUD'));
200+
fireEvent.click(bulkButton('a_account', 'Read & write'));
197201
const payload = await save(server);
198202

199203
const row = payload.objects.a_account;
@@ -221,7 +225,7 @@ describe('PermissionMatrixEditor · bulk buttons vs unmodelled keys (objectui#66
221225
},
222226
});
223227

224-
fireEvent.click(bulkButton('a_account', 'R'));
228+
fireEvent.click(bulkButton('a_account', 'Read only'));
225229
const payload = await save(server);
226230

227231
const row = payload.objects.a_account;

‎ui/packages/app-shell/src/views/metadata-admin/PermissionMatrixEditor.columnHeaders-29729.test.tsx‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
*/
2525

2626
import '@testing-library/jest-dom/vitest';
27+
// The source under test reaches these through dynamic imports: their first load is paid at collection.
28+
import '@objectstack/formula';
29+
import '@objectstack/lint';
30+
import '@objectstack/spec/identity';
2731
import * as React from 'react';
2832
import { afterEach, describe, expect, it, vi } from 'vitest';
2933
import { cleanup, render, screen, within } from '@testing-library/react';
@@ -138,12 +142,12 @@ describe("Setup's sharing-model chip reads through the catalogue (objectstack#29
138142
it('zh names the sharing model in Chinese, with no bare OWD', async () => {
139143
mount('zh', 'setup');
140144
const chip = await screen.findByText(/^记录共享模型:/u, undefined, { timeout: 8000 });
141-
expect(chip.textContent).toBe('记录共享模型:私有(默认)');
145+
expect(chip.textContent).toBe('记录共享模型:只有负责人能看(默认)');
142146
expect(chip.textContent).not.toMatch(/OWD/u);
143147
});
144148

145149
it('CONTROL — en keeps "OWD {value}"', async () => {
146150
mount('en', 'setup');
147-
expect(await screen.findByText('OWD Private (default)')).toBeInTheDocument();
151+
expect(await screen.findByText('OWD Only the owner can see (default)')).toBeInTheDocument();
148152
});
149153
});

0 commit comments

Comments
 (0)