Repository navigation
Commit 0d0a088
feat(plugin-detail): the default record page shows Activity last — right column, stack, tab row and strip (#34643)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} -->
_Requested by **Yibo Wang** · [project
thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBLW6dHPW6sSheA32XPKZzPV)_
repo:objectstack#3 · os-support-ai · session_01WGufzg2evNa1V3zxrQq3KX
Fixes #34590
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:没有手写记录页的对象,默认记录页把「动态」放到最后——宽屏右栏是 相关 → 附件 → 审批 → 动态;窄屏单列是 详情 → 相关
→ 附件 → 审批 → 动态;顶部页签行是 概览 → 各关联 → 动态;合成的页签条(Studio 新建记录页的初始内容)也是 详情 → 相关
→ 审批 → 动态。
- 为什么改:维护者 2026-11-17 原话「我们同事反馈动态不常用,是否建议移动到子表最后」「「动态」在最后」,并在 6937542160
裁决「同意」:第 2 项(对象级开关)不做,窄屏动态页签也移到最后。
- 风险与回滚:只改默认页的排列顺序,不改任何元数据、键名和 `?tab=` 取值;手写记录页不受影响。回滚即 revert 本 PR。
-
先看:`ui/packages/plugin-detail/src/RecordPageColumns.tsx`(右栏顺序与页签行,含"首批计数未回时动态页签暂不上行"一段)、`synth/buildDefaultPageSchema.ts`(页签条顺序)、`__tests__/RecordPageColumns.test.tsx`
末尾新增的 #34590 用例。
- 两分钟验证:`pnpm --dir ui exec vitest run
packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx`,预期 18
个用例全绿;或在控制台打开任一无手写页的记录,右栏最下方是「动态」。
- 需要你做的:无,席位落地。
## What changes
On the synthesized default record page (no hand-written page), the
Activity stream (动态) now comes last on every surface that draws it:
- **Right column** (two-column and wide tiers): related panels in the
reader's arrangement, then attachments, then approvals, then the 动态
panel. Any related-stack foot line (hidden count, restore default order)
stays with the related panels, above 动态.
- **Single-column stack** (below 760 px, a phone, the split pane):
details, related panels, attachments, approvals, 动态 at the very bottom
of the page.
- **Tab row**: 概览, the related panels' tabs, then 动态. Because 动态 now
sits after the panel tabs, it waits off the row together with them while
their first count set is out (unless it is the active tab), so no tab
moves when the counts land; the row itself is drawn from the first paint
(概览 alone meanwhile), so the page below it does not shift. This keeps
the existing no-move rule of #28469 Target 2.
- **Synthesized `page:tabs` strip** (`buildDefaultTabs` /
`buildDefaultPageSchema`, also what Studio seeds a new record page
with): Details, Related, Approvals, then the Activity stream. Tab
`value`s are unchanged, so `?tab=` links keep working.
Hand-written record pages keep their author's order. No metadata key is
added (item 2 of the card was dropped by the maintainer's ruling,
comment 6937542160).
**Supersession.** #27524 Targets 5 and 8 (maintainer rulings of
2026-10-29: 动态 the first panel of the right column, and second in the
tab row) are superseded for the right column, the stack, the tab row and
the strip by the maintainer's 2026-11-17 words
「我们同事反馈动态不常用,是否建议移动到子表最后」「「动态」在最后」 and the ruling recorded in 6937542160
(「同意」). Every changed assertion that pinned those targets cites this.
**Surface extension (area o3-A).** The claim's surface was extended by
the area for assertion-only edits to tests outside it that pinned the
old order:
`ui/packages/app-shell/src/views/RecordDetailView.recordPageTiers-26678.test.tsx`,
`ui/packages/app-shell/src/views/RecordDetailView.panelToggles-27052.test.tsx`,
`examples/app-showcase/e2e/detail-shapes.spec.ts`. No source file
outside the original surface changed. Claim amendment 6939020563 then
added, comment and doc text only: `content/docs/ui/pages.mdx` (the
synthesized-default section now states the new right-column and tab-row
order), and the comments in
`ui/packages/plugin-detail/src/RecordTabRow.tsx`,
`ui/packages/app-shell/src/views/RecordDetailView.tsx` and
`ui/packages/app-shell/src/views/RecordDetailView.recordOpenWaves-13010.test.tsx`.
## Why
Members open the related records much more often than the stream; the
maintainer asked for 动态 to move after the child tables (quoted above).
## Tests
New pins (a top-level `describe` in `RecordPageColumns.test.tsx`, the
component's existing harness file, per the shared-harness rule in
AGENTS.md, rather than a new per-card file): wide, two-column and stack,
each with attachments on or off (`enable.files`) and approvals on or off
(12 cases), plus a reader-rearranged stack (foot line, then 动态 last) and
a page with the stream off.
Assertions updated as this card's intended behaviour change, each citing
#34590:
- `plugin-detail/src/__tests__/RecordPageColumns.test.tsx` (3
right-column order pins, 1 first-child pin)
-
`plugin-detail/src/__tests__/RecordPageColumns.switches-27052.test.tsx`
(2)
- `plugin-detail/src/__tests__/RecordPageColumns.tabRow-27524.test.tsx`
(3 tab-row order pins)
- `plugin-detail/src/__tests__/RecordTabRow.recordsFirst-28469.test.tsx`
(6: final order, plus the pending row that is now 概览 alone)
- `plugin-detail/src/synth/__tests__/buildDefaultPageSchema.test.ts`
(every strip-order pin, in 9 tests),
`buildDefaultPageSchema.strictPayload.test.ts` (2),
`buildDefaultPageSchema.bodyTables-27055.test.ts` (2),
`recordPageColumns.switches-27052.test.ts` (1)
- `plugin-detail/src/__tests__/RecordTimelinePanel-27524.test.tsx`
(docblock only)
- `app-shell/src/views/RecordDetailView.recordPageTiers-26678.test.tsx`
(4), `RecordDetailView.panelToggles-27052.test.tsx` (1),
`examples/app-showcase/e2e/detail-shapes.spec.ts` (1)
## Acceptance notes
- On a narrow row with many panels, 动态 can now fall into the 「+N ▾」
dropdown (it used to be guaranteed a slot as the second tab). That
follows from "动态 last" under the row's existing fit rule.
- The `RecordTabRow` component tests in
`RecordTabRow.recordsFirst-28469.test.tsx` (the first describe) feed the
component a fixed tab list with 动态 second; they pin the width rule, not
the page's order, and were left as they are.
## Verification
Code-round runs below are on `338d995bed` (a merge of `origin/main`
082f9c2 on top of the work); the fix round on `ea778cb7b8` changes
docs and comments only (last block).
<details><summary>Changed test files on the final head
338d995</summary>
```
pnpm --dir ui exec vitest run --maxWorkers=2 (the 11 changed ui test files)
Test Files 11 passed (11)
Tests 175 passed (175)
os-verify-lock: VERDICT command-exit 0
```
</details>
<details><summary>Whole plugin-detail package (tree 73b01d7; the main
merge after it touched no plugin-detail file)</summary>
```
pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-detail/
Test Files 380 passed | 1 skipped (381)
Tests 3428 passed | 18 skipped (3446)
os-verify-lock: VERDICT command-exit 0
```
</details>
<details><summary>app-shell record page and synthesizer consumers (tree
73b01d7)</summary>
```
pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/src/views/RecordDetailView packages/app-shell/src/views/recordDetailSections packages/app-shell/src/utils/__tests__/pageSchemaIntrospect.test.ts packages/app-shell/src/views/metadata-admin/anchors.page-seed.test.ts packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.relatedList-27054.test.tsx packages/app-shell/src/views/metadata-admin/previews/PagePreview apps/console/src/__tests__/record-block-record-reach.test.tsx packages/components/src/__tests__/page-tabs-builtin-label-i18n-4645.test.tsx packages/types/src/__tests__/record-panels-arms-12363.test.ts
Test Files 110 passed (110)
Tests 855 passed (855)
os-verify-lock: VERDICT command-exit 0
```
</details>
<details><summary>Typecheck (338d995)</summary>
```
pnpm --filter @object-ui/plugin-detail run type-check (tsc --noEmit && tsc -p tsconfig.test.json)
os-verify-lock: VERDICT command-exit 0
```
app-shell type-check not run locally (its two changed files change
string literals and one `firstElementChild` to `lastElementChild`);
declared to CI `Type Check UI`.
</details>
<details><summary>Ablations (one per behaviour changed; implementation
committed first, restore by blob hash)</summary>
1. Right-column order put back to 动态-first (`node
scripts/ablation-replace.mjs`, anchor 1 to 0, blob e4a52d3 to
a57dfc19a1d9): `RecordPageColumns.test.tsx` went `Tests 16 failed | 2
passed (18)` (every order pin red; the two pages with no 动态 panel stay
green). Restored: blob after restore e4a52d3, `git diff HEAD`
empty.
2. The held 动态 tab disabled (`timelineHeld` forced false; blob
e4a52d3 to afbd72794764):
`RecordTabRow.recordsFirst-28469.test.tsx` went `Tests 2 failed | 5
passed (7)` (the no-move prefix pin and the pending-row pin). Restored:
blob after restore e4a52d3, `git diff HEAD` empty.
</details>
<details><summary>Derived gate families (338d995)</summary>
`node scripts/pm/dispatch-gates.mjs --commands` derived 56 families; 55
ran with exit 0 (including `pnpm --dir ui exec vitest run scripts/`:
Test Files 171 passed | 2 skipped). NOT MEASURED: `pnpm
check:dual-build-cjs-loads`, reason: exit 3 PREREQUISITE NOT MET (reads
built `dist/` of packages this diff does not build; CI builds them).
`--ran` reconciliation: "56 derived famil(ies) accounted for — 55 run, 1
NOT-MEASURED (1 DERIVED from a recorded exit 3)". Overlap check at every
push: `VERDICT clean exit 0`.
</details>
<details><summary>Fix round (L1-a REWORK 6939009202) on head ea778cb
— docs and comments only</summary>
```
pnpm --dir ui exec vitest run --maxWorkers=2 (RecordTabRow-27524, RecordTabRow.recordsFirst-28469, RecordPageColumns.tabRow-27524, RecordDetailView.recordOpenWaves-13010, RecordDetailView.recordPageTiers-26678, RecordDetailView.panelToggles-27052)
Test Files 6 passed (6)
Tests 64 passed (64)
os-verify-lock: VERDICT command-exit 0
```
`dispatch-gates --commands` on ea778cb derives 87 families (31 new,
from `content/docs`); `--ran`: "87 derived famil(ies) accounted for — 85
run, 2 NOT-MEASURED". New doc families all exit 0, among them `pnpm
--filter @objectstack/spec run check:docs` ("248 generated files in
sync"), `check:doc-authoring`, `check:doc-anchors`,
`check:docs-transcript-drift`, `check:doc-security-posture`. NOT
MEASURED, both exit 3 PREREQUISITE NOT MET (unbuilt `dist/` of packages
this diff does not touch): `check:skill-examples` (client-react) and
`check:dual-build-cjs-loads`. Overlap check before the push: `VERDICT
clean exit 0`.
</details>
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (lint is CI's)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: n/a.
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English (Chinese only in quoted
rulings and the maintainer quick-read).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01WGufzg2evNa1V3zxrQq3KX
<!-- signed: repo:objectstack#3 · os-support-ai ·
session_01WGufzg2evNa1V3zxrQq3KX -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 13c62a6 commit 0d0a088
20 files changed
Lines changed: 295 additions & 123 deletions
File tree
- .changeset
- content/docs/ui
- examples/app-showcase/e2e
- ui/packages
- app-shell/src/views
- plugin-detail/src
- __tests__
- synth
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
696 | | - | |
| 695 | + | |
| 696 | + | |
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
268 | 269 | | |
269 | 270 | | |
270 | | - | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
278 | | - | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | | - | |
| 287 | + | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
| |||
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
310 | | - | |
| 312 | + | |
| 313 | + | |
311 | 314 | | |
312 | 315 | | |
313 | 316 | | |
| |||
326 | 329 | | |
327 | 330 | | |
328 | 331 | | |
329 | | - | |
| 332 | + | |
| 333 | + | |
330 | 334 | | |
331 | 335 | | |
332 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5001 | 5001 | | |
5002 | 5002 | | |
5003 | 5003 | | |
5004 | | - | |
5005 | | - | |
5006 | | - | |
| 5004 | + | |
| 5005 | + | |
| 5006 | + | |
| 5007 | + | |
5007 | 5008 | | |
5008 | 5009 | | |
5009 | 5010 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| |||
350 | 352 | | |
351 | 353 | | |
352 | 354 | | |
353 | | - | |
| 355 | + | |
354 | 356 | | |
355 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
356 | 360 | | |
357 | 361 | | |
358 | 362 | | |
359 | 363 | | |
360 | 364 | | |
361 | 365 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | 366 | | |
366 | 367 | | |
367 | 368 | | |
| |||
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
375 | 386 | | |
376 | 387 | | |
377 | 388 | | |
378 | 389 | | |
379 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
380 | 394 | | |
381 | | - | |
| 395 | + | |
382 | 396 | | |
383 | 397 | | |
384 | 398 | | |
| |||
402 | 416 | | |
403 | 417 | | |
404 | 418 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
| 419 | + | |
| 420 | + | |
415 | 421 | | |
416 | 422 | | |
417 | 423 | | |
| |||
422 | 428 | | |
423 | 429 | | |
424 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
425 | 440 | | |
426 | 441 | | |
427 | 442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
0 commit comments