Skip to content

fix(operations): every health alert is reachable and a dormant breaker is shown (#3450, #3452) - #3475

Merged
vybe merged 1 commit into
devfrom
feature/3450-health-panel-alerts-breaker
Oct 9, 2026
Merged

vybe merged 1 commit into
devfrom
feature/3450-health-panel-alerts-breaker

Conversation

@trinity-ability

Copy link
Copy Markdown
Contributor

Description

Not changed here: the alerts endpoint returns at most 50 rows with no grand total, so the header count is the loaded page.

Part of the UI sweep epic #3471.

Related Issue

Fixes #3450
Fixes #3452

Journey Impact

Journey Impact: none: bug fix to existing behaviour found by the UI sweep; no journey promise is added or changed

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Testing

  • I have tested this locally
  • New tests added (if applicable)
  • All existing tests pass
  • Every new test executes the changed path

Mutation: monitoringPanelAlertsBreaker.spec.js — 2 red with .slice(0, 5) restored, 1 red with the bounded viewport removed, 2 red with the store no longer keeping circuit_breakers, 1 red with dormant treated as nothing to show; each restored byte-identical.

UI verification: on a preview frontend over a live local backend: Active Alerts (50) renders 50 rows in a 288 px scroll region (scrollHeight 2792) with the last row reachable and the page height unchanged; exactly the four agents whose breaker is dormant in GET /api/monitoring/status show the badge and failed-attempt count, closed ones show none; checked at 1440 and 768, light and dark.

Checklist

  • My code follows the project's style guidelines
  • I have updated the documentation (if applicable)
  • I have not committed any sensitive data (API keys, credentials, etc.)

🤖 Generated with Claude Code

…nt breaker (#3450, #3452)

#3450 — the header printed `alerts.length` ("Active Alerts (50)") while the
list iterated `alerts.slice(0, 5)` with no expander, so 45 alerts were
counted and unreachable. Every alert is now rendered inside a bounded,
keyboard-focusable viewport (max-h-72 + internal scroll, about the five rows
the panel always showed), so the stated count is the reachable count and the
page does not grow.

#3452 — `GET /api/monitoring/status` already carries the per-agent transport
breaker map (`circuit_breakers`), but the monitoring store never kept it and
the panel never rendered it, so no breaker state was visible at all — DORMANT
included. The store now keeps it and each agent row whose breaker is not
closed carries a BaseBadge naming the state ("Breaker dormant" / "Breaker
open") plus the failure count in the row's meta line. No backend change.

Tests: tests/unit/monitoringPanelAlertsBreaker.spec.js mounts the panel over
a real Pinia and the real store (HTTP client stubbed). Red under mutation:
- restoring `.slice(0, 5)` -> "renders one row per alert, so the stated
  count is the reachable count" and "contains the list in a scrollable,
  keyboard-reachable viewport instead of growing the page"
- dropping `max-h-72 overflow-y-auto` -> the viewport test
- store not keeping `circuit_breakers` -> "a DORMANT breaker reads as
  dormant, with its failure count" and "an OPEN breaker is shown too; a
  closed or unreported one adds nothing"
- treating dormant as nothing-to-say -> the DORMANT test

Fixes #3450
Fixes #3452

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@vybe vybe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge-train: batch validated on train/20261009-2301-a (#3500)

@vybe
vybe merged commit 84475b0 into dev Oct 9, 2026
24 checks passed
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.

2 participants