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

Dashboard Metrics #361

Merged
merged 108 commits into from
Dec 22, 2024
Merged

Dashboard Metrics #361

merged 108 commits into from
Dec 22, 2024

Conversation

TheCactusBlue
Copy link
Contributor

@TheCactusBlue TheCactusBlue commented Dec 10, 2024

image


Important

Introduces a new metrics dashboard with backend endpoint and frontend components for visualizing user metrics.

  • Backend:
    • Adds /internal/metrics endpoint in route.tsx to fetch user metrics like daily active users, registrations, and geographical distribution.
    • Introduces retryTransaction function in prisma-client.tsx for handling database transactions with retries.
  • Frontend Components:
    • Adds GlobeSection in globe.tsx for 3D visualization of user distribution by country.
    • Adds LineChartDisplay in line-chart.tsx for time series visualizations.
    • Implements metrics dashboard page in page-client.tsx with summary cards for total and active users.
  • Integration:
    • Adds sendAdminRequest method to StackAdminApp in stack-app.ts for metrics data fetching.
  • Misc:
    • Updates package.json in dashboard to include new dependencies @react-hook/resize-observer, react-globe.gl, and recharts.
    • Adds e2e test internal-metrics.test.ts for /internal/metrics endpoint.

This description was created by Ellipsis for 1cb0c70. It will automatically update as commits are pushed.

@CLAassistant
Copy link

CLAassistant commented Dec 10, 2024

CLA assistant check
All committers have signed the CLA.

Copy link

vercel bot commented Dec 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stack-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 22, 2024 1:40am
stack-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 22, 2024 1:40am
stack-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 22, 2024 1:40am

apps/backend/src/app/api/v1/internal/metrics/route.tsx Outdated Show resolved Hide resolved
apps/backend/src/app/api/v1/internal/metrics/route.tsx Outdated Show resolved Hide resolved
apps/backend/src/app/api/v1/internal/metrics/route.tsx Outdated Show resolved Hide resolved
apps/backend/src/app/api/v1/internal/metrics/route.tsx Outdated Show resolved Hide resolved
apps/dashboard/package.json Outdated Show resolved Hide resolved
packages/stack-shared/src/interface/adminInterface.ts Outdated Show resolved Hide resolved
apps/dashboard/src/components/ui/card.tsx Outdated Show resolved Hide resolved
apps/dashboard/src/components/ui/chart.tsx Outdated Show resolved Hide resolved
TheCactusBlue and others added 5 commits December 9, 2024 19:14
Co-authored-by: Konsti Wohlwend <[email protected]>
Co-authored-by: Konsti Wohlwend <[email protected]>
…/metrics/page-client.tsx


Use interfaces instead

Co-authored-by: Konsti Wohlwend <[email protected]>
Co-authored-by: Konsti Wohlwend <[email protected]>
Copy link

ellipsis-dev bot commented Dec 20, 2024

⚠️ This PR is too big for Ellipsis, but support for larger PRs is coming soon. If you want us to prioritize this feature, let us know at [email protected]


Generated with ❤️ by ellipsis.dev

Copy link

ellipsis-dev bot commented Dec 20, 2024

⚠️ This PR is too big for Ellipsis, but support for larger PRs is coming soon. If you want us to prioritize this feature, let us know at [email protected]


Generated with ❤️ by ellipsis.dev

Copy link

ellipsis-dev bot commented Dec 21, 2024

⚠️ This PR is too big for Ellipsis, but support for larger PRs is coming soon. If you want us to prioritize this feature, let us know at [email protected]


Generated with ❤️ by ellipsis.dev

Copy link

ellipsis-dev bot commented Dec 22, 2024

⚠️ This PR is too big for Ellipsis, but support for larger PRs is coming soon. If you want us to prioritize this feature, let us know at [email protected]


Generated with ❤️ by ellipsis.dev

Copy link

ellipsis-dev bot commented Dec 22, 2024

⚠️ This PR is too big for Ellipsis, but support for larger PRs is coming soon. If you want us to prioritize this feature, let us know at [email protected]


Generated with ❤️ by ellipsis.dev

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.

5 participants