Skip to content

feat(frontend): replace dashboard mock metrics with API data#147

Open
Whiznificent wants to merge 1 commit into
artisyn-io:mainfrom
Whiznificent:frontend/dashboard-metrics-api
Open

feat(frontend): replace dashboard mock metrics with API data#147
Whiznificent wants to merge 1 commit into
artisyn-io:mainfrom
Whiznificent:frontend/dashboard-metrics-api

Conversation

@Whiznificent
Copy link
Copy Markdown

  • Remove mockData object from ArtisanDashboard component
  • Add src/lib/api/dashboard.ts with fetchDashboardMetrics() service
  • Fetch live metrics from /api/artisan/dashboard/metrics on mount
  • Handle loading state with animated skeleton placeholders
  • Handle error state with retry-able error banner
  • Handle empty/null state with descriptive empty state UI

🚀 Artisyn.io Pull Request

Mark with an x all the checkboxes that apply (like [x])

  • Closes #
  • Added tests (if necessary)
  • Run tests
  • Run formatting
  • Evidence attached
  • Commented the code

📌 Type of Change

  • Documentation (updates to README, docs, or comments)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

📝 Changes description


📸 Evidence (A photo is required as evidence)


Thank you for contributing to Artisyn.io, we are glad that you have chosen us as your project of choice and we hope that you continue to contribute to this great project, so that together we can make our mark at the top!

Closes #100

- Remove mockData object from ArtisanDashboard component
- Add src/lib/api/dashboard.ts with fetchDashboardMetrics() service
- Fetch live metrics from /api/artisan/dashboard/metrics on mount
- Handle loading state with animated skeleton placeholders
- Handle error state with retry-able error banner
- Handle empty/null state with descriptive empty state UI

Closes artisyn-io#100
Copy link
Copy Markdown
Contributor

@Kaylahray Kaylahray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Whiznificent Please resolve conflicts n workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace dashboard mock metrics with API data

2 participants