From e7779bba0ada51a962616a24e412848acb177dbe Mon Sep 17 00:00:00 2001 From: sean-brydon <55134778+sean-brydon@users.noreply.github.com> Date: Fri, 29 Aug 2025 11:11:57 +0100 Subject: [PATCH] feat(teams): show org upgrade tip for one team and add singular copy on /teams (#23367) * feat(teams): show org upgrade tip for one team and add singular copy on /teams Co-Authored-By: sean@cal.com * use constant * extract i18n --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Amit Sharma <74371312+Amit91848@users.noreply.github.com> --- apps/web/public/static/locales/en/common.json | 5 ++++- packages/features/ee/teams/components/TeamList.tsx | 10 ++++++---- packages/lib/constants.ts | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 5140cbb211..eacfeff2bf 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -861,7 +861,7 @@ "only_us_phone_numbers_can_be_purchased_here": "You can only buy US phone numbers. For other countries, you can import your own Twilio phone number.", "buy_number_for_x_per_month": "Buy a US Number for ${{priceInDollars}} per month", "supported_call_destinations": "Supported Call Destinations", - "no_phone_number_connected":"No phone number connected", + "no_phone_number_connected": "No phone number connected", "failed_to_get_workflow_step_id": "Failed to get workflow step ID", "cal_ai_agent": "Cal.ai Agent", "test_cal_ai_agent": "Test Cal.ai Agent", @@ -3578,5 +3578,8 @@ "free": "Free", "user_email": "User Email", "user_name": "User Name", + "you_have_one_team": "You have one team", + "consider_consolidating_one_team_org": "Consider setting up an organization to unify billing, admin tools, and analytics across your team.", + "consider_consolidating_multi_team_org": "Consider setting up an organization to unify billing, admin tools, and analytics across your teams.", "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" } diff --git a/packages/features/ee/teams/components/TeamList.tsx b/packages/features/ee/teams/components/TeamList.tsx index 923b005bee..a6c5e37f3d 100644 --- a/packages/features/ee/teams/components/TeamList.tsx +++ b/packages/features/ee/teams/components/TeamList.tsx @@ -71,10 +71,12 @@ export default function TeamList(props: Props) { } variant="basic" - title={t("You have a lot of teams")} - description={t( - "Consider consolidating your teams in an organisation, unify billing, admin tools and analytics." - )} + title={props.teams.length === 1 ? t("you_have_one_team") : t("You have a lot of teams")} + description={ + props.teams.length === 1 + ? t("consider_consolidating_one_team_org") + : t("consider_consolidating_multi_team_org") + } actionButton={{ href: `/settings/organizations/new`, child: t("set_up_your_organization"), diff --git a/packages/lib/constants.ts b/packages/lib/constants.ts index 97d9bcf930..c3164953b4 100644 --- a/packages/lib/constants.ts +++ b/packages/lib/constants.ts @@ -178,7 +178,7 @@ export const CLOUDFLARE_USE_TURNSTILE_IN_BOOKER = process.env.NEXT_PUBLIC_CLOUDF export const MINIMUM_NUMBER_OF_ORG_SEATS = 30; export const ORG_SELF_SERVE_ENABLED = process.env.NEXT_PUBLIC_ORG_SELF_SERVE_ENABLED === "1"; export const ORG_MINIMUM_PUBLISHED_TEAMS_SELF_SERVE = 0; -export const ORG_MINIMUM_PUBLISHED_TEAMS_SELF_SERVE_HELPER_DIALOGUE = 2; +export const ORG_MINIMUM_PUBLISHED_TEAMS_SELF_SERVE_HELPER_DIALOGUE = 1; export const CALCOM_PRIVATE_API_ROUTE = process.env.CALCOM_PRIVATE_API_ROUTE || "https://goblin.cal.com"; export const WEBSITE_PRIVACY_POLICY_URL =