Scheduling infrastructure for absolutely everyone.
feat(teams): show org upgrade tip for one team and add singular copy on /teams (#23367)
sean-brydone7779bba0ada
diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.jsonindex 5140cbb2114..eacfeff2bf7 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.tsxindex 923b005beed..a6c5e37f3dc 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) {<Cardicon={<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"),diff --git a/packages/lib/constants.ts b/packages/lib/constants.tsindex 97d9bcf9305..c3164953b46 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_CLOUDFexport 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 =