Repository navigation
fix(studio): a customization pair's dashboard or report opens in its base app's edit state - #37348
Conversation
… base's app Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYnbST7agSKJw3XyNc3
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYnbST7agSKJw3XyNc3
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
| leg | mutation | red at head |
|---|---|---|
| A1 | customizationPairBaseOf(packageId) : null → null : null |
4 failed: pair dashboard, reach from the base list, pair report, base without an app |
| A2 | packageId: appPackageId, apps → packageId, apps |
2 failed: pair dashboard, reach from the base list |
| A3 | && apps.length === 0 ? → && true ? |
1 failed: pair with its own app |
| A4 CONTROL | ?? 'com.example.hr' fallback on the leg |
1 failed: package with no published app (single read) |
Check-runs at head. There are 51 runs: 38 success, 13 skipped, 0 failed, 0 pending. l1-face judges all 13 skips expected (0 unexpected). Nothing is dogfood-owed: the title has no ! and there is no (narrowing) arm.
Merge-tree and overlap. Against current origin/main 134b71db, git merge-tree --write-tree exits 0, and no main-side commit touches the PR's files. fix(console): "customized" means overrides + extensions everywhere; Setup → Packages names arrangements apart #37351 (c9c1d9e4) and fix(studio): a permission set's review link opens the draft review on its matrix page #37347 (f781168f) share no file with this PR. Pairwise merge-tree exits 0 for each, and so does a three-way merge of main plus fix(studio): a customization pair's dashboard or report opens in its base app's edit state #37348 with each of them.
K = 7. That is git rev-list --count HEAD..origin/main at 134b71db. The zone's freeze read 6, and main has moved one commit since. All 7 commits are outside these files.
维护者速读 accuracy. All four lines hold:
- Line 1 (pair dashboard or report opens in the base app's edit state or builder, and × returns to the list) matches the pins and the changeset.
- Line 2 matches 专题:Studio 重构——某个应用的开发界面:左侧按类型分组的菜单 → 列表 → 右侧全屏详情(去掉顶部分区) #36890 (「Studio 重构」) and Studio 重构(3-4):Studio 列表点仪表盘、报表,直接进应用里的编辑状态;× 回 Studio 列表;报表「新建」进 /apps/<应用>/reports/new #36906.
- Line 3 (the worst case is the generic page or another base app, with no data written, and a revert restores it) matches the code: the leg only navigates and reads.
- Line 4 「无」 is right, because this is a Tier S landing that the zone does itself.
Contract review. None is owed. The PR declares Clause-②: no with no (narrowing) arm. It touches no packages/spec/src/** and no governed path: all four files are under ui/packages/app-shell/src/** or .changeset/.
Findings
No must-fix, no should-fix.
- N1 — The header docblock of
StudioAreaAppOpen-36906.test.tsx(lines 17–19) still says 「a read-only base: its own rows open in its app, a pair row keeps the generic page」. This PR inverts that behaviour, and the file's newobjectstack#37237describe pins the opposite. It is a test-only comment and does not affect correctness. I accept it as a deviation, to be fixed on the file's next touch. - N2 — The changeset's paraphrase of decision 6 (「the app you came from when it is one of the base's, otherwise the base's first app」) leaves out rule 1's menu leg. That leg is an outside app whose menu opens the item (
studioAppEditSegment,rememberedMenu), and the code keeps it. Studio 重构(3-4):Studio 列表点仪表盘、报表,直接进应用里的编辑状态;× 回 Studio 列表;报表「新建」进 /apps/<应用>/reports/new #36906's changeset names it. The sentence's lead clause, 「picked the same way as for any package」, is accurate. Accepted. - N3 — The PR body's ablation table was taken before the reach pin landed in
7e57a1c7. At head, A1 reds 4 rather than 3 and A2 reds 2 rather than 1, and every leg is still red. Separately, the report'sgatesfield lists Test Core and Dogfood Regression Gate as success, but both are expected skips at head on this ui-only diff. These are evidence-accuracy notes only. No action.
Landing
- The zone lands it, Tier S: not governed, +118/−19 (well under 3,000), no L2 owed. K = 7 (< 15), so the zone does not need to merge main first. Re-read the check-runs at the landing head.
|
repo:objectstack#4 · os-justin · session_01QSeKYkkwuF6UuFtu85Yd5H Landing · 2026-11-25T22:05Z · head
|
Fixes #37237
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
StudioAreaAppOpen(the area's step between a Studio list and an app page) reads the open package's published apps. When the open package is a customization pair (<base>.custom, bycustomizationPairBaseOf, the shipped pairing rule) and it has no published app of its own, it now reads the base's published apps (one extra read, on the pair leg only, and only for an item open) and runs the same decision-6 rule (studioAppEditSegment) over them with the base's id: the remembered app when it is one of the base's (or its menu opens the item), else the base's first app./apps/BASE/dashboard/NAMEin its edit state; a pair's report opens the base app's builder.?studio=carries the pair's list, so × returns to it.No server, spec or route change.
studioAppEdit.tsonly gains a doc paragraph naming the pair leg.Tests
ui/packages/app-shell/src/views/studio-design/StudioAreaAppOpen-36906.test.tsx, a new top-leveldescribein the shared harness (through the realStudioMetadataAreaand its routes):[app PAIR],[app BASE], and the item is read from the pair;?package=PAIRlink re-roots the area onto the pair and opens the base app;The old pin "a pair row keeps the generic item page" is replaced: that is the behaviour this card changes.
Test run and ablations (4 legs, each red, each restored to HEAD)
pnpm --filter @object-ui/app-shell exec vitest run --root ../.. --maxWorkers=2 …/StudioAreaAppOpen-36906.test.tsx …/studioAppEdit.test.ts→Test Files 2 passed (2),Tests 29 passed (29).pnpm --filter @object-ui/app-shell run type-check→ exit 0.Ablations via
scripts/ablation-replace.mjsonStudioAreaAppOpen.tsx(vitest resolves the source directly; no dist leg):customizationPairBaseOf(packageId) : null→null : nullpackageId: appPackageId, apps→packageId, apps/apps/PAIR/…)&& apps.length === 0 ?→&& true ??? 'com.example.hr'fallbackEach leg printed
ok restored: blob == HEAD … git diff HEAD is empty. A first A3 try missed its anchor (refused, exit 3, nothing ran) and a second was refused for an ambiguous marker; the third run above is the reading.Acceptance notes
./NAME?package=PAIR(ResourceListPagemetadataRowInfo), andareaLocationRedirectre-roots any leg whose?package=names another package onto that package, so the area mounts on the pair. The new reach pin drives that redirect. The menu's environment entry (~allwith?scope=environment) keeps rows in the environment scope and does not re-root; the plain~allleg does. Confirmed with a pin, not in a browser.Verification
Two-minute check: run the test file above. Expected: 29 passed. Or in a HotCRM-shaped stack, open Studio → the base package → Dashboards → a row from
.custom. Expected: the base app's dashboard opens in edit mode, and × lands back on the list.Generated by Claude Code