[PR #1150] [MERGED] feat: add user conversion count to admin panel #1428

Closed
opened 2026-02-26 19:33:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1150
Author: @ephraimduncan
Created: 5/7/2024
Status: Merged
Merged: 7/5/2024
Merged by: @Mythie

Base: mainHead: feat/track-virality


📝 Commits (10+)

  • 3ea3d48 feat: add user conversion count to admin panel
  • 770275d chore: text
  • 5bf7516 feat: monthly conversion with chart
  • fecea53 chore: remove redundant card
  • b46079f Merge branch 'main' into feat/track-virality
  • f947a2b chore: text
  • 6205f03 chore: replace prisma query raw with kysely
  • b58a253 Update packages/lib/server-only/user/get-signer-conversion.ts
  • 1406a6f fix: revert last commit
  • 4fe6ed0 fix: conflicts

📊 Changes

9 files changed (+147 additions, -22 deletions)

View changed files

📝 apps/marketing/content/blog/announcing-profiles.mdx (+7 -4)
📝 apps/marketing/content/blog/signing-an-nda-faster-with-documenso.mdx (+7 -1)
📝 apps/marketing/content/changelog.mdx (+9 -1)
📝 apps/web/src/app/(dashboard)/admin/nav.tsx (+2 -2)
📝 apps/web/src/app/(dashboard)/admin/stats/page.tsx (+22 -12)
apps/web/src/app/(dashboard)/admin/stats/signer-conversion-chart.tsx (+64 -0)
📝 apps/web/src/app/(dashboard)/admin/stats/user-with-document.tsx (+1 -1)
📝 apps/web/src/components/(dashboard)/metric-card/metric-card.tsx (+1 -1)
packages/lib/server-only/user/get-signer-conversion.ts (+34 -0)

📄 Description

Description

Display the count of users who signed up after signing at least one document in the admin panel

CleanShot 2024-05-09 at 21 44 59@2x

Changes Made

  • Created a new function getSignerConversion to retrieve the count of converted recipients from the database and added a new metric card in the admin stats page to display the count

Checklist

  • I have tested these changes locally and they work as expected.
  • I have added/updated tests that prove the effectiveness of these changes.
  • I have updated the documentation to reflect these changes, if applicable.
  • I have followed the project's coding style guidelines.
  • I have addressed the code review feedback from the previous submission, if applicable.

Summary by CodeRabbit

  • New Features

    • Introduced SignerConversionChart component to display signer conversion data in a bar chart.
    • Added FileCog, UserPlus, and Users icons to the admin stats page.
  • Enhancements

    • Updated Users icon in admin navigation bar for a consistent visual experience.
    • Enhanced metric-card styling with improved text spacing.
    • SignerConversionChart now supports cumulative data display.
  • Bug Fixes

    • Corrected inconsistent icon usage on the admin stats page.
  • Chores

    • Implemented functions to fetch signer conversion statistics for more detailed analytics.

🔄 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/1150 **Author:** [@ephraimduncan](https://github.com/ephraimduncan) **Created:** 5/7/2024 **Status:** ✅ Merged **Merged:** 7/5/2024 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/track-virality` --- ### 📝 Commits (10+) - [`3ea3d48`](https://github.com/documenso/documenso/commit/3ea3d4838b64e572d2d03267bcb87de464841896) feat: add user conversion count to admin panel - [`770275d`](https://github.com/documenso/documenso/commit/770275d0b475f16abff2fe32c346e02b3e6302bf) chore: text - [`5bf7516`](https://github.com/documenso/documenso/commit/5bf7516979b106ce184676899117a194b22e2189) feat: monthly conversion with chart - [`fecea53`](https://github.com/documenso/documenso/commit/fecea53c8c712539a825b8a270e7d574df19c283) chore: remove redundant card - [`b46079f`](https://github.com/documenso/documenso/commit/b46079f36628b4c1056262dee4b31e73ec010f1b) Merge branch 'main' into feat/track-virality - [`f947a2b`](https://github.com/documenso/documenso/commit/f947a2ba5d5cf844d97d11a0d7f3f45693f8a797) chore: text - [`6205f03`](https://github.com/documenso/documenso/commit/6205f03fe04cca24a2e66e2b665ef6a2b4ffec60) chore: replace prisma query raw with kysely - [`b58a253`](https://github.com/documenso/documenso/commit/b58a25346b53802aabcadd4de545843a4352a0cb) Update packages/lib/server-only/user/get-signer-conversion.ts - [`1406a6f`](https://github.com/documenso/documenso/commit/1406a6f143c0caee103574270c60f293353a53d8) fix: revert last commit - [`4fe6ed0`](https://github.com/documenso/documenso/commit/4fe6ed04cbef4321e293ddfa67bf1d31dd309bf5) fix: conflicts ### 📊 Changes **9 files changed** (+147 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `apps/marketing/content/blog/announcing-profiles.mdx` (+7 -4) 📝 `apps/marketing/content/blog/signing-an-nda-faster-with-documenso.mdx` (+7 -1) 📝 `apps/marketing/content/changelog.mdx` (+9 -1) 📝 `apps/web/src/app/(dashboard)/admin/nav.tsx` (+2 -2) 📝 `apps/web/src/app/(dashboard)/admin/stats/page.tsx` (+22 -12) ➕ `apps/web/src/app/(dashboard)/admin/stats/signer-conversion-chart.tsx` (+64 -0) 📝 `apps/web/src/app/(dashboard)/admin/stats/user-with-document.tsx` (+1 -1) 📝 `apps/web/src/components/(dashboard)/metric-card/metric-card.tsx` (+1 -1) ➕ `packages/lib/server-only/user/get-signer-conversion.ts` (+34 -0) </details> ### 📄 Description ## Description Display the count of users who signed up after signing at least one document in the admin panel ![CleanShot 2024-05-09 at 21 44 59@2x](https://github.com/documenso/documenso/assets/55143799/004dcd9f-7f84-4dbf-bde5-c88a1f29cb68) ## Changes Made - Created a new function `getSignerConversion` to retrieve the count of converted recipients from the database and added a new metric card in the admin stats page to display the count ## Checklist <!--- Please check the boxes that apply to this pull request. --> <!--- You can add or remove items as needed. --> - [x] I have tested these changes locally and they work as expected. - [ ] I have added/updated tests that prove the effectiveness of these changes. - [ ] I have updated the documentation to reflect these changes, if applicable. - [x] I have followed the project's coding style guidelines. - [ ] I have addressed the code review feedback from the previous submission, if applicable. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced `SignerConversionChart` component to display signer conversion data in a bar chart. - Added `FileCog`, `UserPlus`, and `Users` icons to the admin stats page. - **Enhancements** - Updated `Users` icon in admin navigation bar for a consistent visual experience. - Enhanced `metric-card` styling with improved text spacing. - `SignerConversionChart` now supports cumulative data display. - **Bug Fixes** - Corrected inconsistent icon usage on the admin stats page. - **Chores** - Implemented functions to fetch signer conversion statistics for more detailed analytics. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:33:12 +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#1428
No description provided.