Skip to content

Replace alert with empty state component in Value Stream Analytics

What does this MR do and why?

Replace the gl-alert component

Screenshot_2023-07-20_at_17.08.26

with the brand component no-data-available-state

Screenshot_2023-07-20_at_17.09.15

in order to meet the empty state pattern.

Also, the stage component is not rendered if there are no events.

Screenshot_2023-07-20_at_17.08.36

Screenshots or screen recordings

Scenario
when fecthing
stage events
Before After
No error message
from API
Recording_2023-07-20_at_17.05.03 Recording_2023-07-20_at_17.03.42
Error message from API
with status OK (200)
Error200 error200_
Error message from API
with status other than OK (200)
error400 error400_

How to set up and validate locally

You will need a GitLab Ultimate license

  1. Create a group
  2. Seed cycle analytics data
  3. Visit the Value streams dashboard

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #402979 (closed)

Edited by Dannyel Cardoso da Fonseca

Merge request reports