A bar under another screen shows no questions or toasts (tag-rename reds) #353

Closed
kayg wants to merge 2 commits from issue/325-inactive-bar-silent into dev
Owner

Part of #325 (tag-rename). Stacked on #341 (it uses the active prop that adds); merge that first and this diff shrinks to one commit.

Cause. tag-rename.spec "dropping a tag on another merges them" and "Escape in the bar leaves both tags" failed on dev (chromium-1440 and webkit-1440) with a Playwright strict-mode violation: getByText('Merge #src into #dst? 2 notes') resolved to 2 elements. The merge question (ui.ask) is shared, and Settings stays mounted under Notes (#173), so Settings' hidden bar rendered the same question as the visible one. Not a stale test: two bars both claiming a question is the same family as #324.

Fix. A bar with active false never shows the question or a toast, and ignores Escape.

Evidence. tag-rename.spec all 6 tests pass in chromium-1440 and webkit-1440 (before: the two merge tests red in both). Run through the slot lock, one worker.

🤖 Generated with Claude Code

Part of #325 (tag-rename). **Stacked on #341** (it uses the `active` prop that adds); merge that first and this diff shrinks to one commit. **Cause.** `tag-rename.spec` "dropping a tag on another merges them" and "Escape in the bar leaves both tags" failed on dev (chromium-1440 and webkit-1440) with a Playwright strict-mode violation: `getByText('Merge #src into #dst? 2 notes')` resolved to 2 elements. The merge question (`ui.ask`) is shared, and Settings stays mounted under Notes (#173), so Settings' hidden bar rendered the same question as the visible one. Not a stale test: two bars both claiming a question is the same family as #324. **Fix.** A bar with `active` false never shows the question or a toast, and ignores Escape. **Evidence.** tag-rename.spec all 6 tests pass in chromium-1440 and webkit-1440 (before: the two merge tests red in both). Run through the slot lock, one worker. 🤖 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
kayg closed this pull request 2026-10-14 20:54:18 +00:00
Some checks failed
CI / server (pull_request) Successful in 25s
CI / web (pull_request) Failing after 26s
CI / rust (pull_request) Successful in 1m53s

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