Skip to content

Draft: When quick action fails, use danger variant for alert

What does this MR do and why?

When a quick action in markdown fails, the alert should use the 'danger' variant, not the 'info' variant.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Scenario Before After
Successful quick action (no change) Screenshot_2024-04-10_at_15.14.51 Screenshot_2024-04-10_at_15.14.51
Failed quick action Screenshot_2024-04-10_at_15.14.11 Screenshot_2024-04-10_at_15.14.35

How to set up and validate locally

  1. Check out this branch locally
  2. in an issue or MR, try to use the /assign quick action to assign to a nonexistent user
  3. You will see that the alert created is a danger variant alert
  4. now use the same quick action to assign to an existing user
  5. you will see that the alert uses the info variant

Related to #382799

Merge request reports