Repository navigation
perf: share tooltip hover delays across notebook cells - #12242
Merged
Merged
Conversation
Use the app's tooltip provider for regular and setup cells. Moving the pointer between cells can now open the next tooltip immediately, and each cell no longer retains its own provider.
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
kirangadhave
marked this pull request as draft
December 2, 2026 18:50
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the shared notebook tooltip changes.
No open issues 🎉
What changed in this PR
Shares the notebook’s tooltip provider across editable and setup cells, allowing immediate tooltip transitions between cells.
Changes:
- Removes per-cell tooltip providers.
- Patches Radix to restore the hover delay when an open tooltip unmounts.
- Adds coverage for cross-cell hovering and removal of the hovered cell.
| File | Description |
|---|---|
| pnpm-workspace.yaml | Registers the Radix tooltip patch. |
| pnpm-lock.yaml | Records the patched dependency. |
| patches/@radix-ui__react-tooltip@1.4.1.patch | Calls provider cleanup when an open tooltip unmounts. |
| frontend/src/components/editor/notebook-cell.tsx | Uses the shared provider for editable and setup cells. |
| frontend/src/components/editor/__tests__/cell-renders.test.tsx | Tests shared delays and delay restoration after cell removal. |
Review effort: Balanced
kirangadhave
marked this pull request as ready for review
December 2, 2026 18:52
Contributor
Coverage Report for ./frontend
File Coverage
|
||||||||||||||||||||||||||||||||||||||
mscolnick
approved these changes
Dec 2, 2026
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.
Summary
Editable cells and the setup cell now use the notebook’s existing tooltip provider. Each cell previously started its own hover delay. With a shared provider, moving from an open tooltip in one cell to a control in another opens the next tooltip immediately. This addresses the tooltip portion of MO-8795.
Evidence
All 22 targeted tests passed. The frozen-lockfile install, frontend typecheck, and production build passed. Chromium checks covered setup-to-regular hover, keyboard focus, Escape, Tab, and tooltip placement in the page and in fullscreen.
One Radix edge case remains. If a host update removes a cell while its tooltip is open, the next hover can open immediately even after a long pause. Closing that tooltip restores the usual delay.