Skip to content

Alert Rules: dashboard multi-condition / edit UX (#533) - #542

Merged
unjica merged 3 commits into
developfrom
feat/alert-rules-dashboard-ux-533
Jul 18, 2026
Merged

unjica merged 3 commits into
developfrom
feat/alert-rules-dashboard-ux-533

Conversation

@unjica

@unjica unjica commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Edit existing custom alert rules (name, conditions, destinations, cooldown) — not only create / toggle / remove
  • Multi-condition editor UI (AND, up to API MAX_CONDITIONS_PER_RULE) with validation and empty-state polish
  • Clearer opaque destination picker (project-email + Delivery channel ids); copy makes clear Notifications owns delivery; orphan bindings are preserved when the Delivery list is incomplete

Closes nothing yet — prefer closing #533 on merge to develop (historical preference). Parent vision #493 stays open.

Test plan

  • Alerts → Custom rules: create a rule with 2+ ERROR_COUNT conditions and verify summary shows AND
  • Edit an existing rule (change threshold / env / destinations / cooldown) and confirm PATCH persists
  • Toggle destinations: project email + a Slack/Discord (etc.) Delivery channel; confirm list row labels bindings clearly
  • Empty state when no rules; validation errors for missing name / no destinations
  • Edit a rule while Delivery list is empty (or refresh mid-edit) and confirm channel bindings are not silently dropped
  • pnpm --filter dashboard lint && pnpm --filter dashboard test

Made with Cursor

unjica and others added 2 commits July 18, 2026 10:11
Enable editing existing rules, AND multi-condition authoring, clearer
opaque destination bindings, and client validation on Alerts → Custom rules (#533).

Co-authored-by: Cursor <[email protected]>
Do not drop webhook destination ids when the Delivery list is empty or
incomplete; show orphan bindings in the picker so edits cannot silently
unbind still-valid channels.

Co-authored-by: Cursor <[email protected]>
@unjica unjica added this to the v1.15.x — Alert Rules milestone Jul 18, 2026
@unjica unjica added dashboard Dashboard app (apps/dashboard) enhancement New feature or request labels Jul 18, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 19dc22d. Configure here.

Comment thread apps/dashboard/lib/alert-rules.ts Resolved
Do not strip deleted Delivery channels from an in-progress edit draft, and
do not synthesize default ERROR_COUNT conditions when loading rules with
empty/unparsable conditions.

Co-authored-by: Cursor <[email protected]>
@unjica
unjica merged commit 8f25aeb into develop Jul 18, 2026
6 of 8 checks passed
@unjica
unjica deleted the feat/alert-rules-dashboard-ux-533 branch July 18, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard Dashboard app (apps/dashboard) enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant