feat: dashboard billing (#193)

* feat: move plans into sharable json

* remove unused code

* update pnpm lock

* update plans.json

* implement early adopter pricing

* docs: update meta title and description

* Finished the UI for upgrading plans

* Updated the pricing plans

* Updated the cards ui

* use relative import

* improve styling of upgrade plan card

* styling improvements, lemonsqueezy setup

* trigger lemonsqueezy payment and add webhook

* update pnpm lock

* add logout route

* feat: complete billing functionality

* generate lock file

* make crypto false on browser

* feat: adding upgrade prompts to org

* chore: add upgrade icon to upload video

* feat: add upgrade prompt to certificate and settings

* feat: implement onboarding setup page (#229)

* working on the onboarding setup

* working on the onboarding page

* Almost done with the onboarding UI

* finished the UI of the onBoarding setup

* finished the UI of the onBoarding setup

* Implementing the functions to carryout the logic of updating the UI onmount if a user has carried out a certain step or not

* Implementing the functions to carryout the logic of updating the UI onmount if a user has carried out a certain step or not

* making some chnages

* finished the onBoarding task

* updated some logic

* Removed the uneeded svg from the static folder

* fixed isCoursePublished not returning a boolean

* improved the setup link protection

* chore: make menuItems reactive

* improve formatting

* format supabase queries

---------

Co-authored-by: Rotimi Best <[email protected]>

* revamp setup

* improve the upgrade experience

* migration

* feat: add lemonsqueezy customer portal

---------

Co-authored-by: emmanuel <[email protected]>
This commit is contained in:
Rotimi Best
2024-04-07 06:08:34 +01:00
committed by GitHub
co-authored by emmanuel
parent 136e057954
commit fcd0bcc656
105 changed files with 1743 additions and 463 deletions
+39
View File
@@ -104,6 +104,9 @@ importers:
remark-unwrap-images:
specifier: ^4.0.0
version: 4.0.0
shared-constants:
specifier: workspace:*
version: link:../../packages/shared-constants
shiki:
specifier: ^0.14.7
version: 0.14.7
@@ -156,6 +159,9 @@ importers:
'@defer/client':
specifier: ^2.2.0
version: 2.2.0
'@lemonsqueezy/lemonsqueezy.js':
specifier: ^2.2.0
version: 2.2.0
'@sentry/browser':
specifier: ^7.61.0
version: 7.61.0
@@ -204,6 +210,9 @@ importers:
copy-to-clipboard:
specifier: ^3.3.3
version: 3.3.3
crypto:
specifier: ^1.0.1
version: 1.0.1
d3:
specifier: ^7.8.5
version: 7.8.5
@@ -240,9 +249,15 @@ importers:
posthog-js:
specifier: ^1.116.6
version: 1.116.6
shared-constants:
specifier: workspace:*
version: link:../../packages/shared-constants
sirv:
specifier: ^2.0.3
version: 2.0.3
stripe:
specifier: ^14.22.0
version: 14.22.0
svelte-email:
specifier: ^0.0.4
version: 0.0.4
@@ -420,6 +435,12 @@ importers:
specifier: ^5.1.6
version: 5.3.2
packages/shared-constants:
dependencies:
tsconfig:
specifier: workspace:*
version: link:../tsconfig
packages/svelte-ui:
devDependencies:
eslint-config-custom:
@@ -3824,6 +3845,11 @@ packages:
'@jridgewell/resolve-uri': 3.1.1
'@jridgewell/sourcemap-codec': 1.4.15
/@lemonsqueezy/[email protected]:
resolution: {integrity: sha512-DsZTeowehSLTESUZ6xxoYPDhoE8BYepWsj3TCqibG7FvB8X1HERPXQlc6E/IeGj22SOfIM997b7GfFkeLWY8pA==}
engines: {node: '>=18'}
dev: false
/@mapbox/[email protected]:
resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}
hasBin: true
@@ -7956,6 +7982,11 @@ packages:
shebang-command: 2.0.0
which: 2.0.2
/[email protected]:
resolution: {integrity: sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==}
deprecated: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
dev: false
/[email protected]:
resolution: {integrity: sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==}
engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
@@ -15047,6 +15078,14 @@ packages:
engines: {node: '>=8'}
dev: true
/[email protected]:
resolution: {integrity: sha512-Pj8SAdTNjMq42UnWzBTTy8KMQ8qbQoVemPHbw3x+rHvwq1Psg9UFPT58j54F5os/SCgUAOZSEMcUedvzIDuqvw==}
engines: {node: '>=12.*'}
dependencies:
'@types/node': 18.11.10
qs: 6.11.0
dev: false
/[email protected]:
resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==}
dev: false