From 3cadf105d5026661233fadcf46e4d47174e8ce6b Mon Sep 17 00:00:00 2001 From: Pallav <90088723+Pallava-Joshi@users.noreply.github.com> Date: Sat, 13 Dec 2025 00:25:19 +0530 Subject: [PATCH] feat: add skipContactCreation toggle to EventTypeAppCard component (#25756) Co-authored-by: Amit Sharma <74371312+Amit91848@users.noreply.github.com> Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> --- .../components/EventTypeAppCardInterface.tsx | 20 +++++++++++++++++-- packages/app-store/hubspot/zod.ts | 1 + 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/packages/app-store/hubspot/components/EventTypeAppCardInterface.tsx b/packages/app-store/hubspot/components/EventTypeAppCardInterface.tsx index 767b5a55ee..4b529c6721 100644 --- a/packages/app-store/hubspot/components/EventTypeAppCardInterface.tsx +++ b/packages/app-store/hubspot/components/EventTypeAppCardInterface.tsx @@ -6,8 +6,8 @@ import useIsAppEnabled from "@calcom/app-store/_utils/useIsAppEnabled"; import type { EventTypeAppCardComponent } from "@calcom/app-store/types"; import { WEBAPP_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; -import { Section } from "@calcom/ui/components/section"; import { Switch } from "@calcom/ui/components/form"; +import { Section } from "@calcom/ui/components/section"; import type { appDataSchema } from "../zod"; @@ -22,6 +22,7 @@ const EventTypeAppCard: EventTypeAppCardComponent = function EventTypeAppCard({ const { enabled, updateEnabled } = useIsAppEnabled(app); const ignoreGuests = getAppData("ignoreGuests") ?? false; + const skipContactCreation = getAppData("skipContactCreation") ?? false; return ( + + + { + setAppData("skipContactCreation", checked); + }} + /> + + ); }; -export default EventTypeAppCard; \ No newline at end of file +export default EventTypeAppCard; diff --git a/packages/app-store/hubspot/zod.ts b/packages/app-store/hubspot/zod.ts index 64732e0740..2e173c3143 100644 --- a/packages/app-store/hubspot/zod.ts +++ b/packages/app-store/hubspot/zod.ts @@ -4,6 +4,7 @@ import { eventTypeAppCardZod } from "../eventTypeAppCardZod"; export const appDataSchema = eventTypeAppCardZod.extend({ ignoreGuests: z.boolean().optional(), + skipContactCreation: z.boolean().optional(), }); export const appKeysSchema = z.object({