OU-1429: add alert detail side panel #1391
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.41) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.41 · 207 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.319
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #1391"
general
weight: 0.35
PeterYurkovich
This PR looks to add an alert detail sidepanel while retaining the underlying state of the table beneath it. To accomplish this, rather than adding a new route, the sidepanel is opened if a unique identifier for an alert is included in the URL parameters and is valid, specifically the combination of the alert rule ID that the new backend provides as well as the prometheus alert fingerprint (effectively a hash of labels). If one is missing or there is no alert that matches the parameter (for example an old like to an alert that has been resolved) the panel is not opened and the URL clears those fields.
It also fixes some issues with the devspaces setup with the new alert management api backend and cleans up the internals of the usePagination hook
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Summary
New Features
Selecting an alert name opens a side panel, including from a direct link. The selected alert appears in the URL, so browser navigation can move between selections.
Closing the panel preserves the alert list and its state. Close it with the panel button or backdrop.
Bug Fixes
Changing alert filters or grouping resets pagination appropriately, and pages beyond the available results are corrected.
Table pagination stays synchronized with the URL, including when changing the number of rows per page.
Invalid alert selections are cleared from the URL with a warning.
Style
* Updated the alert side panel layout and styling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->