Skip to content

feat: Build DAU/MAU chart widget (frontend) - #583

Merged
phertyameen merged 1 commit into
MindBlockLabs:mainfrom
Ummi-001:feature/dau-mau-chart-572
Jul 21, 2026
Merged

feat: Build DAU/MAU chart widget (frontend)#583
phertyameen merged 1 commit into
MindBlockLabs:mainfrom
Ummi-001:feature/dau-mau-chart-572

Conversation

@Ummi-001

Copy link
Copy Markdown
Contributor

Closes #572

Summary

Adds a DAU/MAU chart widget to the analytics dashboard, per issue #572.

Changes

  • frontend/lib/api/analyticsApi.ts — new analytics API client (getDauMauMetrics) that fetches DAU/MAU time series data from the backend analytics endpoint.
  • frontend/components/analytics/DauMauChart.tsx — new chart component rendering DAU and MAU as a line chart (recharts), with:
    • A date-range picker (presets for 7/30/90 days, plus custom start/end date inputs) that re-fetches data on change.
    • A stickiness ratio callout (average DAU/MAU %).
    • Loading, error, and empty states.
  • frontend/app/analytics/page.tsx — new /analytics page that renders the chart.
  • Added recharts as a dependency for chart rendering.

Notes

  • Data fetching uses @tanstack/react-query, which is already wired up in the app via QueryProvider.
  • The client currently calls GET /analytics/dau-mau?startDate=...&endDate=.... The backend analytics module (backend/src/analytics/) doesn't yet expose this endpoint — only the entity and event listener exist so far. Once the backend endpoint lands, only analyticsApi.ts should need adjusting if the route or response shape differs.

@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

@Ummi-001 is attempting to deploy a commit to the aminubabafatima8-gmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mind-block-app-frontend Ready Ready Preview, Comment Jul 21, 2026 1:51pm

@phertyameen phertyameen changed the title feat(analytics): Build DAU/MAU chart widget (frontend) feat: Build DAU/MAU chart widget (frontend) Jul 21, 2026

@phertyameen phertyameen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

great!

@phertyameen
phertyameen merged commit a91819d into MindBlockLabs:main Jul 21, 2026
8 of 10 checks passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Jul 21, 2026
3 tasks
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.

Build DAU/MAU chart widget (frontend)

2 participants