Skip to content

Commit e7779bb

Browse files
sean-brydondevin-ai-integration[bot]Amit91848
authored
feat(teams): show org upgrade tip for one team and add singular copy on /teams (calcom#23367)
* feat(teams): show org upgrade tip for one team and add singular copy on /teams Co-Authored-By: sean@cal.com <Sean@brydon.io> * 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>
1 parent 701c834 commit e7779bb

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

apps/web/public/static/locales/en/common.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@
861861
"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.",
862862
"buy_number_for_x_per_month": "Buy a US Number for ${{priceInDollars}} per month",
863863
"supported_call_destinations": "Supported Call Destinations",
864-
"no_phone_number_connected":"No phone number connected",
864+
"no_phone_number_connected": "No phone number connected",
865865
"failed_to_get_workflow_step_id": "Failed to get workflow step ID",
866866
"cal_ai_agent": "Cal.ai Agent",
867867
"test_cal_ai_agent": "Test Cal.ai Agent",
@@ -3578,5 +3578,8 @@
35783578
"free": "Free",
35793579
"user_email": "User Email",
35803580
"user_name": "User Name",
3581+
"you_have_one_team": "You have one team",
3582+
"consider_consolidating_one_team_org": "Consider setting up an organization to unify billing, admin tools, and analytics across your team.",
3583+
"consider_consolidating_multi_team_org": "Consider setting up an organization to unify billing, admin tools, and analytics across your teams.",
35813584
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
35823585
}

packages/features/ee/teams/components/TeamList.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ export default function TeamList(props: Props) {
7171
<Card
7272
icon={<Icon name="building" className="h-5 w-5 text-red-700" />}
7373
variant="basic"
74-
title={t("You have a lot of teams")}
75-
description={t(
76-
"Consider consolidating your teams in an organisation, unify billing, admin tools and analytics."
77-
)}
74+
title={props.teams.length === 1 ? t("you_have_one_team") : t("You have a lot of teams")}
75+
description={
76+
props.teams.length === 1
77+
? t("consider_consolidating_one_team_org")
78+
: t("consider_consolidating_multi_team_org")
79+
}
7880
actionButton={{
7981
href: `/settings/organizations/new`,
8082
child: t("set_up_your_organization"),

packages/lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export const CLOUDFLARE_USE_TURNSTILE_IN_BOOKER = process.env.NEXT_PUBLIC_CLOUDF
178178
export const MINIMUM_NUMBER_OF_ORG_SEATS = 30;
179179
export const ORG_SELF_SERVE_ENABLED = process.env.NEXT_PUBLIC_ORG_SELF_SERVE_ENABLED === "1";
180180
export const ORG_MINIMUM_PUBLISHED_TEAMS_SELF_SERVE = 0;
181-
export const ORG_MINIMUM_PUBLISHED_TEAMS_SELF_SERVE_HELPER_DIALOGUE = 2;
181+
export const ORG_MINIMUM_PUBLISHED_TEAMS_SELF_SERVE_HELPER_DIALOGUE = 1;
182182

183183
export const CALCOM_PRIVATE_API_ROUTE = process.env.CALCOM_PRIVATE_API_ROUTE || "https://goblin.cal.com";
184184
export const WEBSITE_PRIVACY_POLICY_URL =

0 commit comments

Comments
 (0)