A toast's time no longer stays paused when the pointer leaves unseen (WebKit) #354

Closed
kayg wants to merge 3 commits from issue/325-toast-hover-stuck into dev
Owner

Part of #325 (toast-bar, WebKit). Stacked on #341 and the inactive-bar PR; merge those first.

Cause. toast-bar.spec "a toast is the bar, then the bar comes back" failed on dev in webkit-1440 and webkit-390 (and in chromium-1440 once the other reds were cleared): after Undo the "Undone" toast stayed for good. A toast's time pauses while the pointer is on it (on purpose, so you never miss an Undo). I logged pointerover/pointerout in WebKit: Undo's button is replaced by "Undone" under the pointer, WebKit sends no pointerleave for the toast around it afterwards, so hovered stayed true. That is a real bug (a Safari user with the pointer parked there would also keep the toast), not only a test problem. In Chromium the leave arrives, but a test pointer that stays on the toast keeps it paused too.

Fix. The bar listens to pointerover on the window: any pointer move over something that isn't the toast clears hovered. The test also moves its pointer off after pressing Undo, as a person would, with a comment saying why.

Evidence. toast-bar.spec: both tests pass in chromium-1440, chromium-390, webkit-1440, webkit-390 (before: webkit-1440 test 1 and webkit-390 both red). Combined with tag-rename.spec: green; one run had a single WebKit load flake ("Undo takes the rename back": the button reported unstable for 60 s); three repeats alone and a full rerun were green.

🤖 Generated with Claude Code

Part of #325 (toast-bar, WebKit). **Stacked on #341 and the inactive-bar PR**; merge those first. **Cause.** `toast-bar.spec` "a toast is the bar, then the bar comes back" failed on dev in webkit-1440 and webkit-390 (and in chromium-1440 once the other reds were cleared): after Undo the "Undone" toast stayed for good. A toast's time pauses while the pointer is on it (on purpose, so you never miss an Undo). I logged `pointerover`/`pointerout` in WebKit: Undo's button is replaced by "Undone" under the pointer, WebKit sends no `pointerleave` for the toast around it afterwards, so `hovered` stayed true. That is a real bug (a Safari user with the pointer parked there would also keep the toast), not only a test problem. In Chromium the leave arrives, but a test pointer that stays on the toast keeps it paused too. **Fix.** The bar listens to `pointerover` on the window: any pointer move over something that isn't the toast clears `hovered`. The test also moves its pointer off after pressing Undo, as a person would, with a comment saying why. **Evidence.** toast-bar.spec: both tests pass in chromium-1440, chromium-390, webkit-1440, webkit-390 (before: webkit-1440 test 1 and webkit-390 both red). Combined with tag-rename.spec: green; one run had a single WebKit load flake ("Undo takes the rename back": the button reported unstable for 60 s); three repeats alone and a full rerun were green. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Toasts go only to a bar you can see (#324)
Some checks failed
CI / web (pull_request) Failing after 21s
CI / server (pull_request) Successful in 22s
CI / rust (pull_request) Successful in 1m34s
ba3dadf4dd
Notes and Settings stay mounted under each other, so Settings' bar counted as a bar on screen
while it was hidden and inert. On a phone, deleting a note went back to the list (which has no
bar of its own) and the Undo toast was handed to Settings' hidden bar, never showing. A bar now
attaches only while its screen is active.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
A bar under another screen shows no questions or toasts (#325)
Some checks failed
CI / server (pull_request) Successful in 25s
CI / web (pull_request) Failing after 26s
CI / rust (pull_request) Successful in 1m53s
6492e499a8
The merge question (ui.ask) and the toast queue are shared, so Settings' hidden bar showed the
same question as the visible one: two elements with the same words, and tag-rename's getByText
hit a strict-mode violation. Only the active bar answers for them now, and only it takes Escape.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
A toast's time no longer stays paused when the pointer leaves unseen (#325)
Some checks failed
CI / web (pull_request) Failing after 32s
CI / server (pull_request) Successful in 43s
CI / rust (pull_request) Successful in 1m37s
3c346b8af8
Undo's button is replaced by 'Undone' under the pointer, and WebKit sends no pointerleave for the
toast around it, so 'hovered' stayed true and the toast never went away. Any pointer move over
something else now clears it. toast-bar.spec moves its pointer off after pressing Undo, as a
person would (a toast waits while the pointer is on it, on purpose).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
kayg closed this pull request 2026-10-14 20:54:19 +00:00
Some checks failed
CI / web (pull_request) Failing after 32s
CI / server (pull_request) Successful in 43s
CI / rust (pull_request) Successful in 1m37s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!354
No description provided.