Skip to content

fix(form): new master-detail form lines start on the child's defaults and skip an untouched line with a notice (#35940) - #35984

Merged
objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/project-thread-c6vkj1
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/project-thread-c6vkj1

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #35940

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户在主对象的新建/编辑表单里点「添加明细」,新行直接带上子对象的默认值(如状态「已提交」),点保存之前必填格不再一出来就标红;记录页编辑态同样如此。
  • 属于「记录详情页重做」专题的衍生问题:主表单和记录页的新增明细行行为原本不一致,这次对齐。
  • 加了一行却一个格都没动,保存照常成功,不会写入这行,并提示「1 行空白明细未保存」(按你选的「跳过并提示未保存」);这是纯前端行为,回退本 PR 即恢复原样。
  • 要你做什么:无。

What changes

On a parent object's create / edit form (MasterDetailForm → LineItemsField), a new detail line now behaves the way the record page's edit state already does (#35937):

  • Starts on the child's defaults. MasterDetailForm builds each child's static defaults with schemaDefaultValues (the values a create form of the child seeds) and passes them as newRowValues. A default the server resolves at insert (NOW(), CEL) is left to the server.
  • Not red before a save is tried. newRowRequiredShown is false until a save of the form is tried; a stored line is flagged as before.
  • Seeding context. Both the form and RecordBodyTableEditor now read the defaults with the session facts ObjectForm threads (currentUserId, homeCurrency, homeTimeZone), so a field defaulted to the acting user starts on that user. The editor's childSchema cast is gone (rider 1 and 2 of comment 7051917540).
  • A line added and left untouched (ruling 7056413638, 「跳过并提示未保存」). A line Add started on its defaults that nobody edited is skipped at save (as before), and the save now says so: form.lineItems.untouchedNotSaved ("1 blank line was not saved" / "N blank lines were not saved"), on the form (also when the host supplies onSuccess) and on the record page's edit state. Such a line is never red, before or after a refused save (GridField: isUntouchedNewRow ⇒ the row waits). Once the user edits any cell, or applies the line from the row editor, it is input: saved and flagged like any other new line. On an edit form that stays open, the skipped line leaves with the save. A line typed into and then cleared stays blank and is skipped without the notice. The count is of marked lines only. A line Enter appends on the last line (fix(fields): the line grid draws no blank entry row beside Add, and its column headers show each field's help #35998) starts and is marked the same way.
  • Live spec in CI (rider 4). record-page-polish-35745.spec.ts joins test:e2e:live:ci; its "not stored" check asks the server with $filter on expense_report, and it now asserts the notice.
  • Pack key in all 11 built-in locales (each locale's plural set) plus the formChrome.ts defaults rows.
Read first (risk order) and the two-minute check
  1. ui/packages/plugin-form/src/MasterDetailForm.tsx: the saveTried flips (set in handleSave and submitViaBatch, cleared in handleSaved), the untouchedSkippedRef count in sendBatch, and the edit-mode post-save filter((r) => !isUntouchedNewRow(r)).
  2. ui/packages/fields/src/widgets/GridField.tsx: newRowWaits now also holds for a marked row.
  3. ui/packages/app-shell/src/views/recordEditState.tsx: the notice after finish() on both the no-op and success paths.

Two-minute check: pnpm --dir ui exec vitest run packages/plugin-form/src/MasterDetailForm.test.tsx → 17 passed, including the "ruling 7056413638" block.

Tests

  • MasterDetailForm.test.tsx: new describe "a new line starts on the child's defaults and waits to read red": defaults shown and red only after the try; CONTROL stored line flagged at once; acting user written; Add then row-editor Apply is written. Nested "ruling 7056413638": create skip + notice with a host onSuccess; a refused save flags the edited row, not the untouched one; edit mode drops the skipped line after save.
  • RecordBodyTableEditor.seedContext-35940.test.tsx (new): acting user seeded; CONTROL with no known user the field starts empty.
  • GridField.test.tsx: a marked row is never red; its first edit makes it input.
  • RecordDetailView.harness.test.tsx: the page notice plus a parent-update-only batch; CONTROL no notice.
Ablations (each applied on disk to the committed head with scripts/ablation-replace.mjs, file restored after)
Ablation Result
GridField isUntouchedNewRow term removed GridField 1 failed; MasterDetailForm 1 failed
newRowRequiredShown prop deleted (MDF) 1 failed
newRowValues prop deleted (MDF) 6 failed
MDF seed context removed 1 failed
RBE seed context removed 1 failed
row-editor Apply keeps the untouched mark 1 failed
MDF notice removed 2 failed
MDF edit-mode drop removed 1 failed
page notice removed 1 failed

A form-mode Add seed (row editor) ablated stayed green: the row editor's ObjectForm already seeds defaults through its own create detection, so that code was removed (96501c2) rather than kept untested.

Acceptance notes

Verification

Post-merge on b08c7f5: vitest run MasterDetailForm, GridField, RecordBodyTableEditor*, RecordDetailView.harness → Test Files 5 passed, Tests 173 passed; GridField alone 71 passed with the Enter-append pin; @object-ui/fields and @object-ui/plugin-form type-check exit 0 (closure rebuilt); check:nul-bytes, check:i18n-keys exit 0. The live spec's new row reading is left to CI's Live E2E UI on this head.

Earlier readings, all on head e642739:

  • CI: 46 check runs success, 13 skipped by their own rules, 0 failed.
  • Unit tests under the verify lock: vitest run packages/fields packages/i18n packages/plugin-form → Test Files 655 passed | 1 skipped, Tests 9356 passed | 21 skipped; vitest run packages/app-shell/src/views → Test Files 1575 passed, Tests 14926 passed | 1 skipped. Declared narrowing: app-shell outside src/views was left to CI (one run of all four packages passed 40 minutes on this 4-core box and was stopped).
  • Type-check: @object-ui/fields, @object-ui/i18n, @object-ui/plugin-form, @object-ui/app-shell (after building its closure) all exit 0.
  • Derived gates: dispatch-gates --ran → 56 derived, 56 run, 0 NOT-MEASURED, 0 UNRUN, every exit 0. check:type-check-debt first queue-timed out (exit 3, not measured) and was re-run under the lock: OK, 0 raw tsc errors above the ledger. ui check:i18n-keys, check:i18n-drift, check:i18n-dead-keys exit 0.
Real browser on the live stack (workspace showcase backend :4010 + built console preview)
  • playwright test --config=playwright.live.config.ts record-page-polish-35745.spec.ts → 1 passed (5.8s).
  • Create form, showcase Expense Report: Add line → line 1 reads Category "Other", Line Status "Submitted"; 0 cells flagged (line-items-invalid* count 0). Create → toast "1 blank line was not saved" beside the created toast; the server holds the report and 0 lines for it ($filter on expense_report).
  • Record page edit state: Add line → defaults, 0 flagged; Save → "1 blank line was not saved"; 0 lines stored.
  • Screenshots kept with the seat's evidence for this card.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgWYi6WWWnJAmc7Jtpu

…or's seed context (#35940)

Claude-Session: https://claude.ai/code/session_01L6bhgWYi6WWWnJAmc7Jtpu
Co-authored-by: Claude <noreply@anthropic.com>
…r red, on the form and the record page (#35940)

Claude-Session: https://claude.ai/code/session_01L6bhgWYi6WWWnJAmc7Jtpu
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

  • 父对象的新建/编辑表单里,明细表新加的一行现在会先填好子对象的默认值,保存前不会提前标红。
  • 按你的裁决,加了却一个格子都没动的行不保存,保存后会提示「N 行空白明细未保存」。这在表单和记录页上都一样,而且这种行永远不标红。
  • 默认值也带上了当前用户、组织币种和时区。
  • 结论:通过。
  • 要你做什么:现在不需要。

席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head e642739c3d · 2026-11-21T05:34Z

Read at e642739c3d: 24 files, +537/−21. The face is Clause-②: no, Metadata-protocol: none. No contract face and not Tier H, so no L2 is owed.

Checked and fine

  • Shape. Draft, base main. Fixes #35940 is right. The card's acceptance line is met: a new line shows the child's defaults with no red frame, and a save with an edited line whose required cell has no default flags that cell and does not submit. Both points the card left to be decided together are settled: the seeding context, and the skip ruled by 7056413638 「跳过并提示未保存」.
  • The ruling, item by item:
    • "Not saved." The create and edit batches both drop a line through isBlankRow, which reads the UNTOUCHED_NEW_ROW mark (masterDetailTx.ts:130, :157).
    • "Notice after the save." On the form, sendBatch counts the marked lines of every relationship entry before the batch, and handleSaved says form.lineItems.untouchedNotSaved only after a save lands, even when a host owns the success toast. On the record page, recordEditState counts across the tables and says it after finish(), including when the save had nothing else to write. A refused save says nothing, and the count is recomputed on the next try.
    • "Never red." GridField's newRowWaits now also holds for any marked line, whatever newRowRequiredShown says.
    • "Both places alike." The form passes newRowValues and newRowRequiredShown={saveTried}. saveTried is set when a save is tried and cleared in handleSaved. The row editor's Apply takes the mark off (withoutUntouchedMark), and on an edit form a skipped line leaves the rows with the save, as on the record page.
  • Seeding context. RecordBodyTableEditor drops the childSchema cast and seeds nothing until the schema answers. The form and the record page both pass currentUserId, homeCurrency and homeTimeZone, as ObjectForm does.
  • Locales. The key is in all 11 packs with the plural forms each language needs: ar has six forms, ru has few and many. The zh-Hans text {{count}} 行空白明细未保存 is the ruling's wording. formChrome.ts carries the English fallback.
  • Live spec. record-page-polish-35745 is added to test:e2e:live:ci, so CI runs it on every PR from now on. Its "not stored" check reads through $filter and asserts the notice.
  • Evidence. /mnt/project-files/build-seat1/35940/ has screenshots of the form and the page with a new line on its defaults, and the 「1 blank line was not saved」 notice beside the host's 「created」 toast. The body gives the 9 ablations, each red.
  • Changeset. I read it sentence by sentence, and it matches the diff.
  • Gates. At e642739c3d: 48 success, 15 expected skip, 0 failed, 0 pending, with the floor checks and Live E2E UI green. The local runs under the verify lock are in the body: fields, i18n and plugin-form 9356 passed, and app-shell src/views 14926 passed, with app-shell outside src/views left to CI as a declared narrowing. Type checks exit 0, and dispatch-gates --ran shows 56/56.

Nit (no re-read)

  1. The branch's base is before feat(plugin-detail): the default record page drops the stage bar and key-field strip; the stage moves from the header tag #35938, so the evidence screenshots still show a stage path on the record page. CI tests the merge ref, and feat(plugin-detail): the default record page drops the stage bar and key-field strip; the stage moves from the header tag #35938 touched RecordDetailView.tsx elsewhere (this PR adds one prop line), so nothing is owed unless main moves into a conflict.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

  • 只是合入最新 main,没有冲突,这个 PR 自己的改动一行没变。CI 全绿,L1 通过。
  • 要你做什么:现在不需要。

席位核对 — merge delta ACCEPT (L1-c) · repo:objectstack#1 · head 4c0d88d82b · 2026-11-21T06:00Z

This record covers the delta from my ACCEPT 7058011666 at e642739c to 4c0d88d8: one merge of origin/main.

  • Clean merge. git show --remerge-diff shows nothing, so no hand resolution was made. The PR's own diff against main is unchanged: 24 files, +537/−21, at both heads.
  • The earlier nit is closed. The branch now contains feat(plugin-detail): the default record page drops the stage bar and key-field strip; the stage moves from the header tag #35938, so the record page it builds on draws no stage path. The body reports a post-merge run under the verify lock: the RecordDetailView harness 74/74, plus the MDF / GridField / RBE / i18n tests and the three i18n checks, all passing.
  • Gates. At 4c0d88d82b: 46 success, 13 expected skip, 0 failed, 0 pending. mergeable_state is clean and l1-face is CLEAN.

Generated by Claude Code

Resolves the two append conflicts (MasterDetailForm.test.tsx, GridField.test.tsx)
and the @object-ui/fields import union in MasterDetailForm.tsx. Main's #35998
draws no trailing entry line, so this PR's tests, the live record-page spec and
the changeset now read a new line as the one Add (or Enter on the last line)
appends.

Claude-Session: https://claude.ai/code/session_01L6bhgWYi6WWWnJAmc7Jtpu
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

  • 这次是第二次合并主干。主干上另一张卡去掉了明细表末尾那条空白录入行,和本 PR 的测试与一句发布说明冲突了。开发线程按“没有空白行”改了测试和说明,功能代码只合并了一行引用。
  • 用户能看到的行为不变:新加的行带默认值,没改过的空行保存时跳过并提示。在最后一行按回车新加的行也一样,这次补了测试钉住。
  • 要你做什么:现在不需要。

席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head b08c7f5078 · 2026-11-21T06:55Z

Merge-delta read: 4c0d88d8 → b08c7f50, the merge of main through ec243639 (#35998, no blank entry row beside Add), read with git show --remerge-diff b08c7f50. My earlier ACCEPTs at e642739c (7058011666) and 4c0d88d8 (7058323565) cover everything else.

The hand resolution

  • MasterDetailForm.tsx. The @object-ui/fields import is the union of both sides: this PR's isUntouchedNewRow / UNTOUCHED_NEW_ROW plus main's columnHelpByField / ColumnHelp. No other source line was resolved by hand, and GridField.tsx merged cleanly.
  • GridField.test.tsx and MasterDetailForm.test.tsx. Both sides' trailing describe blocks are kept, and the missing closing braces are restored. No case of either side is lost.
  • Tests re-based on "no entry line".
    • addSeededLine now waits for Add, lets the child schema answer, clicks Add, and asserts the line count goes up by one and the new line's cell reads Pending. It still proves the line started on the default.
    • The three row counts drop by one. The edit-mode case now goes through addSeededLine(container, 1).
    • The harness compares the count before and after Add (before + 1) rather than >= 4.
    • The live spec filters out the empty-state row and reads lines.nth(before).
  • New pin. In GridField, a line that Enter appends on the last line starts on newRowValues and is marked UNTOUCHED_NEW_ROW. I read the merged addRow: Add and Enter-append share it, and it adds the mark whenever newRowValues is given, so the changeset's "with Enter on the last line" is true. The one entry line still drawn (a required grid the form refused, hasGhost) materialises through applyPatch as typed input with no mark, which is right. Its flag condition !isGhost cannot hide a cell, because that state exists only after a refused save.
  • Changeset. One clause changed ("typed into the trailing entry line" → "with Enter on the last line"). I read the paragraph again against the merged code.

Gates

At b08c7f5078: 47 success, 15 expected skips, 0 failed, 0 pending, and mergeable_state is clean. l1-face flags one cancelled PR-body guard run (06:33:28Z). A run of the same check passed at 06:33:43Z on the same head, so it is superseded, not a failure. The thread reports 173/173 affected tests and GridField 71/71.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T06:56Z · The #35940 thread's PR, under maintainer ruling 7056413638 (skip and notice): new line rows in a master-detail form get their defaults and marker as described in the body. The thread merged main twice; the second merge (b08c7f50) also re-based this PR's tests, live case and changeset wording on #35998's removal of the blank entry line. L1-c read that merge as a delta and wrote ACCEPT 7058923338 on b08c7f5078 (this head). check-governed-merges --pr 35984 reads NOT governed (+551/−24). landing-k could not answer (no Test Core shard ran in the last green run), so the seat read K by hand: K = 4, under 15, and main since the merge base touches neither translations/ nor skills/. On this head, 47 check-runs are success, 15 are skipped and none failed; one PR-body guards run was cancelled because a newer run on the same head replaced it, and that run succeeded. Mergeable clean. The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #35940.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 06:57
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 32409a9 Nov 21, 2026
63 of 64 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-c6vkj1 branch November 21, 2026 07:20
github-merge-queue Bot pushed a commit that referenced this pull request Nov 21, 2026
…ts field group (#36009)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuFchBCV6Umg5wxjoKhT7QkV)_

repo:objectstack#1 · os-sales · session_01L6bhgXUMw7b8gUmNsyoXHR

Fixes #35889

Slice S2 of #35889 (S1 = #35921, merged as f3c9d42). Claim 7057842463.
Area b1-R2.

## 维护者速读

- **用户看到的变化**:主对象的字段分组指定了主从子表(例如报销单的「Expense
Lines」分组排在「Report」和「Totals」之间)时,新建和编辑表单里这张明细表现在就出现在这个分组的位置,和记录页一致;以前(S1)它总是排在所有字段的最下面。
- **分组导航条**:表单顶部按分组跳转的导航条,现在也在明细表这一站停(例如 Report / Expense Lines /
Totals)。
-
**分页签表单**:明细表在分组的位置单独成一个页签,页签名用分组的名字。**向导表单**:主从向导本来就按简单表单画,跟简单表单一样放到分组位置。
- **不变的**:没有分组指定的子表(表单视图自己写的 subforms)、以及 sections
跟字段分组对不上的表单,明细表照旧在最下面;主记录和明细一次保存、合计在表单底部、展开一行的编辑框跟着明细表走。不改任何元数据写法。
- 本 PR 收尾 #35889(`Fixes`)。

## What changes

A master-detail collection that a field group of the parent places
(`fieldGroups[].relatedList`) is now drawn at that group in the parent's
create and edit forms, where the record page draws it, instead of below
every field of the record.

- **Form slots** (`ui/packages/plugin-form/src/formSlots.ts`, new).
`MasterDetailForm` hands its header `ObjectForm` a runtime-only list of
its collections (package-local hand-off type, not on the
`ObjectFormSchema` authoring face). `placeFormSlots` lays them out among
the form's sections by the record page's rule (`bodyTablePlacement`):
after the sections of the groups declared before the placing group,
before those declared after it; a section that names no declared group
(the ungrouped bucket) counts as after every group. A layout none of
whose sections names a declared group places nothing.
- **Simple form** (`ObjectForm.tsx`): each placed collection becomes a
`form-slot` row in the one field list, between the sections. The form
renderer (`ui/packages/components/src/renderers/form/form.tsx`) draws
that row as an empty full-width element; no new export.
- **The slot's controls are not the header form's**: the slot element
sits inside the header's `<form>`, so `FormSlotPlacement` wraps the
portaled collection in a form of its own (`noValidate`, a disabled
hidden default button, submit prevented). The header's `requestSubmit()`
then validates only its own fields (a line cell's bad input never blocks
Save with a browser bubble), a line button without a `type` (the shared
`Button` sets none) never submits the header, and Enter in a line cell
submits nothing: the lines behave as they did below the form, owned by
no header form. The renderer's reveal of an errored field
(`fieldWrapper`) skips what a host drew into this form's slot rows,
while an editor inside a slot still finds its own fields.
- **Section bar**: a slot row carries its group's (translated) label,
once per group, and the form renderer reports a labelled slot to the
host's section navigation (`FormSectionNavContext`, #34605) between the
headings around it, with the slot element as its anchor. An unlabelled
slot is no stop.
- **Tabbed form** (`TabbedForm.tsx`): a placed collection is a tab of
its own at its group's position, labelled with the group's (translated)
label. A master-detail wizard is already drawn as the simple form
(`ObjectForm`'s master-detail route), so it places the same way.
- **The collection is drawn by `MasterDetailForm`** into the slot
through a portal (`FormSlotPlacement`, a `FormSlotStore` per form in a
ref), so the lines stay out of the header's React tree: a header
keystroke still never re-renders them and they never re-render the
header. The header reports which collections its drawn layout claims
(never while it is loading), so a collection no layout claims stays in
its old place below the fields, and a remounting header (after a create)
does not make the lines jump below and back. An expanded row's editor
opens in the same slot, beside its collection. The header scrape for the
lines' `parent.*` rules skips the slot's inputs. The document totals
stay at the foot of the form.
- **Texts S1 left** ("below the record's fields until the form places it
at the group"): `ObjectFieldGroupSchema.relatedList` describe and jsdoc,
`FieldSchema.relatedList` jsdoc, the `related-list-body-table.ts` header
and its describe pin, the regenerated
`content/docs/references/data/object.mdx`, the acceptance line of
migration entry `semantic/18.master-detail-related-list-tab-by-default`,
and S1's changeset line. **ADR-0035**: one add-only note after the third
note; S1's sentences are left as written (the note says which one it
supersedes).
- `object.form.ts`'s group help ("The parent's create and edit forms
inline the table too …") makes no position claim, so it is unchanged and
its bundles are not regenerated.

## Why

Card #35889, acceptance line 2:
「同一个对象,加一个指向这张子表的分组并排在第二位:记录页字段区的第二个分组位置出现这张表;新建、编辑表单同一位置出现;页签里仍有它。」 S1
delivered the record page half; this delivers the form half, as agreed
in the split.

## Verification

Head 97afed5: main merged in after #35984 landed (three keep-both
hunks in `MasterDetailForm.tsx`, nothing else). The reviews below were
read at 84dc199. On the merged tree, `tsc` in plugin-form is clean and
the plugin-form + form-renderer suites pass (332 files, 3354 passed / 18
skipped).

- **Form ownership (L1-c should-fix)**: a DOM pin asserts every control
in the slot has a form other than the header's and clicking each line
button fires no header `submit` (red without the wrapper);
`form-invalid-scroll.test.tsx` pins that the reveal of an errored field
lands on the form's own field, not a same-named field drawn into a slot
(red without the filter). Real browser (`owner-check.cjs`): 12 slot
controls, 0 owned by the header; Enter in a cell and Add line make no
header submit and no write; with letters in a line's Amount cell
(`validity.badInput`), Create reaches the app's own check ("Amount is
required", bad cells marked) with no browser bubble. Suites after the
fix: 331 files, 3343 passed / 18 skipped; `tsc` clean in plugin-form and
components.
- **New pins (13)**: `formSlots.test.ts` (placement order, a group
declared last, entry reading, nothing placed, slot store),
`MasterDetailForm.groupPlacement-35889.test.tsx` (simple form between
the groups around its group, an unplaced collection below the form,
placed last, edit mode with loaded lines at the group and drawn once,
save batch, tabbed form tab order with the collection in its tab), and
one case in `form-section-nav-34605.test.tsx` (a labelled slot is a
section-bar stop between the headings, an unlabelled one is not).
- **Ablation**: dropping the placement (the header claims nothing) turns
4 of the DOM pins red; dropping the slot from the section-bar report
turns the nav pin red. Restored, green.
- **Suites**: `vitest run packages/plugin-form
packages/components/src/renderers/form` 331 files, 3335 passed / 18
skipped; after merging main, `FormSectionNav` (#35988) + `ModalForm` +
the new pins 8 files / 63 passed. `packages/spec` tests green;
`check:generated` clean after the object.mdx regeneration.
- **Static**: `tsc --noEmit` clean in plugin-form and components; eslint
on the changed files 0 errors.
- **Browser** (real Console on the showcase expense report, New form;
light and dark at 1280 px, light at 375 px):
- default form: Report section, then the Expense Lines grid inside the
form;
- with a temporary, uncommitted Totals field: Report, Expense Lines,
Totals in that order, and the section bar reads Report / Expense Lines /
Totals;
- temporary tabbed form view: tabs Report / Expense Lines / Totals, the
grid in the Expense Lines tab;
  - temporary wizard form view: drawn as the simple form, same order.
  All temporary edits were reverted before commit.

Clause-②: no
Metadata-protocol: none

## DELIBERATE CORRECTION (pending release note)

`Check Changeset` is red by design: this PR rewrites one line of a
pending release note it did not add, because the behaviour that line
describes is the behaviour this PR changes. Restoring it would republish
a false sentence.

- Note: `.changeset/35889-master-detail-tab-by-default.md` (S1, #35921,
unreleased).
- Before: "In the entry form a placed table still sits below the
record's fields, where `inlineEdit` tables sit today. Moving it to its
group's place in the form is a follow-up."
- After: "In the entry form a placed table sits at its group's place
too: between the sections of the groups around it, or in a tab of its
own (labelled with the group) in a tabbed form. A form whose sections
name no field group keeps it below the record's fields."

No other line of that note changes. The seat confirms this through its
same-head contract-review record (landing-operations.md).

## Follow-ups (not in this PR)

- `bodyTablePlacement` (plugin-detail) and `placeFormSlots`
(plugin-form) now spell the same ordering rule twice; a shared pure
helper would need a new export (spec or a shared ui package), so it is
left as a candidate card rather than widening this PR.
- A form section that references the placing group itself (`sections: [{
group: 'lines' }]`) still resolves to nothing (the group holds no
fields); unchanged here.
- After a jump, the section bar's brief highlight
(`data-section-jumped`, #35988) styles heading rows only, so a jump to
the table scrolls to it without the flash.
- Neighbours: #35984 also edits `MasterDetailForm.tsx` (textual
conflict, whichever lands second merges); #35923 edits `docs/adr/0035`.

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes.
- [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: its generated artifacts are
regenerated and committed.
- [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.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01L6bhgXUMw7b8gUmNsyoXHR

<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgXUMw7b8gUmNsyoXHR -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parent create/edit form: new detail-table rows should prefill the child's defaults and not flag required cells before save (as the record page now does)

2 participants