Skip to content

Draft: Hide status badges from custom dashboards

What does this MR do and why?

This MR addresses the follow-up discussion from !200228 (merged) by hiding status badges from custom dashboards (user-created dashboards) because they are user-created and not managed by GitLab, so the disclaimers don't apply.

Status badges (beta/experiment) will now only be shown on prebuilt/built-in dashboards where userDefined is false.

Changes

  • Dashboard list view: Only show status badges for built-in dashboards (!dashboard.userDefined)
  • Dashboard detail view: Only show status badges for built-in dashboards (!dashboard.userDefined)
  • Tests: Updated to reflect the new behavior

References

Closes #560288 (closed) Related to !200228 (merged)

Screenshots or screen recordings

Before After
Status badges shown on all dashboards Status badges only shown on built-in dashboards

How to set up and validate locally

  1. Navigate to Analytics > Dashboards
  2. Create a custom dashboard with a status field (beta/experiment)
  3. Verify that the status badge is NOT shown in the list view or detail view
  4. Check that built-in dashboards still show status badges correctly

MR acceptance checklist

This MR has been evaluated against the MR acceptance checklist.

Merge request reports

Loading