Skip to content

Studio 重构后续:顶栏应用名右侧加「⋯」软件包菜单(编辑信息、导出、复制、还原、收编散落项、在设置中管理);「导入」放到「设置 > 软件包」页头 #37139

Description

@objectstack-fleet

repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

③ maintainer direct order · Source: maintainer, in the a4-S zone session (repo:objectstack#4's Studio zone), 2026-11-24. Follow-up of the Studio redesign epic #36890: it gives the Packages page's development face a door once #36908 removes the Studio home. Part of #36890.

维护者速读

  • Studio 首页(Studio 重构(决定 9):去掉 Studio 首页(/studio 的包卡片页),逐项搬走它承载的入口 #36908 要删)是「软件包开发视图」唯一的入口。开发视图里有导入、编辑软件包信息、导出、复制、还原、收编散落项。首页删掉后,这些动作在界面上就找不到了。
  • 改法:Studio 顶栏左侧本来显示「‹ 返回应用 · 应用名」(按决定 5,没有应用时显示包名)。在名字右边加一个「⋯」,里面放整个软件包层面的动作。
  • 「导入」是新建一个包,不是对当前包做操作,所以放到「设置 > 软件包」页头,和「新建」并排。

维护者原话(按先后)

  • 「B:在 Studio 顶部菜单显示软件包(应用名称),右侧加一个 ... 下拉菜单?」
  • 「同意」(回复的是下面这张菜单表,以及「导入放在设置 > 软件包页头」)

菜单(已定)

菜单项 说明 什么时候灰掉或隐藏
编辑软件包信息 名称、版本、说明、依赖 只读的安装包(市场装来的)灰掉
导出 下载包文件,用来搬环境或备份 —
复制为新软件包 在副本上另做一版 —
还原到上次发布 丢掉上次发布之后的改动,先二次确认 只读包、没有改动时灰掉
收编散落项 把不属于任何包的元数据收进这个包 只读包灰掉
在设置中管理… 跳到「设置 > 软件包」的这一项(启用 / 停用 / 删除) —
  • 「⋯」只给有 manage_metadata 的人显示。
  • 在组织级范围(~org)和全部包范围(~all)里不显示,因为没有当前包。
  • 「发布全部草稿」不放进菜单:Studio 已经有「变更 / 发布」入口,不出两套。
  • 每一项都复用开发视图里现成的对话框和操作,不另写一套。

What is on main (read on origin/main 9d70768)

  • The Studio top bar's left end is ui/packages/app-shell/src/views/studio-design/StudioBackToApp.tsx (objectstack#36501). It holds 「‹ Back to app」, the current package's app name or the package's own label, and the Studio mark.
  • The development face is ui/packages/app-shell/src/views/metadata-admin/PackagesPage.tsx with no face param. Its detail sheet offers Edit, Publish, Revert, Export, Duplicate and Adopt loose items under authoring = face !== 'admin' (:876, actions about :1366-1440). The page header carries Import. The administration face (?face=admin, Setup → Packages) offers only View info, Disable / Enable, Delete and 「Open in Studio」.
  • Before Studio 重构(决定 9):去掉 Studio 首页(/studio 的包卡片页),逐项搬走它承载的入口 #36908, the development face's only served doors are the Studio home's 「All packages」 link and each package card's 「Manage」.

Done when

  • On a package's Studio page, a manage_metadata holder sees 「⋯」 beside the app or package name. It has the six items above, each greyed or hidden by the rules in the table, and each one works the way the development face's action does today.
  • On Setup → Packages, Import sits in the header beside New Package. It works as it does on the development face.
  • ~org and ~all show no 「⋯」; a user without manage_metadata sees none.
  • Pin tests in en and zh-CN for the menu's items and their disabled states, and for Import on the admin face.

Notes

Grading: area:ux · Feature · package-level authoring actions lose their door when the Studio home goes · builders and implementers · evidence: read from code · priority:p2 (topic child ⇒ p2). Size M. Metadata-protocol: none. The domain is triage's to set.

Activity

  1. added
    enhancement
    priority:p2
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Triage: first touch 2026-11-24T22:37Z

  3. added
    domain:ui
    pm:queue
    on Nov 24, 2026
  4. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Held behind #36908 · 2026-11-25T02:28Z · zone a4-S hot-file serial

    Blocked-by: #36908

  5. added
    pm:blocked
    and removed
    pm:queue
    on Nov 25, 2026
  6. added
    pm:queue
    and removed
    pm:blocked
    on Nov 25, 2026
  7. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Held behind #37134 · zone a4-S hot-file serial

    Blocked-by: #37134

  8. added
    pm:blocked
    and removed
    pm:queue
    on Nov 25, 2026
  9. added
    pm:queue
    and removed
    pm:blocked
    on Nov 25, 2026
  10. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Claim: PM loop round 3
    Session: session_01QSeKYkkwuF6UuFtu85Yd5H
    Account: os-justin
    Branch: claude/issue-37139-studio-package-menu
    Worktree: cloud session (its own container)
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-S
    File surface:

  11. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 25, 2026
  12. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYmjeYX4T3tqfUCDu4K
    os-dev-report

    {
      "issue": 37139,
      "rider": 37349,
      "status": "done",
      "branch": "claude/issue-37139-studio-package-menu",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37362",
      "session": "session_01QSeKYmjeYX4T3tqfUCDu4K",
      "premise_still_valid": true,
      "summary": "#37139: Studio's top bar draws a 「⋯」 package menu right of the app/package name (StudioPackageMenu, through a new `menu` slot on StudioBackToApp) for a manage_metadata holder on a current package, never on ~org/~all. Six items in the table's order; each reuses the development face's request/dialog/form, which moved into metadata-admin/packageActions.tsx and are imported by both the menu and the unchanged PackageDetailSheet. Greyed: Edit/Duplicate/Revert/Adopt on a read-only package, Revert also at a known pending count of 0; Revert asks first; Manage in Setup… opens Setup → Packages on the row via a new page-local `?package=ID`. Setup → Packages draws Import beside New Package. #37349 (own commit 17748fb8): 17 studio rows removed (menu.typeCount + 16 app-worded newApp.*), each confirmed by check-i18n-dead-keys and a grep; none in @object-ui/i18n@18.6.0 (npm pack, control key present), so Clause-② no. Assignee was already os-justin (PM-set); not touched.",
      "tests": "head 178bfae9 (tree == f332471b, the tree every local run read). StudioPackageMenu-37139.test.tsx 26/26; scoped set after rebase on 80da0864: `pnpm --dir ui exec vitest run --maxWorkers=2` over 112 app-shell files (all PackagesPage.*, PackageFormDialog*, EditPackageDialog, CreatePackageDialog*, StudioDesignSurface*, StudioPackageMenu-37139, PackageCustomizationsPanel, StudioAreaAppOpen-36906, studioAppEdit) + packages/i18n/ → Test Files 223 passed (223), Tests 2862 passed | 13 skipped; os-verify-lock VERDICT command-exit 0. `pnpm --filter @object-ui/app-shell type-check` VERDICT exit 0 (tsconfig.test.json --listFilesOnly reads both pin files). NARROWED, declared: app-shell's full 2432-file suite was started and stopped by me (pid recorded by the lock, 11873) after 31 min with no file reported on the shared 4-core box; CI Test UI (16 shards) runs it. Ablations (ablation-replace, each anchor x1→x0, restored to HEAD blob, git diff HEAD empty; source-aliased, no dist leg): 1 {menu} slot deleted → 'six items' 2 failed; 2 readOnly=false → read-only greys 2 failed; 3 noChanges=false → 'nothing changed' 2 failed; 4 packageId!==null → scopeSegment.length>0 → ~org/~all 2 failed; 5 canAuthorPackage→true → 'without manage_metadata' 2 failed (control passed); 6 admin actions back to adminFace ? newPackageButton → Import header+works en/zh 4 failed (dev-face control passed); 7 ?package= effect neutered → opens-that-package 1 failed. First attempts at 1 and 4 were refused by the tool before running (empty replacement; replacement inside its anchor) and measured nothing; re-run with --delete / a distinct replacement.",
      "gates": "dispatch-gates --commands: 39 derived (same set on 975fe6a3 and 178bfae9); --ran reconciliation 39 run, 0 NOT-MEASURED, exit 0. 37 exit 0 on 975fe6a3 (same two commits before the rebase onto 80da0864); check:type-check-debt first exit 3 (PREREQUISITE NOT MET: queued behind my own suite's lock hold) then exit 0 under the lock on the rebased tree (re-measure 0 raw errors); `pnpm --dir ui exec vitest run scripts/` exit 0 (172 files). Push gates on 178bfae9's tree: check:test-source-alias exit 0, check:i18n-keys exit 0, overlap-check VERDICT clean exit 0 (#37351 had landed; rebased onto it), check:new-line-citations 0 new. CI on 178bfae9: all 58 check runs completed, none failed — the eleven required: Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core skipped (path filter: no core package touched), Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success (16/16 shards success), Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success; also Check Changeset success, PR-body guards success, Check PR Size success, every Lint · / Type Check · sub-job success.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "13 — all reads: mcp__github__issue_read ×4 (get #37139, get #37349, get_comments ×2), mcp__github__pull_request_read ×9 (get_files #37338, get_files #37166, get #37351, get_check_runs #37362 ×6). No MCP write.",
      "api_writes": "3 relay strokes (fleet-write repository_dispatch), each written as objectstack-fleet[bot]: ① pr_create run 45719020167 → POST /repos/objectstack-ai/objectstack/pulls (draft, read back 11940/11940 bytes identical) + POST /repos/objectstack-ai/objectstack/issues/37362/assignees (os-justin, read back); ② this os-dev-report → POST /repos/objectstack-ai/objectstack/issues/37139/comments; ③ the pointer → POST /repos/objectstack-ai/objectstack/issues/37349/comments. git push is not a REST write. No GitHub MCP write.",
      "open_questions": [
        {
          "question": "Duplicate as a new package: the agreed table gives it no greyed state (「—」), but the server refuses to duplicate a read-only package (DUPLICATE_SOURCE_NOT_A_BASE) and the development face does not offer it there. The menu greys it on a read-only package with the read-only reason. Keep?",
          "options": [
            "A keep it greyed on a read-only package (as built): never offers a door the server always refuses; matches the development face",
            "B always enabled, per the table's 「—」: the click then shows the server's refusal (which names customizing in the pair or an unmanaged install) — one-line change plus its pin"
          ],
          "recommendation": "A, because a door that always refuses is the failure the rest of Studio's courtesy gates avoid, and the dispatch asks each item to behave as the development face does."
        },
        {
          "question": "A Studio-only author (manage_metadata, without Setup → Packages' setup.access + manage_platform_settings) still has no New Package door (carried from #37134's report), and the menu's 「Manage in Setup…」 sends them to a page Setup refuses them. Should the 「⋯」 menu carry 「新建软件包」, and should 「Manage in Setup…」 be greyed or hidden for a non-holder of the Setup pair?",
          "options": [
            "A add 「新建软件包」 to the menu (opens the one CreatePackageDialog, lands in Studio on the new package) and grey 「Manage in Setup…」 with a reason when holdsSetupPackages() is false — a follow-up card, S size",
            "B leave the menu as the agreed table; the Studio-only author's door is decided with the development face's retirement question",
            "C only grey 「Manage in Setup…」 for a non-holder (studioEntryFallbackPath already follows that doctrine), leave New Package out"
          ],
          "recommendation": "A, because Studio's own entry rule already says no door sends a principal to a page they may not open, and the Studio-only author has no other create path once the development face is retired; but it widens the agreed menu table, so it is the maintainer's call."
        },
        {
          "question": "Retire the development face (the Packages page with no `face`) now that its actions have a Studio door? The card defers this to after landing.",
          "options": [
            "A ask the maintainer once #37362 lands, as the card says",
            "B keep both faces"
          ],
          "recommendation": "A — per the card."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — the development face's own Revert still runs without a confirmation (the menu's asks first, per the table); unifying them changes the development face, which this dispatch keeps unchanged. Recorded in the PR's Acceptance notes."
      ]
    }
  13. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H

    Finalized head for L1 · 2026-11-26T00:42Z · 178bfae9 · zone a4-S (#37139 + rider #37349 → PR #37362)

    • CI on 178bfae9: 45 success, 13 skipped, 0 failed (Test UI 16/16). K: 7 behind main; merge-tree is clean.
    • Size: +1,381 / −251, 1,632 changed lines, 11 files. check-governed-merges.mjs --pr 37362: not governed and under 3,000, so not Tier H. The zone lands it after ACCEPT.
    • Final report: 7177958131, status done.
      • Studio's top bar draws 「⋯」 (StudioPackageMenu through a menu slot on StudioBackToApp) for a manage_metadata holder on a current package. It never appears on ~org or ~all.
      • The six items reuse the development face's dialogs and actions, which moved to metadata-admin/packageActions.tsx; PackageDetailSheet is unchanged and imports them.
      • Setup → Packages draws Import beside New Package.
      • Rider Studio: remove the unread engine.studio.newApp.* rows and engine.studio.menu.typeCount (never released) #37349, in its own commit 17748fb8: 17 unread studio rows are removed, none of them in @object-ui/i18n@18.6.0, so Clause-②: no.
    • Zone rulings on the open questions:
      • Q1, Duplicate greyed on a read-only package: A, keep it as built. The server always refuses that duplicate (DUPLICATE_SOURCE_NOT_A_BASE) and the development face doesn't offer it there. The dispatch asked each item to behave as the development face does, so this reads the table's 「—」 faithfully.
      • Q2, 「新建软件包」 in the menu and 「在设置中管理…」 for a non-holder of the Setup pair: this widens the maintainer's agreed table, so it is the maintainer's call. It goes to seat 4 as a question and does not block this landing.
      • Q3, retiring the development face: A, ask the maintainer after this lands, as the card says. Carried to seat 4.
    • The head is frozen now.
  14. removed
    pm:dispatched
    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

Labels

area:uxdomain:uienhancementpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions