sourcebot/packages/web/src
Michael Sukkarieh 7c187121c8
Add stripe billing logic (#190)
* add side bar nav in settings page

* improve styling of members page

* wip adding stripe checkout button

* wip onboarding flow

* add stripe subscription id to org

* save stripe session id and add manage subscription button in settings

* properly block access to pages if user isn't in an org

* wip add paywall

* Domain support

* add back paywall and also add support for incrememnting seat count on invite redemption

* prevent self invite

* action button styling in settings and toast on copy

* add ability to remove member from org

* move stripe product id to env var

* add await for blocking loop in backend

* add subscription info to billing page

* handle trial case in billing info page

* add trial duration indicator to nav bar

* check if domain starts or ends with dash

* remove unused no org component

* remove package lock file and fix prisma dep version

* revert dep version updates

* fix yarn.lock

* add auth and membership check to fetchSubscription

* properly handle invite redeem with no valid subscription case

* change back fetch subscription to not require org membership

* add back subscription check in invite redeem page

---------

Co-authored-by: bkellam <bshizzle1234@gmail.com>
2025-02-13 15:52:33 -08:00
..
app Add stripe billing logic (#190) 2025-02-13 15:52:33 -08:00
components Add stripe billing logic (#190) 2025-02-13 15:52:33 -08:00
data Domain support (#188) 2025-02-12 13:51:44 -08:00
hooks Domain support (#188) 2025-02-12 13:51:44 -08:00
lib Add stripe billing logic (#190) 2025-02-13 15:52:33 -08:00
actions.ts Add stripe billing logic (#190) 2025-02-13 15:52:33 -08:00
auth.ts Generate AUTH_SECRET if not provided (#189) 2025-02-13 13:23:30 -08:00
middleware.ts Domain support (#188) 2025-02-12 13:51:44 -08:00
prisma.ts Organization switching & active org management (#173) 2025-01-21 14:50:16 -08:00