Repository navigation
fix(operations): every health alert is reachable and a dormant breaker is shown (#3450, #3452) - #3475
Merged
Merged
Conversation
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
circuit_breakersblock the status endpoint already returns, and each agent row with a non-closed transport breaker shows a badge and its failed-connection count.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
Testing
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 keepingcircuit_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/statusshow the badge and failed-attempt count, closed ones show none; checked at 1440 and 768, light and dark.Checklist
🤖 Generated with Claude Code