Repository navigation
fix(fields): the line grid's column-header help no longer joins every cell's announced column name - #36486
Conversation
…olumn name The info button is named by a short Help word from the pack and described by the help through aria-describedby on a hidden copy, so a screen reader announcing a cell's column reads the label, not the whole help sentence. Claude-Session: https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds Co-authored-by: Claude <noreply@anthropic.com>
…me helper reads them Claude-Session: https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds Co-authored-by: Claude <noreply@anthropic.com>
…ader-help-name # Conflicts: # ui/packages/fields/src/widgets/GridField.test.tsx
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds Final head (area f7-list, 2026-11-22T14:39Z): Route: the grid header's help button gets its name from the new key
L1 requested from |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jS7jCv5PH4ytECQWqf L1 ACCEPT · head 维护者速读
席位核对
|
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Contract reviewServed-tier: Inputs read: card #36004 (body, triage 7058819837, claim 7078829667, dev report 7080265048, claim amendment 7080283571), PR #36486 (body, its one comment 7080709294, the 15-file list, the net diff against merge-base ① Derived judgments
② Semver level
③ Boundary flags
No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC Landing (seat 7, 2026-11-22T14:45Z): head |
Fixes #36004
Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
ColumnHeaderHelp(the info button in a line grid's column header; now inui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsxafter the lazy-body split landed on main): the button is named by a short Help word from the pack,fields.grid.columnHelp, and the help is its description througharia-describedbyon ahiddencopy beside the button. A hidden node does not enter the header's name from content; a description reads a node it references even when hidden. The tooltip on hover and focus is unchanged.@object-ui/i18n: new keyfields.grid.columnHelpin all eleven locale packs (the Clause-② widening: the packs are published through./locales). No existing key had the value "Help": the catalogue hassidebar.helpTooltip("Help & Documentation") and thehelp.*docs namespace, neither a one-word label.ui/packages/plugin-form/src/MasterDetailForm.test.tsx: its 35804 test found the button by the help as its name; it now finds it by name Help and description = the help. This change made that assertion false, so it is updated here (file outside the claim's surface, named in the report)..changeset/36004-grid-header-help-name.md(@object-ui/fields,@object-ui/i18n: patch).Tests
GridField.test.tsx,column header help stays out of the column name (objectstack#36004): on the editable grid and the read-only table, the header's accessible name, everyaria-labelinside the header (only the Help word), the button's name (Help word) and its description (the help); plus the zh pack under zh. The existing 35804 tests now find the button by name Help and description = the help.toHaveAccessibleName(dom-accessibility-api) treats a button nested in the header as an embedded control and drops itsaria-label. So it reads the header asAmounton origin/main and on this branch alike, and the header-name assertion alone cannot tell them apart. The pin therefore also holds thearia-labels inside the header, which is the text a spec-following browser adds.Accessibility.getFullAXTree, static markup of both shapes): origin/main shape, column headerAmount Enter the tax-inclusive amount.; this branch's shape, column headerAmount Help, button nameHelp, descriptionEnter the tax-inclusive amount..Ablation (head 7daa1e4): origin/main's component under this branch's tests and packs
git restore --source=c13af73039 -- ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx(tree only). On disk:fields.grid.columnHelpcount 0,aria-label={help}count 1.vitest run packages/fields/src/widgets/GridField.test.tsx -t 'objectstack#36004|objectstack#35804'givesTests 6 failed | 2 passed | 87 skipped. For example,Expected element to have accessible name: 帮助 / Received: Enter the tax-inclusive amount.git checkout HEAD -- <abs path>, hashbaa9863a23== HEAD blob,git diff HEADempty. Re-run givesTests 8 passed | 87 skipped.src, so nodist/leg applies.Suites and type-check (head 7daa1e4)
pnpm --dir ui exec vitest run packages/fields/src/widgets/GridField.test.tsx packages/plugin-form/src/MasterDetailForm.test.tsx packages/i18n/src/__tests__/all-locales-key-parity.test.ts packages/i18n/src/__tests__/en-zh-key-parity.test.ts:Test Files 4 passed (4) · Tests 166 passed (166)pnpm --dir ui exec vitest run packages/fields/ packages/i18n/:Test Files 428 passed | 1 skipped (429) · Tests 6829 passed | 20 skipped (6849)turbo run build --filter='@object-ui/plugin-form^...' --filter='@object-ui/i18n^...'exit 0, thentype-checkfor@object-ui/fields,@object-ui/i18nand@object-ui/plugin-form: exit 0 each.Acceptance notes
Amountand Chromium readsAmount Help; both are pinned as described above.*mark in the header text, as before.Verification
Risk-ranked first reads:
ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx,ColumnHeaderHelp: thearia-describedbytarget is thehiddenspan, and the hooks run before the early return.ui/packages/fields/src/widgets/GridField.test.tsx, theobjectstack#36004describe.ui/packages/i18n/src/locales/en.ts,fields.grid.columnHelp.Two-minute check:
pnpm --dir ui exec vitest run packages/fields/src/widgets/GridField.test.tsx -t 'objectstack#36004'should show 3 passed.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01QsR2jUc3qp6bHKSWijbjds