Skip to content

Add alert rules UI (metric alerts phase 1) - #335

Merged
acoshift merged 2 commits into
mainfrom
feat/metric-alerts
Sep 2, 2026
Merged

Add alert rules UI (metric alerts phase 1)#335
acoshift merged 2 commits into
mainfrom
feat/metric-alerts

Conversation

@acoshift

Copy link
Copy Markdown
Member

Summary

Console UI for the new alert resource (SPEC-metric-alerts.md Phase 1; API: deploys-app/api#133, server: deploys-app/apiserver#249).

  • /alert list — condition rendered human-readable, status badges (ok/firing/nodata, disabled takes precedence), 60s auto-refresh
  • /alert/create — create + edit (?name=): location/deployment picker, metric/op/threshold/for-minutes, optional renotify, inline warning when the project has no notification channels
  • /alert/detail — evaluator state, transition history (alert.events), link to the deployment metrics chart, gated edit/delete
  • Nav entry (preview), Api types, mock fixtures/handlers covering ok/firing/nodata/disabled, 13 Playwright specs

Screenshots to follow in a comment.

Testing

bun run check, lint, and full Playwright suite green (394 tests).

@deploys-app
deploys-app Bot temporarily deployed to pr-335 August 11, 2026 07:03 Destroyed
@deploys-app

deploys-app Bot commented Aug 11, 2026

Copy link
Copy Markdown

Preview deleted (PR closed).

acoshift added a commit that referenced this pull request Aug 11, 2026
@acoshift

Copy link
Copy Markdown
Member Author

Screenshots (mock data)

List — status badges, human-readable conditions
alert list

Detail — evaluator state + transition history
alert detail

Create/edit form
alert create

List/create/detail pages for metric alert rules (SPEC-metric-alerts.md
Phase 1): status badges (ok/firing/nodata), combined create+edit form with
deployment picker and notification-channels hint, detail page with
transition history and a link to the deployment metrics chart.
Don't flash Not found on a still-valid deployment while the list loads.
Reset the threshold when the metric unit changes so cpu 90 does not
become a 90 bytes/min egress rule. Default the test mock for
notification.list so the empty-channels warning is honest. Suggest
alert.* / alert.trigger / alert.resolve on the notification form.
@acoshift
acoshift merged commit e93a7a0 into main Sep 2, 2026
5 checks passed
@acoshift
acoshift deleted the feat/metric-alerts branch September 2, 2026 06:48
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.

1 participant