Hide visualization designer button if product analytics isn't onboarded
What does this MR do and why?
Ensure the visualization designer button does not show on the analytics dashboard list before Product Analytics has been onboarded.
This is to prevent errors when trying to save visualizations before PA is onboarded.
The logic for showing both buttons is now separated - as Visualization Designer is a product analytics specific feature, but creating custom dashboards is not necessarily product analytics specific.
Note: two similar issues which are not addressed in this MR: #424631 (closed), #437709
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
Project dashboard:
Group dashboard: (no changes, buttons always hidden)
How to set up and validate locally
- Follow these instructions to setup Product Analytics in GDK.
- Create a new project
- Visit analytics dashboards at Project > Analytics > Analytics dashboards
- Verify New Dashboard and Viz Designer buttons are hidden
- Configure a custom dashboard project from the alert on the dashboards page
- Verify New Dashboard button is now available, but not Viz Designer
- Onboard
Product Analytics
by setting up the feature at Project > Analytics > Analytics dashboards. - Verify both New Dashboard button and Viz Designer buttons are now available
Related to #433988 (closed)