Repository navigation
Improve accessibility and keyboard workflows - #1147
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refs #768. Preserve the hover tooltip and guard the existing Indexes label. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refs #772. Use persistent success/error live regions for both actions and preserve focus while disabled. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refs #773. Share cursor-block resolution, retain clicked editor URIs, and expose palette/title/context actions with bounded telemetry. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refs #773. Share the new-playground header and preserve the existing run shortcuts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refs #774. Honor afterRun preferences, keep screen-reader shortcut behavior explicit, and preserve result formatting and undefined metadata. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Refs #770. Use an enabled Save or Reload target with Fluent's visible indicator while preserving existing user focus. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
✅ CI passed: standard tier (ready PR)Commit
Full run: add the Code quality
PR change stats
Whole PR since the merge base. Net is added minus removed. Moves between areas count in both. Review hotspots: most changed code and test files
Build sizeNo page, activation, VSIX or other bundle size changed by 5% or 50 KiB or more against Artifacts: VSIX | Bundle-reports-47136594786 | L1-manifest-report-47136594786 All graphs (exact bytes)
Packaged bytes. Shared chunks count in every graph that loads them, so rows do not add up. Updated in place on every run. |
Check collection counts using the host's number formatting so verification does not require a US locale. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Regenerate localization, apply required formatting, correct test type imports, and record both requested check sets with their local runtime conditions and remaining review gates. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The N/A values in the metric cards, the summary cell and the failed plan summary were drawn in a disabled or tertiary color at 50% opacity. Calculated from the VS Code 1.147.0 theme definitions, that was 1.36:1 to 3.82:1 in Light 2026, Dark 2026 and both high-contrast themes, under the 4.5:1 text minimum. N/A is content, not a disabled control, so the WCAG exemption for inactive components does not apply, and opacity also survives forced-colors mode. Solid descriptionForeground, the color already chosen for the info glyph, gives 5.47:1 to 9.96:1. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The direction in an index field badge (an arrow, or a word such as text, hashed or 2dsphere) was the badge color at 80% on the tinted badge: 3.52:1 in Light 2026 and 3.71:1 in High Contrast Light, under 4.5:1. The badge pair starts at about 5:1, so it has no headroom for opacity. At full color it matches the field name: 4.96:1 to 21:1. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The button drew a 1px ring in --vscode-focusBorder, which is semi-transparent in Dark 2026 and fell to 2.79:1 on a hovered Indexes table row (1.76:1 in High Contrast). It now uses colorStrokeFocus2 at strokeWidthThick, the ring already used by the Table and the rest of the extension, falling back to focusBorder outside a Fluent provider. The forced-colors Highlight rule is unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds the installed-workbench investigation (iteration 02), decision 0013 (keep native F6, no extension workaround), README status updates and a pointer in the accessibility skill. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved bugs cause incorrect playground menus, broken result navigation after saving, focus stealing, inconsistent column sizing, and command failures when a Collection View closes during a prompt.
7 open issues
Make editor title menu eligibility resource-specific · New Transfer result association when saving an untitled playground · New Recognize BSON scalars in completion notifications · New Route header-menu commands through telemetry handling · New Check for a disposed panel after the width prompt · New Persist fitted column widths even when unchanged · New Avoid stealing focus after a delayed document load · New
What changed in this PR
Improves keyboard access, screen-reader feedback, and visual contrast across the DocumentDB extension for Visual Studio Code.
Changes:
- Adds non-drag column sizing, nested Table focus restoration, and visible Document editor focus.
- Exposes Playground actions and result navigation through standard VS Code commands.
- Improves announcements and contrast, with regression coverage and accessibility documentation.
Installed-workbench and accessibility-tester verification remains pending.
| File | Description |
|---|---|
src/webviews/documentdb/documentView/documentView.tsx |
Manages initial and Escape focus. |
src/webviews/documentdb/documentView/documentView.focus.test.tsx |
Tests existing-focus preservation. |
src/webviews/documentdb/documentView/components/toolbarDocuments.tsx |
Exposes Reload focus reference. |
src/webviews/documentdb/collectionView/queryInsightsTab/components/summaryCard/SummaryCard.scss |
Improves placeholder contrast. |
src/webviews/documentdb/collectionView/queryInsightsTab/components/queryPlanSummary/QueryPlanSummary.tsx |
Improves N/A contrast. |
src/webviews/documentdb/collectionView/queryInsightsTab/components/optimizationCards/ImprovementCard.tsx |
Announces outcomes and preserves focus. |
src/webviews/documentdb/collectionView/queryInsightsTab/components/optimizationCards/ImprovementCard.test.tsx |
Tests announcements and action focus. |
src/webviews/documentdb/collectionView/indexesTab/indexesTab.scss |
Removes faded direction labels. |
src/webviews/documentdb/collectionView/components/resultsTab/useStableColumnWidths.ts |
Supports explicit column widths. |
src/webviews/documentdb/collectionView/components/resultsTab/useCollectionViewColumnHeaderActions.ts |
Connects header menus and resizing. |
src/webviews/documentdb/collectionView/components/resultsTab/TypedValueCell.tsx |
Increases type-marker contrast. |
src/webviews/documentdb/collectionView/components/resultsTab/DataViewPanelTree.tsx |
Adds Tree header sizing actions. |
src/webviews/documentdb/collectionView/components/resultsTab/DataViewPanelTree.focus.test.tsx |
Supplies resize-session context. |
src/webviews/documentdb/collectionView/components/resultsTab/DataViewPanelTable.tsx |
Adds sizing and step-out focus restoration. |
src/webviews/documentdb/collectionView/components/resultsTab/dataGridTheme.scss |
Strengthens grid focus colors. |
src/webviews/documentdb/collectionView/components/resultsTab/collectionViewColumnContextMenu.ts |
Defines menu and resize messages. |
src/webviews/documentdb/collectionView/collectionViewController.ts |
Handles native sizing commands. |
src/webviews/documentdb/collectionView/collectionViewController.test.ts |
Tests sizing prompts and validation. |
src/webviews/components/useSelectiveContextMenuPrevention.ts |
Allows native header menus. |
src/webviews/components/expandCollapseButton.scss |
Strengthens disclosure focus indicators. |
src/webviews/components/accessibility/index.ts |
Exports visible-focus helper. |
src/webviews/components/accessibility/focusWithVisibleIndicator.ts |
Applies visible programmatic focus. |
src/webviews/components/accessibility/focusWithVisibleIndicator.test.tsx |
Tests focus eligibility and indicators. |
src/tree/documentdb/IndexesItem.test.ts |
Protects accessible Indexes naming. |
src/tree/documentdb/DocumentsItem.ts |
Aligns accessible and visible labels. |
src/tree/documentdb/DocumentsItem.test.ts |
Tests label and tooltip behavior. |
src/settingsKeys.ts |
Adds after-run setting key. |
src/documentdb/playground/types.ts |
Preserves undefined-result metadata. |
src/documentdb/playground/statementDetector.ts |
Shares block-resolution helpers. |
src/documentdb/playground/statementDetector.test.ts |
Tests shared block helpers. |
src/documentdb/playground/resultFormatter.ts |
Describes completion results. |
src/documentdb/playground/resultFormatter.test.ts |
Tests summaries and output preservation. |
src/documentdb/playground/PlaygroundResultProvider.ts |
Supports result/source navigation. |
src/documentdb/playground/PlaygroundResultProvider.test.ts |
Tests result focus behavior. |
src/documentdb/playground/PlaygroundEvaluator.ts |
Carries undefined-result metadata. |
src/documentdb/playground/PlaygroundEvaluator.test.ts |
Tests metadata deserialization. |
src/documentdb/playground/PlaygroundContextKeys.ts |
Tracks Playground action availability. |
src/documentdb/playground/PlaygroundContextKeys.test.ts |
Tests context updates and disposal. |
src/documentdb/playground/PlaygroundCodeLensProvider.ts |
Reuses helpers and marks invocation source. |
src/documentdb/playground/PlaygroundCodeLensProvider.test.ts |
Tests invocation marker. |
src/documentdb/playground/constants.ts |
Defines focus command identifiers. |
src/documentdb/playground/afterRun.ts |
Resolves after-run behavior. |
src/documentdb/playground/afterRun.test.ts |
Tests after-run settings. |
src/documentdb/ClustersExtension.ts |
Registers new commands and tracking. |
src/commands/playground/runSelected.ts |
Applies invocation and after-run options. |
src/commands/playground/runAll.ts |
Applies invocation and after-run options. |
src/commands/playground/playgroundOpenInShell.ts |
Supports keyboard-reachable block handoff. |
src/commands/playground/playgroundOpenInCollectionView.ts |
Supports keyboard-reachable query handoff. |
src/commands/playground/playgroundInvocation.ts |
Normalizes command invocation context. |
src/commands/playground/playgroundInvocation.test.ts |
Tests invocation and editor targeting. |
src/commands/playground/newPlayground.ts |
Adds action-discovery guidance. |
src/commands/playground/newPlayground.test.ts |
Tests shared header generation. |
src/commands/playground/focusPlaygroundResult.ts |
Navigates between source and result. |
src/commands/playground/executePlaygroundCode.ts |
Applies completion focus or notifications. |
src/commands/playground/connectDatabase.ts |
Resolves target Playground invocations. |
packages/vscode-ext-webview-fluentui/src/components/MetricGrid/MetricCard.tsx |
Improves glyph and placeholder contrast. |
packages/vscode-ext-webview-fluentui/CHANGELOG.md |
Records glyph styling change. |
package.nls.json |
Adds command and setting labels. |
package-lock.json |
Declares direct keyborg dependency. |
l10n/bundle.l10n.json |
Updates localized string inventory. |
docs/user-manual/query-playground.md |
Documents commands and after-run settings. |
docs/user-manual/interactive-shell.md |
Clarifies keyboard access and limitations. |
docs/user-manual/collection-view-querying.md |
Documents navigation and sizing workflows. |
docs/user-manual/accessibility.md |
Adds accessibility workflow reference. |
docs/index.md |
Links accessibility documentation. |
docs/ai-and-plans/README.md |
Indexes accessibility work. |
docs/ai-and-plans/features/query-playground/README.md |
Records accessible entry points. |
docs/ai-and-plans/features/data-grid/README.md |
Records Backspace navigation. |
docs/ai-and-plans/features/data-grid/design.md |
Defines step-out focus behavior. |
docs/ai-and-plans/features/data-grid/decisions.md |
Records header-sizing decisions. |
docs/ai-and-plans/features/accessibility/theme-captures/README.md |
Explains contrast evidence and reproduction. |
docs/ai-and-plans/features/accessibility/theme-captures/probe-extension/package.json |
Defines development-only theme probe. |
docs/ai-and-plans/features/accessibility/theme-captures/probe-extension/extension.js |
Captures resolved theme variables. |
docs/ai-and-plans/features/accessibility/theme-captures/capture-themes.mjs |
Automates isolated theme captures. |
docs/ai-and-plans/features/accessibility/iterations/02-f6-webview-trap-investigation.md |
Records upstream F6 investigation. |
build/verification/README.md |
Documents Document focus scenarios. |
build/verification/browser/scenarios.ts |
Adds initial-focus browser scenarios. |
build/verification/browser/scenarios.test.ts |
Validates new scenario definitions. |
build/verification/browser/contrast-matrix-bootstrap.mjs |
Loads components for contrast evaluation. |
.github/skills/accessibility-aria-expert/SKILL.md |
Documents VS Code-owned F6 behavior. |
Review effort: Max
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

