AI impact analytics dashboard: Add tooltip when there is no % change
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 |
---|---|
How to set up and validate locally
- 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)
- Ensure that you are using GitLab Ultimate
- Create a new group
- Navigate to the Analytics dashboard page for the new group (ex. http://gdk.test:3000/groups/flightjs/-/analytics/dashboards)
- Select the
AI impact analytics
dashboard - Verify that the
Change %
column showsn/a
or0.0%
as appropriate, with a relevant tooltip
Related to #462713 (closed) and #460801 (closed)
Edited by Alex Pennells