Phone: deleting a note loses its Undo toast #324

Closed
opened 2026-10-14 17:05:55 +00:00 by kayg · 2 comments
Owner

Found by the #268 agent (2026-10-14). On a phone, deleting a note takes you back to the list, but the Undo toast never shows. It fails on dev too, and the agent's toast test catches it. Undo after delete is a safety net, so this matters. Fix it so the toast survives the navigation (the bar is shared across screens), and keep the test.

Found by the #268 agent (2026-10-14). On a phone, deleting a note takes you back to the list, but the Undo toast never shows. It fails on dev too, and the agent's toast test catches it. Undo after delete is a safety net, so this matters. Fix it so the toast survives the navigation (the bar is shared across screens), and keep the test.
Author
Owner

PR #341 fixes this. Cause: BottomBar attached to the toast system for as long as it was mounted, and Settings stays mounted, hidden and inert, under Notes. On a phone the list has no bar, so the Undo toast was handed to Settings' hidden bar (DIV.tab-layer off INERT > .settings > .bar-wrap > .row.bar-toast, all visibility: hidden) and never showed. A bar now attaches only while its screen is active. The existing toast-bar.spec test ("a toast that leaves its screen carries on...") is the test, kept; it was red in chromium-390 and webkit-390 on dev and passes in chromium/webkit at 1440 and 390 with the fix.

PR #341 fixes this. Cause: `BottomBar` attached to the toast system for as long as it was mounted, and Settings stays mounted, hidden and inert, under Notes. On a phone the list has no bar, so the Undo toast was handed to Settings' hidden bar (`DIV.tab-layer off INERT > .settings > .bar-wrap > .row.bar-toast`, all `visibility: hidden`) and never showed. A bar now attaches only while its screen is active. The existing `toast-bar.spec` test ("a toast that leaves its screen carries on...") is the test, kept; it was red in chromium-390 and webkit-390 on dev and passes in chromium/webkit at 1440 and 390 with the fix.
Author
Owner

Rebased onto current dev: the fix is now #367 (replaces #341). Same cause and test as in my comment above.

Rebased onto current dev: the fix is now #367 (replaces #341). Same cause and test as in my comment above.
kayg closed this issue 2026-10-14 22:25:40 +00:00
Sign in to join this conversation.
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#324
No description provided.