From 7c1a3b0c15c4ac3d356b8a3987a9e3baca74c826 Mon Sep 17 00:00:00 2001 From: Manas Kenge Date: Tue, 30 Dec 2025 13:19:46 +0530 Subject: [PATCH] fix dialog (#26298) --- .../components/VoiceSelectionDialog.tsx | 14 +- packages/app-store/apps.browser.generated.tsx | 160 +++++------------- 2 files changed, 46 insertions(+), 128 deletions(-) diff --git a/apps/web/modules/ee/workflows/components/VoiceSelectionDialog.tsx b/apps/web/modules/ee/workflows/components/VoiceSelectionDialog.tsx index 129a99e4a4..0017c01250 100644 --- a/apps/web/modules/ee/workflows/components/VoiceSelectionDialog.tsx +++ b/apps/web/modules/ee/workflows/components/VoiceSelectionDialog.tsx @@ -1,6 +1,6 @@ import { getCoreRowModel, getSortedRowModel, useReactTable, type ColumnDef } from "@tanstack/react-table"; import { usePathname } from "next/navigation"; -import { useMemo, useState } from "react"; +import { useMemo, useState, useCallback } from "react"; import { DataTableProvider, DataTableWrapper } from "@calcom/features/data-table"; import { useSegments } from "@calcom/features/data-table/hooks/useSegments"; @@ -58,10 +58,10 @@ function VoiceSelectionContent({ const { data: voices, isLoading } = trpc.viewer.aiVoiceAgent.listVoices.useQuery(); - const handleUseVoice = (voiceId: string) => { + const handleUseVoice = useCallback((voiceId: string) => { onVoiceSelect(voiceId); showToast("Voice selected successfully", "success"); - }; + }, [onVoiceSelect]); const voiceData: Voice[] = useMemo(() => { if (!voices) return []; @@ -105,7 +105,7 @@ function VoiceSelectionContent({ header: t("trait"), size: 200, cell: ({ row }) => ( -
+
{row.original.accent && ( {row.original.accent} @@ -145,12 +145,12 @@ function VoiceSelectionContent({ color={selectedVoiceId === row.original.voice_id ? "primary" : "secondary"} onClick={() => handleUseVoice(row.original.voice_id)} className="whitespace-nowrap"> - {selectedVoiceId === row.original.voice_id ? <>{t("current_voice")} : t("use_voice")} + {selectedVoiceId === row.original.voice_id ? t("current_voice") : t("use_voice")} ), }, ], - [t, playingVoiceId, selectedVoiceId] + [t, playingVoiceId, selectedVoiceId, handlePlayVoice, handleUseVoice] ); const table = useReactTable({ @@ -196,7 +196,7 @@ export function VoiceSelectionDialog({ return ( - +
diff --git a/packages/app-store/apps.browser.generated.tsx b/packages/app-store/apps.browser.generated.tsx index 1bbd92de0c..cf6fef19ff 100644 --- a/packages/app-store/apps.browser.generated.tsx +++ b/packages/app-store/apps.browser.generated.tsx @@ -3,150 +3,68 @@ Don't modify this file manually. **/ import dynamic from "next/dynamic"; - export const InstallAppButtonMap = { - exchange2013calendar: dynamic( - () => import("./exchange2013calendar/components/InstallAppButton") - ), - exchange2016calendar: dynamic( - () => import("./exchange2016calendar/components/InstallAppButton") - ), - office365video: dynamic( - () => import("./office365video/components/InstallAppButton") - ), + exchange2013calendar: dynamic(() => import("./exchange2013calendar/components/InstallAppButton")), + exchange2016calendar: dynamic(() => import("./exchange2016calendar/components/InstallAppButton")), + office365video: dynamic(() => import("./office365video/components/InstallAppButton")), vital: dynamic(() => import("./vital/components/InstallAppButton")), }; - export const AppSettingsComponentsMap = { "general-app-settings": dynamic( - () => - import("./templates/general-app-settings/components/AppSettingsInterface") + () => import("./templates/general-app-settings/components/AppSettingsInterface") ), weather_in_your_calendar: dynamic( () => import("./weather_in_your_calendar/components/AppSettingsInterface") ), zapier: dynamic(() => import("./zapier/components/AppSettingsInterface")), }; - export const EventTypeAddonMap = { alby: dynamic(() => import("./alby/components/EventTypeAppCardInterface")), - basecamp3: dynamic( - () => import("./basecamp3/components/EventTypeAppCardInterface") - ), - btcpayserver: dynamic( - () => import("./btcpayserver/components/EventTypeAppCardInterface") - ), - closecom: dynamic( - () => import("./closecom/components/EventTypeAppCardInterface") - ), - databuddy: dynamic( - () => import("./databuddy/components/EventTypeAppCardInterface") - ), - fathom: dynamic( - () => import("./fathom/components/EventTypeAppCardInterface") - ), + basecamp3: dynamic(() => import("./basecamp3/components/EventTypeAppCardInterface")), + btcpayserver: dynamic(() => import("./btcpayserver/components/EventTypeAppCardInterface")), + closecom: dynamic(() => import("./closecom/components/EventTypeAppCardInterface")), + databuddy: dynamic(() => import("./databuddy/components/EventTypeAppCardInterface")), + fathom: dynamic(() => import("./fathom/components/EventTypeAppCardInterface")), ga4: dynamic(() => import("./ga4/components/EventTypeAppCardInterface")), giphy: dynamic(() => import("./giphy/components/EventTypeAppCardInterface")), gtm: dynamic(() => import("./gtm/components/EventTypeAppCardInterface")), - hitpay: dynamic( - () => import("./hitpay/components/EventTypeAppCardInterface") - ), - hubspot: dynamic( - () => import("./hubspot/components/EventTypeAppCardInterface") - ), - insihts: dynamic( - () => import("./insihts/components/EventTypeAppCardInterface") - ), - matomo: dynamic( - () => import("./matomo/components/EventTypeAppCardInterface") - ), - metapixel: dynamic( - () => import("./metapixel/components/EventTypeAppCardInterface") - ), - "mock-payment-app": dynamic( - () => import("./mock-payment-app/components/EventTypeAppCardInterface") - ), - paypal: dynamic( - () => import("./paypal/components/EventTypeAppCardInterface") - ), - "pipedrive-crm": dynamic( - () => import("./pipedrive-crm/components/EventTypeAppCardInterface") - ), - plausible: dynamic( - () => import("./plausible/components/EventTypeAppCardInterface") - ), - posthog: dynamic( - () => import("./posthog/components/EventTypeAppCardInterface") - ), - qr_code: dynamic( - () => import("./qr_code/components/EventTypeAppCardInterface") - ), - salesforce: dynamic( - () => import("./salesforce/components/EventTypeAppCardInterface") - ), - stripepayment: dynamic( - () => import("./stripepayment/components/EventTypeAppCardInterface") - ), + hitpay: dynamic(() => import("./hitpay/components/EventTypeAppCardInterface")), + hubspot: dynamic(() => import("./hubspot/components/EventTypeAppCardInterface")), + insihts: dynamic(() => import("./insihts/components/EventTypeAppCardInterface")), + matomo: dynamic(() => import("./matomo/components/EventTypeAppCardInterface")), + metapixel: dynamic(() => import("./metapixel/components/EventTypeAppCardInterface")), + "mock-payment-app": dynamic(() => import("./mock-payment-app/components/EventTypeAppCardInterface")), + paypal: dynamic(() => import("./paypal/components/EventTypeAppCardInterface")), + "pipedrive-crm": dynamic(() => import("./pipedrive-crm/components/EventTypeAppCardInterface")), + plausible: dynamic(() => import("./plausible/components/EventTypeAppCardInterface")), + posthog: dynamic(() => import("./posthog/components/EventTypeAppCardInterface")), + qr_code: dynamic(() => import("./qr_code/components/EventTypeAppCardInterface")), + salesforce: dynamic(() => import("./salesforce/components/EventTypeAppCardInterface")), + stripepayment: dynamic(() => import("./stripepayment/components/EventTypeAppCardInterface")), "booking-pages-tag": dynamic( - () => - import( - "./templates/booking-pages-tag/components/EventTypeAppCardInterface" - ) + () => import("./templates/booking-pages-tag/components/EventTypeAppCardInterface") ), "event-type-app-card": dynamic( - () => - import( - "./templates/event-type-app-card/components/EventTypeAppCardInterface" - ) - ), - twipla: dynamic( - () => import("./twipla/components/EventTypeAppCardInterface") + () => import("./templates/event-type-app-card/components/EventTypeAppCardInterface") ), + twipla: dynamic(() => import("./twipla/components/EventTypeAppCardInterface")), umami: dynamic(() => import("./umami/components/EventTypeAppCardInterface")), - "zoho-bigin": dynamic( - () => import("./zoho-bigin/components/EventTypeAppCardInterface") - ), - zohocrm: dynamic( - () => import("./zohocrm/components/EventTypeAppCardInterface") - ), + "zoho-bigin": dynamic(() => import("./zoho-bigin/components/EventTypeAppCardInterface")), + zohocrm: dynamic(() => import("./zohocrm/components/EventTypeAppCardInterface")), }; export const EventTypeSettingsMap = { - alby: dynamic( - () => import("./alby/components/EventTypeAppSettingsInterface") - ), - basecamp3: dynamic( - () => import("./basecamp3/components/EventTypeAppSettingsInterface") - ), - btcpayserver: dynamic( - () => import("./btcpayserver/components/EventTypeAppSettingsInterface") - ), - databuddy: dynamic( - () => import("./databuddy/components/EventTypeAppSettingsInterface") - ), - fathom: dynamic( - () => import("./fathom/components/EventTypeAppSettingsInterface") - ), + alby: dynamic(() => import("./alby/components/EventTypeAppSettingsInterface")), + basecamp3: dynamic(() => import("./basecamp3/components/EventTypeAppSettingsInterface")), + btcpayserver: dynamic(() => import("./btcpayserver/components/EventTypeAppSettingsInterface")), + databuddy: dynamic(() => import("./databuddy/components/EventTypeAppSettingsInterface")), + fathom: dynamic(() => import("./fathom/components/EventTypeAppSettingsInterface")), ga4: dynamic(() => import("./ga4/components/EventTypeAppSettingsInterface")), - giphy: dynamic( - () => import("./giphy/components/EventTypeAppSettingsInterface") - ), + giphy: dynamic(() => import("./giphy/components/EventTypeAppSettingsInterface")), gtm: dynamic(() => import("./gtm/components/EventTypeAppSettingsInterface")), - hitpay: dynamic( - () => import("./hitpay/components/EventTypeAppSettingsInterface") - ), - metapixel: dynamic( - () => import("./metapixel/components/EventTypeAppSettingsInterface") - ), - paypal: dynamic( - () => import("./paypal/components/EventTypeAppSettingsInterface") - ), - plausible: dynamic( - () => import("./plausible/components/EventTypeAppSettingsInterface") - ), - qr_code: dynamic( - () => import("./qr_code/components/EventTypeAppSettingsInterface") - ), - stripepayment: dynamic( - () => import("./stripepayment/components/EventTypeAppSettingsInterface") - ), + hitpay: dynamic(() => import("./hitpay/components/EventTypeAppSettingsInterface")), + metapixel: dynamic(() => import("./metapixel/components/EventTypeAppSettingsInterface")), + paypal: dynamic(() => import("./paypal/components/EventTypeAppSettingsInterface")), + plausible: dynamic(() => import("./plausible/components/EventTypeAppSettingsInterface")), + qr_code: dynamic(() => import("./qr_code/components/EventTypeAppSettingsInterface")), + stripepayment: dynamic(() => import("./stripepayment/components/EventTypeAppSettingsInterface")), };