feat(devtools): add source inspector with element highlighting#214
Merged
AlemTuzlak merged 6 commits intoTanStack:mainfrom Oct 17, 2025
axuj:main
Merged
feat(devtools): add source inspector with element highlighting#214AlemTuzlak merged 6 commits intoTanStack:mainfrom axuj:main
AlemTuzlak merged 6 commits intoTanStack:mainfrom
axuj:main
Conversation
Extract the source opening logic into a new SourceInspector component that highlights elements on Shift+Ctrl hover, improving the devtools user experience for inspecting sources.
|
…nd name tags Refactor the SourceInspector component to use createStore for state management, integrate @solid-primitives for resize observer, keyboard, mouse, and event listener to improve performance and accuracy. Add a dynamic name tag displaying the file name near highlighted elements, with smart positioning to avoid screen edges.
…roach in source inspector
…mentation - Replace @solid-primitives/mouse with custom event listener using createEventListener - Use e.clientX and e.clientY for client position instead of page position - Explanation: @solid-primitives/mouse returns page position, but we need client position for accurate element highlighting in source inspector
AlemTuzlak
approved these changes
Oct 17, 2025
Collaborator
AlemTuzlak
left a comment
There was a problem hiding this comment.
this is really awesome, thank you so much!
|
View your CI Pipeline Execution ↗ for commit dd0ab3c
☁️ Nx Cloud last updated this comment at |
More templates
@tanstack/devtools
@tanstack/devtools-client
@tanstack/devtools-ui
@tanstack/devtools-utils
@tanstack/devtools-vite
@tanstack/devtools-event-bus
@tanstack/devtools-event-client
@tanstack/react-devtools
@tanstack/solid-devtools
commit: |
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.
🎯 Changes
Extract the source opening logic into a new SourceInspector component that highlights elements on Shift+Ctrl hover, improving the devtools user experience for inspecting sources.
✅ Checklist
pnpm test:pr.🚀 Release Impact