Repository navigation
fix(app-shell): an installed current version reads as up to date, and the reinstall confirm says customizations are kept - #39683
Conversation
… reinstall confirm says customizations are kept Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibxosgSdp6NdXgqGSzD
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxZ1DSpavkJARmHCQF 席位核对L1-c · PR #39683 · Verdict: ACCEPT. The zone lands it. The card is Face. l1-face reads 13 items clean on this head. Checks: 45 success and 15 skipped, with none failed or pending. The changeset is an app-shell and i18n patch, with Item 5: "up to date" replaces the main Reinstall. The page shows the status only for an install that loaded and is at or above Item 4: the confirm says customizations are kept. The sentence shows only when an install exists and the mode is not Evidence. On main, the case fails 3 of 25, and the 4 CONTROLs pass. Ablations A, B and C each go red on their own case. The two new keys are in all 11 marketplace locales, and i18n tests pass at 1874. Nit, no head move. On an update, the confirm's sentence still says "reinstalling replaces only the package's own metadata". The fact holds for an update too, as the probe showed, but the verb is the reinstall's. If PR 2 touches this dialog, it can say "installing over it". |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibyrf8y7cWLVu7DMgBN Landing — zone ot-ux2 · 2026-12-04T13:46Z
|
Requested by Tesla · project thread
Part of #39472 (items 4 and 5, the marketplace reinstall; items 1 to 3, Studio on an installed package, follow in a second PR).
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
On the marketplace package page, for a package this runtime installed locally:
The sentence is written from a measurement on this tree, not from the walkthrough's reading (see Verification). Two new keys in every marketplace locale (
marketplace.detail.upToDate,marketplace.install.preview.keepsCustomizations); zh-Hant regenerated withgen:zh-hant.Files to read first:
ui/packages/app-shell/src/console/marketplace/MarketplacePackagePage.tsx, thelocalUpToDatereading and the header'slocalUpToDate ? upToDateStatus : primaryControlswap (riskiest: it decides when the primary button disappears).install-preview-keeps-customizationsparagraph and its gate (localInstalland a mode other thanunmanaged).ui/packages/app-shell/src/console/marketplace/__tests__/MarketplacePackagePage.installPreview-30325.test.tsx, the two new top-level describes.Tests
Two new top-level describes in the page's shared install-confirm harness (
MarketplacePackagePage.installPreview-30325.test.tsx), whosebootnow takes the install-local listing:MarketplacePackagePage.sampleDataNotice-30323.test.tsx: itsinstall()helper reinstalled a current version through the primary button; it now takes the menu's Reinstall when the page reads up to date (a stale fixture of this change, same PR).Red on main, green after, three ablations
Red first, the new tests against the unchanged page (origin/main a92f1ed plus the test edit only):
Tests 3 failed | 22 passed (25); the three red were the up-to-date test and the two "kept" tests; the four CONTROLs passed.After the fix, the whole marketplace folder:
pnpm --dir ui exec vitest run packages/app-shell/src/console/marketplace/with the helper not yet updated gave2 failed | 668 passed, both insampleDataNotice-30323(the stale helper above); after the helper update the two files readTest Files 2 passed (2) · Tests 47 passed (47).Ablations through
scripts/ablation-replace.mjson the committed fix, each restored with blob == HEAD and an emptygit diff HEAD:{primaryControl}:1 failed | 24 passed, the up-to-date test.{false && ():2 failed | 23 passed, the two "kept" tests.{localInstall && ():1 failed | 24 passed, the unmanaged CONTROL.Acceptance notes
MarketplacePackagePage.tsxis over 1,000 lines. The change edits three existing render branches in place (the header's action area, the existing local menu, the existing confirm); no new operation or sub-flow was added, so nothing moved to a sibling module.localMenuWith(leading)so the catalog view can lead it with Reinstall; the marketplace-off view calls it with nothing and draws the same menu as before.Verification
Item 4 measured on this tree: a base reinstall and an update keep the customization package
A scratch dogfood probe (not committed) booted the showcase with the install-local door on this tree (head 9cdb4bf, the probe ran against the same server code as origin/main a92f1ed). It installed a base package 1.0.0 through
POST /api/v1/marketplace/install-local, ensured its customization package, saved and published into it an object extension (aregion__cfield and a relabelled base field) and a declared dashboard override, then reinstalled the base at 1.0.0 and installed 1.0.1 over it. After each, the served object, the served dashboard and the customization package's export were read:The preconditions test asserted the customizations were served before the reinstall, so the after-reads could fail. Code reading agrees: the install door registers only the package it installs (
manifestService.register) and rewrites only that package's ledger entry; the customization package is a separate writable package whose rows nothing in the install path removes.Two-minute check: run
pnpm --dir ui exec vitest run packages/app-shell/src/console/marketplace/__tests__/MarketplacePackagePage.installPreview-30325.test.tsx. Expect 25 passed. In a running console, open the marketplace page of a package installed locally at its latest version. Expect the "Up to date" status where the button was, Reinstall under the "More install options" menu, and the keep-customizations sentence in its confirm.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibxosgSdp6NdXgqGSzD