Repository navigation
fix(fields): the line grid draws no blank entry row beside Add, and its column headers show each field's help - #35998
Merged
objectstack-fleet[bot] merged 8 commits intoNov 21, 2026
Conversation
… main) Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
…ts headers show each field's help Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
… the grid's column headers Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
… removed entry row Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
…ds' served help Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
This was referenced Nov 21, 2026
…hrough Add The record page's body-table edit state typed the new line into the grid's blank entry row, which the grid no longer draws beside Add. The pin now presses Add first; the batch it expects and the line the refusal lands on are unchanged. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对ACCEPT · head
No required item at L1. Flip ready and land. |
Contributor
Author
|
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ Landing · area ux-2 · 2026-11-21T06:00Z
State: draft → ready + auto-merge (merge queue). |
This was referenced Nov 21, 2026
objectstack-fleet
Bot
deleted the
claude/issue-35507-grid-ghost-row-header-help
branch
November 21, 2026 06:21
os-sales
pushed a commit
that referenced
this pull request
Nov 21, 2026
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>
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #35507
Fixes #35804
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
#35507: no blank entry row beside "Add line".
GridFieldused to append an always-present empty "ghost" line under the lines (hasGhost/displayRows), directly above the Add button. It had no copy or remove action and produced no write. The grid no longer draws it.origin/main(9a8bb83d): the ghost row and the Add button were both gated onallowAdd, so the ghost was only ever drawn where Add was drawn. Dropping it leaves no grid without a way to add a line. The "Add not drawn" branch of the order has nothing to restyle: withallowAdd: falsethere was never a ghost row, and that stays true (CONTROL pin).fields.grid.noItemsAddHint("No items yet — click "Add line" to begin.") with the Add button's real label. No new i18n key.hostFailedEmpty, objectui#3318). There the line carries the field's failure to assistive tech on the cells a user types into. The Add button is an action, not the invalid control.widget-aria-invalid-registry-e2estays green because this line still exists.#35804: column headers show each field's help. Each grid column header now draws an info icon beside its label when the field has help. The help shows on hover and on keyboard focus (Radix tooltip), and the icon button's accessible name is the help text. The editable grid and the read-only table both draw it.
InlineGridColumn) is a strict spec shape with no help key. No spec key is added. Following thelookupAutofill/columnCurrenciespattern, the host that holds the child object's definition passes the help through a newGridFieldprop,columnHelp. New helper:columnHelpByField(fields). It reads each field throughfieldHelpText, the same function the record form's help line uses (inlineHelpText, elsedescription), so the header and the form show the same text.dataSource.getObjectSchema(child)serves, which the record form also reads. The server appliesobjectExtensions.fieldPatchesbefore serving it and translates the help into the reader's locale (packages/rest/src/meta-object-field-patch-i18n.test.tspins both on the served object). The grid does not re-resolve anything.MasterDetailForm,LineItemsPanelandRecordBodyTableEditor.Tests
All runs are at head
d4100395, throughscripts/pm/os-verify-lock.sh.GridField.test.tsx(two top-level describes) andMasterDetailForm.test.tsx(one describe).9 failed | 59 passed. The four CONTROL pins (Add off, edit emit, Enter with Add off, no-help header) were green on both trees.cd ui && pnpm exec vitest run packages/fields/ packages/plugin-form/: Test Files 549 passed | 1 skipped (550), Tests 7402 passed | 8 skipped (7410), VERDICT command-exit 0.pnpm --filter @object-ui/fields run type-checkandpnpm --filter @object-ui/plugin-form run type-checkboth passed after building their@object-uidependency closure. VERDICT command-exit 0.Ablations (one per fix, through scripts/ablation-replace.mjs, restored to the HEAD blob)
hasGhostwithouthostFailedEmpty): 4 pins red (lines-only, empty state, Add focus, Enter append) and 3 controls green. Restore: blob1a5224d841fb== HEAD,git diff HEADempty.ColumnHeaderHelpreturns null): 5 pins red (accessible name, focus tooltip, read-only table, and both MasterDetailForm host cases). Restore: blob == HEAD,git diff HEADempty.Browser reading (A4)
This run used the showcase on its own
--freshbackend (:4371) and the Console dev server (:5371) built from this branch, in headless Chromium at 1280×900 with deviceScaleFactor 2. The invoice INV-1010 edit form has one stored line. For the reading only, two fixtures were added and then reverted (neither is in this PR): a declaredinlineHelpTextonshowcase_invoice_line.quantity, and an object extension whosefieldPatchessetunit_price.inlineHelpTextto 「内销填含税价,出口填不含税的 FOB 美元价」.Qty *is named "Whole units; bill partial hours as decimals." (declared), andUnit Priceis named 「内销填含税价,出口填不含税的 FOB 美元价」 (fieldPatches). Other headers have no icon.activeElement's accessible name is that help.data-cell="1-1"(Description) of the new line. The first column is a lookup with no text cell.a4-35507/1-edit-form-no-trailing-row.png,2-grid-no-trailing-row.png,3-hover-help-fieldPatches-unit-price.png,4-focus-help-declared-qty.png,5-after-add-focus-in-new-line.png.Acceptance notes
GridField.tsx, its tests, i18n keys and a changeset. This PR also touchesui/packages/fields/src/index.tsx(one export line), the three host files (MasterDetailForm.tsx,LineItemsPanel.tsx,RecordBodyTableEditor.tsx, which passcolumnHelp), and 23 plugin-form test files that typed into the removed ghost line. These includediscardGuard.test.tsxand__tests__/modalMaximize-34604.test.tsx, which exercise ModalForm;ModalForm.tsxitself is untouched. The order's direction for 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 (find the resolved source the form uses) cannot be met fromGridField.tsxalone, because the grid holds no field definition.relationshipFieldand every columntypeare authored loads no child schema (an existing short-circuit inMasterDetailForm), so its headers show no help, just as it gets nolookupAutofill. The console's own path (inlineColumnsnames, hydrated from the child schema) loads it, and the showcase reading above went through that path.Verification
Read first, by risk:
ui/packages/fields/src/widgets/GridField.tsx: thehasGhost/hostFailedEmptyhunk andpendingFocus/addRow/onCellKeyDown.ui/packages/plugin-form/src/MasterDetailForm.tsx:columnHelpat both resolve sites and on the grid.ui/packages/fields/src/widgets/GridField.test.tsx: the two new top-level describes.Two-minute check:
cd ui && pnpm exec vitest run packages/fields/src/widgets/GridField.test.tsx -t "objectstack#35(507|804)"should print 12 passed (the new pins).Local gates (derived by dispatch-gates --commands, 40 commands, all EXIT=0 at d410039)
check-adr-0087-registration (+self-test), check-changeset-no-major, check-closing-keyword-parity (+self-test), check-comment-mask-corpus, check-empty-changeset (+self-test), check-sdui-manifest (+self-test), snapshot-next self-test, check-governed-queue-guard self-test, release-rehearsal-clone self-test, release-pending-publish self-test,
pnpm --dir ui exec vitest run scripts/, spec check:duration-unit-keys, spec check:error-code-provenance, check:adr-anchors, check:changeset-gate-self-tests, check:closed-ceremony-text, check:cross-package-test-inputs, check:dispatcher-error-vocabulary, check:driver-memory-census, check:engine-double-contract, check:error-status-conformance, check:gitlink-declared, check:nul-bytes, check:published-files, check:query-options-erasure, check:refd-timer-probe, check:registry-log-declared, check:rest-log-spy-declared, check:skill-identifier-liveness, check:test-source-alias, check:tier-file-adoption, check:type-check-coverage, check:type-check-debt, check:undeclared-dep-imports, check:watch-hint-literal, check:where-matcher. Lint and the whole-workspace type-check lanes are left to CI.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