feat: billing tab for platform (#16755)

* modules for platform plans and billing pages

* add platform billing and plans related pages

* update platform navigation to include billing tab

* custom hook to upgrade team subscription

* refactors

* export cta row component

* fixup

* only pass in subscription id instead of whole subscription

* refactor :teamId/subscribe endpoint logic, add endpoint for upgrading stripe and shift all webhooks logic into services

* refactor team subscription logic, add logic for upgrading stripe and  webhooks logic from billing controller

---------

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Rajiv SahalandPeer Richelsen authored and GitHub committed 2024-09-23 13:36:03 +03:00
1 parent f642a6ebeb
commit 3371602e0f
13 files changed
+436 -107

No files matched your search

+5
View File
@@ -710,6 +710,11 @@ const platformNavigation: NavigationItemType[] = [
icon: "ellipsis",
target: "_blank",
},
{
name: "Billing",
href: "/settings/platform/billing",
icon: "chart-bar",
},
];
const getDesktopNavigationItems = (isPlatformNavigation = false) => {