Repository navigation
Conversation
Switch SnapShotCopyButton and SnapShotContentsButton in SnapShotAttachmentDetails.tsx from standalone Base UI Tooltip wrappers to SharedTooltipTrigger so moving across adjacent controls in ExpandedImageDialog and ComposerAttachmentStrip switches the shared tooltip immediately without waiting a fresh hover delay.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The popover, keyboard-focus and disabled-while-copied steps re-tested SharedTooltipTrigger itself, not this change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The automated pipeline stopped on this pull request and will not merge it: the proof could not be captured: the agent ran past its 120 minutes It stays open for a person to finish or close. |
Problem
Moving from Draw on image to Copy snapshot or No accessibility data leaves the old tooltip lingering while the snapshot button waits a fresh delay. Both stayed on
<Tooltip>after #42671.Change
Switch
SnapShotCopyButtonandSnapShotContentsButtoninSnapShotAttachmentDetails.tsxto<SharedTooltipTrigger>, drop unusedTooltipimports, and keep<PopoverTrigger>forwarding anddisabled={copied}. Add a browser test inExpandedImageDialog.browser.test.tsx.Scope
Bug fix (missing shared hover timing on snapshot buttons); oversight from #42671, no issue needed.
Verification
An AI agent ran each check below.
Setup: Ubuntu 26.04.1 LTS (Linux 7.0.0-44-generic), dark, 1024×640, isolated data + Replay (dev); Chromium 156.0.8078.4, debugging-port pointer.
Steps: hover Draw on image → Copy snapshot → No accessibility data (clip + 50 ms still); popover & copy on head.
Clean
git merge-tree --write-treeontoupstream/main5873a7a7.9bd6a895)8bd0e81a)Web: Draw on image lingers at 50 ms.
Web: shared Copy snapshot tooltip open at 50 ms.
Links
apps/web/src/components/chat/ExpandedImageDialog.browser.test.tsx; perf(web): one shared tooltip serves every trigger in the app #42671, fix(web): model picker provider tooltips open at once when moving between icons #45097.Not shown
apps/web; checked in Chromium).check:changed&chat/passed).Automated checks and base/head UI observations (9bd6a89 vs 8bd0e81)
Failing-first browser test on unpatched base (
9bd6a895, committedExpandedImageDialog.browser.test.tsxrun against unpatchedSnapShotAttachmentDetails.tsx; fails when moving from Draw on image to Copy snapshot becauseSnapShotCopyButtonuses standalone<Tooltip>and waits a full hover delay while"Draw on image"lingers):Owning test folder after fix (
apps/web/src/components/chat/on8bd0e81a):vp run check:changed 9bd6a89561e21b9db98c19e8de36728af45262fb:Real-app Chromium observations (
9bd6a895vs8bd0e81a,1024×640, dark theme):9bd6a895(web-before-draw-to-copy-delay.mp4, 5.32 s) vs 41 ms on head8bd0e81a(web-after-draw-to-copy-instant.mp4, 4.92 s).9bd6a895vs 37 ms on head8bd0e81a.9bd6a895,"Draw on image"stayed open at 50 ms (opacity: 1,data-open) on both Copy snapshot and No accessibility data, and at 200 ms no tooltip was open ([]); on head8bd0e81a, the single shared tooltip already showed"Copy snapshot"(opacity: 1,data-open) at 50 ms and 200 ms and"No accessibility data"at 50 ms with"Draw on image"gone immediately.8bd0e81apopover & copied checks: clicking No accessibility data dismissed its tooltip ([]), opened the Accessibility data popover (web-after-contents-popover.png), and closed cleanly with no stuck tooltip ([]); clicking Copy snapshot disabled the button (true) and dismissed its tooltip ([]).Generated with Gemini 4 Neon in T3 Code Nightly