Repository navigation
feat(record-page): one tab per related list, and an Overview rail that sums up the other tabs - #35763
Conversation
…t sums up the other tabs The record page's tab row folds by width only: Overview, one tab per side related list in order (an empty one greyed, no number), then Attachments, Approvals and Activity, the tail in 「更多 N ▾」 with its counts. The stage path and key fields sit across the width on Overview only. On Overview the right column sums up the other tabs (approvals, attachments, recent activity, then the lists with records), at most three rows a card, each title opening its tab; a drawer draws no rail and no switch. A page drawn as written gets its unplaced approvals and attachments as tabs, not foot bands, and draws one approval band however many details bodies it has. Supersedes the records-first partition (objectstack#28469). Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
…red tabs; the rail reads a column through columnIdentity On a runner with no CJK font a CJK glyph draws about 8 px, not 13, so the twelve tabs of the fold fixture fit the 596 px row of a 900 px window and nothing folded. The pin now draws once, reads the row's own measurer, and sizes the row for exactly eight tabs and the trigger, half a tab short of the ninth, asserting that every tab does not fit before reading the fold. The rail's column key read field, accessorKey and name in one chain; it now calls the shared columnIdentity reader (objectui#3104 ratchet). Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY Final head for L1: Readings
Claim and surface
What it changes
Fix round on this head (CI red on 7557c03)
Tests
Not filed (noted)
|
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对ACCEPT · head Routing: no Checked:
Required before landing:
For the seat (not blocking):
Nits (no action required):
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ 维护者速读
席位核对 — ACCEPT · repo:objectstack#5 · head
|
Requested by Bill · project thread
Fixes #35595
Fixes #35596
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
The record page's tab row and its right column are redrawn. This supersedes #28469 (empty lists sank into the dropdown even on a row with room for them); that partition is retired.
Tabs (#35595).
relatedListsorder, then Attachments, Approvals and Activity last.page:tabscomputeCount: more than one probe, or more than one list shown).withFallbackRecordTabs), not as bands at the page's foot.record:detailsnodes draws its approval band once, on the first body that reaches it, recall included (ApprovalBandOnceScope, record page: a synthesized page that falls back to page tabs may still draw the approval-lock band once per details part #35483 / record page: an authored page with two details nodes draws the approval-lock band in each #35484).Right rail (#35596).
embedded) draws no rail and no right-column switch.RelatedCountStore.takeRows). The rail does no read of its own unless the payload did not carry the rows. Under StrictMode an effect re-run finds the hand-off already spent, so each card caches its answer per question (useSummaryRows).Header region (#35679's fence). After #35679 merged, I made two small edits there, and the coordinator approved both (claim amendment 7028805451):
embedded.The strip's move to Overview needed nothing in the header region.
Size. 66 files, +3315 / −1283 (about 4.6k lines). About two thirds of that is tests (3,046 lines of test and e2e changes). The 3,000-line split was lifted for this one PR.
Tests
New pins
plugin-detail/src/__tests__/RecordTabRow.widthOnly-35595.test.tsx: the width-only fold, the muted empty tab, the 审批 dot, every tab at first paint with no moves (MutationObserver), and a refused count.plugin-detail/src/synth/__tests__/recordTabRow.widthOnly-35595.test.ts: the layout rule. The counts never decide a slot (CONTROL), and the partition is retired from the module.plugin-detail/src/__tests__/RecordPageColumns.readerArrangement-35595.test.tsx: the stored arrangement still orders the tabs, and the reader move/hide controls are retired.plugin-detail/src/__tests__/DetailView.approvalBandOnce-35484.test.tsx: two details bodies draw one band.app-shell/.../RecordDetailView.fallbackRecordTabs-35595.test.ts: approvals and attachments become tabs of the first strip.components/src/__tests__/page-tabs-one-table-one-count-35595.test.tsx: a merged tab carries no count; CONTROL, a one-table tab does.app-shell/.../RecordDetailView.recordOpenRequests-12701.test.tsx, new describe for record page: an authored page with two details nodes draws the approval-lock band in each #35484: an authored page with two details nodes shows 'Locked for approval' once, with one recall lever; CONTROL, the one-body page.app-shell/.../RecordDetailView.approvalDeclaredActions.test.tsx: the tag opens the 审批 tab.ui/e2e/record-tabs-rail-35595.spec.ts(Playwright, Chromium, zh-CN), each case with a CONTROL:Migrated and retired tests
Retired (#28469 records-first partition, the shared Related tab's card stack):
plugin-detail/src/__tests__/RecordTabRow.recordsFirst-28469.test.tsx, replaced byRecordTabRow.widthOnly-35595plugin-detail/src/synth/__tests__/recordTabRow-28469.test.ts, replaced byrecordTabRow.widthOnly-35595plugin-detail/src/__tests__/RelatedCardStack-27055.test.tsx(RelatedCardStack is no longer drawn on the page)Migrated (tabs instead of the Related tab, rail cards instead of the right-column stack,
?related=instead of?tab=):RecordPageColumns.test.tsx(the 默认记录页:右栏里「相关」排在「动态」之前,动态放最后 #34590 rail-order tests, now the 记录页概览右栏:只在概览里,是各页签的摘要卡(审批、附件、最近动态、其他相关),不显示空的子表 #35596 order),RecordPageColumns.switches-27052,RecordPageColumns.tabRow-27524,RecordTabRow-27524,RecordTimelinePanel.chatterInset-34676,synth/buildDefaultPageSchema{,.bodyTables-27055,.relatedListFilter-4664,.strictPayload},synth/recordPageColumns{,.switches-27052}RecordDetailView.*: harness, accessibleNames-12625, activityMapIdentity-5878, activityUnmappedType-5896, childWriteRefreshesParent-12244, feedLoadFailure-29188, feedLoading, feedRecordScope, panelToggles-27052, recordOpenOneRequest-28470 (its bare-id ablation is retired with a comment), recordOpenRequests-12701, recordOpenWaves-13010, recordPageTiers-26678, relatedBadgeArity-8882, relatedListFilter-4664, timelineCount-28737, topBar-27524page-node-visibility-fail-closed-13299,page-tabs-count-visible-when-12987,page-tabs-probe-route-id-13010Runs
All runs went through
scripts/pm/os-verify-lock.sh.After merging origin/main up to c321914 (the tree of head 7557c03; the later merge of ca4ec2a touched only
ui/packages/auth):vitest run packages/plugin-detail/: 391 files passed / 1 skipped, 3563 tests passed / 18 skipped, VERDICT command-exit 0.vitest run packages/app-shell/src/views/RecordDetailView packages/app-shell/src/views/__tests__/RecordAttachmentsPanel packages/components/src/__tests__/page- packages/i18n/: 266 files, 3354 tests passed / 13 skipped, VERDICT command-exit 0.vitest run packages/app-shell/src/utils … ObjectFieldInspector.relatedList-27054 RecordDetailView.harness(after the feat(spec, ui): master_detail children are overview body tables by default #35691 merge): 61 files, 990 tests passed. These failed once against a stalepackages/specdist and passed after a rebuild.Other runs:
vitest run scripts/: 171 files, 5092 tests passed, VERDICT command-exit 0.record-tabs-rail-35595.spec.ts: 5 passed.--filter '@object-ui/app-shell^...' build: all four Done, VERDICT command-exit 0.Ablations (each restored with git checkout HEAD; blob equals HEAD and git diff HEAD is empty)
ApprovalBandOnceScopedropped from RecordDetailView: the two-body test red, its CONTROL green), merged-tab no count (the wholeidx < 0guard), approval tag.Acceptance notes
RelatedListEmptyFold, drawn throughRelatedCardStackin the shared Related tab, not from the rail. Both are gone from the page, and RelatedCardStack and RecordTimelinePanel are now dead code on the page.record-reference-rail.tsx:783lives underplugin-detail/src/renderers.embeddedtoo, so it also loses its rail.expandis no longer read by the rail.relatedListspec prose ("shared Related tab") has drifted.packages/specis outside this PR's fence, so it is left for a spec-docs follow-up.KNOWN_LABEL_KEYSline in containers.tsx is outside the tabs-container fence and was not touched.RECORD_HIGHLIGHTS_MAX(6), not 4. Moving the strip into Overview does not change which fields the body omits, so the lint still holds as written.claude/issue-35599-record-edit-save).overlap-checkexit 1, one file. One hunk collides inRecordDetailView.tsx, on the authored-pageSchemaRendererline: this PR wraps it inApprovalBandOnceScopeand feedsfallbackTabs.page; 记录页编辑:主记录的字段和主从子表的行一起进入编辑状态,一次保存、同一个事务 #35599 feedslayoutPage. Whichever lands second resolves by passinglayoutPageintowithFallbackRecordTabs(and aspage:in its laid-out branch). My side of that hunk is three lines.Verification
Two-minute check: open a record that has several related lists on a 1280 × 800 window. Expect:
Read first:
ui/packages/plugin-detail/src/RecordSummaryRail.tsx:useSummaryRowsand the payload hand-off, where a missed hand-off becomes an extra read.ui/packages/plugin-detail/src/RecordPageColumns.tsx: the tab list build and the Overview-only strip.ui/packages/app-shell/src/views/RecordDetailView.tsx:fallbackTabs, the approval tag click, and the!embeddedswitch.Gates on head 7557c03: the 49 families
dispatch-gates.mjs --commandsderives were all run locally, and every one exited 0 (--ran: 49 derived, 49 run, 0 NOT-MEASURED, 0 UNRUN).check-platform-checklist --changed-from origin/mainpassed (7 anchors judged, 0 lost). type-check for plugin-detail, components, i18n and app-shell passed after a closure rebuild. Playwright passed 5/5. The wide run belongs to CI.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CbSphdunq2aJq7ktuY