Skip to content

Studio「⋯」软件包菜单:加「新建软件包」,没有设置权限的人「在设置中管理…」置灰并说明原因 #37400

Not planned

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Sub-issue of #36890 · Source: Q2 in the #37139 dev report 7177958131, PR #37362. Part of #36890.

维护者速读

  • 用户能看到什么变化:只有 Studio 权限、没有「设置」权限的开发者,可以在 Studio 顶栏的「⋯」菜单里新建软件包。新建时用的是「同时创建应用」那个对话框,建好后直接进入新包。没有设置权限的人看到的「在设置中管理…」会变灰,并写明原因,不会再点进去被拒。
  • 为什么做:Studio 首页删掉之后,这部分人在界面上没有任何地方能新建软件包。「新建包」对话框加一个「同时创建应用」勾选项(默认勾上),勾上时建包的同时建好它的应用;取消勾选只建包 #37134 只给已有的入口加了勾选项,没有补上这个缺口。
  • 出错会怎样:只改菜单项,不改服务端权限;最坏情况是按钮显示状态不对,撤回即可。
  • 要你做什么:无(已裁决)。

Ruling

The maintainer's words, verbatim, in seat repo:objectstack#4's session: 「接受你的建议」. This answered the seat's presentation of Q2. The seat recommended A:

  • add 「新建软件包」 to the 「⋯」 menu, opening the one CreatePackageDialog and landing in Studio on the new package;
  • grey 「在设置中管理…」, with a reason, when holdsSetupPackages() is false.

What

Done when

  • A Studio-only author creates a package from the 「⋯」 menu and lands on it.
  • A non-holder sees 「在设置中管理…」 greyed with the reason.
  • A holder sees it enabled.
  • Each of these is pinned, and the pins go red under ablation.

Activity

  1. added
    priority:p2
    pm:queue
    domain:ui
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: lands in area:ux · domain:ui · Feature · priority:p2 · pm:queue · size S; rationale: since the Studio landing was removed, a Studio-only author has no on-screen way to create a package. The ruling (「接受你的建议」, option A) adds 「新建软件包」 to the 「⋯」 menu and greys 「在设置中管理…」 with a reason. A UX Feature from topic #36890 is p2.

    Confirmed as filed. Route: seat 4 zone a4-S (it built the 「⋯」 menu in #37139) or seat 5 zone o5-U, and the claim stamp decides. It unblocks #37401.

  3. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

    维护者速读

    Closing: not planned

    Withdrawn on the maintainer's ruling in seat repo:objectstack#4's session (session_01QSeKYpEsWWE9Y5YtSsDgqZ), 2026-11-26T02:49Z:

    • 「只有 Studio 权限、没有设置权限的开发者,理论上不存在」
    • then, on the seat's proposal to close this card: 「关 37400」

    Why the premise fails. Both halves of this card serve a principal who holds manage_metadata but not the Setup → Packages pair:

    • "New package" in the Studio ⋯ menu;
    • greying "Manage in Setup…".

    The shipped permission sets do not produce that principal. In packages/plugins/plugin-security/src/objects/default-permission-sets.ts:

    • admin_full_access carries both.
    • organization_admin deliberately withholds studio.access and manage_metadata and keeps setup.access.

    A Studio author therefore reaches Setup → Packages, whose New Package is drawn on both faces since #37362.

    The Studio-only fallback branches already in the code (studioEntryFallbackPath, studioNewPackageEntryPath) are left as they are. Removing them would first need a platform rule that studio.access implies setup.access. That rule is a permission boundary and is not ruled.

    #37401, which waited on this card, is released in the same round.

  4. removed
    pm:queue
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxdomain:uipriority:p2

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions