← Back to Pull requests

OU-1429: add alert detail side panel #1391

Closed
unknown closed this pull request without merging on Nov 02, 2026 14:49 UTC
View on GitHub
unknown unknown commented on Oct 27, 2026 21:41 UTC
Author

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 -->

Diff: 207 lines (+155 / -52) across 2 files Reviewer: PeterYurkovich Review duration: 8227m
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
0.41
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 41.4% (MEDIUM) · Higher = larger blast radius
41.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 16.4% · Safe to merge
16.4%