Skip to content

Add statistics card component with tests

Ammar Alakkad requested to merge 350646-add-statistics-card-component into master

What does this MR do and why?

It adds StatisticsCard component with its tests and storybook file. The component will be used in usage quotas (storage, pipelines, and seats).

MR status
!80261 (merged) Add statistics card component 👈 you're here
!79525 (merged) Use StatisticsBlock in usage_quota/storage pending on this MR

Screenshots or screen recordings

Screenshots from storybook

example 1 example 2
Screen_Shot_2022-02-09_at_09.38.23 Screen_Shot_2022-02-09_at_09.38.20

Screenshots from example usage (in upcoming MR !79525 (merged))

before after
Screen_Shot_2022-02-09_at_09.40.52 Screen_Shot_2022-02-09_at_09.40.26

How to set up and validate locally

  1. yarn storybook:start
  2. visit http://localhost:9002/?path=/story/usage-quotas-components-statistics-card--default
  3. visit http://localhost:9002/?path=/story/usage-quotas-components-statistics-card--with-units

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #350646 (closed)

Edited by Ammar Alakkad

Merge request reports