[PR #396] [MERGED] feat: admin UI for managing Documenso instance #938

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

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/396
Author: @catalinpit
Created: 9/21/2023
Status: Merged
Merged: 10/13/2023
Merged by: @catalinpit

Base: feat/refreshHead: feat/admin-ui-manage-instance


📝 Commits (10+)

  • 775de16 feat: admin ui for managing instance
  • 07bf780 feat: build individual user page
  • f1bc772 chore: improve the ui
  • c2cda0f feat: update user functionality
  • 87f70fa feat: profile page done
  • b5fc6e1 feat: manage documents admin ui
  • 2b44e54 feat: subscriptions and documents page
  • 5f14f87 feat: filter users by name or email
  • d4ae733 chore: add transition and check for empty users array
  • 4c518df chore: remove generic data table

📊 Changes

20 files changed (+883 additions, -5 deletions)

View changed files

apps/web/src/app/(dashboard)/admin/documents/data-table.tsx (+99 -0)
apps/web/src/app/(dashboard)/admin/documents/page.tsx (+29 -0)
📝 apps/web/src/app/(dashboard)/admin/nav.tsx (+34 -4)
apps/web/src/app/(dashboard)/admin/subscriptions/page.tsx (+65 -0)
apps/web/src/app/(dashboard)/admin/users/[id]/page.tsx (+137 -0)
apps/web/src/app/(dashboard)/admin/users/data-table-users.tsx (+155 -0)
apps/web/src/app/(dashboard)/admin/users/fetch-users.actions.ts (+9 -0)
apps/web/src/app/(dashboard)/admin/users/page.tsx (+25 -0)
apps/web/src/providers/admin-user-profile-update.types.ts (+6 -0)
packages/lib/server-only/admin/get-all-documents.ts (+55 -0)
packages/lib/server-only/admin/get-all-subscriptions.ts (+13 -0)
packages/lib/server-only/admin/update-user.ts (+28 -0)
packages/lib/server-only/user/get-all-users.ts (+57 -0)
packages/trpc/server/admin-router/router.ts (+23 -0)
packages/trpc/server/admin-router/schema.ts (+13 -0)
📝 packages/trpc/server/profile-router/router.ts (+16 -1)
📝 packages/trpc/server/profile-router/schema.ts (+5 -0)
📝 packages/trpc/server/router.ts (+2 -0)
📝 packages/trpc/server/trpc.ts (+30 -0)
packages/ui/primitives/combobox.tsx (+82 -0)

📄 Description

Description

I created the first version of the admin interface that allows you to manage your Documenso instance. The interface is quite simple currently, but new functionalities will be added.

Changes made

At the moment, it enables you to:

  1. See your instance stats

A screenshot of the stats page from the admin dashboard

  1. Manage the users

A screenshot of the users page from the admin dashboard

  1. Edit an individual user

A screenshot of the individual user page from the admin dashboard

  1. List all subscriptions

A screenshot of the subscriptions page from the admin dashboard

Tests performed

  • I checked all the pages against the database to make sure the data matches
  • I edited the users through the admin interface and made sure the changes are reflected in the database

🔄 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/396 **Author:** [@catalinpit](https://github.com/catalinpit) **Created:** 9/21/2023 **Status:** ✅ Merged **Merged:** 10/13/2023 **Merged by:** [@catalinpit](https://github.com/catalinpit) **Base:** `feat/refresh` ← **Head:** `feat/admin-ui-manage-instance` --- ### 📝 Commits (10+) - [`775de16`](https://github.com/documenso/documenso/commit/775de16d0af38918e5559deb60da5288d3560ccb) feat: admin ui for managing instance - [`07bf780`](https://github.com/documenso/documenso/commit/07bf780c3e52d252bd9a70399f620b4f150df195) feat: build individual user page - [`f1bc772`](https://github.com/documenso/documenso/commit/f1bc772985b6feae7cf002b403e1db34aab8de1c) chore: improve the ui - [`c2cda0f`](https://github.com/documenso/documenso/commit/c2cda0f06e907232d98e37f570dafd3194b09180) feat: update user functionality - [`87f70fa`](https://github.com/documenso/documenso/commit/87f70fa290e4b5b3fba2334cedd5f9e2f64c7459) feat: profile page done - [`b5fc6e1`](https://github.com/documenso/documenso/commit/b5fc6e1aafc9e8f85c049dfd364e0ba2fe99e244) feat: manage documents admin ui - [`2b44e54`](https://github.com/documenso/documenso/commit/2b44e54d99e5f17b69d8cbf1ed507264da03e814) feat: subscriptions and documents page - [`5f14f87`](https://github.com/documenso/documenso/commit/5f14f87406d9003ccd32864d6ba228e08d8b59ad) feat: filter users by name or email - [`d4ae733`](https://github.com/documenso/documenso/commit/d4ae733e9e7462c1418cf308a33194259bc53895) chore: add transition and check for empty users array - [`4c518df`](https://github.com/documenso/documenso/commit/4c518df60d94246d7375995a6548be4ad4a8caf9) chore: remove generic data table ### 📊 Changes **20 files changed** (+883 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `apps/web/src/app/(dashboard)/admin/documents/data-table.tsx` (+99 -0) ➕ `apps/web/src/app/(dashboard)/admin/documents/page.tsx` (+29 -0) 📝 `apps/web/src/app/(dashboard)/admin/nav.tsx` (+34 -4) ➕ `apps/web/src/app/(dashboard)/admin/subscriptions/page.tsx` (+65 -0) ➕ `apps/web/src/app/(dashboard)/admin/users/[id]/page.tsx` (+137 -0) ➕ `apps/web/src/app/(dashboard)/admin/users/data-table-users.tsx` (+155 -0) ➕ `apps/web/src/app/(dashboard)/admin/users/fetch-users.actions.ts` (+9 -0) ➕ `apps/web/src/app/(dashboard)/admin/users/page.tsx` (+25 -0) ➕ `apps/web/src/providers/admin-user-profile-update.types.ts` (+6 -0) ➕ `packages/lib/server-only/admin/get-all-documents.ts` (+55 -0) ➕ `packages/lib/server-only/admin/get-all-subscriptions.ts` (+13 -0) ➕ `packages/lib/server-only/admin/update-user.ts` (+28 -0) ➕ `packages/lib/server-only/user/get-all-users.ts` (+57 -0) ➕ `packages/trpc/server/admin-router/router.ts` (+23 -0) ➕ `packages/trpc/server/admin-router/schema.ts` (+13 -0) 📝 `packages/trpc/server/profile-router/router.ts` (+16 -1) 📝 `packages/trpc/server/profile-router/schema.ts` (+5 -0) 📝 `packages/trpc/server/router.ts` (+2 -0) 📝 `packages/trpc/server/trpc.ts` (+30 -0) ➕ `packages/ui/primitives/combobox.tsx` (+82 -0) </details> ### 📄 Description ## Description I created the first version of the admin interface that allows you to manage your Documenso instance. The interface is quite simple currently, but new functionalities will be added. ## Changes made At the moment, it enables you to: 1) See your instance stats ![A screenshot of the stats page from the admin dashboard](https://github.com/documenso/documenso/assets/25515812/75f672ee-5ced-4ad5-a18a-d9e3a403929c) 2) Manage the users ![A screenshot of the users page from the admin dashboard](https://github.com/documenso/documenso/assets/25515812/b64036a0-4e13-43d4-946e-a978c776caac) 3) Edit an individual user ![A screenshot of the individual user page from the admin dashboard](https://github.com/documenso/documenso/assets/25515812/25c5f64b-2e12-4d9d-893c-13d6dd931e0f) 4) List all subscriptions ![A screenshot of the subscriptions page from the admin dashboard](https://github.com/documenso/documenso/assets/25515812/28d7ecc2-8beb-4d9b-9d9b-6059219403a9) ## Tests performed - I checked all the pages against the database to make sure the data matches - I edited the users through the admin interface and made sure the changes are reflected in the database --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:31:07 +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#938
No description provided.