Skip to content

feat(ui): navigate trace steps with keyboard and remove indirect editor focus - #10986

Closed
hi-ogawa wants to merge 18 commits into
vitest-dev:mainfrom
hi-ogawa:feat/trace-step-navigation
Closed

hi-ogawa wants to merge 18 commits into
vitest-dev:mainfrom
hi-ogawa:feat/trace-step-navigation

Conversation

@hi-ogawa

@hi-ogawa hi-ogawa commented Aug 18, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Trace steps currently require repeated clicks of each steps to go through and this can be cumbersome for quick skim.

This PR adds standard keyboard arrow/home/end navigation so it allows going up and down easily.

One fundamental editor behavior change is required for this, which is now "open editor" actions won't automatically move the browser focus to editor cursor at all. This behavior seems natural since if it's static report view, then moving the cursor there is meaningless, and even if it's editable watch UI, I don't think people would immediately start typing after such indirect cursor focus jump where you don't even know which column it jumped to.

📸 Demo

Demo from merge reports https://github.com/vitest-dev/vitest/actions/runs/32121156949/job/95663338646

Screen.Recording.2026-08-18.at.18.46.14.mov

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.
  • Please check Allow edits by maintainers to make review process faster. Note that this option is not available for repositories that are owned by Github organizations.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

Co-authored-by: OpenCode <noreply@opencode.ai>
@netlify

netlify Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b517da3
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a8517ef10323e0008dd7a00
😎 Deploy Preview https://deploy-preview-10986--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

hi-ogawa and others added 2 commits August 18, 2026 18:21
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
hi-ogawa and others added 15 commits August 18, 2026 18:57
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
Co-authored-by: OpenCode <noreply@opencode.ai>
@hi-ogawa hi-ogawa changed the title feat(ui): navigate trace steps with keyboard feat(ui): navigate trace steps with keyboard and remove indirect editor focus Aug 19, 2026
:class="getStepButtonClass(step, index)"
:style="{ paddingInlineStart: `${0.5 + step.depth}rem` }"
:aria-current="selection.selectedStepIndex === index ? 'step' : undefined"
:aria-selected="selection.selectedStepIndex === index"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also polished aria from aria-current to listbox option aria-selected combo, which is supposedly better aria pattern.

@hi-ogawa
hi-ogawa marked this pull request as ready for review August 19, 2026 02:55
@hi-ogawa

Copy link
Copy Markdown
Collaborator Author

Recreated as #11005 from an upstream branch to test stacked PR behavior.

Posted by OpenCode (gpt-5.6-sol) on behalf of @hi-ogawa; this comment has not been human-reviewed.

@hi-ogawa hi-ogawa closed this Aug 19, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support keyboard navigation between trace view step selection

1 participant