Skip to content

Truncate analytics dashboard descriptions on the listing

What does this MR do and why?

Truncates analytics dashboard descriptions on the dashboard list page when they are very large.

This allows the dashboard listing to remain usable if someone puts in some unusually large text.

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
image image
image (Expanded)

How to set up and validate locally

  1. Follow these instructions to setup Product Analytics in GDK.
  2. Onboard Product Analytics by setting up the feature at Project > Analytics > Analytics dashboards.
  3. Navigate back to Project > Analytics > Analytics dashboards and click on New dashboard at the top right.
  4. Create a dashboard with a custom description which is very large and click save.
  5. Go back to the dashboards list at Project > Analytics > Analytics dashboards
  6. Verify the large description is truncated and can be expanded to show the whole description.
  7. Note, small screen sizes get different amount of content shown by gl-truncate-text

Related to #429057 (closed)

Edited by Elwyn Benson

Merge request reports