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 <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>
This commit is contained in:
authored and GitHub committed 2025-08-29 10:11:57 +00:00
1 parent 701c834115
commit e7779bba0a
3 files changed
+11 -6

No files matched your search

@@ -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 ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
}
@@ -71,10 +71,12 @@ export default function TeamList(props: Props) {
<Card
icon={<Icon name="building" className="h-5 w-5 text-red-700" />}
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"),
+1 -1
View File
@@ -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 =