You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 178bfae
Browse filesBrowse the repository at this point in the historyBrowse files
feat(console): a 「⋯」 package menu in Studio's top bar; Import on Setup → Packages
With the Studio home gone, the Packages page's development-face actions
(Edit, Export, Duplicate, Revert, Adopt loose items) had no served door.
- metadata-admin/packageActions.tsx now holds those actions' requests and
dialogs/forms (the package REST helper, revert, export, adopt, the Edit
dialog, the Adopt confirmation, the Duplicate form); the development
face's detail sheet imports them unchanged in behaviour.
- studio-design/StudioPackageMenu.tsx: the 「⋯」 beside the app or package
name, six items in the maintainer's table order, each reusing the shared
action; Revert asks first and is greyed with no pending changes; Edit,
Duplicate, Revert and Adopt are greyed on a read-only package; Manage in
Setup… opens Setup → Packages on the package's row. Drawn only with a
current package (never ~org / ~all) and for a manage_metadata holder.
- PackagesPage: Import beside New Package on the administration face too;
`?package=ID` on that face opens the package's detail on arrival.
- en / zh keys under engine.studio.packageMenu.*; a changeset.
Claude-Session: https://claude.ai/code/session_01QSeKYmjeYX4T3tqfUCDu4K
Co-authored-by: Claude <noreply@anthropic.com>
feat(console): a 「⋯」 package menu in Studio's top bar, and Import on Setup → Packages
7
+
8
+
Clause-②: no
9
+
Metadata-protocol: none
10
+
11
+
With the Studio home gone, the whole-package actions of the Packages page's development view had no button anywhere. They are back, in two places:
12
+
13
+
- **Studio's top bar.** Beside the app or package name at the left end there is now a 「⋯」 menu (zh: 软件包操作) with six items: Edit package info (编辑软件包信息), Export (导出), Duplicate as a new package (复制为新软件包), Revert to last publish (还原到上次发布), Adopt loose items (收编散落项) and Manage in Setup… (在设置中管理…). Each opens the same dialog and sends the same request as the development view's button; the answer appears as a toast. Revert now asks for confirmation first. On a read-only installed package, Edit, Duplicate, Revert and Adopt are greyed with the reason on hover; Revert is also greyed while nothing has changed since the last publish. Manage in Setup… opens Setup → Packages with that package's detail open, where it is enabled, disabled or deleted. The menu is shown only to people who can author metadata (`manage_metadata`), and not in the organization-flows scope or the all-packages view, where no package is open. Publishing every draft is not in the menu: Studio's Changes / Publish already do that.
14
+
-**Setup → Packages.** Import now sits in the header beside New Package and works exactly as on the development view. A Setup → Packages address can open one package's detail directly by adding `&package=ID`.
15
+
16
+
The development view itself is unchanged.
17
+
18
+
New locale keys in the studio catalogue (en, zh): `engine.studio.packageMenu.trigger`, `.editInfo`, `.duplicate`, `.revert`, `.manageInSetup`, `.noChanges`, `.duplicateTitle`, `.duplicateDescription`, `.revertTitle`, `.revertDescription`.
19
+
20
+
Seventeen studio-catalogue rows that no screen read any more are removed: `engine.studio.menu.typeCount` and the app-worded `engine.studio.newApp.*` rows (`title`, `description`, `advancedHint`, `id`, `help.*`, `nsDerived`, `created`, `exists`, `failed`). None of them was in a published `@object-ui/i18n` release; `engine.studio.newApp.nameTaken` and `engine.studio.newApp.appFailed` are still used and stay.
0 commit comments