Skip to content

Add decimal places to VSA metrics

What does this MR do?

This MR adds the animate-decimal-places prop to each GlSingleStat occurrence in the VSA metric component. This prevents the decimal numbers that are provided by the API from being rounded on the fronted. In addition, it ensures that the pluralized unit (also provided by the API) to be correct.

Screenshots (strongly suggested)

Before After
vsa_metrics_rounding_before vsa_metrics_no_rounding_after

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #329702 (closed)

Edited by Martin Wortschack

Merge request reports

Loading