feat(alerts): new charts to show alert history#54932
feat(alerts): new charts to show alert history#54932
Conversation
Query snapshots: Backend query snapshots updatedChanges: 1 snapshots (1 modified, 0 added, 0 deleted) What this means:
Next steps:
|
|
Size Change: +38.6 kB (+0.03%) Total Size: 130 MB
ℹ️ View Unchanged
|
Prompt To Fix All With AIThis is a comment left during a code review.
Path: frontend/src/lib/components/Alerts/alertLogic.ts
Line: 225-231
Comment:
**Page count duplicated from selector**
`alertHistoryTablePageForward` re-computes the page count inline (lines 228–229) rather than consuming the already-defined `alertHistoryTablePageCount` selector. This violates OnceAndOnlyOnce — if the formula ever changes it must be updated in two places.
```suggestion
alertHistoryTablePageForward: () => {
const tablePage = values.checksHistoryTablePage
const pageCount = values.alertHistoryTablePageCount
if (tablePage >= pageCount) {
return
}
```
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "types" | Re-trigger Greptile |
|
⏭️ Skipped snapshot commit because branch advanced to The new commit will trigger its own snapshot update workflow. If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:
|
There was a problem hiding this comment.
🔍 QA Team Review Report
| Key | Value |
|---|---|
| Verdict | 💬 APPROVE WITH NITS |
| Risk | 🟡 MEDIUM |
| Agents | 🔒 security 🔄 reliability ⚡ performance 🎨 frontend 📊 data-integrity ✏️ copy 🧑💻 generalist-a 🕵️ generalist-b |
Well-structured feature with proper flag gating, good test coverage, and clean kea architecture. The convergent findings around unbounded offset and unconditional COUNT are worth addressing before broader rollout but are not merge-blockers given the feature flag protection and 14-day check retention cap.
Full report in inline comments below.
|
🎭 Playwright report · View test results →
These issues are not necessarily caused by your changes. |
|
⏭️ Skipped snapshot commit because branch advanced to The new commit will trigger its own snapshot update workflow. If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:
|
|
⏭️ Skipped snapshot commit because branch advanced to The new commit will trigger its own snapshot update workflow. If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:
|
|
⏭️ Skipped snapshot commit because branch advanced to The new commit will trigger its own snapshot update workflow. If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:
|
Visual regression: Storybook UI snapshots updatedChanges: 24 snapshots (0 modified, 24 added, 0 deleted) What this means:
Next steps:
|
Problem
Alert editors only exposed check history as 5 rows in a table, which makes it harder to see how values (or anomaly scores) evolved over time relative to thresholds.
Changes
CleanShot.2026-04-16.at.16.10.01.mp4
How did you test this code?
Locally
new tests
Storybook.
Publish to changelog?
no
Docs update
No docs change. Add
skip-inkeep-docson the PR if you want to suppress the Inkeep docs bot.LLM context
Co-authored with Cursor. Serializer/viewset changes required
hogli build:openapi(frontend alerts schemas, MCP generated alerts tools). Feature flag key in code:alerts-history-chart(FEATURE_FLAGS.ALERTS_HISTORY_CHART).