You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inline line grid: the always-present trailing "ghost" row reads as a broken, undeletable blank line next to "Add line" #35507
In a master-detail New/Edit form with an inline line grid (inlineEdit: 'grid'), GridField always appends an empty entry row. In 18.6.0 this is ui/packages/fields/src/widgets/GridField.tsx, hasGhost / displayRows, around line 1225.
On an existing record with N lines, users see line N+1 with no product, an empty amount, total "—" and an empty date picker. It has no copy or delete actions (they are suppressed by !isGhost). It sits directly above the 「添加行」 button, which does the same job.
Saving ignores the row: the batch carries no operation for it. So it is purely presentational. Business users still report it as a bug — "a blank line I can't delete" — on both our sales order grid and our quote line grid.
Ask
One of the following:
drop the ghost row when an explicit Add button is shown;
render it as a clearly styled "click to add a line" placeholder, not as a data-looking row;
expose a per-field switch (for example inlineGhostRow: false) so an app can keep Add without it.
Today the only way to hide it is allowAdd: false, which also removes Add.
Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · Impeded (the inline line grid always shows a trailing blank row with no actions above "Add line", read by users as a broken, undeletable line) · end users editing master-detail records with inline lines, not every user every time → p2 under the UX rule · reported on 18.6.0 by an outside builder.
Claim: area ux-2 (lease:ux-2, leased by seat 5 at 11-21 03:28Z under Bill 11-21 03:25Z 「你继续处理 ux 非专题下的 p2 任务,并发3」) · 2026-11-21T03:32Z · folded with #35804 into one PR (both in GridField.tsx, per seat 11-21 03:28Z)
Area: ux-2
Session: session_01Utp6CZrgaiMgTJCnswR6jQ
Account: os-bill
Seat: repo:objectstack#5
Branch: claude/issue-35507-grid-ghost-row-header-help
Domain: domain:ui
File surface: ui/packages/fields/src/widgets/GridField.tsx (the trailing ghost row and the column header), its tests, i18n keys only if an existing one cannot serve, and a changeset. ⛔ No packages/spec/** (no new inlineGhostRow switch). Stop and report on any breach.
Clause-②: no
Metadata-protocol: none
Premise: holds on origin/main (GridField.tsxhasGhost / displayRows). The direction is to drop the ghost row whenever the explicit Add button is drawn. Where Add is not drawn the row is unchanged, or it becomes a clearly styled add placeholder if the ghost row is the only way to add a line. No spec key is added.
Serial constraints cleared: none. A live read of all 48 open PRs' files at claim time found none touching GridField.tsx. The last change on main is #35937 (c7174c3: new detail lines start on their defaults), which is read before editing.
Pre-claim deps: none. There is no parent issue.
Prior rulings read: hasGhost, isGhost, ghost, help, fieldPatches → ADR-0029 D8 and ADR-0106 D1 were hit on terms only, and neither binds this. The thread has no ruling.
Review path: L1-a. Approver handoff if Tier H or over 3,000 lines.
{
"issue": 35507,
"status": "done",
"branch": "claude/issue-35507-grid-ghost-row-header-help",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35998",
"head": "d4100395",
"folded_with": [
35507,
35804
],
"session": "session_01Utp6CZrgaiMgTJCnswR6jQ",
"premise_still_valid": true,
"summary": "#35507: GridField no longer draws the always-present blank entry row. Measured on origin/main 9a8bb83d, the ghost row and the Add button were both gated on allowAdd, so the ghost was only ever drawn where Add was drawn. Add-not-drawn decision: nothing to restyle; with allowAdd false there was never a ghost and there still is none (CONTROL pin). An empty grid shows the existing fields.grid.noItemsAddHint. The keyboard path is kept: Add focuses the new line, and Enter in the last line appends a line in the same column. The entry line remains only for an empty required grid the form refused (objectui#3318 a11y channel; the aria sweep stays green). Save batch unchanged. #35804: each column header draws an info icon whose accessible name is the field's help, shown on hover and on focus (Radix tooltip), in both the editable grid and the read-only table. Help source: the child object definition the record form reads (dataSource.getObjectSchema, served with fieldPatches applied and translated), read through fieldHelpText; a new GridField prop columnHelp and helper columnHelpByField, wired in MasterDetailForm, LineItemsPanel and RecordBodyTableEditor. No spec key was added.",
"a1": "Pins red on base 9a8bb83d: 9 failed / 59 passed (the 4 CONTROL pins are green on both trees). Green at d4100395. Ablation 1 (ghost back): 4 red, 3 controls green. Ablation 2 (help off): 5 red, including both MasterDetailForm host cases. Both restored to the HEAD blob 1a5224d841fb with git diff HEAD empty. fieldPatches help: client pin on the served definition in MasterDetailForm.test.tsx, plus the existing server pin packages/rest/src/meta-object-field-patch-i18n.test.ts (patched description served and translated); the browser reading shows a real fieldPatches help.",
"a2": "Showcase --fresh :4371 and console vite :5371, headless Chromium 1280x900 dsf2, INV-1010 edit form. tbody rows 1 (the stored line only, no trailing blank). Help icons on Qty (declared inlineHelpText) and Unit Price (fieldPatches 「内销填含税价,出口填不含税的 FOB 美元价」). The hover tooltip shows the patched text; keyboard focus shows the declared text and activeElement's accessible name equals the help. After Add, focus is on data-cell 1-1. Temporary fixtures reverted. 5 screenshots in a4-35507/.",
"tests": "cd ui && pnpm exec vitest run packages/fields/ packages/plugin-form/ at d4100395: Test Files 549 passed | 1 skipped (550), Tests 7402 passed | 8 skipped (7410), lock VERDICT command-exit 0. type-check of @object-ui/fields and @object-ui/plugin-form, after building the @object-ui/plugin-form^... closure: VERDICT command-exit 0.",
"gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack derived 40 commands at d4100395; all 40 ran with EXIT=0 (captured before any pipe). CI check-runs at report time on d4100395: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (CI/release/engine; ESLint; PM dispatch-gates; docs & code guards; repo & tooling; scoped x3), PR-body guards, Type Check (consumer/debt/source/workspace): in_progress. UI jobs (Lint UI / Type Check UI / Test UI / Build & E2E UI / Live E2E UI) not yet listed. NOT MEASURED locally: lint and whole-workspace type-check, which belong to CI.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"line_budget": "31 files, +540/-121 (661 changed lines) vs the 3000 threshold: under. No skills/** files touched.",
"files_changed": [
"ui/packages/fields/src/widgets/GridField.tsx",
"ui/packages/fields/src/index.tsx",
"ui/packages/plugin-form/src/MasterDetailForm.tsx",
"ui/packages/plugin-form/src/LineItemsPanel.tsx",
"ui/packages/plugin-form/src/RecordBodyTableEditor.tsx",
".changeset/35507-grid-entry-row-header-help.md",
"2 fields test files + 23 plugin-form test files (entry-row readers moved to Add; new pins in GridField.test.tsx and MasterDetailForm.test.tsx)"
],
"help_source": "dataSource.getObjectSchema(childObject), the served child definition the record form reads (fieldPatches applied, help translated server-side), read per field by fieldHelpText (inlineHelpText, else description). Not re-resolved in the grid.",
"add_not_drawn_decision": "On origin/main the ghost row only appeared where Add appeared (both gated on allowAdd). With Add not drawn there was no ghost; this stays unchanged, so no placeholder was needed.",
"deviations": [
"File surface widened beyond the claims (GridField.tsx, tests, i18n, changeset). Added: fields/src/index.tsx (export), the three host files that pass columnHelp, and 23 plugin-form test files that typed into the removed ghost row. Order section 1 ('find the resolved source the form uses') and section 3 ('File surface as the claims say... stop on breach') conflict for #35804: the grid holds no field definition, so the help can only come from the hosts. I followed section 1, kept the host wiring in its own commit (37d197a3), and am naming the conflict here. The seat can supplement the claim surface or drop that commit.",
"Two of those test files exercise ModalForm (discardGuard.test.tsx, __tests__/modalMaximize-34604.test.tsx). Each gained one Add click; ModalForm.tsx itself is untouched.",
"The ghost entry row is still drawn in one state: an empty required grid the form refused. Removing it there would break the objectui#3318 a11y design (only the Add button would remain, and the aria sweep forbids marking it).",
"Enter on the last line now appends a line (a new keyboard behaviour that replaces Enter-into-ghost).",
"The PR body What changes section says 26 plugin-form test files; the measured count is 23 (git diff 9a8bb83d..HEAD). Left for the seat, because a subagent does not PATCH the PR body."
],
"mcp_calls": "0",
"api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/35998/assignees), post-stamped os-dev-report comments on #35507 and #35804 (POST /issues/{n}/comments x2); git push is not a REST write",
"open_questions": [
{
"question": "A master-detail entry whose relationshipField and every column type are authored loads no child schema, so its headers show no help (the same gap lookupAutofill has). Close it?",
"options": [
"A leave as is; the console's inlineColumns path hydrates and shows help",
"B have MasterDetailForm read the separately fetched childSchemasRef into state for help, at the risk of the #1581 header-reset re-render"
],
"recommendation": "A, because the console path (subforms from inlineColumns names) already loads the schema, and B touches a deliberate no-re-render ref."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · observed in the A2 reading: on the INV-1010 (EUR) invoice the line grid's currency cells and totals stack show $ while Total incl. Tax shows €. Not investigated and not filed; noted only."
]
}
Claim amendment · area ux-2 · 2026-11-21T05:38Z · amends claim 7056672909 again (after amendment 7057842671; PR #35998 at d2e4e4f8)
File surface, added: ui/packages/app-shell/src/views/RecordDetailView.harness.test.tsx. This is a +2 line test change. Its recordEditState-35599 cells typed into the removed trailing entry row, and they now press Add first. The expected batch and row-error index are unchanged, and no source file changed. A sweep of the other 26 DOM tests outside fields and plugin-form that read grid cells found no other reader of that row.
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:queue; rationale: area:ux · Bug · Impeded (the inline line grid always shows a trailing blank row with no actions above "Add line", read by users as a broken, undeletable line) · end users editing master-detail records with inline lines, not every user every time → p2 under the UX rule · reported on 18.6.0 by an outside builder.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Claim: area ux-2 (
lease:ux-2, leased by seat 5 at 11-21 03:28Z under Bill 11-21 03:25Z 「你继续处理 ux 非专题下的 p2 任务,并发3」) · 2026-11-21T03:32Z · folded with #35804 into one PR (both inGridField.tsx, per seat 11-21 03:28Z)Area: ux-2
Session:
session_01Utp6CZrgaiMgTJCnswR6jQAccount:
os-billSeat:
repo:objectstack#5Branch:
claude/issue-35507-grid-ghost-row-header-helpDomain:
domain:uiFile surface:
ui/packages/fields/src/widgets/GridField.tsx(the trailing ghost row and the column header), its tests, i18n keys only if an existing one cannot serve, and a changeset. ⛔ Nopackages/spec/**(no newinlineGhostRowswitch). Stop and report on any breach.Clause-②: no
Metadata-protocol: none
Premise: holds on
origin/main(GridField.tsxhasGhost/displayRows). The direction is to drop the ghost row whenever the explicit Add button is drawn. Where Add is not drawn the row is unchanged, or it becomes a clearly styled add placeholder if the ghost row is the only way to add a line. No spec key is added.Serial constraints cleared: none. A live read of all 48 open PRs' files at claim time found none touching
GridField.tsx. The last change on main is #35937 (c7174c3: new detail lines start on their defaults), which is read before editing.Pre-claim deps: none. There is no parent issue.
Prior rulings read: hasGhost, isGhost, ghost, help, fieldPatches → ADR-0029 D8 and ADR-0106 D1 were hit on terms only, and neither binds this. The thread has no ruling.
Review path: L1-a. Approver handoff if Tier H or over 3,000 lines.
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
os-dev-report
{ "issue": 35507, "status": "done", "branch": "claude/issue-35507-grid-ghost-row-header-help", "pr": "https://github.com/objectstack-ai/objectstack/pull/35998", "head": "d4100395", "folded_with": [ 35507, 35804 ], "session": "session_01Utp6CZrgaiMgTJCnswR6jQ", "premise_still_valid": true, "summary": "#35507: GridField no longer draws the always-present blank entry row. Measured on origin/main 9a8bb83d, the ghost row and the Add button were both gated on allowAdd, so the ghost was only ever drawn where Add was drawn. Add-not-drawn decision: nothing to restyle; with allowAdd false there was never a ghost and there still is none (CONTROL pin). An empty grid shows the existing fields.grid.noItemsAddHint. The keyboard path is kept: Add focuses the new line, and Enter in the last line appends a line in the same column. The entry line remains only for an empty required grid the form refused (objectui#3318 a11y channel; the aria sweep stays green). Save batch unchanged. #35804: each column header draws an info icon whose accessible name is the field's help, shown on hover and on focus (Radix tooltip), in both the editable grid and the read-only table. Help source: the child object definition the record form reads (dataSource.getObjectSchema, served with fieldPatches applied and translated), read through fieldHelpText; a new GridField prop columnHelp and helper columnHelpByField, wired in MasterDetailForm, LineItemsPanel and RecordBodyTableEditor. No spec key was added.", "a1": "Pins red on base 9a8bb83d: 9 failed / 59 passed (the 4 CONTROL pins are green on both trees). Green at d4100395. Ablation 1 (ghost back): 4 red, 3 controls green. Ablation 2 (help off): 5 red, including both MasterDetailForm host cases. Both restored to the HEAD blob 1a5224d841fb with git diff HEAD empty. fieldPatches help: client pin on the served definition in MasterDetailForm.test.tsx, plus the existing server pin packages/rest/src/meta-object-field-patch-i18n.test.ts (patched description served and translated); the browser reading shows a real fieldPatches help.", "a2": "Showcase --fresh :4371 and console vite :5371, headless Chromium 1280x900 dsf2, INV-1010 edit form. tbody rows 1 (the stored line only, no trailing blank). Help icons on Qty (declared inlineHelpText) and Unit Price (fieldPatches 「内销填含税价,出口填不含税的 FOB 美元价」). The hover tooltip shows the patched text; keyboard focus shows the declared text and activeElement's accessible name equals the help. After Add, focus is on data-cell 1-1. Temporary fixtures reverted. 5 screenshots in a4-35507/.", "tests": "cd ui && pnpm exec vitest run packages/fields/ packages/plugin-form/ at d4100395: Test Files 549 passed | 1 skipped (550), Tests 7402 passed | 8 skipped (7410), lock VERDICT command-exit 0. type-check of @object-ui/fields and @object-ui/plugin-form, after building the @object-ui/plugin-form^... closure: VERDICT command-exit 0.", "gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack derived 40 commands at d4100395; all 40 ran with EXIT=0 (captured before any pipe). CI check-runs at report time on d4100395: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (CI/release/engine; ESLint; PM dispatch-gates; docs & code guards; repo & tooling; scoped x3), PR-body guards, Type Check (consumer/debt/source/workspace): in_progress. UI jobs (Lint UI / Type Check UI / Test UI / Build & E2E UI / Live E2E UI) not yet listed. NOT MEASURED locally: lint and whole-workspace type-check, which belong to CI.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "line_budget": "31 files, +540/-121 (661 changed lines) vs the 3000 threshold: under. No skills/** files touched.", "files_changed": [ "ui/packages/fields/src/widgets/GridField.tsx", "ui/packages/fields/src/index.tsx", "ui/packages/plugin-form/src/MasterDetailForm.tsx", "ui/packages/plugin-form/src/LineItemsPanel.tsx", "ui/packages/plugin-form/src/RecordBodyTableEditor.tsx", ".changeset/35507-grid-entry-row-header-help.md", "2 fields test files + 23 plugin-form test files (entry-row readers moved to Add; new pins in GridField.test.tsx and MasterDetailForm.test.tsx)" ], "help_source": "dataSource.getObjectSchema(childObject), the served child definition the record form reads (fieldPatches applied, help translated server-side), read per field by fieldHelpText (inlineHelpText, else description). Not re-resolved in the grid.", "add_not_drawn_decision": "On origin/main the ghost row only appeared where Add appeared (both gated on allowAdd). With Add not drawn there was no ghost; this stays unchanged, so no placeholder was needed.", "deviations": [ "File surface widened beyond the claims (GridField.tsx, tests, i18n, changeset). Added: fields/src/index.tsx (export), the three host files that pass columnHelp, and 23 plugin-form test files that typed into the removed ghost row. Order section 1 ('find the resolved source the form uses') and section 3 ('File surface as the claims say... stop on breach') conflict for #35804: the grid holds no field definition, so the help can only come from the hosts. I followed section 1, kept the host wiring in its own commit (37d197a3), and am naming the conflict here. The seat can supplement the claim surface or drop that commit.", "Two of those test files exercise ModalForm (discardGuard.test.tsx, __tests__/modalMaximize-34604.test.tsx). Each gained one Add click; ModalForm.tsx itself is untouched.", "The ghost entry row is still drawn in one state: an empty required grid the form refused. Removing it there would break the objectui#3318 a11y design (only the Add button would remain, and the aria sweep forbids marking it).", "Enter on the last line now appends a line (a new keyboard behaviour that replaces Enter-into-ghost).", "The PR body What changes section says 26 plugin-form test files; the measured count is 23 (git diff 9a8bb83d..HEAD). Left for the seat, because a subagent does not PATCH the PR body." ], "mcp_calls": "0", "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/35998/assignees), post-stamped os-dev-report comments on #35507 and #35804 (POST /issues/{n}/comments x2); git push is not a REST write", "open_questions": [ { "question": "A master-detail entry whose relationshipField and every column type are authored loads no child schema, so its headers show no help (the same gap lookupAutofill has). Close it?", "options": [ "A leave as is; the console's inlineColumns path hydrates and shows help", "B have MasterDetailForm read the separately fetched childSchemasRef into state for help, at the risk of the #1581 header-reset re-render" ], "recommendation": "A, because the console path (subforms from inlineColumns names) already loads the schema, and B touches a deliberate no-re-render ref." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · observed in the A2 reading: on the INV-1010 (EUR) invoice the line grid's currency cells and totals stack show $ while Total incl. Tax shows €. Not investigated and not filed; noted only." ] }objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Claim amendment · area ux-2 · 2026-11-21T05:19Z · amends claim 7056672909 (one PR with #35507 / #35804, PR #35998)
File surface, added (all already in PR #35998 at
d4100395; nothing new is edited by this amendment):ui/packages/fields/src/index.tsx: one export line (columnHelpByField).getObjectSchema, which the server serves withfieldPatchesapplied and translated):ui/packages/plugin-form/src/MasterDetailForm.tsx,LineItemsPanel.tsx,RecordBodyTableEditor.tsx. The grid holds no field definition, so Console inline line grid: column headers never show the field's help text, so the entry rule is invisible exactly where lines are typed #35804's header help cannot be drawn fromGridField.tsxalone.discardGuard.test.tsx,__tests__/modalMaximize-34604.test.tsx) exercise ModalForm.ModalForm.tsxis untouched.The ⛔ on
packages/spec/**,docs/adr/**and the form tab/section-nav path stands, and none of them is touched.Serial note: os-sales draft PR fix(form): new master-detail form lines start on the child's defaults and skip an untouched line with a notice (#35940) #35984 (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) #35940, opened 04:12Z, after this claim) also edits
GridField.tsx,MasterDetailForm.tsxand their tests. A textual merge conflict exists inMasterDetailForm.tsx,MasterDetailForm.test.tsxandGridField.test.tsx. Whichever lands second mergesmain.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Claim amendment · area ux-2 · 2026-11-21T05:38Z · amends claim 7056672909 again (after amendment 7057842671; PR #35998 at
d2e4e4f8)File surface, added:
ui/packages/app-shell/src/views/RecordDetailView.harness.test.tsx. This is a +2 line test change. ItsrecordEditState-35599cells typed into the removed trailing entry row, and they now press Add first. The expected batch and row-error index are unchanged, and no source file changed. A sweep of the other 26 DOM tests outside fields and plugin-form that read grid cells found no other reader of that row.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Closed-out · area ux-2 · 2026-11-21T06:21Z
ec24363978(Fixes #35507,Fixes #35804; this card closed completed)packages/specpath)Delivered:
State:
pm:dispatchedremoved.