Commit Graph

486 Commits

Author SHA1 Message Date
a1215df91a refactor: extract api implementation to package
Extracts the API implementation to a package so we can
potentially reuse it across different applications in the
event that we move off using a Next.js API route.

Additionally tidies up the tokens page and form to be more simplified.
2023-12-31 13:58:15 +11:00
8f5634268d feat: add templates to command menu (#786) 2023-12-29 15:16:26 +11:00
d8eff192fe fix: update date format and add missing default 2023-12-27 14:05:50 +11:00
32633f96d2 feat: dateformat and timezone customization (#506) 2023-12-27 14:05:49 +11:00
8d1b960aa8 feat: add templates to command menu 2023-12-25 23:16:56 +00:00
d283cc2d26 chore: implemented feedback 2023-12-21 16:02:02 +02:00
7babd82470 fix: updates from review 2023-12-21 20:42:45 +11:00
6a56905fea chore: merged main 2023-12-21 10:14:07 +02:00
298396c86c fix: awaiting in promise.all array 2023-12-21 17:36:35 +11:00
c40c9b20ec Merge branch 'main' into feat/document-templates 2023-12-21 14:25:22 +11:00
82da337a56 fix: remove templateToken 2023-12-15 22:07:27 +11:00
6e10947d00 Merge branch 'main' into feat/732-toggle-signup-form 2023-12-15 21:05:21 +11:00
682cb37786 fix: update auth-options 2023-12-15 20:41:54 +11:00
19736ce60b chore: implemented feedback 2023-12-14 11:05:39 +02:00
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
31a9127c9e feat: templates 2023-12-14 12:24:56 +11:00
e79d385534 Merge branch 'main' into feat/public-api 2023-12-11 14:44:29 +02:00
8ecd8a7d10 chore: implemented feedback + a small refactoring 2023-12-11 14:33:30 +02:00
49736d2587 Merge branch 'documenso:main' into feat/732-toggle-signup-form 2023-12-09 11:55:55 +05:30
ee5ce78c82 chore: remove unused code 2023-12-09 11:48:46 +05:30
78a1ee2af0 feat: disable oauth signup when DISABLE_SIGNUP is true 2023-12-09 11:35:45 +05:30
66c0db91da chore: cleanup and feedback implementation 2023-12-08 13:28:34 +00:00
38ad3a1922 refactor: download function to be reusable 2023-12-07 14:52:12 +00:00
c313da5028 fix: update seal event 2023-12-07 16:29:20 +11:00
5b98bac53b Merge branch 'main' into feat/enhance-posthog-tracking 2023-12-07 16:28:15 +11:00
936e75fd30 chore: merged main 2023-12-06 13:18:59 +00:00
bfc630aa6a feat: add document search to the command menu (#713) 2023-12-06 12:48:05 +11:00
2068d980ff feat: allow for the deletion of any document (#711)
Allow for the deletion of any document with notifications of document cancellation for pending documents.
2023-12-06 11:11:51 +11:00
0baa2696b4 fix: removed unused code 2023-12-05 10:13:24 +00:00
486b1cbf62 fix: incorrect promise.all usages 2023-12-02 12:43:43 +11:00
39c01f4e8d fix: remove server actions (#684) 2023-12-02 09:38:24 +11:00
792158c2cb feat: add two factor auth (#643)
Add two factor authentication for users who wish to enhance the security of their accounts.
2023-12-01 20:06:32 +11:00
6be4b7ae90 feat: add authorization for api calls 2023-11-30 14:39:31 +02:00
7e4c44e820 perf(web, lib): do not await inside promise statements (#692) 2023-11-29 09:10:15 +11:00
e1732de81d feat: show newly created token 2023-11-28 15:49:46 +02:00
adc97802ea feat: add/update title of the document (#663) 2023-11-28 14:56:50 +11:00
2deaad5c34 feat: token page 2023-11-27 12:50:21 +02:00
0e40658201 feat: track when the signing of a document has completed 2023-11-26 19:33:45 +00:00
fdf5b3908d feat: add more posthog analytics to the application 2023-11-24 23:50:51 +00:00
fbee6eedc1 feat: api token functions 2023-11-24 16:13:09 +02:00
84b958d5b7 fix: universal upload hitting cache 2023-11-24 20:06:47 +11:00
8230349114 fix: unable to load font for signing 2023-11-24 16:17:54 +11:00
5c8a77ee8f chore: merged main 2023-11-23 12:05:28 +02:00
c054fc78a4 fix: resolve issues with emailVerified jwt property 2023-11-23 15:11:37 +11:00
4a6b3edc05 feat: get documents api route with pagination 2023-11-22 15:44:49 +02:00
fbbc3b89c3 feat: email verification for registration (#599) 2023-11-21 15:44:04 +11:00
8adc44802f feat: copy signing link from avatar stack (#658) 2023-11-17 16:12:47 +11:00
e838a07bf9 chore: remove share button from top level, texts (#653) 2023-11-16 16:43:50 +11:00
f7d8ebb9de feat: enable resend email menu (#496) 2023-11-16 13:08:31 +11:00
fe25239a4e feat: cache getServerComponentSession calls (#644) 2023-11-15 17:42:27 +11:00