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

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

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

Cause. tag-rename.spec "dropping a tag on another merges them" and "Escape in the bar leaves both tags" fail on dev (chromium-1440 and webkit-1440) with a 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. Same family as #324: more than one bar thinks it is the bar.

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

Evidence. tag-rename.spec: 12 passed (chromium-1440, webkit-1440, others skipped by design), on current dev plus the stack. Before: the two merge tests red in both browsers.

🤖 Generated with Claude Code

Part of #325 (tag-rename). **Stacked on the #324 PR** (it uses the `active` prop that adds); merge that first and this diff shrinks to one commit. Replaces #353. **Cause.** `tag-rename.spec` "dropping a tag on another merges them" and "Escape in the bar leaves both tags" fail on dev (chromium-1440 and webkit-1440) with a 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. Same family as #324: more than one bar thinks it is the bar. **Fix.** A bar with `active` false never shows the question or a toast, and ignores Escape. **Evidence.** tag-rename.spec: 12 passed (chromium-1440, webkit-1440, others skipped by design), on current dev plus the stack. Before: the two merge tests red in both browsers. 🤖 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
A bar under another screen shows no questions or toasts (#325)
Some checks failed
CI / server (pull_request) Successful in 33s
CI / rust (pull_request) Successful in 2m54s
CI / web (pull_request) Failing after 2m8s
ba6d0433c3
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
Author
Owner

Landed in merge train #380.

Landed in merge train #380.
kayg closed this pull request 2026-10-14 22:25:36 +00:00
Some checks failed
CI / server (pull_request) Successful in 33s
CI / rust (pull_request) Successful in 2m54s
CI / web (pull_request) Failing after 2m8s

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