Repository navigation
Conversation
Each file of the Problems panel was a section listitem holding its expand button and its problem buttons: the list announced the files only, and the problems were no items (WCAG 1.3.1). The panel is now a flat tree: a file is a level 1 treeitem with aria-expanded, its problems level 2 treeitems, which matches its arrow keys (Left and Right fold). The empty state sits outside the tree. Closes #324
Nothing is selected in Problems: the attribute made screen readers say "selected" on the roving row. ARIA 1.2 does not require it on a treeitem, so Svelte's older rule is ignored, with its reason. The ecs layout warning test looks for treeitems after the fix too, and Space folds a file.
…problems tree A build problem without a file can come first, so .first() made the test flaky (2 of 5).
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.
What does this PR do?
Closes #324
Problems panel (
plugins/console/src/widgets/problems/ProblemsView.svelte): each file was a list item holding its fold button and its problem buttons, so the list announced the files only and the problems were not items (WCAG 1.3.1). The panel is now a flat tree that matches its arrow keys (Left and Right fold): a file is a level 1treeitemwitharia-expanded, its problems are level 2treeitems, and the empty state sits outside the tree. Rows carry noaria-selected(nothing is selected there; a screen reader would say "selected" on every move).The other four items of #324 (code tab close button out of the tab order, Game screen resolution button name, Packages details region, History current step time color) were already fixed by #329, which did not close the issue. This PR adds an e2e assertion for each.
How do you test this PR?
tabindex""instead of"-1"; no level 2 treeitem in a Problems tree (×3, console and ecs); history timergb(155, 160, 172)instead of the row'srgb(238, 242, 255); no "Package details" region; no "Resolution: Fit" button.aria-selected, a Space test that folds a file, a stale ecs locator fixed; two comments wrapped): ecs, console and code-editor specs 25 passed,pnpm lintpasses.console.spec.ts"a build error is listed with its file and position": a build problem without a file could come first in the tree, so.first()failed 2 times in 5. With the fix,--repeat-each=5: 5 passed.pnpm turbo build --filter=@nanoforge-dev/editor...plugins/console:pnpm test:unit,pnpm typecheckapps/editor:pnpm typecheckpnpm lintNot done: a screen reader pass and an axe run (axe is not installed; see #359).
Integration: a scratch branch with every editor branch of this sweep merged passed
pnpm build, lint, typecheck,pnpm test --force(1014 passed, 1 skipped) and the full e2e suite with the engine (141/141, Chromium only).Merge danger
maindeploys the editor app.apps/editor/e2e/viewport.spec.tsconflicts with fix/menu-toggle-state (Toggle entries in menus show no on or off state #311) on adjacent lines: combine them (this branch'sbutton 'Resolution: Fit'with its comment, and Toggle entries in menus show no on or off state #311'smenuitemradio).menuitemcheckbox/menuitemradioand Arrow keys do not move between the top menus #319 makes the top-menu titlesmenuitem. This branch's locators work with or without them.Follow-up issues
Quality gate
aria-selecteddropped and M3 comment added in e543bd4; M2role="treeitem"on a<button>kept, a best-practice rule, not a WCAG failure)Last rounds e543bd4, 9504627, 437a3da (round 1) and 5ba3025 (flaky locator): producer and integration runs, not re-reviewed.