Repository navigation
Closed
Labels
apiAPI service (apps/api)backendServer-side logic and jobsdashboardDashboard app (apps/dashboard)enhancementNew feature or request
Milestone
Description
Alert Rules: dashboard multi-condition / edit UX
Parent
Depends on
- Alert rules foundation: Condition[] + opaque destinationIds (#532) #531 — foundation slice providing
conditions[]anddestinationIdsin the API
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
ANDgroup - 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
ANDgroup - 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
Metadata
Metadata
Assignees
Labels
apiAPI service (apps/api)backendServer-side logic and jobsdashboardDashboard app (apps/dashboard)enhancementNew feature or request
Activity
Merge pull request #542 from Telemetry-Tracker/feat/alert-rules-dashb…
feat(dashboard): multi-condition alert rule edit UX
Release prep v1.15.2: CHANGELOG + API_VERSION for Alert Rules Telemet…