Skip to content

Fix sidebar alert badge not syncing with sub-tab dismissals#214

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/alert-badge-sync
Feb 20, 2026
Merged

Fix sidebar alert badge not syncing with sub-tab dismissals#214
erikdarlingdata merged 1 commit intodevfrom
feature/alert-badge-sync

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Sidebar "Alerts" badge wasn't updating when alerts were dismissed from inside a server tab (Locking, Memory, etc.)
  • Root cause: ServerTab only called AlertStateService.AcknowledgeAlert (tab badges) but never touched EmailAlertService (sidebar badge source)
  • Added AlertAcknowledged event on ServerTab; MainWindow subscribes and hides email alerts + refreshes sidebar badge

Note

The sidebar badge re-notification follows a 5-minute cooldown per alert type per server. If an alert condition persists after dismissal, the badge reappears after cooldown expires. This is by design to avoid notification spam.

Test plan

  • Connect to server generating blocking/deadlock alerts
  • Verify sidebar badge shows count
  • Right-click Locking sub-tab → Acknowledge → sidebar badge clears
  • Wait for new alerts → sidebar badge reappears after cooldown

🤖 Generated with Claude Code

When dismissing alerts from inside a server tab (right-clicking Locking,
Memory, etc.), the sidebar Alerts badge count was not updated because
ServerTab only called AlertStateService.AcknowledgeAlert (tab badges)
without touching the EmailAlertService alert log (sidebar badge source).

Added AlertAcknowledged event on ServerTab, fired after sub-tab dismiss.
MainWindow subscribes and hides email alerts + refreshes sidebar badge,
matching the landing page dismiss flow.

Note: the sidebar badge re-notification follows a 5-minute cooldown per
alert type per server — this is by design to avoid notification spam.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 94ab820 into dev Feb 20, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/alert-badge-sync branch February 20, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant