Commit Graph

18 Commits

Author SHA1 Message Date
ecc9dc63ea feat: the rest of the owl 2024-02-29 13:22:21 +11:00
a54d09ab19 Merge branch 'main' into chore/pricing-update 2024-02-26 09:44:16 +01:00
a06b40af3c fix: revert hardcoded env 2024-02-24 15:11:12 +11:00
9ea56bddd1 chore: pricing update 2024-02-23 17:02:20 +01:00
41cbf3ba3c fix: hardcode signup until env issue is fixed 2024-02-23 16:49:17 +01:00
681a89cfe1 chore: minor lint fixes (#934) 2024-02-16 21:48:45 +11:00
49cddfab38 chore: lint with oxc 2024-02-15 06:11:50 +00:00
08f82b23dc fix: update env entries to evaluate at runtime 2024-01-31 22:32:42 +11: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
b0e3abffd6 chore: restore dangling changes from rebase 2023-11-06 14:47:46 +11:00
4aa43bcfa2 fix: add back slack support 2023-11-06 13:02:20 +11:00
c95171bbc9 chore: updated slack to discord links
Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
2023-11-06 13:02:20 +11:00
717ca8cdb2 fix: improve claim plan flow 2023-11-06 13:02:20 +11:00
a219588287 chore: sync next 2023-11-06 13:01:46 +11:00
60ae674984 feat: darker dark theme 2023-11-06 13:01:15 +11:00
3377b55341 chore: rename community plan to early adopters 2023-11-06 13:01:14 +11:00
8a271ff8bc fix: fix eslint warnings 2023-11-06 13:01:12 +11:00
159bcade7b wip: refresh design 2023-11-06 13:01:06 +11:00