Skip to content

Master-detail form: a placed line table's row editor nests a form inside a form, and a line refusal can sit in an unopened tab #36019

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Follow-up from PR #36009 (#35889 S2, under epic #35590), filed by the seat from two nits in that PR's reviews. The PR is with the maintainer for its Tier H approval, so these stay off its head.

What a user or developer sees

  1. Nested form (N2 of the L2 record on fix(ui): the entry form draws a group-placed master-detail table at its field group #36009). When a parent field group places a line table in the create or edit form, opening a line's row editor renders the editor's own form inside the slot's wrapper form. React logs "form cannot be a descendant of form" in development. Behaviour is correct today: the editor's inputs belong to its own form, and a pin checks that. But the markup is invalid, and the warning is noise in every dev console.
  2. Line refusal in an unopened tab (N3 of the L2 record, also L1-c's nit). In a tabbed form, the placed lines live in their own tab. A line-level validation failure on Save does not mark that tab the way an invalid header field marks its own, so the user may not see why Save was refused.

To do

  1. Nested form: the S2 thread has a measured patch at /mnt/project-files/build-seat1/35889/n2-expanded-editor-nesting.patch (2 files, +49/−6). The row editor's placement draws no wrapper (ownsForm), because it is already a form. A new pin opens a row editor in a placed slot and asserts that its inputs are owned by its own form and that no nesting warning is logged. The pin fails on 84dc199e27 and passes with the fix. Re-measure on main after fix(ui): the entry form draws a group-placed master-detail table at its field group #36009 merges.
  2. Tab marker: a line refusal marks the tab that holds the placed table, with the same treatment as a header-field error in TabbedForm.

Acceptance

  • No nesting warning when a row editor is opened inside a placed slot, pinned.
  • In a tabbed form, Save refused on a line marks the lines tab, pinned.

Blocked-by: #36009

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 21, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · when a parent field group places a line table in the form, the row editor renders a form inside a form (invalid markup, a dev-console warning; behaviour correct), and in a tabbed form a line-level refusal can sit in an unopened tab where the user does not see it; follow-up of PR #36009, topic #35590 → p2 as filed (the hidden refusal is a UX problem) · size S.

  3. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T12:15Z · area b1-DB (p2 follow-up from #36009, epic #35590).
    Area: b1-DB
    Session: session_01L6bhgW85kwjGaz7HqsmEuv (the b1-DB area thread)
    Account: os-sales
    Branch: claude/issue-36019-placed-lines-form
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: the row editor's placement in a placed line slot and the tab marker in TabbedForm (the files the S2 patch /mnt/project-files/build-seat1/35889/n2-expanded-editor-nesting.patch names, re-measured on main), their tests, and a patch changeset.
    Container & model: S, area sub-agent, model: opus, effort: medium
    Clause-②: no (no export, prop or i18n key changes expected; the area re-reads it on the final diff)
    Metadata-protocol: none
    Premise (seat, from the card): #36009 has merged, so the block is gone. Item 1 is a measured patch to re-apply on main; item 2 is new. The area reads both on main first and reports if either no longer holds.
    Basis: card #36019; N2/N3 of the declaration record on #36009.
    Scope, the seat's reading: the row editor in a placed slot draws no wrapper form, pinned with no nesting warning; a line refusal on Save marks the tab that holds the placed lines, with the same treatment a header-field error gets, pinned.
    Resume-from: none
    Fold-or-serial: serial; no fold. #36039 (#36023 S5, the form's line-item grid cells) is open and held; overlap-check.mjs runs against it and #36054 before each push, and the second to land merges main. L1 at L1-a. The PR carries Fixes #36019.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  5. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim amendment · 2026-11-21T13:06Z · #36019, claim 7062447993, PR #36088

    File surface, amended: the tab marker lives in the components form renderer (erroredFieldTabs in ui/packages/components/src/renderers/form/form.tsx), not in TabbedForm, so the surface adds ui/packages/components/src/renderers/form/form.tsx and ui/packages/plugin-form/src/formSlots.ts, with their tests. The batch refusal is recorded in FormSlotStore, TabbedForm subscribes, and the renderer marks the slot's tab with the same style as a header-field error. This route keeps Clause-②: no, since marking through TabbedForm alone would need a new exported prop on FormFieldTab.
    Scope, the seat's reading: a refused line marks its tab, which is the card's acceptance line. Switching to that tab and focusing it, as a header field does, is not in this PR; it is a small follow-up if wanted. The area's code-read note (a batch refusal may also set the error on a header input that shares a line field's name, not reproduced) is named in the PR body's acceptance notes and is not owed here.
    Everything else in the claim stands.

  6. added a commit that references this issue on Nov 22, 2026
    baf2678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions