fix: show tooltips on simulator hover#844
fix: show tooltips on simulator hover#844Teesta-Mukherjee wants to merge 4 commits intoCircuitVerse:mainfrom
Conversation
✅ Deploy Preview for circuitverse ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
WalkthroughThis pull request modifies Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In `@src/components/Extra.vue`:
- Around line 122-139: The handler for `@mousemove` is writing raw event offsets
into simulationArea.mouseX and mouseY which desyncs hover/tooltip under
pan/zoom; instead convert e.offsetX/e.offsetY into grid-space (reuse the
existing panMove coordinate conversion or call panMove-like logic) before
assigning to simulationArea.mouseX and simulationArea.mouseY so hover detection
uses grid coordinates; keep the tooltip update logic the same (tooltip.x/y can
remain based on screen offsets) and ensure simulationArea.touch remains false
and hovered lookup still uses simulationArea.hover.
In `@src/simulator/src/listeners.js`:
- Around line 791-888: The module fails to import the Tauri event listener so
initDesktopAppListeners() early-returns and no desktop menu handlers are
registered; import the Tauri listen function (used by the listen(...) calls
inside initDesktopAppListeners) from '@tauri-apps/api/event' so the typeof
listen check is valid and the 30+ listeners (e.g., 'new-project', 'save-online',
'export-verilog', etc.) are actually registered; add the import for listen at
the top of the file and keep the existing guard that checks window.__TAURI__ and
typeof listen === 'function'.
There was a problem hiding this comment.
ESLint found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
|
hello @tachyons @ThatDeparted2061 @Nihal4777 this is ready to be reviewed |
|
@Teesta-Mukherjee Can you please add a screen cast. Thank you :)) |
|
@naman79820 I added a sceernshot.What is a screen cast? Can you please let me know? |
Video I mean :)) |

Fixes ##841
Describe the changes you have made in this PR -
Added a hover-based tooltip overlay for simulator elements
tooltipTextof elements near the cursorScreenshots of the UI changes (If any) -
Code Understanding and AI Usage
Did you use AI assistance (ChatGPT, Claude, Copilot, etc.) to write any part of this code?
If you used AI assistance:
Explain your implementation approach:
Checklist before requesting a review
Note: Please check Allow edits from maintainers if you would like us to assist in the PR.
Summary by CodeRabbit
New Features
Accessibility
✏️ Tip: You can customize this high-level summary in your review settings.