Repository navigation
feat(setup): the environment directory moves from Studio to Setup's access group - #37602
objectstack-fleet[bot] wants to merge 6 commits into
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 64819c10dafec38a15aacf44ceb492aefa89db12 && git checkout 64819c10dafec38a15aacf44ceb492aefa89db12
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6 f9a5798c8d63805f6b570de8ec74967385b8f9b2 && git checkout -B drift-repro 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6 && git merge --no-ff f9a5798c8d63805f6b570de8ec74967385b8f9b2
node scripts/docs-audit/affected-docs.mjs --json 0f6a1e518f3c4639b03f86a8c07d9d08d91bddb6
|
…n Setup Claude-Session: https://claude.ai/code/session_01Utp6CZhAqkgRyMYuZeZt9S Co-authored-by: Claude <noreply@anthropic.com>
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./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. 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.ACCESS_DIRECTORY_PATHfromui/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), and the live e2edeclared-sharing-rules-reach-13091lists from the Setup page.Acceptance notes
studio.accesson top of Setup's own access.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
Read at head
f9a5798c.views/setup/files plus every re-pointed~alltest).@object-ui/app-shell(src and tests),@object-ui/console,@object-ui/i18ngreen; fullpnpm buildandpnpm console:buildgreen.node scripts/pm/dispatch-gates.mjs --commands, 67 commands): all green, includingcheck:i18n,check:dual-build-cjs-loadsandcheck:test-source-alias(re-run after build / fix). One exception, environment-only:check-plugin-teardown-shape --self-testcannot read its pinned fixture commit in this shallow clone (exit 3, nothing judged); untouched by this diff./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