Add dashboards item to the projects analytics submenu

Problem to solve

For Product Analytics, we need to introduce several new screens for the user to interact with. This includes approximately five screens for dashboards, query building & configuration, and cluster configuration settings, and funnel analysis, at a minimum. These screens need to be reachable via the left sidebar while also complying with our design and product guidelines.

Proposal

  • Add a new Dashboards item.
  • This is where all the Product Analytics dashboards (e.g. Audience and Behavior will live.
  • Over time, the existing dashboards (e.g. Value Stream,CI/CD, etc) on the Analytics tab will move here as individual dashboards that can be viewed.
  • Once Value Stream is moved over, we can direct the Analytics main item to link to Dashboards rather than Value Stream.

Implementation plan

backend - 2️⃣

  1. Add new feature flag named combined_analytics_dashboards.
  2. Add new item declaration to add the item to projects configure_menu_items and connect it to project_product_analytics_dashboards_path(@project).
  3. Create new method to add the new item if combined_analytics_dashboards is enabled and the feature is available for the project.
  4. Update the specs to validate the menu item is shown accordingly.
Edited by Robert Hunt