Repository navigation
DEV-4180: Describe a formula error cell with a short message, popup open or closed - #1914
Conversation
Performance comparison of head (8d9deda) vs base (20ca836) |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
hyperformula-docs | 8d9deda | Commit Preview URL Branch Preview URL |
Dec 02 2026, 11:59 AM |
There was a problem hiding this comment.
Note
Medium risk: Runtime a11y behavior in the hyperformula-ui error-cell path: a new always-on MutationObserver on the grid root and rewritten ARIA linking, scoped to the formula-builder UI package (no engine/data/security paths), but active on every host grid render.
Full review: no issues found.
Want a deeper review? Comment /review improve on its own line: a full review of the latest commit with an extra fix-oriented pass (about 2x the cost).
5bff4d9 to
9971de5
Compare
There was a problem hiding this comment.
Note
Medium risk: Reworks the error-cell accessibility wiring (MutationObserver-driven aria-describedby links replacing aria-errormessage) in product runtime code, but the change is confined to the error-popup path and is well covered by new unit tests.
Full review: no issues found.
Want a deeper review? Comment /review improve on its own line: a full review of the latest commit with an extra fix-oriented pass (about 2x the cost).
9971de5 to
ff957d7
Compare
There was a problem hiding this comment.
Note
Medium risk: Reworks the error-cell accessibility wiring (aria-errormessage removed, new MutationObserver-driven aria-describedby descriptions) in shipped runtime UI code, so screen-reader behaviour and host attribute handling could regress, though the blast radius is limited to error-cell a11y.
Full review: 1 potential issue(s).
Want a deeper review? Comment /review improve on its own line: a full review of the latest commit with an extra fix-oriented pass (about 2x the cost).
adrianspdev
left a comment
There was a problem hiding this comment.
Checked out the branch and verified it in Chromium against a small grid that renders cells the way Handsontable does (strips aria-* on each draw, adds the column-header id only when aria-describedby is empty). The accessible description is correct with the popup open, after Escape, after a host re-render, after a cell is fixed, on cell reuse, and for a cell inserted after it was marked; host-written ids and aria-errormessage survive, and destroy() cleans up. No observer loop. The new tests fail with the fix reverted.
nit: the description says 1188 tests passed; the current head runs 1192.
marcin-kordas-hoc
left a comment
There was a problem hiding this comment.
Error cells now get a short description whether or not the popup is open. A small suggestion below. nit: the branch now conflicts with develop in hyperformula-ui/CHANGELOG.md.
af72613 to
8d9deda
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1914 +/- ##
========================================
Coverage 97.76% 97.76%
========================================
Files 212 212
Lines 19312 19312
Branches 4561 4595 +34
========================================
Hits 18881 18881
- Misses 423 431 +8
+ Partials 8 0 -8 🚀 New features to boost your workflow:
|
Context
The PR fixes how a screen reader describes a formula error cell in
hyperformula-ui.ui/popup/errorDescriptions.ts(new): oneMutationObserveron the grid root links each[data-hfe-error]cell to a hidden node througharia-describedby. Cells with the same text share a node.ui/popup/cellError.ts:toErrorDescription()keeps the first sentence after the code, at most 120 characters. A bare code like#DIV/0!gets no description.ui/popup/errorPopup.ts: the popup is visual only. Noaria-errormessage: axe rejects it on a hidden node.dev-docs/ARCHITECTURE.md,dev-docs/SPEC.md: the error display policy.The observer writes after the host's render, so a host id written after the renderer stays first. It removes only its own id.
=FOO(1), Chromium descriptionC #NAME? Function name FOO not recognized.C Function name FOO not recognized.CC Function name FOO not recognized.=1+C #ERROR! Parsing error. Expecting: …(12 tokens)C Parsing error.How did you test your changes?
npm run build:ui,npm run typecheck,npm run test:ui: 1197 tests passed.error-descriptions.test.tsis new. 13 tests of the popup id link were removed.developwith this build linked in: the formula builder E2E specs pass, except two that assert the 0.3.7 popup id link.=1+,=1/0, shared errors, cell reuse on scroll andcolHeaders: false. axe reports nothing on the error cell.AI assistance
Claude Code wrote the code, the tests and the dev-docs changes.
Compatibility with Excel and Google Sheets
Not applicable.
Public API changes
None. The cell no longer gets
aria-errormessage, andaria-describedbypoints at a hidden node instead of the popup.Out of scope and follow-ups
cellErrorannouncement ends in two periods ("not recognized.."). Separate fix.ariaTags: false, the cell still gets the link. The cell is not focusable there.Types of changes
Related issues
Checklist
dev-docs/pages this change affects – or none needed it.