Repository navigation
fix(studio): one name per group — the directory and a type page's badge say Platform / Access, like the menu - #37121
Conversation
… / Access Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYkkwuF6UuFtu85Yd5H Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Finalized head for L1 · 2026-11-24T21:41Z ·
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Ruling recorded · 2026-11-24T21:57Z · the visible side effect of route (a): Setup's datasource pages draw the shared domain badge, so a datasource reads Platform / 平台 instead of System / 系统. The maintainer in seat repo:objectstack#4's session, verbatim: 「#37121:数据源标签从「系统」改成「平台」,同意」 The L1 ACCEPT at |
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Landing · 2026-11-24T21:59Z · head
|
Fixes #37082
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
DOMAIN_LABELS_EN/DOMAIN_LABELS_ZHinui/packages/app-shell/src/views/metadata-admin/i18n.ts(read throughtranslateMetadataDomain) now drawsystemas Platform / 平台 andsecurityas Access / 访问, the group names of ADR-0084 as amended. The dictionary carries exactly two locales (en, zh); both changed.studioMenuGroupLabelnow returnstranslateMetadataDomain(group, locale); its two menu-only keysengine.studio.menu.groupSystem/engine.studio.menu.groupSecurityare removed from thestudionamespace (en and zh), since nothing reads them any more. The function stays as the menu's named seam, soStudioMenu.tsxis untouched.studioMenuModel.ts: one doc comment that said the dictionary keeps System / Security is corrected (this change made it false).Route choice and the readers, before and after
Every reader of
translateMetadataDomain, measured onorigin/main9d70768 (git grepover the whole monorepo, plus a GitHub code search across the org: no hit outside this repo;@object-ui/app-shellisprivate, so the re-export atmetadata-admin/index.tshas no external consumer):DirectoryPage.tsxchipsDirectoryPage.tsxgroup headingsPageShell.tsxbadge (list header and compact item header)PageShell.tsxbadgeSETUP_KEPT_METADATA_TYPE = 'datasource', rendered in place byMetadataResourceEditPage)studioMenuGroupLabelThe only non-Studio surface is Setup's datasource badge. It names the same group: the badge shows the type's registered domain, and ADR-0084's amendment says in its type-to-group table and its third reading that a
datasourceis found under 平台 Platform (its item opens in Setup per ADR-0146 D1, but its group is Platform). So route (a) changes what that surface says to the group name the ADR gives it, not to a different concept; route (b) would keep two words for one group, the inconsistency this card closes. Nosecurity-domain type is kept in Setup, so Access appears on Studio surfaces only.Tests
ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.groupNames-37082.test.tsx, over the real directory page and the realPageShell, for en and zh-CN (describe.each): the directory's group headings, the domain chips, the type page badge (list header) and the item page badge (compact header, the one Setup's datasource item page draws). Each word is compared with the menu's own (studioMenuGroupLabel) and with the literal Platform / 平台, Access / 访问; CONTROL:datastays Data / 数据, and System / 系统, Security / 安全 are drawn nowhere.studioMenuModel.test.ts: the old "dictionary keeps System / Security" case is replaced by "the menu draws each group with the dictionary's word, en and zh-CN".PageShell.narrowHeader-12306.test.tsx(badge text Security to Access) andStudioDesignSurface.accessSegment-12452.test.tsx(the Access label now fromtranslateMetadataDomain, since the removed key is gone).scripts/ablation-replace.mjs, restored to the HEAD blob): the zhsystemvalue set back to 系统 turned 6 cases red (the five zh-CN cases of the new pin and the menu case instudioMenuModel.test.ts), en stayed green; restore verified blob == HEAD andgit diff HEADempty.Acceptance notes
DOMAIN_LABELS_*also carry a UI-localplatformkey that already read Platform / 平台. No producer setsdomain: 'platform'(the spec'sdomainenum is data, ui, automation, system, security, ai;git grepfinds no UI registration with it), so the two cannot meet in one directory today. Noted, not changed.studioMenuModel.tswere edited, because this change made them false.Verification
Two-minute check: open Studio, All metadata, in zh-CN. The left menu, the chips and the section headings all read 平台 and 访问; open a permission set and its header badge reads 访问 (Access in en).
Read first, by risk:
ui/packages/app-shell/src/views/metadata-admin/i18n.ts, the two renamed values in eachDOMAIN_LABELS_*table (the change that reaches Setup's datasource badge).ui/packages/app-shell/src/views/studio-design/studioMenuGroupLabel.ts, the menu now reading the dictionary.ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.groupNames-37082.test.tsx, the en and zh-CN pin.Local readings on head b5fb875
ui/, under the verify lock): the new pin,PageShell.narrowHeader-12306,DirectoryPage.stateVocabulary-29705and all ofpackages/app-shell/src/views/studio-design/:Test Files 303 passed (303),Tests 2299 passed (2299),VERDICT command-exit 0.pnpm --filter @object-ui/app-shell --filter @object-ui/i18n run type-check: both packages echoedtype-check,VERDICT command-exit 0.node scripts/pm/dispatch-gates.mjs --commands: 38 derived families, all exit 0;--ranreconciliation:38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN(a derived zero, every line with its exit code). Among thempnpm --dir ui exec vitest run scripts/:Test Files 172 passed | 2 skipped (174).pnpm --dir ui run check:i18n-dead-keys,check:i18n-keys,check:i18n-drift: exit 0 each.node scripts/pm/overlap-check.mjs:VERDICT clean exit 0(merges cleanly with origin/main and with feat(studio): a permission set opens full-screen at its metadata address; the sharing overview gets its own route #37089, which shares three studio-design files).Generated by Claude Code