What users gain
Keyboard users can step into and back out of nested Table results, resize columns without dragging, and reach Query Playground actions and results without relying on CodeLens. Screen-reader users get a more useful Explorer name and feedback when index creation finishes. Focus indicators, type markers and explanatory text are easier to distinguish.
All 13 original accessibility reports have a disposition: 10 addressed on the extension side, one split between the extension and VS Code, and two owned by VS Code. No extension implementation remains in the agreed scope. This is not tester sign-off; the issues remain open for verification.
Keyboard and screen-reader workflows
documentDB.playground.afterRunsupportsauto,stay,focusResultandnotify. By default, a screen-reader-mode run shortcut focuses the result; other runs keep the edit/run loop. Focus Result and Focus Playground navigate both ways. Completion summaries distinguishnullfrom no return value.Visual contrast
These are calculated ratios, not measurements of rendered controls in the installed workbench. They use captured VS Code 1.147.0 theme colors for Light 2026, Dark 2026, Default High Contrast and Default High Contrast Light, with no user color customizations and with transparency composited.
focusBorder; forced-colors styling is unchanged.Ab,{ }and the other type markers use 80% of the row foreground instead of 40%, so users can read the type as well as the value.hashedremain legible. The expand/collapse button has a 2 px Fluent focus ring withfocusBorderfallback, retaining the systemHighlightin forced colors.Investigated, not changed in the extension
wontfixand tester closure was requested. The exact Save/Go Back sequence and screen-reader speech were not independently re-traced. Investigation and alternatives.Review follow-up: Playground, column sizing and focus
Known Playground limitation (#1172): After the first save of an untitled Playground or Save As, the old result tab remains linked to the original file location. Rerun the query from the saved file to restore navigation in both directions. An ordinary save keeps the existing link.
Verification and remaining checks
Review follow-up verification: The review record records 193 focused tests passing and a full Vitest rerun with 10,366 passed, 8 skipped, no failures. Split-editor targeting (including the same file with different carets), fitting at an unchanged width, and delayed-load focus still need installed-workbench checks.
Observed in the workbench: the resize pass covered both views, pointer and keyboard menus, exact width, validation, cancellation, fitting, pane resizing, scrolled-in headers and focus return. Known limitation: the first click after menu dismissal can focus the grid rather than the clicked cell. Reset to automatic width remains separate under #1161; the dependency on the grid’s double-click behavior is noted in #1151.
Recorded automated evidence: 225 focused tests, 49 browser-manifest tests and nine Document View browser scenarios for the initial changes; 22 focused tests for the later contrast fixes; build and 44 focused tests for Backspace. Browser checks confirmed the Table ring, marker opacity and info-icon styling. The earlier full contrast pass at
7ae981cc9included build, lint, localization validation, strict test type-checking and packaging; the runtime suite’s OpenSSL-dependent file passed separately with Git for Windows’ OpenSSL. These are revision-specific results, not a claim that the full suite was rerun on the final documentation commit.Still for installed-workbench and TCS/C+AI verification: Enter → Backspace → arrow navigation and focus during loading; visual contrast in all four themes; initial Document focus; actual screen-reader announcements and Explorer names; Playground shortcut routing and tester configuration. F6 ownership is not an outstanding extension investigation.
Accessibility user guide · Issue-by-issue triage