Repository navigation
feat(console): Setup gets one Packages entry, the package list's administration face; Installed Apps retires - #36933
Conversation
…ministration face; Installed Apps retires Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…ntry left there Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
…irst load at collection Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
📓 Docs Drift CheckThis PR changes 2 package(s): 17 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 8 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 10 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 1ea4f846117b9c3e61c4dd2a54fca7cf1b4ce5f1 && git checkout 1ea4f846117b9c3e61c4dd2a54fca7cf1b4ce5f1
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 62692b7f8b39597db2549f8821547e99e3294e3f 35bdb5bacfcdd68e0ddd025cb4a1db683a1e4524 && git checkout -B drift-repro 62692b7f8b39597db2549f8821547e99e3294e3f && git merge --no-ff 35bdb5bacfcdd68e0ddd025cb4a1db683a1e4524
node scripts/docs-audit/affected-docs.mjs --json 62692b7f8b39597db2549f8821547e99e3294e3f
|
Setup's admin tree in the both-halves wire pin grows from 35 to 37 ids: `group_apps` is served again and carries `nav_packages`. The history comment gains the line, the entry and its group are asserted by name, and the contribution count in the arithmetic is corrected to 29. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzhpykmQZe1yMupC2CU
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — ACCEPT · repo:objectstack#3 · head 35bdb5b · 2026-11-24T10:53ZL1 read of #36933 (card #36834, p2, the maintainer's direct order with rulings at 03:12Z and 03:16Z) at Against the card, item by item.
Fix round (35bdb5b). The cli pin moves 35 → 37 because Changeset. It names platform-objects, cloud-connection, app-shell and i18n, all at patch, as the card asks, and each sentence holds against the diff. The one Acceptance. The zh screenshots the card names are in project files under Nits (none block).
Mechanical. All-checks: 60 success · 12 expected skips · 0 failed · 0 pending. Floor checks are green, Every open finding is a nit. ACCEPT, ordinary queue landing. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzhpykmQZe1yMupC2CU Landing · 2026-11-24T10:54Z · ACCEPT 7129393606 at head 35bdb5b
Open findings: nits only (L1 N1: one zh admin string says 停用 where the rest say 禁用; N2: the stale platform-core.json Installed Apps text, already requested from triage on #36743 7128073202 together with the cloud follow-up that drops the now-empty |
Requested by Yibo Wang · project thread
Fixes #36834
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The face selector: the URL parameter
face=admin. Setup's entry is a component nav item withparams: { face: 'admin' }, and the sidebar sends a component entry'sparamsas the query string, so the entry opens.../component/developer/packages?face=admin. With noface, the page is the development surface exactly as before (Studio's "All packages" link and each package card's Manage). An old address withsource=marketplaceand noface(bookmarks, and the marketplace page's "Installed" button) also reads as the administration face. Afacevalue other thanadmin, or a repeatedface, is refused by name (PACKAGES_FACE_UNKNOWN/PACKAGES_FACE_REPEATED), the same way the page already refuses a badsource. No new page, widget, hook or route.The gate:
requiredPermissions: ['manage_platform_settings'], the pattern Setup's Settings hub (nav_settings_hub) and Public Forms use. The server still checks every package write withmanage_metadata.nav_packages).@objectstack/platform-objectscontributes the one entry togroup_apps, unfiltered, translated in all 11 Setup locales (zh-CN: 软件包).?source=and keepsface. Only marketplace rows are asked about updates./studio/ID/data, the address the Studio landing's package card opens (BuilderLanding'sopen).MARKETPLACE_INSTALLED_UI_BUNDLEno longer carriesnav_marketplace_installed. It stays exported under its id, withnavigationContributions: [], so cloud's import keeps compiling and registering it. The entry's labels leave the Setup bundle and its id joins the dead-key tombstone.setup-nav.contributions.ts,BuilderLanding.tsx,marketplace-ui.ts) now cite this card's amendment.Readers of
nav_marketplace_installedin this repopackages/cloud-connection/src/marketplace-ui.tspackages/cloud-connection/src/marketplace-installed-ui-entry.pin.test.tspackages/platform-objects/src/apps/setup-nav.contributions.ts*.source-hashes.tsnav_packagestranslations/setup-nav-dead-key-tombstone.test.tspackages/cloud-connection/CHANGELOG.md,packages/platform-objects/CHANGELOG.mddocs/qa/platform-checklist/areas/platform-core.jsonCode that imports
MARKETPLACE_INSTALLED_UI_BUNDLEstill compiles, unchanged:packages/cli/scripts/check-app-nav-i18n.mjs,packages/qa/dogfood/test/platform-app-object-entry-views.test.ts, and the package index export.Read first (by risk)
ui/packages/app-shell/src/views/metadata-admin/PackagesPage.tsx. Look at theauthoringswitch inPackageDetailSheet, theadminFacebranches in the header and toolbar, andonCreated.ui/packages/app-shell/src/views/metadata-admin/packageSource.ts,readPackagesFace, which reads the legacysource=marketplaceaddress as the admin face.packages/cloud-connection/src/marketplace-ui.ts. The bundle is now empty but keeps its id.Two-minute check
Boot any example as admin and open Setup. Under 应用 there are 软件包 and 浏览应用市场, and no 已安装应用. Click 软件包: the list shows the 来源 filter and a single 新建软件包 button, with no 导入 button.
Why
The maintainer's ruling on #36834 amends ruling 甲 of #25098. Setup is where an administrator sees what is installed and turns it on, off or away. Designing a package stays in Studio. The marketplace-only Installed Apps entry was a narrower copy of the same list, so it merges into the new entry's Source filter.
Verification
Live on
examples/app-showcase(objectstack dev --seed-admin, own port and file DB), signed in asadmin@objectos.ai. The console is theui/apps/consoleVite dev server on the currentui/source, proxied to that backend, and was driven with Playwright in zh-CN.GET /api/v1/meta/app?id=setup): onenav_packages, withcomponentRef: developer:packages,params: {face: admin}andrequiredPermissions: [manage_platform_settings]. Nonav_marketplace_installedappears in the response.?face=admin. It shows the heading 软件包, the admin description, a 新建软件包 button, no 导入 button, and rows of every source (代码 and 自建).&source=marketplaceand shows the empty-marketplace state, because the showcase has no marketplace installs. 代码 and 自建 each narrow the list. 全部 clearssourceand stays onface=admin./apps/setup/component/developer/packages?source=marketplaceopens the admin face, with the 应用市场 chip on and 新建软件包 present./studio/com.default.field-service/dataand shows the toast 已创建软件包「Field Service」./studio/com.default.dogfood-alpha/data. These are absent: 编辑, 发布, 还原, 导出, 复制, 导入, 放弃, 收编散落项.DELETE /api/v1/packages/com.default.dogfood-alpha?keepData=truereturned 200. Delete everything:DELETE /api/v1/packages/com.default.dogfood-betareturned 200. Each time the sheet closed and the row left the list.face, with no Source picker and with the 导入 and 新建软件包 buttons. The same package's sheet keeps 查看信息 / 编辑 / 发布 / 还原 / 禁用 / 导出 / 复制 / 收编散落项 / 删除软件包.Screenshots (zh), in the project files under
issue-36834/:setup-packages-list-zh.png: the Setup listsetup-packages-detail-zh.png: the Setup detail sheet of an authored packagesetup-packages-detail-code-zh.png: a code package's sheet (View info only; code packages are read-only)setup-packages-disabled-zh.png: the feedback after a disablesetup-packages-marketplace-zh.png: the list filtered to marketplacesetup-packages-delete-keepdata-zh.png: the delete dialog with the keep-data choicesetup-new-package-lands-in-studio-zh.png: New Package landed in Studiostudio-packages-detail-unchanged-zh.png: Studio's sheet with every actionTests
These ran on head
bb10cd3592.Package tests and type-checks
@objectstack/platform-objects:pnpm testgave 125 files / 2138 tests passed;typecheckpassed.@objectstack/cloud-connection:pnpm testgave 94 files / 1359 tests passed (lock VERDICT command-exit 0);typecheckpassed.pnpm --dir ui exec vitest runovermetadata-admin/PackagesPage*andstudio-design/BuilderLanding*: Test Files 33 passed (33), Tests 284 passed (284) (lock VERDICT command-exit 0).@object-ui/i18ntests: 109 files passed.type-checkpassed for@object-ui/app-shelland@object-ui/i18n.pnpm check:app-nav-i18n: OK, with 14 contributors and 11 locales. Setup has 62 merged nav ids, each labelled in every locale.Ablation (one-off, not kept)
After committing the fix,
const authoring = face !== 'admin';inPackageDetailSheetwas replaced withconst authoring = true;. The replacement was made throughscripts/ablation-replace.mjs, with an anchor-hit check and a trap restore. The test "the detail sheet offers View info, Disable and Delete…" went red (1 failed). After the restore, the blob matched HEAD andgit diff HEADwas empty.Derived gate families
node scripts/pm/dispatch-gates.mjs --ranreported: 78 derived, 78 run, 0 NOT-MEASURED, a derived zero, because every run recorded an exit code and none was 3. CI runs the rest of the farm.The local union ran on
bb10cd3592. All 77--commandsfamilies andpnpm --dir ui exec vitest run scripts/(Test Files 172 passed, 2 skipped; Tests 5127 passed) exited 0.Two of them needed a retry:
check:type-check-debtfirst returned queue-timeout 99, because a sibling run held the verify lock. The retry under the same slot exited 0.check:dual-build-cjs-loadswas red on the first pass. The cause was a half-built local@objectstack/organizationsdist, a package outside this diff. After rebuilding it, the gate exited 0 with 124 entry points.Changeset families:
check-adr-0087-registration,check-changeset-no-major,check-empty-changesetandcheck:changeset-gate-self-testsall exited 0.packages/cli/test/connect-agent-both-halves-wire.pin.test.ts(35 expected, 37 got). The CLI composition has no marketplace, so on maingroup_appswas empty there and got collapsed;nav_packagesmakes it served again. The two new served Setup ids aregroup_appsandnav_packages. The pin now restates the exact count 37 in both tests, with a history line citing 设置里只留一个「软件包」入口(管理面:新建、启用/停用、删除,新建后进 Studio;并入「已安装应用」),修订甲裁决 #36834, and asserts thatgroup_apps's children equal['nav_packages']. Local runs: the four Setup pins 4/4 files and 10/10 tests; platform-objects 125 files and 2138 tests. Delta comment 7128676644. That test file is outside the claim's file surface, and the edit was directed by the fix-round order.Acceptance notes
docs/qa/platform-checklist/areas/platform-core.json(around lines 2393, 2404 and 2441) still describes the retired Installed Apps entry. It is outside this card's file surface and is left for the checklist owner.MARKETPLACE_INSTALLED_UI_BUNDLE(cloud PR feat(spec)!: prune dead ReportColumnSchema/ReportGroupingSchema exports + unread report chart groupBy (#3463) #3488) keeps compiling. The bundle now contributes nothing, so whether cloud drops the import is cloud's call.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses. (Not run locally: the repo-wide lint is CI's run.)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (Not touched.)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code