Skip to content

Add call to action to issue analytics empty state

What does this MR do and why?

Add call to action to issue analytics empty state

Covers 3 different cases:

  1. Group has 0 projects
  2. Group has >0 projects but 0 issues
  3. Group has issues but none match the currently applied filter

Screenshots or screen recordings

Scenario Before After
group has 0 projects gdk.test_3000_groups_completely-empty-group_-issues_analytics__1 gdk.test_3000_groups_completely-empty-group_-_issues_analytics
group has >0 projects but 0 issues gdk.test_3000_groups_group-with-1-empty-project_-issues_analytics__1 gdk.test_3000_groups_group-with-1-empty-project_-_issues_analytics
group has issues but current filter matches 0 issues
(no change)
gdk.test_3000_groups_flightjs_-issues_analytics_scope_all_label_name___Tripod__1 gdk.test_3000_groups_flightjs_-_issues_analytics_scope_all_label_name___Tripod

How to set up and validate locally

  1. Check out this branch
  2. Create a new empty group
  3. Ensure the group has access to EE features
  4. Visit the Issue Analytics page for the group
    • You should see an empty state that has a "create project" CTA button
  5. Create a project in the group
  6. Return to the group's Issue Analytics page
    • You should now see an empty state that has a "create project" CTA button and a dropdown to select a project in which to create a new issue
  7. In a group that has issues and has access to EE features, visit the Issue Analytics page
  8. Filter on a label that does not have any issues
    • You should see the same empty state that would be seen in prod today in this scenario

Related to #8162 (closed) Related to #474922 (closed)

Edited by Chad Lavimoniere

Merge request reports

Loading