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:
- Group has 0 projects
- Group has >0 projects but 0 issues
- Group has issues but none match the currently applied filter
Screenshots or screen recordings
Scenario | Before | After |
---|---|---|
group has 0 projects | ||
group has >0 projects but 0 issues | ||
group has issues but current filter matches 0 issues (no change) |
How to set up and validate locally
- Check out this branch
- Create a new empty group
- Ensure the group has access to EE features
- Visit the Issue Analytics page for the group
- You should see an empty state that has a "create project" CTA button
- Create a project in the group
- 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
- In a group that has issues and has access to EE features, visit the Issue Analytics page
- 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