Repository navigation
feat(app-shell): fold the .custom pair's landing card under its base and name the base on the pending-changes sheet - #29723
Conversation
…and name the base on the pending-changes sheet Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jTWKHRdA5msPPhwmw4
|
domain:ui#1 · zhuangjianguo · session_01QsR2jUJ19MstFvFhjgiYTu 席位核对 · ACCEPT · 2026-11-03T03:07ZHead-sha:
|
|
domain:ui#1 · zhuangjianguo · session_01QsR2jUJ19MstFvFhjgiYTu Post-landing review on the landing head (contract-review.md: a PR that lands still owing its record is reviewed on its landing head). The seat's ACCEPT 6594418645 carried this judgment as a bullet, not in the record shape; this is the record. Contract reviewServed-tier: ① Derived judgments
② Semver levelThe changeset declares ③ Boundary flagsThe dev raised no Implemented-by: VERDICT: PASS |
Requested by Steedos · project thread
Part of #29691
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
BASE.custom定制包单独一张卡,它折叠在基座卡下(与软件包切换器同一规则);基座卡保留「已定制 n 项」及其链接。待发布变更面板在审阅定制包草稿时,标题下多一句「保存到 基座名 的定制」。BuilderLanding.tsx的折叠(foldCustomizationPairs);DraftChangesPanel.tsx的customizationOf一行;StudioDesignSurface.tsx只在pairId存在时传入基座名。/_console/studio,「我的软件包」里不再有com.example.showcase.custom卡,只读区的 Showcase 卡写着「已定制 1 项」;点 Publish 打开面板,标题下是「保存到 ObjectStack Showcase 的定制」。What changes
BuilderLandingfolds eachBASE.custompair under its base with the switcher's ownfoldCustomizationPairsbefore it splits writable from read-only. A pair whose base is listed draws no card in either section. The base's card keeps its "n customized" line, and that line's link into the pair. A pair whose base is not listed keeps its card, the switcher's rule too.DraftChangesPaneltakes an optionalcustomizationOf(the base's label) and, when set, says under its title "Saved to BASE's customizations" (zh 保存到 BASE 的定制). The sentence is one exported helper,savedToCustomizationText, so the item header can say the same words in the follow-up PR.StudioDesignSurfacepasses the base label only while it reviews a pair's drafts (pairIdset), and nothing for a writable package or a base with no pair.preview.changes.savedToCustomization, in all ten@object-ui/i18nlocale packs. Nothing is removed or renamed.Contract review
@object-ui/i18nlocale packs gain one leaf,preview.changes.savedToCustomization, in each of the ten packs, and@object-ui/app-shellgains an optionalDraftChangesPanelprop (customizationOf) and one exported helper (savedToCustomizationText).Metadata-protocol: none).Tests
BuilderLanding.customizationCounts-28566.test.tsx: a new describe over the real landing. A read-only base and its writable pair draw one card, the base's, with its customized count and the pair link, and the pair's name and id appear on no card. A read-only pair folds under its listed base too. CONTROL: a writable package that is no pair keeps its card, and a pair whose base is not listed keeps its card. The existing "no line for a pair" case now finds the orphan pair's card and no card for the folded one.DraftChangesPanel.test.tsx: a new describe that renders the real sheet through the real i18next hook and the shipped packs. WithcustomizationOf="HotCRM"it reads 保存到 HotCRM 的定制 in zh and "Saved to HotCRM’s customizations" in en. CONTROL: without it, no sentence.StudioDesignSurface.customizePublish-28562.test.tsx(the real surface): reviewing a listed pair, and after the first edit makes the pair, the sheet is handed the base labelHotCRM. CONTROL: a base with no pair hands it nothing.Acceptance notes
nav_packages→/apps/studio/component/developer/packages, thedeveloper:packagespage). That page lists every served package with no pair fold. The pair's row opens a detail sheet with Export (every row,GET /api/v1/packages/:id/export) and Delete package (writable rows,DELETE /api/v1/packages/:id). Measured live on a fresh showcase (pnpm dev -- --fresh, branch headd47495aa):POST /api/v1/packages/com.example.showcase/ensure-customizationanswered 201 and createdcom.example.showcase.custom.GET /api/v1/packagesthen served it as its own row (writable: true,source: authored), the row the Packages page draws.GET /api/v1/packages/com.example.showcase.custom/exportanswered 200 with the pair's manifest, andDELETE /api/v1/packages/com.example.showcase.customanswered 200, after which the list held onlycom.example.showcase. Those are the doors the sheet's Export and Delete package buttons call (PackagesPage: Export on every row, Delete package on writable rows); the buttons themselves were read from code, not clicked./studio/PAIR/data, and theStudioDesignSurfacewrapper sends every pillar URL of a pair to the base's surface.StudioDesignSurface.oneSurface-28572already pins that. The base card's customized link takes the same path, unchanged.Verification
Tests and gates (final head 62ad4a4; sweep on d47495a, and the merge of main brought no file under ui/)
origin/main1c1a5d40'sBuilderLanding.tsx,DraftChangesPanel.tsxandStudioDesignSurface.tsx(each blob-identical to main, restored toHEADafter,git diff HEADempty): 7 failed, 24 passed. The 7 are the new pins; the CONTROL cases stay green on main. On the branch: Test Files 3 passed, Tests 31 passed, ond47495aaand again on62ad4a49.--maxWorkers=2, locked): every ui test file namingBuilderLandingorDraftChangesPanelplus every test reading the locale packs orpreview.changes, 254 files in six batches, all green (346 + 425 + 554 + 289 + 519 + 677 tests), andpackages/i18n/whole: 95 files, 1443 passed, 13 skipped.turbo run type-check --filter=@object-ui/app-shell --filter=@object-ui/i18n: 66 of 66 tasks green.savedToCustomizationTextexport, the warning the file's three other exported helpers already carry. The other 7 are on lines this PR does not touch.node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack): 35 commands, each exit 0, includingcheck-sdui-manifest,check-changeset-no-major,check-adr-0087-registration,check-closing-keyword-parity(run against this body) andpnpm --dir ui exec vitest run scripts/(170 files passed, 2 skipped).Generated by Claude Code