Skip to content

AI impact analytics dashboard: Add tooltip when there is no % change

Alex Pennells requested to merge 462713-fix-blank-change into master

What does this MR do and why?

Improves the UX for when a metric trend cannot be determine on the AI impact analytics dashboard:

  • Renders n/a when the % change cannot be determined (previously left the cell blank)
  • Renders 0.0% for when there is no change % (previously left the cell blank)
  • Adds a tooltip for both cases
  • Cleans up the related test suite (#460801 (closed))

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

Before After
Screenshot_2024-07-04_at_11.40.55_AM Screenshot_2024-07-04_at_11.39.15_AM
Screenshot_2024-07-04_at_11.41.02_AM Screenshot_2024-07-04_at_11.39.23_AM

How to set up and validate locally

  1. Configure your GDK to use ClickHouse
# enable clickhouse
Feature.enable(:clickhouse_data_collection)
Feature.enable(:event_sync_worker_for_click_house)

# enable the worker to sync code suggestions events to clickhouse
Feature.enable(:code_suggestion_events_in_click_house)
  1. Ensure that you are using GitLab Ultimate
  2. Create a new group
  3. Navigate to the Analytics dashboard page for the new group (ex. http://gdk.test:3000/groups/flightjs/-/analytics/dashboards)
  4. Select the AI impact analytics dashboard
  5. Verify that the Change % column shows n/a or 0.0% as appropriate, with a relevant tooltip

Related to #462713 (closed) and #460801 (closed)

Edited by Alex Pennells

Merge request reports