Skip to content

Scheduling infrastructure for absolutely everyone.

fix dialog (#26298)

Manas Kenge7c1a3b0c15c4
diff --git a/apps/web/modules/ee/workflows/components/VoiceSelectionDialog.tsx b/apps/web/modules/ee/workflows/components/VoiceSelectionDialog.tsx
index 129a99e4a47..0017c01250f 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 }) => (
- <div className="flex gap-2 text-sm">
+ <div className="flex flex-wrap gap-2 text-sm sm:flex-nowrap">
{row.original.accent && (
<span className="bg-subtle text-default rounded-md px-2 py-1 text-xs">
{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")}
</Button>
),
},
],
- [t, playingVoiceId, selectedVoiceId]
+ [t, playingVoiceId, selectedVoiceId, handlePlayVoice, handleUseVoice]
);
const table = useReactTable({
@@ -196,7 +196,7 @@ export function VoiceSelectionDialog({
return (
<Dialog open={open} onOpenChange={onOpenChange}>
- <DialogContent enableOverflow className="flex h-[80vh] flex-col p-6 sm:max-w-7xl">
+ <DialogContent enableOverflow size="md" className="flex flex-col p-6 sm:max-w-7xl">
<DialogHeader title={t("select_voice")} subtitle={t("choose_a_voice_for_your_agent")} />
<div className="mt-4 min-h-0 flex-1 overflow-hidden">
diff --git a/packages/app-store/apps.browser.generated.tsx b/packages/app-store/apps.browser.generated.tsx
index 1bbd92de0c3..cf6fef19fff 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")),
};