Skip to content

feat: wire dashboard KPI cards to live analytics#618

Closed
xx7412421-cloud wants to merge 4 commits into
Commitlabs-Org:masterfrom
xx7412421-cloud:grantfox-585-dashboard-kpi-live
Closed

feat: wire dashboard KPI cards to live analytics#618
xx7412421-cloud wants to merge 4 commits into
Commitlabs-Org:masterfrom
xx7412421-cloud:grantfox-585-dashboard-kpi-live

Conversation

@xx7412421-cloud

@xx7412421-cloud xx7412421-cloud commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Closes #585

Summary

  • Added a reusable DashboardKpiRow client component that fetches /api/analytics/user and /api/marketplace/stats.
  • Replaced the static commitments KPI cards with wallet-aware live KPI cards.
  • Added loading, error, empty-wallet, missing-metric, zero-value, and retry test coverage.

Validation

  • npm exec -- vitest run tests/components/DashboardKpiRow.test.tsx
  • npm exec -- eslint src/app/commitments/page.tsx src/components/DashboardKpiRow/DashboardKpiRow.tsx tests/components/DashboardKpiRow.test.tsx
  • npm exec -- prettier --check src/components/DashboardKpiRow/DashboardKpiRow.tsx src/components/DashboardKpiRow/DashboardKpiRow.module.css tests/components/DashboardKpiRow.test.tsx
  • git diff --check

Full npm run test -- --run was also attempted, but the repository currently has unrelated pre-existing failures outside this change, including duplicate declarations in backend helpers, JSX syntax errors in an existing modal, missing @testing-library/user-event, and several existing environment setup failures.

Adds the CSV export dialog for the My Commitments page.
Covers CSV downloads, empty exports, missing sessions, and keyboard behavior.
Adds an accessible export button next to the create action.
Connects the export modal to the My Commitments page and fixes related props.
@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

@xx7412421-cloud is attempting to deploy a commit to the 1nonly's projects Team on Vercel.

A member of the Team first needs to authorize it.

@1nonlypiece

Copy link
Copy Markdown
Contributor

nice start wiring the dashboard KPIs to live analytics — but #585 isn't assigned to you, and we ask that contributors get assigned to an issue before opening a PR for it. closing as invalid for now; please grab #585 on the board first, then re-raise and we'll take a proper look. https://discord.gg/WV7tdYkJk

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.

Implement live dashboard KPI cards wired to /api/analytics/user and /api/marketplace/stats

2 participants