From dffb61e437e35bd1f969900223c4f8c790630333 Mon Sep 17 00:00:00 2001 From: BOHEUS <56270748+BOHEUS@users.noreply.github.com> Date: Fri, 30 Jan 2026 13:45:26 +0000 Subject: [PATCH] Add border bottom to display organization plan features (#17422) Related to https://github.com/twentyhq/core-team-issues/issues/1014 --- .../internal/ChooseYourPlanContent.tsx | 58 ++++++++++++++----- 1 file changed, 42 insertions(+), 16 deletions(-) diff --git a/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx b/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx index a227986e43..08ff380534 100644 --- a/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx +++ b/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx @@ -59,6 +59,16 @@ const StyledBenefitsContainer = styled.div` padding: ${({ theme }) => theme.spacing(4)} ${({ theme }) => theme.spacing(3)}; `; +const StyledOrganizationBenefitsContainer = styled.div` + box-sizing: border-box; + display: flex; + flex-direction: column; + width: 100%; + gap: 16px; + padding: ${({ theme }) => theme.spacing(4)} ${({ theme }) => theme.spacing(3)}; + border-bottom: 1px solid ${({ theme }) => theme.border.color.light}; +`; + const StyledChooseTrialContainer = styled.div` display: flex; flex-direction: row; @@ -107,28 +117,37 @@ export const ChooseYourPlanContent = ({ billing }: { billing: Billing }) => { const getPlanBenefits = (planKey: BillingPlanKey) => { if (planKey === BillingPlanKey.ENTERPRISE) { - return [ + return { + organizationBenefits: [ + t`SSO (SAML / OIDC)`, + t`20,000 workflow node executions`, + t`Priority support`, + ], + standardBenefits: [ + t`Full access`, + t`Unlimited contacts`, + t`Email integration`, + t`Custom objects`, + t`API & Webhooks`, + ], + }; + } + + return { + organizationBenefits: [], + standardBenefits: [ t`Full access`, t`Unlimited contacts`, t`Email integration`, t`Custom objects`, t`API & Webhooks`, - t`20,000 workflow node executions`, - t`SSO (SAML / OIDC)`, - ]; - } - - return [ - t`Full access`, - t`Unlimited contacts`, - t`Email integration`, - t`Custom objects`, - t`API & Webhooks`, - t`10,000 workflow node executions`, - ]; + t`10,000 workflow node executions`, + ], + }; }; - const benefits = getPlanBenefits(currentPlanKey); + const { organizationBenefits, standardBenefits } = + getPlanBenefits(currentPlanKey); const baseProduct = getBaseProductByPlanKey(currentPlanKey); const baseProductPrice = getBaseLicensedPriceByPlanKeyAndInterval( @@ -195,8 +214,15 @@ export const ChooseYourPlanContent = ({ billing }: { billing: Billing }) => { price={baseProductPrice.unitAmount / 100} /> + {organizationBenefits.length > 0 && ( + + {organizationBenefits.map((benefit) => ( + {benefit} + ))} + + )} - {benefits.map((benefit) => ( + {standardBenefits.map((benefit) => ( {benefit} ))}