Repository navigation
feat(spec, ui): master_detail children are overview body tables by default - #35691
Conversation
… is a body table The 2026-10-28 amendment's clause (1) and ruling B on the record-page v3 card required inlineEdit; the maintainer's words on the record-page redo card drop that requirement. Section 3 (the write side) is unchanged. Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
isBodyTableRelationship no longer requires inlineEdit; the field-group refusal sentence and the relatedList descriptions follow. Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
…ns, server totals, show all Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
Authored pages give a master_detail list the body treatment (authoredBodyTableIds); side-list test fixtures that relied on the old default declare relatedList: true; a checklist item and the changeset. Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
…; collection-time imports Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 11 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 4 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 6539ce3c6c5b6c550a1d9079b6616afd0da0126e && git checkout 6539ce3c6c5b6c550a1d9079b6616afd0da0126e
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin d44b5e3daa828f7402c182770d0c025e537ed726 af275005b9f3e440c75ebcd4ee2f509eb2d8fecd && git checkout -B drift-repro d44b5e3daa828f7402c182770d0c025e537ed726 && git merge --no-ff af275005b9f3e440c75ebcd4ee2f509eb2d8fecd
node scripts/docs-audit/affected-docs.mjs --json d44b5e3daa828f7402c182770d0c025e537ed726
|
…st: true Since the body-table predicate widened, a plain master_detail FK is a body table by default, so the refusal's side card is the same FK with relatedList: true. Fixes the Test Core (6/10) failure on this PR. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a: ACCEPT, one text-only item · head The predicate change. Clause-② yes (widening): holds, and no narrowing. At
Existing apps: disclosed. Every parent whose Totals: server-owned, as ADR-0035 binds. Server totals come from the parent's ADR. The amendment block is add-only. The one removed line is the Status line, which gains an R1 (text only, no push, no fresh L1): claim amendment for the files outside claim 7023261217's surface.
Nit (for the L2). The Recommended before the human merge (not an L1 item). The A4 browser reading was not measured. This changes the face of every record page with Routing. Clause-② yes (widening) on |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: PR #35691, card #35597. Read: the card body and its four comments (triage, claim, section notice 7023388416, dev report), the PR body, the 29-file list, the net diff against ① Derived judgments
② Semver levelThe kind is The level follows the kind: at least The Clause-② line reads ③ Boundary flagsDev deviations, each answered:
Questions put to this review:
Escalated to the maintainer's merge read:
④ Design judgmentS1 (should-fix) — N1 (nit) — N2 (nit) — N3 (nit) — the same note cites "§3" for "Only N4 (nit) — By file:
No must-fix. One should-fix, S1, open on this head. Implemented-by: VERDICT: PASS |
…s total only on the engine's key With summaryOperations.relationshipField absent the engine sums through the child's FIRST lookup / master_detail field referencing the parent (ObjectQL.buildSummaryIndex). A body table on any other key to the same parent now asks the server aggregate instead of drawing that key's stored roll-up. Pinned with a two-key child; the single-key fixture names its key. Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
…ts section by name A field group's relatedList still places a body table among the field sections, and with no field section the details node leads. The write-side rule is cited by its section, Decision → Derivation rules, not a number. Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
true = auxiliary panel; absent = 'primary' (a body table) on a master_detail field, an auxiliary panel on a lookup field; false = hidden; 'primary' = a body table. Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
The describe now states true, absent (by field type), false and 'primary' separately; the pin follows it and refuses the old merged true/absent cell. Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ Contract L2 rework round, delta report. Head
Tests on
Gates: 112 families derived for this round's files, all reconciled with
The PR body was not touched. |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewVERDICT: PASS Served-tier: This is a DELTA record for PR #35691 (card #35597). It covers ① Derived judgments
② Semver levelUnchanged. The changeset is not in the range. A describe rewording and a UI fix add no protocol fact, so the kind stays ③ Boundary flags
④ Design judgmentS1: closed
N1: closed. The describe now states each value by field type: true is an auxiliary panel; absent is N2: closed. The note now says a field group's N3: closed. "§3" is replaced by "(Decision → Derivation rules)", which is where the sentence sits. N4: accepted as it stands. The figure is the whole list's total, which is what card rule 5 asks for and what the label "Total" says. Saying "whole list" beside an active chip needs a new i18n key, and the order rules new keys out. No follow-up is owed unless the maintainer wants a chip-scoped total. The ADR edit stays a note. It touches only the body of the #35597 amendment note: one parenthetical that restates the field-group placement #27069 already decided and the no-section order the code already had, and one citation by name. The status line, the form-side rule and every other paragraph are byte-identical to the earlier head. Nothing is decided beyond the stated supersession of ruling B on #27055 and of clause (1) of the #27069 amendment. No must-fix, no should-fix. Implemented-by: |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ 维护者速读
席位核对 — ACCEPT · repo:objectstack#5 · head
|
…merged (objectstack-ai#36273) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XC63go34oEMBFaBgqpoDC8N)_ Fixes objectstack-ai#35701 Fixes objectstack-ai#36211 Clause-②: no Metadata-protocol: semantic Skills-docs: none — no skill teaches either entry's text; `skills/objectstack-ui/rules/record-page.md` §4 already says a `kind: 'full'` page is drawn on the desktop full page only, and no skill names the field-group refusal's shapes ## 维护者速读 - 用户能看到什么变化:作者运行升级命令时看到的两条升级说明改成与现行规则一致;界面和检查都不变。 - 为什么做:主从子表与字段分组的规则、以及完整记录页只在桌面完整页按原样显示的规则都已合入,两条已发布的升级说明还写着旧说法。 - 出错会怎样:只改说明文字,不改任何检查、拒绝或数据,可直接撤回。 - 要你做什么:无。第三张卡(objectstack-ai#35846,检查清单里主从子表那一项)不在本 PR:它已被 objectstack-ai#36188 的 PR objectstack-ai#36284 取代并关闭,那条清单项在那边按新规则重写。 Seat: `repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797`, area a4-I. Card 35846 was folded into this dispatch and is **left out of this PR on purpose**: see Acceptance notes. ## Read first 1. `packages/spec/src/migrations/entries/semantic/18.field-group-related-list-side-card-refused.ts`: the riskiest hunk is the `reason` parenthetical and the "Ruling B keeps the FK's declared relatedList authoritative" sentence. Check them against `isGroupPlaceableRelationship` / `fieldGroupBodyTableRefusal` in `packages/spec/src/data/related-list-body-table.ts`. 2. `packages/spec/src/migrations/entries/semantic/18.page-slots-tabs-retired.ts`: the `replacement` tail now reads like `PAGE_SLOTS_TABS_REMEDY` in `packages/spec/src/ui/page.zod.ts`. 3. `packages/spec/liveness/object.json`: one dated sentence was added to the `fieldGroups[].relatedList` note. Two-minute check: `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/ui/page-slots-tabs-retirement.test.ts src/migrations/migrations.test.ts`. Both files should pass. The D3 pin still finds `` `kind: 'full'` `` and no tracker number in any field shown to authors. ## What changes - **`field-group-related-list-side-card-refused`** (card 35701). Since the body-table predicate was widened, a field group may place a `master_detail` FK that declares no `relatedList`, with or without `inlineEdit`, and the group makes it a body table. `isGroupPlaceableRelationship` accepts this shape, and so do the `defineStack` and publish-door refusals. The entry still listed it as refused. Changes: - `surface`: the shape "a plain master_detail with no inlineEdit" is removed from the refused list. - `replacement`: "for an inline-edited master_detail remove an explicit `relatedList: true`" becomes "for a master_detail …". - `reason`: the old predicate in the parenthetical is replaced by the merged one. The text matches the refusal sentence: "`relatedList: 'primary'`, or a master_detail FK that declares no relatedList, which the group makes a body table". - The entry's header comment is corrected the same way. - The `id`, `acceptanceCriteria` and every predicate are unchanged. - **`page-slots-tabs-retired`** (card 36211). The `replacement` tail and the `acceptanceCriteria` now say a `kind: 'full'` page is drawn as authored on the desktop full record page, and that a phone and the side preview draw the standard record page with the composed strip. This matches the remedy and describe as merged in `92e0475e`. The pin file's docblock line says the same. - **Stale notes from 35701, comment only:** - `packages/spec/liveness/field.json`: the `relatedList` evidence now says "absent on a master_detail FK that a parent field group places". - `packages/spec/liveness/object.json`: the `fieldGroups[].relatedList` note gains one dated sentence about the widened placeable set. Verdict unchanged: LIVE. - **Checklist quote (scope addition 7027500679):** in `docs/qa/platform-checklist/areas/records-forms.json`, item `records-forms.related-list-server-pagination` steps[1] quotes the `relatedList` describe. The quote now matches the describe as it stands on `main`. This is the only edit in that file. No other item and no revision changes: it is a correction to a quote, and what the step asks the grader to do is unchanged. - Changeset `.changeset/35701-shipped-text-after-body-tables.md`: `@objectstack/spec` minor. The kind is `semantic`, and per AGENTS.md step 3 a kind other than `none` takes at least minor. PR `92e0475e` used the same level for its describe-only change. `os migrate meta` lists the same entries for the same stacks. `relevantWhen` is keyed on top-level stack keys and is untouched, and the edit is in place: no new entry and no superseding entry. ## Tests <details><summary>Spec unit tests and gates (filled from the local run, see Verification)</summary> At head `483e6f51f` (all under `scripts/pm/os-verify-lock.sh`, VERDICT command-exit 0 each): - `pnpm --filter @objectstack/spec test`: Test Files 869 passed (869), Tests 27877 passed, 1 todo. This includes `src/ui/page-slots-tabs-retirement.test.ts` (the D3 entry pin) and `src/migrations/*.test.ts`. - `pnpm --filter @objectstack/spec typecheck`: exit 0; `registry.ts is current (638 semantic, 307 retired-key, 249 retired-def)`. - `pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2 test/migrate-meta-engine-guidance.test.ts` (the os migrate meta guidance pin), after building the cli closure: Test Files 1 passed, Tests 3 passed. - No ablation: no tested behaviour changed (text only). </details> ## Acceptance notes - **Card 35846 not done (its premise was overtaken).** Its Done-when asks the item to cite "the 2026-11-20 ADR-0035 note". That note was PR 35845, which was closed unmerged by maintainer ruling on 2026-11-20 22:08Z: 「35845 和新规则冲突,直接关闭作废」. The ADR on `main` has no such note. Separately, `f3c9d426f` (2026-11-21) made a plain `master_detail` child a tab by default. It is a body table only where a parent field group places it, and it is then drawn at that group's position. The item `records-forms.master-detail-body-tables` assumes the old default throughout: **Resolved 2026-11-22:** the seat closed objectstack-ai#35846 as superseded by objectstack-ai#36188; PR objectstack-ai#36284 rewrites the item to the objectstack-ai#35921 rule (no citation of PR 35845). - its title says "a table in the record overview by default … never a tab"; - its fixture is `showcase_task.project`, which no `showcase_project` field group names; - clause [2] and the negatives say the list has no tab; - its rule cells read "no relatedList → body". Writing only the new order would leave the item false, so this PR makes no edit to it. The next step is in the report's `open_questions`. - **Scope addition, quote target.** The addition asked for the describe "as merged by objectstack-ai#35691". `f3c9d426f` has since replaced that describe: its "absent = 'primary' on a master_detail field" no longer holds. The quote therefore uses the describe on `main` at `c30ce97c`. Quoting the older text would have added a false statement. - **35701's stale-note list, measured at `c30ce97c`:** - Already current, no edit made (refreshed by the objectstack-ai#35889 / objectstack-ai#35921 work): ObjectFieldInspector (`readRelatedListMode` docblock, now at about line 3058) and the ObjectGroupInspector `RelatedTablePlacement` docblock. The `lint data-model-rules` notes at :292 and :1012 already cite the group rule. - Skipped by order: RecordDetailView (seat 1 is editing it). - Left alone, under `ui/` and outside this claim: `ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts:306` "drawn as authored" (docblock). - **Not touched, by rule:** `packages/lint/CHANGELOG.md` near line 2317 still states the old remedy in a released entry. Package changelogs are release-owned. Correcting a released entry takes its own docs-only PR. - **Remaining wording drift, out of scope:** `field-group-related-list-side-card-refused` still says "side card in the related column". Since the tab row work, a non-body list is a tab with a rail card. The card asked only for the predicate. ## Verification Gate families derived by `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at `483e6f51f`: 92 commands, all run under the lock; `--ran` reconciliation: 92 derived, 92 run, 0 UNRUN. - 87 exited 0 on the first pass, among them `check:spec-changes`, `check:upgrade-guide`, `check:docs` (249 generated files in sync), `check:liveness`, `check:platform-checklist` (16 areas, 436 items OK), `check:doc-authoring`, `check:nul-bytes`, `check:issue-citations`, `check:adr-0087-registration`. - 3 answered PREREQUISITE NOT MET (exit 3 or 1, an unbuilt package) and exited 0 after `pnpm --workspace-concurrency=2 --filter '@objectstack/cli...' build`: `migrate-meta-engine-guidance.test.ts`, `check:doc-formula-expressions`, `check:lean-entry-closure`. - NOT MEASURED: `check:dual-build-cjs-loads`, which needs a full workspace build (105 packages without dist). CI's Lint & Repo Gates runs it. - NOT MEASURED: `check-plugin-teardown-shape.mjs --self-test`, whose positive control is pinned to a commit this shallow clone cannot reach. It is checker health only and cannot judge this diff. - `generated references`: `content/docs/references/**` embeds neither entry (`git grep` finds both ids only in release notes), so nothing was regenerated. The upgrade guide and spec-changes are gitignored projections, checked in memory above. - Overlap: `node scripts/pm/overlap-check.mjs`: VERDICT clean (PRs 36233 and 36223 share `records-forms.json` and merge cleanly). --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797)_ <!-- signed: repo:objectstack#4 · os-project-manager · session_01FEkQ5kDGa1ViantgrfH797 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Fixes #35597
Part of #35590
Clause-②: yes (widening)
Metadata-protocol: semantic
Skills-docs: follow-up owed — skills/objectstack-data/rules/relationships.md (line 368, "Default for a master_detail FK with inlineEdit"), skills/objectstack-ui/evals/record-page.json ("after the first field section")
维护者速读
What changes
The rule (
isBodyTableRelationship, still the one judgement):relatedListinlineEditinlineEditsetfalsetrue'primary'This supersedes two rulings, by id:
master_detail+inlineEdit. Now the relation type decides;inlineEditstays the WRITE side only (ADR-0035 §3, form derivation untouched).relatedLists: ['task', 'event', …], an ordered list of child relationships likehighlightFieldsis of fields; unlisted ones follow the derived order; a name that matches no inbound relationship is refused #27069. Dated amendment note in its own commit, d4364f4 (docs/adr/0035-config-driven-master-detail.md, "Amended (2026-11-19, 主从子表默认放进记录页概览左侧(关键字段下面),始终显示、带合计;判断规则改为按关系类型 #35597; epic 专题:记录详情页重做(头部两行;宽屏时字段在左、页签在右;全部子表各一页签;主从子表默认只是页签,分组指定才进字段区并随主记录一起保存) #35590)"). This makes the PR Tier H.Readers that follow the predicate, measured:
deriveRelatedLists(isPrimary),RecordDetailView(isBody), and the Studio inspectors.ObjectFieldInspectorreads a plain master_detail FK as "primary"; "Show" now writes an explicitrelatedList: true.ObjectGroupInspectornow offers plain master_detail relationships as group placements.fieldGroupBodyTableRefusal, at defineStack and the lint publish door: widened. A field group may now name a plain master_detail child. It still refuses a lookup side list,relatedList: true, andrelatedList: false.Placement (
buildDefaultPageSchema.ts,bodyTablePlacement, the section posted on the card in comment 7023388416):relatedListsorder. That puts it under the header strip's stage bar and key fields.The body-table face (
RelatedList.tsx):useBodyTableTotals). There are two sources:summaryfield that rolls up the same rows (no extra filter, and the list has no own filter), its stored value is used.dataSource.aggregate(child, { aggregations: [sum…], where: parent scope [AND list filter] })call. A record-mode currency amount is grouped by its code field, and it is totalled only when one code comes back.POST /api/v1/data/:object/queryaggregation path. No new endpoint.summaryRow. The client "Totals (this page)" sum is gone. A data source with noaggregatedraws no total.BODY_TABLE_PAGE_SIZE), and the page'spageSizeoverrides it. Past the cap, a "Show all N" button (data-body-table-show-all) replaces the pager and expands in place.data-body-table-open-list) calls the host'sonViewAll. That is the existinguseOpenRecordListpath, so the child list opens under the parent filter.data-body-table-empty-row) holding "No related records found" and a New button. The header's New button is hidden while the table is empty.list.showAll,detail.viewAll,detail.noRelatedRecordsandform.masterDetail.totalare reused.Authored pages (
RecordDetailView.tsx, the ~5099bodyTableIdsline only):authoredBodyTableIds(page, relations), a new export ofderiveRelatedLists.ts, names therecord:related_listnodes an authored page places whose relation is a body table. Those nodes get the body treatment: totals, the empty row, and the cap.Examples that flip (A1):
showcase_task.project,showcase_field_zoo.f_master_detail,showcase_project_membership.teamandshowcase_project_membership.project. None is a comment, attachment or activity association. The CRM opportunity line item and the showcase expense and invoice lines already declaredinlineEdit, so they are unchanged.Tests
Migrated / added / retired tests
Spec and lint:
packages/spec/src/data/related-list-body-table.test.ts: verdict cells moved to the new rule (md with no keys → body; md +inlineEdit: false→ body; md +true→ side; md +false→ none). Added aplainOwnedcontrol; the refusal text was updated.packages/spec/src/stack-related-lists-order.test.ts: a plain md is now accepted. The refusal test now covers md +relatedList: falseand a hidden lookup.packages/lint/src/validate-related-list-refs.test.ts: added a plain-md group control (no finding).ui/packages/plugin-detail:src/__tests__/RelatedList.bodyTable-27055.test.tsx: rewritten against a serveraggregatemock. It covers the server total, the total over ALL rows at a cap of 1 of 3, show-all, ↗, the empty row, no aggregate meaning no total, the stored roll-up versus filtered lists, and the record-mode groupBy.src/synth/__tests__/buildDefaultPageSchema.bodyTables-27055.test.ts: the new order (tables before the sections), plus a no-section case.src/__tests__/RelatedList.parentCurrency-31912.test.tsx: the total now comes from an aggregate mock and is read off the summary row.src/renderers/__tests__/record-related-list.emptyFold-25895.test.tsx: the empty sentence and New button are read off the empty row.src/__tests__/RecordPageColumns.test.tsx(the test only;RecordPageColumns.tsxis untouched): the approval-band fixture places LINES with a field group, so the split it pins still exists.ui/packages/app-shell:src/utils/__tests__/deriveRelatedLists.test.ts: md is nowisPrimary: true. New describe forauthoredBodyTableIds.src/utils/__tests__/deriveRelatedLists.relatedListsOrder-27069.test.ts: a plain md is primary. Added the true / false / 'primary' cells.src/views/metadata-admin/inspectors/ObjectFieldInspector.relatedList-27054.test.tsx:relatedList: true;true;@objectstack/formula/@objectstack/lintimports (check:test-source-alias).src/views/RecordDetailView.harness.test.tsx: new describe "the relation type decides, not inlineEdit" with 3 cases. The 27241 and 27524 side-list fixtures declarerelatedList: true.src/views/RecordDetailView.childWriteRefreshesParent-12244.test.tsx,RecordDetailView.recordPageTiers-26678.test.tsxandRecordDetailView.relatedListFilter-4664.test.tsx: these pin side-list mechanics (tabs, badge probes), so their md fixtures declarerelatedList: true.Local runs at f6595c5 (and the merge 2450e9d before it)
vitest runover the whole package: Test Files 952 passed, Tests 29054 passed | 1 todo.pnpm --filter @objectstack/spec typecheckpassed (VERDICT command-exit 0).vitest run: Test Files 221 passed, Tests 9311 passed.RecordDetailView*,deriveRelatedLists*, the inspectors,PagePreview,AppContent.packagelessRecordRelated-29552): 13 failures after the rule change, all of them side-list fixtures. Migrated as listed above.pnpm --filter @object-ui/plugin-detail type-check+ build: exit 0.pnpm --filter @object-ui/app-shell type-check: exit 0.Acceptance notes
semantic, not the claim's "widened": the vocabulary isadded|narrowed|semantic|none, and this is a changed default reading of an existing key.inlineEditpredicate. Comments only, no behaviour:ObjectFieldInspector.tsx~2977 / ~3006;ObjectGroupInspector;RecordDetailView.tsx~4285 (out of the claimed region);field.json/object.json;Skills-docs:line.records-forms.master-detail-body-tables, carries the live legs.docs/qa/platform-checklist/areas/records-forms.json→records-forms.master-detail-body-tables(rev 1).records-forms.related-list-server-paginationstill holds as written: Contacts is a lookup child.Browser reading (A4)
Built console, headless Chromium (Playwright), 1440x900, deviceScaleFactor 2, light theme, one server at a time on a private port, signed in as the seeded admin. Same data on both sides: the AFTER sqlite file was copied for the BEFORE boot, so record ids match.
d9801038(origin/mainmerge-base of this PR).b4ba2a6d. Commits since then (719ca6f5the two-key roll-up choice, docs, a describe pin; head nowaf275005) do not touch the cases read here: no case below has two keys to the same parent. The AFTER side was not re-shot on the current head.CASE-before.png/CASE-after.png) are in the area folderobjectstack-seat5/area-ux/ux-2/a4-35597/on the project files mount.d9801038)b4ba2a6d)showcase_task.project(Data Platform, 2 tasks)showcase_project_membership.team(Platform, 2)crm_opportunity_line_item.opportunity(3 lines;line_total111,000)total_amount) and ↗. The lock band and Report section follow.Case 4 note: the CRM line item
amountis a currency field with no currency of its own, and the CRM example sets no tenant default. Its cells draw without a symbol ("6,000.00").useBodyTableTotalsdrops a currency column whose currency does not resolve (if (!currency) continue), and it does so before the stored roll-up branch, so the 111,000 the parent already holds is not drawn. Main's client "Totals (this page)" line had the same gate, and neither side draws a total. Not a defect of this PR, but the expected "server total" is not visible on this record. Whether a stored same-rows roll-up should stand without a resolved currency is the area's call.Page errors captured during the runs: none on either side.
Verification
Read first, by risk:
packages/spec/src/data/related-list-body-table.ts: the three-line predicate.ui/packages/plugin-detail/src/RelatedList.tsxuseBodyTableTotals: the stored versus aggregate choice, and the groupBy for record-mode currency.ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.tsbodyTablePlacement: unplaced tables go before the sections.Two-minute check: from
ui/, runpnpm exec vitest run packages/plugin-detail/src/__tests__/RelatedList.bodyTable-27055.test.tsx. Expect every case to pass, including "the total is the server's over EVERY row, not the rows on show".Generated by Claude Code