Repository navigation
Commit 68aa1be
feat(setup): the environment directory moves from Studio to Setup's access group (#37602)
<!-- claude-projects-attribution: {"github_login":"os-bill"} -->
_Requested by **Bill** · [project
thread](https://claude.ai/code/project/chan_016iMXWSZDzqWRWvWzdNo8wg?thread=cmsg_016iMXWSZDzqWRWvWzdNo8wgU5DKF7KXCzL3BS7FYTB4qi)_
Fixes #37565
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 岗位、能力、权限集、共享规则的全环境目录,从 Studio 菜单搬到 Setup 的“访问控制”分组,名为“岗位与权限”。
- Studio 菜单不再有这一项;对能进 Setup 的用户,旧的书签和链接只跳转一次,直接落到 Setup 的新页面;不能进 Setup 的
Studio 用户仍在 Studio 里看这些列表。
- 进入门槛没有放宽:新入口和新页面都要求进入 Studio 所需的同一项权限,外加 Setup 本身的权限。
- 在目录里点开某一条,仍在 Studio 的编辑器中打开;Studio
找不到包时的默认落点暂时改为“无包”范围,等“移入包”功能上线后一并撤掉。
## What changes
- **New Setup entry**: `nav_access_directory` ("Positions and
Permissions", icon `key-round`) in Setup's `group_access_control`,
contributed by
`packages/platform-objects/src/apps/setup-nav.contributions.ts`, with
`requiredPermissions: ['studio.access']`. Labels in all 11 locale packs,
source hashes updated.
- **New Setup page** `security:access-directory`
(`/apps/setup/component/security/access-directory`), registered in
`builtinComponents.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. Without `studio.access` it renders an
alert naming the capability and reads nothing.
- **Rows open the item editor in Studio**: an item, a create and a
history under the Setup page go to
`/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.
- **Studio's `~all` menu 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 holding `setup.access`; without it
they keep the Studio environment-scope lists
(`/studio/~all/metadata/<type>?scope=environment`).
- **Old addresses redirect once**: `/studio/~all`,
`/studio/~all/metadata` and 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 holding
`setup.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.
- **Studio's no-package fallback** (`studioEntryFallbackPath`,
`newPackageDoorPath`) now lands on
`/studio/~org/metadata/flow?source=runtime` instead of the retired
directory. 1 parent 6679160 commit 68aa1be
65 files changed
Lines changed: 1318 additions & 206 deletions
File tree
- .changeset
- content/docs/permissions
- packages/platform-objects/src/apps
- translations
- ui
- apps/console/src
- __tests__
- components
- e2e/live
- packages
- app-shell/src
- console
- __tests__
- home/__tests__
- layout/__tests__
- services
- views
- setup
- studio-design
- i18n/src/namespaces/studio
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
325 | | - | |
| 326 | + | |
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
427 | | - | |
428 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
429 | 432 | | |
430 | 433 | | |
431 | 434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
119 | 136 | | |
120 | 137 | | |
121 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
0 commit comments