Commit Graph

373 Commits

Author SHA1 Message Date
82da337a56 fix: remove templateToken 2023-12-15 22:07:27 +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
66c0db91da chore: cleanup and feedback implementation 2023-12-08 13:28:34 +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
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
fbee6eedc1 feat: api token functions 2023-11-24 16:13:09 +02:00
8230349114 fix: unable to load font for signing 2023-11-24 16:17:54 +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
608a4eaaa6 feat: refactor og image generation (#639) 2023-11-14 13:08:14 +11:00
574539d6dd feat: duplicate document (#633) 2023-11-08 20:27:33 +11:00
b0e3abffd6 chore: restore dangling changes from rebase 2023-11-06 14:47:46 +11:00
2e9180acf5 chore: include total and new user charts 2023-11-06 13:02:21 +11:00
9edf88692c feat: show monthly new users 2023-11-06 13:02:21 +11:00
4af3d05a24 fix: updates from error logs 2023-11-06 13:02:21 +11:00
2065a0debc feat: add completed at timestamp 2023-11-06 13:02:21 +11:00
8ae860432d fix: days filter working (#623) 2023-11-06 13:02:21 +11:00
9d9b1a6681 fix: attach document to completed email 2023-11-06 13:02:20 +11:00
717ca8cdb2 fix: improve claim plan flow 2023-11-06 13:02:20 +11:00
687ce66e41 fix: update singleplayer add signature to card 2023-11-06 13:02:20 +11:00
3d44821bff fix: build errors 2023-11-06 13:02:19 +11:00
c343e8a221 feat: plan limits 2023-11-06 13:02:19 +11:00
1d291e8e03 feat: add safari clipboard copy support (#486) 2023-11-06 13:02:19 +11:00
17b43caa5c fix: create custom pricing table 2023-11-06 13:02:19 +11:00
5a79535080 fix: style updates 2023-11-06 13:02:19 +11:00
pit
39c2bf77c2 chore: implement feedback 2023-11-06 13:02:19 +11:00
pit
af73aee113 chore: changes 2023-11-06 13:02:19 +11:00
pit
9afe8731b1 chore: added delete function 2023-11-06 13:02:19 +11:00
pit
f621e60c16 chore: implemented feedback 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