From 67a55e1d859a1225450ad27fc3a14b09e83f0f8a Mon Sep 17 00:00:00 2001 From: Sokratis Vidros Date: Wed, 16 Oct 2024 19:17:30 +0300 Subject: [PATCH] fix(web): Minor UI fix in billing plans (#6665) --- .source | 2 +- .../src/components/nav/SettingsNavMenu.tsx | 2 +- .../src/ee/billing/components/Features.tsx | 61 ++++--------------- .../ee/billing/components/HighlightsRow.tsx | 6 +- .../src/ee/clerk/pages/ManageAccountPage.tsx | 4 +- apps/web/src/pages/settings/BillingPage.tsx | 2 +- 6 files changed, 19 insertions(+), 58 deletions(-) diff --git a/.source b/.source index bc019321ad9..0f6c1f5447f 160000 --- a/.source +++ b/.source @@ -1 +1 @@ -Subproject commit bc019321ad97eca87281cb0883c0a3d3a9be5814 +Subproject commit 0f6c1f5447f39bbdbba88b858dc949cbf5866502 diff --git a/apps/web/src/components/nav/SettingsNavMenu.tsx b/apps/web/src/components/nav/SettingsNavMenu.tsx index a3c4136c0d9..eb5c4bde11d 100644 --- a/apps/web/src/components/nav/SettingsNavMenu.tsx +++ b/apps/web/src/components/nav/SettingsNavMenu.tsx @@ -71,7 +71,7 @@ export const SettingsNavMenu: React.FC = () => { > } link={ROUTES.BILLING} diff --git a/apps/web/src/ee/billing/components/Features.tsx b/apps/web/src/ee/billing/components/Features.tsx index ed19310e603..d5c45b3f471 100644 --- a/apps/web/src/ee/billing/components/Features.tsx +++ b/apps/web/src/ee/billing/components/Features.tsx @@ -60,7 +60,6 @@ type Feature = { const features: Feature[] = [ { label: 'Platform', - isContrast: false, isTitle: true, values: { [SupportedPlansEnum.FREE]: { value: '' }, @@ -70,7 +69,6 @@ const features: Feature[] = [ }, { label: 'Monthly events', - isContrast: false, values: { [SupportedPlansEnum.FREE]: { value: 'Up to 30,000' }, [SupportedPlansEnum.BUSINESS]: { value: 'Up to 250,000' }, @@ -79,7 +77,6 @@ const features: Feature[] = [ }, { label: 'Additional Events', - isContrast: true, values: { [SupportedPlansEnum.FREE]: { value: '-' }, [SupportedPlansEnum.BUSINESS]: { value: '$0.0012 per event' }, @@ -88,7 +85,6 @@ const features: Feature[] = [ }, { label: 'Email, InApp, SMS, Chat, Push Channels', - isContrast: false, values: { [SupportedPlansEnum.FREE]: { value: }, [SupportedPlansEnum.BUSINESS]: { value: }, @@ -97,7 +93,6 @@ const features: Feature[] = [ }, { label: 'Notification subscribers', - isContrast: true, values: { [SupportedPlansEnum.FREE]: { value: 'Unlimited' }, [SupportedPlansEnum.BUSINESS]: { value: 'Unlimited' }, @@ -106,7 +101,6 @@ const features: Feature[] = [ }, { label: 'Framework', - isContrast: false, isTitle: true, values: { [SupportedPlansEnum.FREE]: { value: '' }, @@ -116,7 +110,6 @@ const features: Feature[] = [ }, { label: 'Total workflows', - isContrast: false, values: { [SupportedPlansEnum.FREE]: { value: 'Unlimited' }, [SupportedPlansEnum.BUSINESS]: { value: 'Unlimited' }, @@ -125,7 +118,6 @@ const features: Feature[] = [ }, { label: 'Provider integrations', - isContrast: true, values: { [SupportedPlansEnum.FREE]: { value: 'Unlimited' }, [SupportedPlansEnum.BUSINESS]: { value: 'Unlimited' }, @@ -133,8 +125,7 @@ const features: Feature[] = [ }, }, { - label: 'Activity retention', - isContrast: false, + label: 'Activity Feed retention', values: { [SupportedPlansEnum.FREE]: { value: '30 days' }, [SupportedPlansEnum.BUSINESS]: { value: '90 days' }, @@ -143,7 +134,6 @@ const features: Feature[] = [ }, { label: 'Digests', - isContrast: true, values: { [SupportedPlansEnum.FREE]: { value: }, [SupportedPlansEnum.BUSINESS]: { value: }, @@ -152,7 +142,6 @@ const features: Feature[] = [ }, { label: 'Step controls', - isContrast: false, values: { [SupportedPlansEnum.FREE]: { value: }, [SupportedPlansEnum.BUSINESS]: { value: }, @@ -161,7 +150,6 @@ const features: Feature[] = [ }, { label: 'Inbox', - isContrast: true, isTitle: true, values: { [SupportedPlansEnum.FREE]: { value: '' }, @@ -171,7 +159,6 @@ const features: Feature[] = [ }, { label: 'Inbox component', - isContrast: false, values: { [SupportedPlansEnum.FREE]: { value: }, [SupportedPlansEnum.BUSINESS]: { value: }, @@ -180,7 +167,6 @@ const features: Feature[] = [ }, { label: 'User preferences component', - isContrast: true, values: { [SupportedPlansEnum.FREE]: { value: }, [SupportedPlansEnum.BUSINESS]: { value: }, @@ -189,25 +175,14 @@ const features: Feature[] = [ }, { label: 'Remove Novu branding', - isContrast: false, values: { [SupportedPlansEnum.FREE]: { value: '-' }, [SupportedPlansEnum.BUSINESS]: { value: }, [SupportedPlansEnum.ENTERPRISE]: { value: }, }, }, - { - label: 'Notifications retention', - isContrast: true, - values: { - [SupportedPlansEnum.FREE]: { value: }, - [SupportedPlansEnum.BUSINESS]: { value: }, - [SupportedPlansEnum.ENTERPRISE]: { value: }, - }, - }, { label: 'Account administration and security', - isContrast: false, isTitle: true, values: { [SupportedPlansEnum.FREE]: { value: '' }, @@ -217,25 +192,22 @@ const features: Feature[] = [ }, { label: 'Team members', - isContrast: true, values: { [SupportedPlansEnum.FREE]: { value: '3' }, - [SupportedPlansEnum.BUSINESS]: { value: '50' }, + [SupportedPlansEnum.BUSINESS]: { value: '10' }, [SupportedPlansEnum.ENTERPRISE]: { value: 'Unlimited' }, }, }, { label: 'RBAC', - isContrast: false, values: { - [SupportedPlansEnum.FREE]: { value: }, + [SupportedPlansEnum.FREE]: { value: '-' }, [SupportedPlansEnum.BUSINESS]: { value: }, [SupportedPlansEnum.ENTERPRISE]: { value: }, }, }, { label: 'GDPR compliance', - isContrast: true, values: { [SupportedPlansEnum.FREE]: { value: }, [SupportedPlansEnum.BUSINESS]: { value: }, @@ -244,7 +216,6 @@ const features: Feature[] = [ }, { label: 'SAML SSO and Enterprise SSO providers', - isContrast: false, values: { [SupportedPlansEnum.FREE]: { value: '-' }, [SupportedPlansEnum.BUSINESS]: { value: '-' }, @@ -253,7 +224,6 @@ const features: Feature[] = [ }, { label: 'Support and account management', - isContrast: true, isTitle: true, values: { [SupportedPlansEnum.FREE]: { value: '' }, @@ -263,25 +233,22 @@ const features: Feature[] = [ }, { label: 'Support SLA', - isContrast: false, values: { - [SupportedPlansEnum.FREE]: { value: 'Community & Intercom' }, + [SupportedPlansEnum.FREE]: { value: '-' }, [SupportedPlansEnum.BUSINESS]: { value: '48 hours' }, [SupportedPlansEnum.ENTERPRISE]: { value: '24 hours' }, }, }, { label: 'Support channels', - isContrast: true, values: { - [SupportedPlansEnum.FREE]: { value: 'Community & Intercom' }, - [SupportedPlansEnum.BUSINESS]: { value: 'Chat and Email' }, - [SupportedPlansEnum.ENTERPRISE]: { value: 'Dedicated support' }, + [SupportedPlansEnum.FREE]: { value: 'Community & Discord' }, + [SupportedPlansEnum.BUSINESS]: { value: 'Slack & Email' }, + [SupportedPlansEnum.ENTERPRISE]: { value: 'Dedicated' }, }, }, { label: 'Legal & Vendor management', - isContrast: false, isTitle: true, values: { [SupportedPlansEnum.FREE]: { value: '' }, @@ -291,16 +258,14 @@ const features: Feature[] = [ }, { label: 'Payment method', - isContrast: true, values: { - [SupportedPlansEnum.FREE]: { value: 'N/A' }, + [SupportedPlansEnum.FREE]: { value: '-' }, [SupportedPlansEnum.BUSINESS]: { value: 'Credit card only' }, - [SupportedPlansEnum.ENTERPRISE]: { value: 'PO and Invoicing' }, + [SupportedPlansEnum.ENTERPRISE]: { value: 'Credit card & PO and Invoicing' }, }, }, { label: 'Terms of service', - isContrast: false, values: { [SupportedPlansEnum.FREE]: { value: 'Standard' }, [SupportedPlansEnum.BUSINESS]: { value: 'Standard' }, @@ -309,7 +274,6 @@ const features: Feature[] = [ }, { label: 'DPA', - isContrast: true, values: { [SupportedPlansEnum.FREE]: { value: 'Standard' }, [SupportedPlansEnum.BUSINESS]: { value: 'Standard' }, @@ -318,7 +282,6 @@ const features: Feature[] = [ }, { label: 'Security review', - isContrast: false, values: { [SupportedPlansEnum.FREE]: { value: 'SOC 2 and ISO 27001 upon request' }, [SupportedPlansEnum.BUSINESS]: { value: 'Custom' }, @@ -331,14 +294,14 @@ export const Features = () => { return (
{features.map((feature, index) => ( - + ))}
); }; -const FeatureRow = ({ feature }: { feature: Feature }) => ( -
+const FeatureRow = ({ feature, index }: { feature: Feature; index: number }) => ( +
} > - Billing plans + Plans & Billing @@ -125,7 +125,7 @@ export default function ManageAccountPage() { )} - Billing plans + Plans & Billing diff --git a/apps/web/src/pages/settings/BillingPage.tsx b/apps/web/src/pages/settings/BillingPage.tsx index 46e269a17a8..d161e39f05d 100644 --- a/apps/web/src/pages/settings/BillingPage.tsx +++ b/apps/web/src/pages/settings/BillingPage.tsx @@ -4,7 +4,7 @@ import { SettingsPageContainer } from './SettingsPageContainer'; export const BillingPage: FC = () => { return ( - + );