Commit Graph

48 Commits

Author SHA1 Message Date
Ephraim Duncan
94646cd48a perf: add database indexes for insights queries (#2211) 2025-11-26 21:21:01 +11:00
Lucas Smith
d2176627ca chore: dependency updates (#2229) 2025-11-22 20:28:20 +11:00
Ephraim Duncan
c6b08d8594 feat: org insights (#1937) 2025-11-11 12:09:58 +11:00
David Nguyen
d05bfa9fed feat: add envelopes api (#2105) 2025-11-07 14:17:52 +11:00
David Nguyen
7f09ba72f4 feat: add envelopes (#2025)
This PR is handles the changes required to support envelopes. The new
envelope editor/signing page will be hidden during release.

The core changes here is to migrate the documents and templates model to
a centralized envelopes model.

Even though Documents and Templates are removed, from the user
perspective they will still exist as we remap envelopes to documents and
templates.
2025-10-14 21:56:36 +11:00
David Nguyen
44f5da95b3 chore: refactor routes (#1992) 2025-08-25 21:00:35 +10:00
David Nguyen
5a5bfe6e34 fix: refactor admin router (#1982) 2025-08-25 08:23:48 +10:00
Ephraim Duncan
2345de679b feat: admin monthly active users metric (#1724) 2025-06-19 15:12:17 +10:00
Ephraim Duncan
484f6c8b85 fix: admin metrics broken (#1845) 2025-06-17 21:15:11 +10:00
David Nguyen
e6dc237ad2 feat: add organisations (#1820) 2025-06-10 11:49:52 +10:00
Ephraim Duncan
f0dcf7e9bf fix: signing volume query (#1753)
This pull request updates the implementation of the admin leaderboard,
enhancing data handling and improving type safety. It introduces clearer
differentiation between users and teams, adds additional fields to track
more relevant information, and refactors the querying logic to optimize
performance and maintainability.
2025-04-24 16:14:38 +10:00
Lucas Smith
63a4bab0fe feat: better document rejection (#1702)
Improves the existing document rejection process by actually marking a
document as completed cancelling further actions.

## Related Issue

N/A

## Changes Made

- Added a new rejection status for documents
- Updated a million areas that check for document completion
- Updated email sending, so rejection is confirmed for the rejecting
recipient while other recipients are notified that the document is now
cancelled.

## Testing Performed

- Ran the testing suite to ensure there are no regressions.
- Performed manual testing of current core flows.
2025-03-13 15:08:57 +11:00
David Nguyen
a0ace803cf fix: admin signing page crash 2025-03-12 16:53:09 +11:00
Ephraim Duncan
b03c5ab1a7 fix: admin leaderboard query sorting (#1548) 2025-02-13 18:32:38 +11:00
David Nguyen
383b5f78f0 feat: migrate nextjs to rr7 2025-02-13 14:10:38 +11:00
David Nguyen
7d0a9c6439 fix: refactor prisma relations (#1581) 2025-01-13 13:41:53 +11:00
Ephraim Duncan
7d201f05d9 fix: admin leaderboard query (#1522)
Co-authored-by: Lucas Smith <me@lucasjamessmith.me>
2024-12-13 15:50:52 +11:00
David Nguyen
5df1a6602e fix: refactor search routes (#1529)
Refactor find endpoints to be consistent in terms of input and output.
2024-12-11 19:39:50 +09:00
Ephraim Duncan
bdd33bd335 feat: signing volume (#1358)
adds a signing volume and leaderboard section to the admin panel
2024-12-03 11:27:22 +11:00
Lucas Smith
5398026b80 feat: signature rejection (#1472)
## Description

Adds support for rejecting a given document informing the document
owner.

Flows for resolving a rejection don't currently exist so it's up to the
document owner to reach out to the recipient and work out a way to move
forward via a new document or offline agreement.

## Related Issue


## Changes Made

- Added new rejection properties to the recipient schema
- Added API endpoints to support rejection
- Added email templates for notifying the document owner and recipient
- Added a dialog on the signing page to start the rejection flow.

## Testing Performed

- Manually tested the flow end to end
- Automated tests are planned
2024-11-14 21:37:42 +11:00
Ephraim Atta-Duncan
7e065764ec chore: use luxon for dates 2024-06-25 15:10:58 +00:00
Ephraim Duncan
c470e4d516 Merge branch 'main' into admin/stats 2024-06-13 05:47:17 +00:00
Ephraim Atta-Duncan
39e7eb0568 fix: remove cummulative 2024-05-21 22:45:32 +00:00
Ephraim Atta-Duncan
95a94d4fc1 chore: use single chart graphs 2024-05-21 09:28:23 +00:00
Mythie
110f9bae12 feat: add certificate and audit log pdfs 2024-04-10 15:13:18 +07:00
Ephraim Atta-Duncan
7615c9d2fa feat: add chat to admin dashboard 2024-04-05 17:49:32 +00:00
Mythie
73aae6f1e3 feat: improve admin panel 2024-03-03 01:55:33 +11:00
Lucas Smith
2a74ce06ef Merge branch 'main' into feat/public-api 2024-02-26 00:21:25 +11:00
Ephraim Atta-Duncan
c436559787 feat: create a banner with custom text by admin 2024-02-22 20:20:49 +00:00
Mythie
2abcdd7533 feat: team api tokens 2024-02-22 13:39:34 +11:00
Mythie
7babd82470 fix: updates from review 2023-12-21 20:42:45 +11:00
Lucas Smith
c40c9b20ec Merge branch 'main' into feat/document-templates 2023-12-21 14:25:22 +11:00
David Nguyen
88534fa1c6 feat: add multi subscription support (#734)
## Description

Previously we assumed that there can only be 1 subscription per user.
However, that will soon no longer the case with the introduction of the
Teams subscription.

This PR will apply the required migrations to support multiple
subscriptions.

## Changes Made

- Updated the Prisma schema to allow for multiple `Subscriptions` per
`User`
- Added a Stripe `customerId` field to the `User` model
- Updated relevant billing sections to support multiple subscriptions

## Testing Performed

- Tested running the Prisma migration on a demo database created on the
main branch

Will require a lot of additional testing.

## Checklist

- [ ] I have tested these changes locally and they work as expected.
- [ ] I have added/updated tests that prove the effectiveness of these
changes.
- [X] I have followed the project's coding style guidelines.

## Additional Notes

Added the following custom SQL statement to the migration:

> DELETE FROM "Subscription" WHERE "planId" IS NULL OR "priceId" IS
NULL;

Prior to deployment this will require changes to Stripe products:
- Adding `type` meta attribute

---------

Co-authored-by: Lucas Smith <me@lucasjamessmith.me>
2023-12-14 15:22:54 +11:00
Ephraim Atta-Duncan
31a9127c9e feat: templates 2023-12-14 12:24:56 +11:00
Mythie
3d44821bff fix: build errors 2023-11-06 13:02:19 +11:00
pit
4ed467693f chore: implemented feedback 2023-11-06 13:02:19 +11:00
pit
35087f551c chore: implement pr feedback 2023-11-06 13:02:18 +11:00
pit
92b5111d7e chore: tidy up 2023-11-06 13:01:14 +11:00
pit
02b6f6a7b7 feat: subscriptions and documents page 2023-11-06 13:01:14 +11:00
pit
214dd7a7c8 feat: manage documents admin ui 2023-11-06 13:01:14 +11:00
pit
ff58735153 feat: profile page done 2023-11-06 13:01:14 +11:00
pit
82c1ca13be feat: update user functionality 2023-11-06 13:01:13 +11:00
pit
eef720bf8c chore: improve the ui 2023-11-06 13:01:13 +11:00
Mythie
399826a6f5 fix: add removed layout guard 2023-11-06 13:01:12 +11:00
Lucas Smith
632b3bd1f4 fix: update layout and wording 2023-11-06 13:01:12 +11:00
Catalin Pit
a2635851cf chore: rename files 2023-11-06 13:01:12 +11:00
Catalin Pit
a94b80d07d chore: implemented feedback 2023-11-06 13:01:12 +11:00
Catalin Pit
766fc6410b feat: add the admin page 2023-11-06 13:01:12 +11:00