[PR #1614] [CLOSED] feat: admin monthly active users metric #1754

Closed
opened 2026-02-26 20:30:55 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1614
Author: @ephraimduncan
Created: 1/28/2025
Status: Closed

Base: archive/nextjsHead: feat/mau


📝 Commits (10+)

📊 Changes

7 files changed (+152 additions, -8 deletions)

View changed files

apps/web/src/app/(dashboard)/admin/stats/monthly-active-users-chart.tsx (+73 -0)
📝 apps/web/src/app/(dashboard)/admin/stats/page.tsx (+12 -1)
📝 apps/web/src/app/(dashboard)/admin/stats/user-with-document.tsx (+2 -2)
📝 package-lock.json (+15 -0)
📝 packages/lib/server-only/admin/get-users-stats.ts (+41 -2)
📝 packages/prisma/package.json (+1 -1)
📝 packages/ui/primitives/document-flow/add-settings.tsx (+8 -2)

📄 Description

Demo

CleanShot 2025-01-29 at 00 30 13@2x

Description

Adds Monthly Active Users (MAU) charts to the admin statistics dashboard. It introduces both regular and cumulative MAU visualizations that track users who have signed in within the last year.

No specific issue reference was provided in the diff.

Changes Made

  • Added new MonthlyActiveUsersChart component for visualizing MAU data
  • Implemented new getMonthlyActiveUsers database query in the admin stats service

Checklist

  • I have tested these changes locally and they work as expected
  • I have followed the project's coding style guidelines (consistent with existing components)
  • I have updated the dashboard UI to include the new visualizations
  • The changes maintain existing accessibility standards

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/1614 **Author:** [@ephraimduncan](https://github.com/ephraimduncan) **Created:** 1/28/2025 **Status:** ❌ Closed **Base:** `archive/nextjs` ← **Head:** `feat/mau` --- ### 📝 Commits (10+) - [`c40e802`](https://github.com/documenso/documenso/commit/c40e80239638b4c73a2a4bc25bf54b3812ca6dc3) feat: add mau card - [`68c8eba`](https://github.com/documenso/documenso/commit/68c8eba2c387a558a5b10242ff27ac94d3de27db) chore: wip - [`6993c52`](https://github.com/documenso/documenso/commit/6993c52b2ae7560dc8a42169c5ea75df911b2a3e) feat: mau - [`97f7d77`](https://github.com/documenso/documenso/commit/97f7d77a341f21782c8d2cd64c0e6178b7dcc68d) chore: cleanup - [`d7f7cbf`](https://github.com/documenso/documenso/commit/d7f7cbf27f67b5a21b58d69cda11cab7de5b618b) fix: exclude disabled users - [`9bc825b`](https://github.com/documenso/documenso/commit/9bc825b3084cf5ab6e5876a34b05fab77c866881) chore: cleanup - [`ff4ba71`](https://github.com/documenso/documenso/commit/ff4ba71ef3c53a1be449469d76a018eb0d655624) chore: add tooltip - [`413c3cb`](https://github.com/documenso/documenso/commit/413c3cbc6ec767b859198ceefdd1a5aea165817d) Merge branch 'main' into feat/mau - [`cdb980b`](https://github.com/documenso/documenso/commit/cdb980bd4ccb1cd483cb0db53fb3d306cd1b00ca) chore: avoid using lastSignedIn - [`8d85d01`](https://github.com/documenso/documenso/commit/8d85d01c9377496db7906dcf4099f7590117f8bd) chore: remove unused type ### 📊 Changes **7 files changed** (+152 additions, -8 deletions) <details> <summary>View changed files</summary> ➕ `apps/web/src/app/(dashboard)/admin/stats/monthly-active-users-chart.tsx` (+73 -0) 📝 `apps/web/src/app/(dashboard)/admin/stats/page.tsx` (+12 -1) 📝 `apps/web/src/app/(dashboard)/admin/stats/user-with-document.tsx` (+2 -2) 📝 `package-lock.json` (+15 -0) 📝 `packages/lib/server-only/admin/get-users-stats.ts` (+41 -2) 📝 `packages/prisma/package.json` (+1 -1) 📝 `packages/ui/primitives/document-flow/add-settings.tsx` (+8 -2) </details> ### 📄 Description ## Demo ![CleanShot 2025-01-29 at 00 30 13@2x](https://github.com/user-attachments/assets/0b83426f-9435-4d20-963f-24440a892d20) ## Description Adds Monthly Active Users (MAU) charts to the admin statistics dashboard. It introduces both regular and cumulative MAU visualizations that track users who have signed in within the last year. ## Related Issue No specific issue reference was provided in the diff. ## Changes Made - Added new `MonthlyActiveUsersChart` component for visualizing MAU data - Implemented new `getMonthlyActiveUsers` database query in the admin stats service ## Checklist - [x] I have tested these changes locally and they work as expected - [x] I have followed the project's coding style guidelines (consistent with existing components) - [x] I have updated the dashboard UI to include the new visualizations - [x] The changes maintain existing accessibility standards --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:30:55 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1754
No description provided.