Skip to content

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

Closed

Description

@unjica

Alert Rules: dashboard multi-condition / edit UX

Parent

Depends on

Goal

Extend the dashboard Alert Rules UI so users can edit existing rules and author multiple conditions using the flexible API model introduced in #531.

Scope

Edit existing rules

  • Add an edit action for existing alert rules
  • Reuse the rule form for both create and edit flows where practical
  • Pre-populate:
    • rule name
    • enabled state
    • all existing conditions
    • selected notification destinations
  • Save changes through the existing update API
  • Preserve the existing toggle and delete actions

Multi-condition editor

  • Allow adding and removing condition rows
  • Display conditions as an explicit AND group
  • Support every condition type currently accepted by the API
  • Preserve condition-specific fields and operators
  • Prevent removing the final condition, or provide a clear empty state requiring at least one condition
  • Submit conditions in the API conditions[] format

Destination picker

  • List available Notification destinations by their user-facing name and type
  • Store and submit selected destinations through destinationIds
  • Do not imply that Alert Rules directly own Slack, Discord, email, or other delivery implementations
  • Provide a clear empty state when no notification destinations exist
  • Link users to Notification settings where destinations can be configured

Validation and UX polish

  • Require a non-empty rule name
  • Require at least one complete and valid condition
  • Require at least one destination if the API requires it
  • Show field-level validation where possible
  • Disable submission while saving
  • Show clear success and error feedback
  • Preserve entered values after a failed request
  • Handle deleted or unavailable destinations gracefully when editing an existing rule

Acceptance criteria

  • A user can open and edit an existing alert rule
  • Existing values are correctly populated in the edit form
  • A rule can contain multiple conditions
  • Conditions are clearly presented as an AND group
  • Conditions can be added and removed
  • The submitted payload matches the API conditions[] model
  • Notification destinations are selected using destinationIds
  • The destination UI does not imply that rules directly send to Slack, Discord, or email
  • Empty destination and validation states are clear
  • Create, edit, toggle, and delete flows continue to work
  • Relevant dashboard tests are added or updated
  • Documentation or changelog is updated if required

Out of scope

  • New condition types or evaluators
  • Changes to alert evaluation or delivery workers
  • New Notification destination providers
  • Release health or release-specific alert rules

Activity

  1. added
    enhancement
    dashboard
    api
    backend
    on Jul 17, 2026
  2. added a commit that references this issue on Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apibackenddashboardenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions