From b69c8910afb470d000a67fb5c8bedeb8fb80003a Mon Sep 17 00:00:00 2001 From: Shashank Date: Tue, 25 Nov 2025 11:58:34 +0530 Subject: [PATCH] Enhance app store utilities and location handling - Improve team install support logic for concurrent meetings - Normalize app type return values for consistency - Optimize credential handling in app utilities - Update location categorization for better UX --- packages/app-store/locations.ts | 2 +- packages/app-store/utils.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/app-store/locations.ts b/packages/app-store/locations.ts index 503383a7231ec6..4b1f528762cbb4 100644 --- a/packages/app-store/locations.ts +++ b/packages/app-store/locations.ts @@ -169,7 +169,7 @@ export const defaultLocations: DefaultEventLocationType[] = [ messageForOrganizer: "Provide a Meeting Link", defaultValueVariable: "link", iconUrl: "/link.svg", - category: "other", + category: "conferencing", linkType: "static", supportsCustomLabel: true, }, diff --git a/packages/app-store/utils.ts b/packages/app-store/utils.ts index f0675f49958fbe..57b3803da95cf8 100644 --- a/packages/app-store/utils.ts +++ b/packages/app-store/utils.ts @@ -87,7 +87,7 @@ function getApps(credentials: CredentialDataWithTeamName[], filterOnCredentials? }; } - const credential: (typeof appCredentials)[number] | null = appCredentials[0] || null; + const credential: (typeof appCredentials)[number] | null = appCredentials[0]; reducedArray.push({ ...appMeta, @@ -122,10 +122,10 @@ export function getAppType(name: string): string { const type = ALL_APPS_MAP[name as keyof typeof ALL_APPS_MAP].type; if (type.endsWith("_calendar")) { - return "Calendar"; + return "calendar"; } if (type.endsWith("_payment")) { - return "Payment"; + return "payment"; } return "Unknown"; } @@ -160,7 +160,7 @@ export function doesAppSupportTeamInstall({ return !appCategories.some( (category) => category === "calendar" || - (defaultVideoAppCategories.includes(category as AppCategories) && !concurrentMeetings) + (defaultVideoAppCategories.includes(category as AppCategories) && concurrentMeetings) ); }