Repository navigation
feat(setup): the environment directory moves from Studio to Setup's access group - #37602
Conversation
…ccess group (WIP) Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Adds a render test for the Setup page and the pure routing tests. Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 4 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 3 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 1830d2ac735bc3345997e34c829fc73d5c58cb26 && git checkout 1830d2ac735bc3345997e34c829fc73d5c58cb26
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 41babf7e649648e7d4b6fd6c5f0d3e8d6d7b406e 0471b08e86fa876c4d45deeaf3e2a76a1993811c && git checkout -B drift-repro 41babf7e649648e7d4b6fd6c5f0d3e8d6d7b406e && git merge --no-ff 0471b08e86fa876c4d45deeaf3e2a76a1993811c
node scripts/docs-audit/affected-docs.mjs --json 41babf7e649648e7d4b6fd6c5f0d3e8d6d7b406e
|
…n Setup Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…Setup and ~org The not-found exit's label names where it now goes (organization flows). Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…ry alias's one hop Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CZhAqkgRyMYuZeZt9S
Generated by Claude Code |
|
repo:objectstack#5 · os-bill · session_01Utp6CZhAqkgRyMYuZeZt9S The one re-run reproduced the same Generated by Claude Code |
…-x4tuqk # Conflicts: # ui/packages/app-shell/src/views/studio-design/StudioPackageMenu-37139.test.tsx # ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head (2026-11-26T16:45Z): Area notes for L1:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 4320d10 · 2026-11-26T16:47Z |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Inputs read: card #37565 (body, claim, both claim amendments, triage, os-dev-report), PR #37602 (body, file list, net diff against ① Derived judgmentsAccept-set: nothing the server accepts or refuses changes. No spec, schema, route handler or metadata door is in the diff. The changes are client routing, one Setup navigation contribution (data), one registered component page, and labels. Public-surface changes, each judged:
Findings:
② Semver levelThe changeset
③ Boundary flags
Security-touching: yes — the PR moves a capability-gated surface (the environment catalog of positions, permission sets, capabilities and sharing rules) and re-implements its Seat questions:
Implemented-by: VERDICT: FAIL |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对Head-sha:
|
…s entry gate does Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…n again Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…hoever may open Setup Without setup.access the rows, the cross-package leg and the bare ~all addresses keep the environment lists in Studio, where they were. Also corrects two doc sentences (only the ?scope=environment lists redirect) and a stale i18n comment. Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head for the delta round (2026-11-26T17:43Z), answering the seat's REWORK 7198240498:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: Delta review against the prior record on Inputs read:
① Derived judgmentsAccept-set: still unchanged. No server, spec or metadata-door code is in the delta. Public-surface changes in the delta, each judged:
Prior findings:
New:
② Semver levelUnchanged and right. All four packages are at ③ Boundary flags
Security-touching: yes — the PR moves a surface gated by Seat questions, delta only:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对 (delta)Head-sha:
|
…a user without Setup Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…or whoever may open Setup Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
…e aliases too Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Final green head for the S3 delta (2026-11-26T18:29Z), answering the seat's REWORK 7199695339:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Contract reviewServed-tier: This is the second delta review, against the delta record on Inputs read:
① Derived judgmentsAccept-set: still unchanged. No server, spec or metadata-door code is in the delta. Changes in the delta, each judged:
Prior findings:
New: none. ② Semver levelUnchanged and right. All four packages are at ③ Boundary flags
Security-touching: yes — the PR moves a surface gated by Seat questions, delta only:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X 席位核对 (delta 2)Head-sha:
|
|
repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X Adding |
|
repo:objectstack#5 · os-bill · session_01Utp6CbL6Nn3scsU8yvLyU4 Landing (area ux-37424): the seat's delta L1 is ACCEPT (7200590330) on head
|
Requested by Bill · project thread
Fixes #37565
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
nav_access_directory("Positions and Permissions", iconkey-round) in Setup'sgroup_access_control, contributed bypackages/platform-objects/src/apps/setup-nav.contributions.ts, withrequiredPermissions: ['studio.access']. Labels in all 11 locale packs, source hashes updated.security:access-directory(/apps/setup/component/security/access-directory), registered inbuiltinComponents.tsx. It serves the directory and each environment type's list (permission,position,capability,sharing_rule,?scope=environment) by mounting the existing metadata-admin directory and list pages under the cross-package leg's host shape (no package, writable), rooted at the page. Withoutstudio.accessit renders an alert naming the capability and reads nothing./studio/~all/metadata/<type>/<name>?scope=environment, the editor the environment scope uses today, because an environment item is edited by name and may belong to no package.~allmenu entry is retired (studioMenuModel.ts, its label key and icon). The package-less menu's access rows point at the Setup page's type lists for a user holdingsetup.access; without it they keep the Studio environment-scope lists (/studio/~all/metadata/<type>?scope=environment)./studio/~all,/studio/~all/metadataand a list of one of the four types in the environment scope, including Setup's old/apps/setup/metadata/...catalog addresses, land on the Setup page in one hop for a user holdingsetup.access(inside Studio read from the set Studio's entry gate hands its pages; on Setup's old aliases from the session's capability answer, read fail-closed). Without it, the leg keeps them and a bare/studio/~all/…lands on/studio/~all/metadata. The cross-package list of any other type, and item pages, stay in Studio.studioEntryFallbackPath,newPackageDoorPath) now lands on/studio/~org/metadata/flow?source=runtimeinstead of the retired directory.~orgretires with the Phase 4 "move into package" door (Q3 ruling 7184753035), and the fallback moves with it.engine.studio.notFound.allMetadata, key unchanged) now names where it goes: "Open organization flows" / 打开「组织流程」.setupMetadataStudioPathcall sites inui/packages/app-shell/src/console/AppContent.tsxandui/apps/console/src/AppContent.tsx): a one-line re-export ofACCESS_DIRECTORY_PATH(and, in the rework,holdsSetupAccess) fromui/packages/app-shell/src/index.ts; a doc-comment-only edit inStudioEntryRedirect.tsx; one sentence each incontent/docs/permissions/authorization.mdxandcontent/docs/permissions/permission-sets.mdx, and two lines ofcontent/docs/permissions/administrator-guide.mdx(the matrix editor's path and the where-to-find table row), re-pointed at Setup → Access Control (second claim amendment); andStudioPaletteGroups.tsxdrops the retired kind's icon key and its import, which the full build refused to compile.Answer to #37424 comment 7188504633 (a)
The package's 全部类型 directory still lists
datasourcewhere the package holds one, and that tile still opens Setup → Datasources (the directory's href override). This PR does not change that; removing the menu row is #37564's job. The new Setup access directory lists only the four environment types and neverdatasource.Tests
views/setup/accessDirectory.test.ts(address model: what lands on Setup, what stays in Studio, one hop both ways) andviews/setup/AccessDirectoryPage.test.tsx(gate refusal with control, the host shape, the four lists, scope added, items/create/history open in Studio).~allnow pins the Setup page or the Studio item editor, and the retired entry is pinned absent (studioMenuModel,StudioMenu,StudioPaletteGroups.surfaceScope-36900,setupMetadataRedirect,AppContent.setupMetadataStudio-28578, consoleAppContent.legacyRedirects,AppContent.systemHubRoutes,StudioRoute.metadataArea-28561,StudioEntryRedirect,HomePage.noAgentsBuildChip-26614,StudioDesignSurface.metadataArea-28561,StudioMetadataArea.routes-28561,StudioPackageMenu-37139(its~all/overviewcase now lands on Setup, plus an item page the leg still draws),StudioDesignSurface.notFound-26708,SidebarAppMenu-36112,AppContent.emptyNavigationLanding-12079,AppContent.noAppComponentRoutes(the zero-app legacy directory alias: one hop to Setup, then the no-apps empty state that branch renders for every Setup page; ablated: identitystudioAddressAfterSetupMoveturns it red),AppContent.pseudoRouteSegments), and the live e2edeclared-sharing-rules-reach-13091lists from the Setup page.Acceptance notes
studio.accesson top of Setup's own access, with parity with the Studio gate pinned by test.studioMenuModel.tsandStudioMenu.tsxare also edited by App Studio 改版(1-3):精简版软件包概览页——菜单第一项「概览」带待发布数字,信息页签只读、待发布页签接住发布,「⋯」软件包菜单搬进页头 #37454 (PR feat(studio): 概览 package overview page — Info and Pending tabs, ⋯ menu in its header #37546); main is merged once after it lands. Whichever of this PR and App Studio 改版(3-1):数据集归到「数据」组并放常用,岗位放常用——注册表 domain ui→data、菜单点名放置、ADR-0084 表格同步 #37564 lands second merges main.Verification
Rework round (seat L1 at
4320d105), pushed on the same branch, no rebase. Head0471b08e; CI result is reported on the PR once green.toEqual([from, to])restored in bothAppContent.systemHubRoutestables and theTO_SETUP_DIRECTORYblock ofAppContent.setupMetadataStudio-28578.studioMenuModel,StudioMenu,StudioMetadataArea.routes-28561and consoleStudioRoute.metadataArea-28561; ablating the foursetup.accessreads turns 12 cases red./apps/*/metadata…,component/metadata/directory,system/{positions,roles,permissions}) take the samesetup.accessbranch, a set never reported counting as none. Both branches and the no-answer case are pinned insetupMetadataRedirect,AppContent.setupMetadataStudio-28578, consoleAppContent.systemHubRoutesandAppContent.legacyRedirects; ablating the branch (42 cases) or reading it fail-open turns them red.?scope=environmentlists redirect, and only for a user who can open Setup).@object-ui/app-shell,@object-ui/consolegreen. Gates:check:test-source-alias,check:i18n,check:nul-bytes,check:doc-authoring,check-affected-docsgreen.Earlier round, at
4320d105: CI 61 success, 0 failed; derived gates (67 commands) green, fullpnpm buildandpnpm console:buildgreen./apps/setup/component/security/access-directoryshows the directory of the four types, with Access Control → Positions and Permissions selected in Setup's sidebar./studio/com.example.showcase/metadata: the Studio menu's Access group no longer carries the cross-package entry./studio/~all/metadata/position?scope=environment, lands on/apps/com.objectstack.setup/component/security/access-directory/position?scope=environmentand lists the 17 positions.🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S