11 Commits

Author SHA1 Message Date
david-loe
6c3acb1c2d feat: add and use NEXT_PRIVATE_INTERNAL_WEBAPP_URL (#1298)
Introduces `NEXT_PRIVATE_INTERNAL_WEBAPP_URL` used for requesting the
app by itself (backend) [e.g. for background jobs]
2024-09-06 20:37:10 +10:00
Rene Steen
7ed0a909eb feat: allow oidc only signup and trust mail addresses (#1208)
This change will allow for user registration when users are federated
through oidc provider even if the general signup is disabled
additionally the users email address can now be automatically set as
trusted. This will force corporate users to signin using SSO instead of
creating manual accounts.
2024-07-31 15:38:12 +10:00
Matt Kilgore
e0440fd8a2 feat: add oidc support 2024-04-13 20:46:08 -04: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
David Nguyen
2856cd9c15 feat: add free tier Stripe subscription 2023-11-06 13:02:19 +11:00
David Nguyen
771042c9ce feat: add vercel build script 2023-11-06 13:01:13 +11:00
David Nguyen
aa2969fd50 feat: feature flags 2023-11-06 13:01:10 +11:00
Doug Andrade
6253c42ca1 feat: google auth without schema change 2023-11-06 13:01:07 +11:00
Mythie
159bcade7b wip: refresh design 2023-11-06 13:01:06 +11:00
Mythie
e7e881be01 fix: update env types 2023-05-06 14:34:20 +10:00
Mythie
ed3e4d22ef feat: scaffhold subscription table and ui 2023-05-05 19:29:42 +10:00