Skip to content

Inline line grid: the column-header help text becomes part of every cell's announced column name #36004

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

Follow-up of #35804 (PR #35998). Optional nit from L1-a, record 7058316549.

Problem

The inline line grid's column-header help button sits inside the <th>, and the help text is its aria-label. That label joins the column header's computed accessible name. A screen reader announcing a cell's column header may therefore read the whole help sentence with every cell in that column.

Done when

  • The header's accessible name stays the field label, plus at most a short "Help" word.
  • The help text stays reachable by keyboard and screen reader, through aria-describedby on the button or through the tooltip content, in the reader's language.
  • A pin reads the column header's accessible name (label only) and the button's description (the help).

Where

ui/packages/fields/src/widgets/GridField.tsx (ColumnHeaderHelp) and its tests.

Activity

  1. added
    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 (fields GridField ColumnHeaderHelp) · pm:queue; rationale: area:ux · Bug · the inline line grid's column-header help text is the help button's aria-label inside the <th>, so a screen reader may read the whole help sentence with every cell of that column; follow-up of #35804 → p2 as filed (UX rule; accessibility) · size XS.

  3. added
    bug
    on Nov 21, 2026
  4. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

    Claim: PM loop · area f7-list
    Session: session_01QsR2jUc3qp6bHKSWijbjds
    Account: zhuangjianguo
    Branch: claude/issue-36004-header-help-name
    Worktree: objectstack-issue-36004
    Domain: domain:ui
    Seat: repo:objectstack#7
    Area: f7-list
    File surface: ui/packages/fields/src/widgets/GridField.tsx (ColumnHeaderHelp) and its tests, i18n key(s) for a short "Help" word only if none exists, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate on ui/**), effort: medium
    Clause-②: no (a new i18n key would read yes (widening); measured and amended then)
    Metadata-protocol: none
    Responsibility: objectstack ui/packages/fields GridField column-header help | none | screen-reader users of the inline line grid: every cell announces the whole help sentence as part of its column name
    Thread-read: 7058819837
    Premise: holds by the card's code reading (L1-a nit, record 7058316549 on PR #35998); the dev re-measures on origin/main.
    Pre-claim lane: repo:objectstack seat 7 area f7-list (ui/packages/fields).
    Pre-claim deps: none.
    Prior rulings read: card thread → triage only (7058819837); no ruling comment.
    Fold-or-serial: not folded (#36344 / #36346 are other defects in other files); overlap-check before each push.
    Serial constraints cleared: none on GridField.tsx at origin/main

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds
    os-dev-report

    {
     "issue": 36004,
     "status": "done",
     "branch": "claude/issue-36004-header-help-name",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36486",
     "session": "session_01QsR2jUc3qp6bHKSWijbjds",
     "premise_still_valid": true,
     "summary": "Premise measured true on origin/main. Real Chromium (CDP AX tree, static markup of both shapes) reads the header on origin/main as 'Amount Enter the tax-inclusive amount.' and on this branch as 'Amount Help'; the button is named 'Help' and described by 'Enter the tax-inclusive amount.'. The ColumnHeaderHelp info button (now in grid-field/GridFieldWidget.tsx, after main's lazy-body split moved it from GridField.tsx) is named by the new pack key fields.grid.columnHelp. The help is its aria-describedby description, read from a hidden copy beside it, and the tooltip is unchanged. No existing key had the value 'Help', so the key is new in all eleven locales: Clause-② measured as yes (widening), the claim's conditional arm. The repo helper (jest-dom / dom-accessibility-api) treats a nested button as an embedded control and drops its aria-label, so it reads 'Amount' on main and on the fix alike. The pin therefore also holds every aria-label inside the header to the Help word, plus the button's name and description, on the editable grid, the read-only table and under zh.",
     "tests": "head 7daa1e4b74 · pnpm --dir ui exec vitest run GridField.test.tsx + plugin-form MasterDetailForm.test.tsx + i18n all-locales-key-parity + en-zh-key-parity: 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) · type-check (after turbo build @object-ui/plugin-form^... and @object-ui/i18n^..., exit 0): @object-ui/fields 0, @object-ui/i18n 0, @object-ui/plugin-form 0 · ablation, run after the fix was committed: git restore --source=c13af73039 of grid-field/GridFieldWidget.tsx (tree only); on disk fields.grid.columnHelp count 0 and aria-label={help} count 1; -t 'objectstack#36004|objectstack#35804' gave 'Tests 6 failed | 2 passed | 87 skipped' (e.g. 'Expected accessible name: 帮助 / Received: Enter the tax-inclusive amount.'); restored with git checkout HEAD -- abs path, hash baa9863a23 == HEAD blob, git diff HEAD empty; re-run 'Tests 8 passed | 87 skipped'. The subject is imported relatively from src, so there is no dist leg. The first measurement attempt on origin/main could not resolve @objectstack/spec, then @objectstack/formula; both were built (spec, formula, sdui-parser) before any reading was taken.",
     "gates": "local derived set at head 7daa1e4b74: 40 dispatch-gates --commands families, each exit 0, captured per command before any pipe; pnpm --dir ui exec vitest run scripts/ exit 0 (Test Files 172 passed | 2 skipped, Tests 5127 passed | 2 skipped). Reconciled with dispatch-gates --ran: '41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN' (exit codes kept in a scratch log, not in the --ran record). check-platform-checklist not owed: no export was renamed or removed. overlap-check at 7daa1e4b74: clean against origin/main 59392ed1d8; textual overlap with draft PR #36392 (line-item cell faces) on GridField.test.tsx and grid-field/GridFieldWidget.tsx, so whichever lands second merges. PR check-runs on 7daa1e4b74 at report time: Governed Surface Queue Guard success; Check Changeset, Check PR Size, the Lint lanes, the Type Check lanes and PR-body guards all in_progress; the UI lanes (Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI) not yet listed. NOT MEASURED: CI conclusions, reason: the report is delivered before CI converges, per os-dev.md.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /issues/36486/assignees zhuangjianguo; read-back: 5649 bytes sent = 5649 stored), relay os-dev-report comment on #36004 via post-stamped.mjs; plus git push (not REST)",
     "line_budget": "n/a — no skills/** or ratcheted ledger touched; diff 15 files before the merges, about +120/-25",
     "deviations": "(1) The file surface widened beyond the claim to ui/packages/plugin-form/src/MasterDetailForm.test.tsx: its 35804 test found the help button by the help as its name, which this change makes false, so it now finds it by name Help and description = the help. (2) The card names GridField.tsx; main's lazy-body split (#36417) moved ColumnHeaderHelp to grid-field/GridFieldWidget.tsx while this branch was in flight, and git's rename merge carried the change there. (3) The pin reads the header name as label only through the helper, while Chromium reads label + 'Help', which done-when bullet 1 allows; both readings are in the PR. (4) The PR body carries one angle-bracket fragment ('abs path' in brackets); the relay read-back showed every byte stored, so it was not rewritten. (5) The ablation baseline is origin/main c13af73039 (after the second merge), not the original BASE 285ad8d7, because the component's path moved.",
     "files_changed": [
      ".changeset/36004-grid-header-help-name.md",
      "ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx",
      "ui/packages/fields/src/widgets/GridField.test.tsx",
      "ui/packages/plugin-form/src/MasterDetailForm.test.tsx",
      "ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts"
     ],
     "final_head": "7daa1e4b7404d99178634fdb85a9070ecc84b770 · CI in_progress",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · noted, not filed — dom-accessibility-api (jest-dom toHaveAccessibleName) drops a nested button's aria-label from a parent's name-from-content, unlike accname 1.2 and Chromium; any repo pin that reads a column header's name with a nested button cannot see that button's label. This is a test-helper observation with no public door, so it is not a filing class; it is recorded in the PR's Acceptance notes and in this pin's docblock."
     ]
    }
  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · zhuangjianguo · session_01QsR2jUc3qp6bHKSWijbjds

    Claim amendment: PM loop · area f7-list · 2026-11-22T14:05Z (amends claim 7078829667)
    File surface: as the claim. ColumnHeaderHelp now lives in ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx because main's lazy-body split (#36417) moved it there from GridField.tsx. Also touched: new key fields.grid.columnHelp in all eleven ui/packages/i18n/src/locales/*.ts (no existing key held "Help"), and ui/packages/plugin-form/src/MasterDetailForm.test.tsx (its #35804 test found the button by the help text as its name, which this change makes false). PR #36486 @ 7daa1e4b7404d99178634fdb85a9070ecc84b770, 15 files, +126 / -24. Textual overlap with draft #36392 on GridField.test.tsx and GridFieldWidget.tsx: whichever lands second merges.
    Clause-②: yes (widening) — new i18n key fields.grid.columnHelp in every locale.
    Metadata-protocol: none

  8. added a commit that references this issue on Nov 23, 2026
    43580a3
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