Toasts go only to a bar you can see: the Undo toast survives leaving a note on a phone (#324) #367

Closed
kayg wants to merge 0 commits from issue/324-toast-active-bar-2 into dev
Owner

Fixes #324. Rebased onto current dev (the bar is now the shared Bar with modes); replaces #341.

Cause. BottomBar attached itself to the toast system for as long as it was mounted. Notes and Settings both stay mounted under each other (#173), the one underneath being inert and hidden. So on a phone, Settings' bar counted as "a bar on screen". Deleting a note goes back to the list, which has no bar of its own; the Undo toast was handed to Settings' hidden bar instead of falling back to Sonner's stack, and never showed. Found by dumping the Undo button's ancestors in the failing run: DIV.tab-layer off INERT > .settings > .bar-wrap > .row.bar-toast, all visibility: hidden.

Fix. BottomBar has an active prop (Shell, PhoneStack and Settings pass the active they already use to mark themselves inert) and attaches only while it is true.

Evidence. toast-bar.spec "a toast that leaves its screen carries on: in the next bar, or on its own where there is none" is the test for this (kept). On dev it was red in chromium-390 and webkit-390; with the fix it passes in both (and in chromium-390's list-screen path the toast is in Sonner's stack). At 1440 that same test is red on dev for a different, test-side reason, fixed in the toast-bar blur PR. One worker, slot lock.

🤖 Generated with Claude Code

Fixes #324. Rebased onto current dev (the bar is now the shared `Bar` with modes); replaces #341. **Cause.** `BottomBar` attached itself to the toast system for as long as it was mounted. Notes and Settings both stay mounted under each other (#173), the one underneath being `inert` and hidden. So on a phone, Settings' bar counted as "a bar on screen". Deleting a note goes back to the list, which has no bar of its own; the Undo toast was handed to Settings' hidden bar instead of falling back to Sonner's stack, and never showed. Found by dumping the Undo button's ancestors in the failing run: `DIV.tab-layer off INERT` > `.settings` > `.bar-wrap` > `.row.bar-toast`, all `visibility: hidden`. **Fix.** `BottomBar` has an `active` prop (Shell, PhoneStack and Settings pass the `active` they already use to mark themselves inert) and attaches only while it is true. **Evidence.** `toast-bar.spec` "a toast that leaves its screen carries on: in the next bar, or on its own where there is none" is the test for this (kept). On dev it was red in chromium-390 and webkit-390; with the fix it passes in both (and in chromium-390's list-screen path the toast is in Sonner's stack). At 1440 that same test is red on dev for a different, test-side reason, fixed in the toast-bar blur PR. One worker, slot lock. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Toasts go only to a bar you can see (#324)
Some checks failed
CI / server (pull_request) Successful in 29s
CI / rust (pull_request) Successful in 3m25s
CI / web (pull_request) Failing after 1m57s
c1bbfa03e9
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
Author
Owner

Landed in merge train #380.

Landed in merge train #380.
kayg closed this pull request 2026-10-14 22:25:34 +00:00
Some checks failed
CI / server (pull_request) Successful in 29s
CI / rust (pull_request) Successful in 3m25s
CI / web (pull_request) Failing after 1m57s

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!367
No description provided.