Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/components: add get statistics data function in StatsBar component #616

Merged
merged 10 commits into from
Oct 14, 2024

Conversation

maceksimon
Copy link
Contributor

Update StatsBar component to make it work with API data source:

  • Add useStatsBar composable and define functions for getting icon, label and unit.
  • Update StatsBar to use composable functions.
  • Create a fixture based on actual API output and add types for it.
  • Create a function that computes statistics array for display and use it on the wrapping components (for control over which kind of stats we want to show).
  • Merge custom icons into a single file with component-based name.

@tmszi tmszi added the enhancement New feature or request label Oct 14, 2024
@tmszi tmszi merged commit a4866a4 into auto-mat:main Oct 14, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants