Scheduling infrastructure for absolutely everyone.
chore: UX Fixes (#26643)
Bailey Pumfleet7c66f33de223
diff --git a/apps/web/app/(use-page-wrapper)/(main-nav)/event-types/EventTypesWrapper.tsx b/apps/web/app/(use-page-wrapper)/(main-nav)/event-types/EventTypesWrapper.tsxnew file mode 100644index 00000000000..1ce0d45d5de--- /dev/null+++ b/apps/web/app/(use-page-wrapper)/(main-nav)/event-types/EventTypesWrapper.tsx@@ -0,0 +1,45 @@+"use client";++import { useDebounce } from "@calcom/lib/hooks/useDebounce";+import { useLocale } from "@calcom/lib/hooks/useLocale";+import { ShellMainAppDir } from "app/(use-page-wrapper)/(main-nav)/ShellMainAppDir";+import type { ReactElement } from "react";+import { useState } from "react";++import EventTypes, { EventTypesCTA, SearchContext } from "~/event-types/views/event-types-listing-view";++type GetUserEventGroupsResponse = Parameters<typeof EventTypesCTA>[0]["userEventGroupsData"];++const CTAWithContext = ({+ userEventGroupsData,+}: {+ userEventGroupsData: GetUserEventGroupsResponse;+}): ReactElement => {+ return <EventTypesCTA userEventGroupsData={userEventGroupsData} />;+};++export function EventTypesWrapper({+ userEventGroupsData,+ user,+}: {+ userEventGroupsData: GetUserEventGroupsResponse;+ user: {+ id: number;+ completedOnboarding?: boolean;+ } | null;+}): ReactElement {+ const { t } = useLocale();+ const [searchTerm, setSearchTerm] = useState("");+ const debouncedSearchTerm = useDebounce(searchTerm, 500);++ return (+ <SearchContext.Provider value={{ searchTerm, setSearchTerm, debouncedSearchTerm }}>+ <ShellMainAppDir+ heading={t("event_types_page_title")}+ subtitle={t("event_types_page_subtitle")}+ CTA={<CTAWithContext userEventGroupsData={userEventGroupsData} />}>+ <EventTypes userEventGroupsData={userEventGroupsData} user={user} />+ </ShellMainAppDir>+ </SearchContext.Provider>+ );+}diff --git a/apps/web/app/(use-page-wrapper)/(main-nav)/event-types/page.tsx b/apps/web/app/(use-page-wrapper)/(main-nav)/event-types/page.tsxindex e74d324a190..6d2a3760179 100644--- a/apps/web/app/(use-page-wrapper)/(main-nav)/event-types/page.tsx+++ b/apps/web/app/(use-page-wrapper)/(main-nav)/event-types/page.tsx@@ -1,55 +1,60 @@-import { ShellMainAppDir } from "app/(use-page-wrapper)/(main-nav)/ShellMainAppDir";-import { createRouterCaller, getTRPCContext } from "app/_trpc/context";-import type { PageProps, ReadonlyHeaders, ReadonlyRequestCookies } from "app/_types";-import { _generateMetadata, getTranslate } from "app/_utils";-import { unstable_cache } from "next/cache";-import { cookies, headers } from "next/headers";-import { redirect } from "next/navigation";--import { checkOnboardingRedirect } from "@calcom/features/auth/lib/onboardingUtils";import { getServerSession } from "@calcom/features/auth/lib/getServerSession";+import { checkOnboardingRedirect } from "@calcom/features/auth/lib/onboardingUtils";import { getTeamsFiltersFromQuery } from "@calcom/features/filters/lib/getTeamsFiltersFromQuery";+import type { RouterOutputs } from "@calcom/trpc/react";import { eventTypesRouter } from "@calcom/trpc/server/routers/viewer/eventTypes/_router";-import { buildLegacyRequest } from "@lib/buildLegacyCtx";+import { createRouterCaller, getTRPCContext } from "app/_trpc/context";+import type {+ PageProps,+ ReadonlyHeaders,+ ReadonlyRequestCookies,+} from "app/_types";+import { _generateMetadata } from "app/_utils";+import { unstable_cache } from "next/cache";+import { cookies, headers } from "next/headers";+import { redirect } from "next/navigation";+import type { ReactElement } from "react";-import EventTypes, { EventTypesCTA } from "~/event-types/views/event-types-listing-view";+import { EventTypesWrapper } from "./EventTypesWrapper";-export const generateMetadata = async () =>- await _generateMetadata(- (t) => t("event_types_page_title"),- (t) => t("event_types_page_subtitle"),- undefined,- undefined,- "/event-types"+const getCachedEventGroups: (+ headers: ReadonlyHeaders,+ cookies: ReadonlyRequestCookies,+ filters?: {+ teamIds?: number[] | undefined;+ userIds?: number[] | undefined;+ upIds?: string[] | undefined;+ }+) => Promise<RouterOutputs["viewer"]["eventTypes"]["getUserEventGroups"]> =+ unstable_cache(+ async (+ headers: ReadonlyHeaders,+ cookies: ReadonlyRequestCookies,+ filters?: {+ teamIds?: number[] | undefined;+ userIds?: number[] | undefined;+ upIds?: string[] | undefined;+ }+ ): Promise<RouterOutputs["viewer"]["eventTypes"]["getUserEventGroups"]> => {+ const eventTypesCaller = await createRouterCaller(+ eventTypesRouter,+ await getTRPCContext(headers, cookies)+ );+ return await eventTypesCaller.getUserEventGroups({ filters });+ },+ ["viewer.eventTypes.getUserEventGroups"],+ { revalidate: 3600 } // seconds);-const getCachedEventGroups = unstable_cache(- async (- headers: ReadonlyHeaders,- cookies: ReadonlyRequestCookies,- filters?: {- teamIds?: number[] | undefined;- userIds?: number[] | undefined;- upIds?: string[] | undefined;- }- ) => {- const eventTypesCaller = await createRouterCaller(- eventTypesRouter,- await getTRPCContext(headers, cookies)- );- return await eventTypesCaller.getUserEventGroups({ filters });- },- ["viewer.eventTypes.getUserEventGroups"],- { revalidate: 3600 } // seconds-);--const Page = async ({ searchParams }: PageProps) => {+const Page = async ({ searchParams }: PageProps): Promise<ReactElement> => {const _searchParams = await searchParams;const _headers = await headers();const _cookies = await cookies();- const session = await getServerSession({ req: buildLegacyRequest(_headers, _cookies) });+ const session = await getServerSession({+ req: buildLegacyRequest(_headers, _cookies),+ });if (!session?.user?.id) {return redirect("/auth/login");}@@ -65,18 +70,30 @@ const Page = async ({ searchParams }: PageProps) => {return redirect(onboardingPath);}- const t = await getTranslate();const filters = getTeamsFiltersFromQuery(_searchParams);- const userEventGroupsData = await getCachedEventGroups(_headers, _cookies, filters);+ const userEventGroupsData = await getCachedEventGroups(+ _headers,+ _cookies,+ filters+ );return (- <ShellMainAppDir- heading={t("event_types_page_title")}- subtitle={t("event_types_page_subtitle")}- CTA={<EventTypesCTA userEventGroupsData={userEventGroupsData} />}>- <EventTypes userEventGroupsData={userEventGroupsData} user={session.user} />- </ShellMainAppDir>+ <EventTypesWrapper+ userEventGroupsData={userEventGroupsData}+ user={session.user}+ />);};+export const generateMetadata = async (): Promise<+ ReturnType<typeof _generateMetadata>+> =>+ await _generateMetadata(+ (t) => t("event_types_page_title"),+ (t) => t("event_types_page_subtitle"),+ undefined,+ undefined,+ "/event-types"+ );+export default Page;diff --git a/apps/web/app/(use-page-wrapper)/apps/routing-forms/[...pages]/FormEdit.tsx b/apps/web/app/(use-page-wrapper)/apps/routing-forms/[...pages]/FormEdit.tsxindex 14183339d56..2fbc28afc68 100644--- a/apps/web/app/(use-page-wrapper)/apps/routing-forms/[...pages]/FormEdit.tsx+++ b/apps/web/app/(use-page-wrapper)/apps/routing-forms/[...pages]/FormEdit.tsx@@ -88,9 +88,16 @@ function Field({moveUp={moveUp}moveDown={moveDown}badge={- router ? { text: router.name, variant: "gray", href: `${appUrl}/form-edit/${router.id}` } : null+ router+ ? {+ text: router.name,+ variant: "gray",+ href: `${appUrl}/form-edit/${router.id}`,+ }+ : null}- deleteField={router ? null : deleteField}>+ deleteField={router ? null : deleteField}+ ><FormCardBody><div className="mb-3 w-full"><TextField@@ -107,13 +114,25 @@ function Field({// Use label from useWatch which is guaranteed to be the previous value// since useWatch updates reactively (after re-render), not synchronouslyconst previousLabel = label || "";- hookForm.setValue(`${hookFieldNamespace}.label`, newLabel, { shouldDirty: true });- const currentIdentifier = hookForm.getValues(`${hookFieldNamespace}.identifier`);+ hookForm.setValue(`${hookFieldNamespace}.label`, newLabel, {+ shouldDirty: true,+ });+ const currentIdentifier = hookForm.getValues(+ `${hookFieldNamespace}.identifier`+ );// Only auto-update identifier if it was auto-generated from the previous label// This preserves manual identifier changes- const isIdentifierGeneratedFromPreviousLabel = currentIdentifier === getFieldIdentifier(previousLabel);- if (!currentIdentifier || isIdentifierGeneratedFromPreviousLabel) {- hookForm.setValue(`${hookFieldNamespace}.identifier`, getFieldIdentifier(newLabel), { shouldDirty: true });+ const isIdentifierGeneratedFromPreviousLabel =+ currentIdentifier === getFieldIdentifier(previousLabel);+ if (+ !currentIdentifier ||+ isIdentifierGeneratedFromPreviousLabel+ ) {+ hookForm.setValue(+ `${hookFieldNamespace}.identifier`,+ getFieldIdentifier(newLabel),+ { shouldDirty: true }+ );}}}/>@@ -122,12 +141,23 @@ function Field({<TextFielddisabled={!!router}label={t("identifier_url_parameter")}+ hint={t("identifier_url_parameter_hint")}name={`${hookFieldNamespace}.identifier`}requiredplaceholder={t("identifies_name_field")}- value={identifier || routerField?.identifier || label || routerField?.label || ""}+ value={+ identifier ||+ routerField?.identifier ||+ label ||+ routerField?.label ||+ ""+ }onChange={(e) => {- hookForm.setValue(`${hookFieldNamespace}.identifier`, e.target.value, { shouldDirty: true });+ hookForm.setValue(+ `${hookFieldNamespace}.identifier`,+ e.target.value,+ { shouldDirty: true }+ );}}/></div>@@ -137,7 +167,9 @@ function Field({control={hookForm.control}defaultValue={routerField?.type}render={({ field: { value, onChange } }) => {- const defaultValue = FieldTypes.find((fieldType) => fieldType.value === value);+ const defaultValue = FieldTypes.find(+ (fieldType) => fieldType.value === value+ );if (disableTypeChange) {return (<div className="data-testid-field-type">@@ -150,9 +182,15 @@ function Field({className={classNames("h-8 w-full justify-between text-left text-sm",!!router && "bg-subtle cursor-not-allowed"- )}>- <span className="text-default">{defaultValue?.label || "Select field type"}</span>- <Icon name="chevron-down" className="text-default h-4 w-4" />+ )}+ >+ <span className="text-default">+ {defaultValue?.label || "Select field type"}+ </span>+ <Icon+ name="chevron-down"+ className="text-default h-4 w-4"+ /></Button></Tooltip></div>@@ -273,7 +311,9 @@ const FormEdit = ({<div className="w-full py-4 lg:py-8"><div ref={animationRef} className="flex w-full flex-col rounded-md">{hookFormFields.map((field, key) => {- const existingField = Boolean((form.fields || []).find((f) => f.id === field.id));+ const existingField = Boolean(+ (form.fields || []).find((f) => f.id === field.id)+ );const hasFormResponses = (form._count?.responses ?? 0) > 0;return (<Field@@ -310,7 +350,13 @@ const FormEdit = ({</div>{hookFormFields.length ? (<div className={classNames("flex")}>- <Button data-testid="add-field" type="button" StartIcon="plus" color="secondary" onClick={addField}>+ <Button+ data-testid="add-field"+ type="button"+ StartIcon="plus"+ color="secondary"+ onClick={addField}+ >Add question</Button></div>@@ -319,7 +365,7 @@ const FormEdit = ({) : (<div className="w-full py-4 lg:py-8">{/* TODO: remake empty screen for V3 */}- <div className="border-sublte bg-cal-muted flex flex-col items-center gap-6 rounded-xl border p-11">+ <div className="border-subtle bg-cal-muted flex flex-col items-center gap-6 rounded-xl border p-11"><div className="mb-3 grid">{/* Icon card - Top */}<div className="bg-default border-subtle z-30 col-start-1 col-end-1 row-start-1 row-end-1 h-10 w-10 transform rounded-md border shadow-sm">@@ -350,7 +396,12 @@ const FormEdit = ({Fields are the form fields that the booker would see.</p></div>- <Button data-testid="add-field" onClick={addField} StartIcon="plus" className="mt-6">+ <Button+ data-testid="add-field"+ onClick={addField}+ StartIcon="plus"+ className="mt-6"+ >Add question</Button></div>@@ -370,7 +421,9 @@ export default function FormEditPage({{...props}appUrl={appUrl}permissions={permissions}- Page={({ hookForm, form }) => <FormEdit appUrl={appUrl} hookForm={hookForm} form={form} />}+ Page={({ hookForm, form }) => (+ <FormEdit appUrl={appUrl} hookForm={hookForm} form={form} />+ )}/></>);diff --git a/apps/web/components/dialog/__tests__/EditLocationDialog.test.tsx b/apps/web/components/dialog/__tests__/EditLocationDialog.test.tsxindex 1aa1da9f874..84e83a4a1b0 100644--- a/apps/web/components/dialog/__tests__/EditLocationDialog.test.tsx+++ b/apps/web/components/dialog/__tests__/EditLocationDialog.test.tsx@@ -46,8 +46,8 @@ vi.mock("@calcom/features/form/components/LocationSelect", () => {};});-const AttendeePhoneNumberLabel = "Attendee Phone Number";-const OrganizerPhoneLabel = "Organizer Phone Number";+const AttendeePhoneNumberLabel = "Attendee phone number";+const OrganizerPhoneLabel = "Organizer phone number";const CampfireLabel = "Campfire";const ZoomVideoLabel = "Zoom Video";const OrganizerDefaultConferencingAppLabel = "Organizer's default app";diff --git a/apps/web/modules/bookings/components/BookingListContainer.tsx b/apps/web/modules/bookings/components/BookingListContainer.tsxindex 67938111526..23e35662671 100644--- a/apps/web/modules/bookings/components/BookingListContainer.tsx+++ b/apps/web/modules/bookings/components/BookingListContainer.tsx@@ -1,6 +1,10 @@"use client";-import { useReactTable, getCoreRowModel, getSortedRowModel } from "@tanstack/react-table";+import {+ useReactTable,+ getCoreRowModel,+ getSortedRowModel,+} from "@tanstack/react-table";import { useRouter } from "next/navigation";import React, { useState, useMemo, useEffect, useCallback } from "react";@@ -31,7 +35,11 @@ import {BookingDetailsSheetStoreProvider,useBookingDetailsSheetStore,} from "../store/bookingDetailsSheetStore";-import type { RowData, BookingListingStatus, BookingsGetOutput } from "../types";+import type {+ RowData,+ BookingListingStatus,+ BookingsGetOutput,+} from "../types";import { BookingDetailsSheet } from "./BookingDetailsSheet";import { BookingList } from "./BookingList";import { ViewToggleButton } from "./ViewToggleButton";@@ -42,7 +50,11 @@ interface FilterButtonProps {setShowFilters: (value: boolean | ((prev: boolean) => boolean)) => void;}-function FilterButton({ table, displayedFilterCount, setShowFilters }: FilterButtonProps) {+function FilterButton({+ table,+ displayedFilterCount,+ setShowFilters,+}: FilterButtonProps) {const { t } = useLocale();if (displayedFilterCount === 0) {@@ -55,7 +67,8 @@ function FilterButton({ table, displayedFilterCount, setShowFilters }: FilterButStartIcon="list-filter"className="h-full"size="sm"- onClick={() => setShowFilters((value) => !value)}>+ onClick={() => setShowFilters((value) => !value)}+ >{t("filter")}<Badge variant="gray" className="ml-1">{displayedFilterCount}@@ -96,7 +109,9 @@ function BookingListInner({}: BookingListInnerProps) {const { t } = useLocale();const user = useMeQuery().data;- const setSelectedBookingUid = useBookingDetailsSheetStore((state) => state.setSelectedBookingUid);+ const setSelectedBookingUid = useBookingDetailsSheetStore(+ (state) => state.setSelectedBookingUid+ );const router = useRouter();const [showFilters, setShowFilters] = useState(true);@@ -104,7 +119,11 @@ function BookingListInner({useListAutoSelector(bookings);const ErrorView = errorMessage ? (- <Alert severity="error" title={t("something_went_wrong")} message={errorMessage} />+ <Alert+ severity="error"+ title={t("something_went_wrong")}+ message={errorMessage}+ />) : undefined;const handleBookingClick = useCallback(@@ -122,7 +141,11 @@ function BookingListInner({handleBookingClick,});- const finalData = useBookingListData({ data, status, userTimeZone: user?.timeZone });+ const finalData = useBookingListData({+ data,+ status,+ userTimeZone: user?.timeZone,+ });const getFacetedUniqueValues = useFacetedUniqueValues();@@ -167,7 +190,9 @@ function BookingListInner({value={currentTab}onValueChange={(value) => {if (!value) return;- const selectedTab = tabOptions.find((tab) => tab.value === value);+ const selectedTab = tabOptions.find(+ (tab) => tab.value === value+ );if (selectedTab?.href) {router.push(selectedTab.href);}@@ -187,8 +212,10 @@ function BookingListInner({{/* Desktop: auto-pushed to right via flex-grow spacer, Mobile: continue on second row */}<div className="hidden grow md:block" />- <DataTableSegment.Select shortLabel />- {bookingsV3Enabled && <ViewToggleButton bookingsV3Enabled={bookingsV3Enabled} />}+ <DataTableSegment.Select />+ {bookingsV3Enabled && (+ <ViewToggleButton bookingsV3Enabled={bookingsV3Enabled} />+ )}</div>{displayedFilterCount > 0 && showFilters && (<div className="mt-3 flex flex-wrap items-center gap-2">@@ -203,7 +230,11 @@ function BookingListInner({</div>)}{status === "upcoming" && !isEmpty && (- <WipeMyCalActionButton className="mt-4" bookingStatus={status} bookingsEmpty={isEmpty} />+ <WipeMyCalActionButton+ className="mt-4"+ bookingStatus={status}+ bookingsEmpty={isEmpty}+ />)}<div className="mt-4"><BookingList@@ -219,7 +250,9 @@ function BookingListInner({{bookingsV3Enabled && (<BookingDetailsSheetuserTimeZone={user?.timeZone}- userTimeFormat={user?.timeFormat === null ? undefined : user?.timeFormat}+ userTimeFormat={+ user?.timeFormat === null ? undefined : user?.timeFormat+ }userId={user?.id}userEmail={user?.email}bookingAuditEnabled={bookingAuditEnabled}@@ -231,8 +264,15 @@ function BookingListInner({export function BookingListContainer(props: BookingListContainerProps) {const { limit, offset, setPageIndex } = useDataTable();- const { eventTypeIds, teamIds, userIds, dateRange, attendeeName, attendeeEmail, bookingUid } =- useBookingFilters();+ const {+ eventTypeIds,+ teamIds,+ userIds,+ dateRange,+ attendeeName,+ attendeeEmail,+ bookingUid,+ } = useBookingFilters();// Build query input once - shared between query and prefetchingconst queryInput = useMemo(@@ -250,7 +290,9 @@ export function BookingListContainer(props: BookingListContainerProps) {afterStartDate: dateRange?.startDate? dayjs(dateRange?.startDate).startOf("day").toISOString(): undefined,- beforeEndDate: dateRange?.endDate ? dayjs(dateRange?.endDate).endOf("day").toISOString() : undefined,+ beforeEndDate: dateRange?.endDate+ ? dayjs(dateRange?.endDate).endOf("day").toISOString()+ : undefined,},}),[@@ -272,7 +314,10 @@ export function BookingListContainer(props: BookingListContainerProps) {gcTime: 30 * 60 * 1000, // 30 minutes - cache retention time});- const bookings = useMemo(() => query.data?.bookings ?? [], [query.data?.bookings]);+ const bookings = useMemo(+ () => query.data?.bookings ?? [],+ [query.data?.bookings]+ );// Always call the hook and provide navigation capabilities// The BookingDetailsSheet is only rendered when bookingsV3Enabled is true (see line 212)@@ -285,7 +330,10 @@ export function BookingListContainer(props: BookingListContainerProps) {});return (- <BookingDetailsSheetStoreProvider bookings={bookings} capabilities={capabilities}>+ <BookingDetailsSheetStoreProvider+ bookings={bookings}+ capabilities={capabilities}+ ><BookingListInner{...props}data={query.data}diff --git a/apps/web/modules/ee/organizations/profile.tsx b/apps/web/modules/ee/organizations/profile.tsxindex a052b39f93a..6f5e79ff3ba 100644--- a/apps/web/modules/ee/organizations/profile.tsx+++ b/apps/web/modules/ee/organizations/profile.tsx@@ -25,7 +25,10 @@ import { Form } from "@calcom/ui/components/form";import { Label } from "@calcom/ui/components/form";import { TextField } from "@calcom/ui/components/form";import { Icon } from "@calcom/ui/components/icon";-import { BannerUploader, ImageUploader } from "@calcom/ui/components/image-uploader";+import {+ BannerUploader,+ ImageUploader,+} from "@calcom/ui/components/image-uploader";// if I include this in the above barrel import, I get a runtime error that the component is not exported.import { OrgBanner } from "@calcom/ui/components/organization-banner";import {@@ -108,6 +111,13 @@ const OrgProfileView = ({[error, router]);+ // Scroll to top when page loads+ useEffect(() => {+ if (!isPending && orgBranding && currentOrganisation) {+ window.scrollTo(0, 0);+ }+ }, [isPending, orgBranding, currentOrganisation]);+if (isPending || !orgBranding || !currentOrganisation) {return <SkeletonLoader />;}@@ -126,7 +136,8 @@ const OrgProfileView = ({calVideoLogo: currentOrganisation?.calVideoLogo || "",slug:currentOrganisation?.slug ||- ((currentOrganisation?.metadata as Prisma.JsonObject)?.requestedSlug as string) ||+ ((currentOrganisation?.metadata as Prisma.JsonObject)+ ?.requestedSlug as string) ||"",};@@ -142,15 +153,18 @@ const OrgProfileView = ({<div className="border-subtle flex rounded-b-md border border-t-0 px-4 py-8 sm:px-6"><div className="grow"><div>- <Label className="text-emphasis">{t("organization_name")}</Label>- <p className="text-default text-sm">{currentOrganisation?.name}</p>+ <Label className="text-emphasis">+ {t("organization_name")}+ </Label>+ <p className="text-default text-sm">+ {currentOrganisation?.name}+ </p></div>{!isBioEmpty && (<><Label className="text-emphasis mt-5">{t("about")}</Label><divclassName=" text-subtle wrap-break-word text-sm [&_a]:text-blue-500 [&_a]:underline [&_a]:hover:text-blue-600"-dangerouslySetInnerHTML={{__html: markdownToSafeHTML(currentOrganisation.bio || ""),}}@@ -164,7 +178,8 @@ const OrgProfileView = ({onClick={() => {navigator.clipboard.writeText(orgBranding.fullDomain);showToast("Copied to clipboard", "success");- }}>+ }}+ >{t("copy_link_org")}</LinkIconButton></div>@@ -189,7 +204,10 @@ const OrgProfileForm = ({ defaultValues }: { defaultValues: FormValues }) => {const mutation = trpc.viewer.organizations.update.useMutation({onError: (err) => {// Handle JSON parsing errors from body size limit exceeded- if (err.message.includes("Unexpected token") && err.message.includes("Body excee")) {+ if (+ err.message.includes("Unexpected token") &&+ err.message.includes("Body excee")+ ) {showToast(t("converted_image_size_limit_exceed"), "error");return;}@@ -239,119 +257,171 @@ const OrgProfileForm = ({ defaultValues }: { defaultValues: FormValues }) => {};mutation.mutate(variables);- }}>+ }}+ ><div className="border-subtle border-x px-4 py-8 sm:px-6">- <div className="flex items-center">+ <div className="grid grid-cols-2 gap-8"><Controllercontrol={form.control}name="logoUrl"render={({ field: { value, onChange } }) => {const showRemoveLogoButton = value !== null;return (- <>+ <div className="flex items-center gap-4"><Avatardata-testid="profile-upload-logo"alt={form.getValues("name")}- imageSrc={getPlaceholderAvatar(value, form.getValues("name"))}+ imageSrc={getPlaceholderAvatar(+ value,+ form.getValues("name")+ )}size="lg"/>- <div className="ms-4">+ <div><div className="flex gap-2"><ImageUploadertarget="logo"id="avatar-upload"buttonMsg={t("upload_logo")}handleAvatarChange={onChange}- imageSrc={getPlaceholderAvatar(value, form.getValues("name"))}- triggerButtonColor={showRemoveLogoButton ? "secondary" : "primary"}+ imageSrc={getPlaceholderAvatar(+ value,+ form.getValues("name")+ )}+ triggerButtonColor="secondary"/>{showRemoveLogoButton && (- <Button color="secondary" onClick={() => onChange(null)}>+ <Button color="minimal" onClick={() => onChange(null)}>{t("remove")}</Button>)}</div></div>- </>+ </div>);}}/>- </div>-- <div className="my-4 flex flex-col gap-4"><Controllercontrol={form.control}- name="banner"+ name="calVideoLogo"render={({ field: { value, onChange } }) => {- const showRemoveBannerButton = !!value;-+ const showRemoveLogoButton = !!value;return (- <>- <OrgBanner- data-testid="profile-upload-banner"- alt={`${defaultValues.name} Banner` || ""}- className="grid min-h-[150px] w-full place-items-center rounded-md sm:min-h-[200px]"- fallback={t("no_target", { target: "banner" })}+ <div className="flex items-center gap-4">+ <Avatar+ alt="calVideoLogo"imageSrc={value}+ fallback={+ <Icon name="plus" className="text-subtle h-6 w-6" />+ }+ size="lg"/>- <div className="ms-4">+ <div><div className="flex gap-2">- <BannerUploader- height={500}- width={1500}- target="banner"- uploadInstruction={t("org_banner_instructions", { height: 500, width: 1500 })}- id="banner-upload"- buttonMsg={t("upload_banner")}+ <ImageUploader+ target="avatar"+ id="cal-video-logo-upload"+ buttonMsg={t("upload_cal_video_logo")}handleAvatarChange={onChange}imageSrc={value || undefined}- triggerButtonColor={showRemoveBannerButton ? "secondary" : "primary"}+ uploadInstruction={t(+ "cal_video_logo_upload_instruction"+ )}+ triggerButtonColor="secondary"+ testId="cal-video-logo"/>- {showRemoveBannerButton && (- <Button color="destructive" onClick={() => onChange(null)}>+ {showRemoveLogoButton && (+ <Button color="minimal" onClick={() => onChange(null)}>{t("remove")}</Button>)}</div></div>- </>+ </div>);}}/></div>- <div className="mt-2 flex items-center">++ <div className="my-4 flex flex-col gap-4"><Controllercontrol={form.control}- name="calVideoLogo"+ name="banner"render={({ field: { value, onChange } }) => {- const showRemoveLogoButton = !!value;+ const showRemoveBannerButton = !!value;+return (<>- <Avatar- alt="calVideoLogo"+ <OrgBanner+ data-testid="profile-upload-banner"+ alt={`${defaultValues.name} Banner` || ""}+ className="grid min-h-[150px] w-full place-items-center rounded-md sm:min-h-[200px]"+ fallback={+ !value ? (+ <div className="flex flex-col items-center gap-3">+ <p className="text-muted text-sm">+ {t("no_target", { target: "banner" })}+ </p>+ <div className="hidden">+ <BannerUploader+ height={500}+ width={1500}+ target="banner"+ uploadInstruction={t("org_banner_instructions", {+ height: 500,+ width: 1500,+ })}+ id="banner-upload-inline"+ buttonMsg={t("upload_banner")}+ handleAvatarChange={onChange}+ imageSrc={value || undefined}+ triggerButtonColor="secondary"+ />+ </div>+ <Button+ color="secondary"+ StartIcon="upload"+ onClick={() => {+ // Trigger the BannerUploader dialog+ const triggerButton = document.querySelector(+ '[data-testid="open-upload-banner-dialog"]'+ ) as HTMLButtonElement;+ triggerButton?.click();+ }}>+ {t("upload_banner")}+ </Button>+ </div>+ ) : (+ t("no_target", { target: "banner" })+ )+ }imageSrc={value}- fallback={<Icon name="plus" className="text-subtle h-6 w-6" />}- size="lg"/>- <div className="ms-4">- <div className="flex gap-2">- <ImageUploader- target="avatar"- id="cal-video-logo-upload"- buttonMsg={t("upload_cal_video_logo")}- handleAvatarChange={onChange}- imageSrc={value || undefined}- uploadInstruction={t("cal_video_logo_upload_instruction")}- triggerButtonColor={showRemoveLogoButton ? "secondary" : "primary"}- testId="cal-video-logo"- />- {showRemoveLogoButton && (- <Button color="secondary" onClick={() => onChange(null)}>- {t("remove")}- </Button>- )}+ {value && (+ <div className="mt-2">+ <div className="flex gap-2">+ <BannerUploader+ height={500}+ width={1500}+ target="banner"+ uploadInstruction={t("org_banner_instructions", {+ height: 500,+ width: 1500,+ })}+ id="banner-upload"+ buttonMsg={t("upload_banner")}+ handleAvatarChange={onChange}+ imageSrc={value || undefined}+ triggerButtonColor="secondary"+ />+ {showRemoveBannerButton && (+ <Button color="minimal" onClick={() => onChange(null)}>+ {t("remove")}+ </Button>+ )}+ </div></div>- </div>+ )}</>);}}@@ -406,7 +476,8 @@ const OrgProfileForm = ({ defaultValues }: { defaultValues: FormValues }) => {size="sm"type="button"aria-label="copy organization id"- onClick={() => handleCopy(value.toString())}>+ onClick={() => handleCopy(value.toString())}+ ><Icon name="copy" className="ml-1 h-4 w-4" /></Button></Tooltip>@@ -419,7 +490,9 @@ const OrgProfileForm = ({ defaultValues }: { defaultValues: FormValues }) => {<Label>{t("about")}</Label><EditorgetText={() => md.render(form.getValues("bio") || "")}- setText={(value: string) => form.setValue("bio", turndown(value), { shouldDirty: true })}+ setText={(value: string) =>+ form.setValue("bio", turndown(value), { shouldDirty: true })+ }excludedToolbarItems={["blockType"]}disableListsfirstRender={firstRender}@@ -435,7 +508,8 @@ const OrgProfileForm = ({ defaultValues }: { defaultValues: FormValues }) => {color="primary"type="submit"loading={mutation.isPending}- disabled={isDisabled}>+ disabled={isDisabled}+ >{t("update")}</Button></SectionBottomActions>diff --git a/apps/web/modules/ee/teams/components/EditMemberSheet.tsx b/apps/web/modules/ee/teams/components/EditMemberSheet.tsxindex 5b6aea0fb53..e7050a43c4b 100644--- a/apps/web/modules/ee/teams/components/EditMemberSheet.tsx+++ b/apps/web/modules/ee/teams/components/EditMemberSheet.tsx@@ -12,7 +12,13 @@ import { Avatar } from "@calcom/ui/components/avatar";import { Form } from "@calcom/ui/components/form";import { ToggleGroup, Select } from "@calcom/ui/components/form";import { Icon } from "@calcom/ui/components/icon";-import { Sheet, SheetContent, SheetFooter, SheetHeader, SheetBody } from "@calcom/ui/components/sheet";+import {+ Sheet,+ SheetContent,+ SheetFooter,+ SheetHeader,+ SheetBody,+} from "@calcom/ui/components/sheet";import { Skeleton, Loader } from "@calcom/ui/components/skeleton";import { showToast } from "@calcom/ui/components/toast";import { Tooltip } from "@calcom/ui/components/tooltip";@@ -50,7 +56,9 @@ export function EditMemberSheet({(state) => [state.editMode, state.setEditMode, state.setMutationLoading],shallow);- const [role, setRole] = useState<string>(selectedUser.customRoleId || selectedUser.role);+ const [role, setRole] = useState<string>(+ selectedUser.customRoleId || selectedUser.role+ );const name =selectedUser.name ||(() => {@@ -61,16 +69,19 @@ export function EditMemberSheet({const bookerUrl = selectedUser.bookerUrl;const utils = trpc.useUtils();const bookerUrlWithoutProtocol = bookerUrl.replace(/^https?:\/\//, "");- const bookingLink = selectedUser.username ? `${bookerUrlWithoutProtocol}/${selectedUser.username}` : "";+ const bookingLink = selectedUser.username+ ? `${bookerUrlWithoutProtocol}/${selectedUser.username}`+ : "";// Load custom roles for the team- const { data: customRoles, isPending: isLoadingRoles } = trpc.viewer.pbac.getTeamRoles.useQuery(- { teamId },- {- enabled: !!teamId,- retry: false, // Don't retry if PBAC is not enabled- }- );+ const { data: customRoles, isPending: isLoadingRoles } =+ trpc.viewer.pbac.getTeamRoles.useQuery(+ { teamId },+ {+ enabled: !!teamId,+ retry: false, // Don't retry if PBAC is not enabled+ }+ );const options = useMemo(() => {// If we have custom roles, only show custom roles@@ -95,7 +106,10 @@ export function EditMemberSheet({label: t("owner"),value: MembershipRole.OWNER,},- ].filter(({ value }) => value !== MembershipRole.OWNER || currentMember === MembershipRole.OWNER);+ ].filter(+ ({ value }) =>+ value !== MembershipRole.OWNER || currentMember === MembershipRole.OWNER+ );}, [t, currentMember, customRoles]);// Determine if we should use Select (when custom roles exist) or ToggleGroup (traditional only)@@ -109,10 +123,11 @@ export function EditMemberSheet({},});- const { data: getUserConnectedApps, isPending } = trpc.viewer.teams.getUserConnectedApps.useQuery({- userIds: [selectedUser.id],- teamId,- });+ const { data: getUserConnectedApps, isPending } =+ trpc.viewer.teams.getUserConnectedApps.useQuery({+ userIds: [selectedUser.id],+ teamId,+ });const connectedApps = getUserConnectedApps?.[selectedUser.id];@@ -191,21 +206,32 @@ export function EditMemberSheet({onOpenChange={() => {setEditMode(false);dispatch({ type: "CLOSE_MODAL" });- }}>+ }}+ ><SheetContent className="bg-cal-muted">{!isPending && !isLoadingRoles ? (- <Form form={form} handleSubmit={changeRole} className="flex h-full flex-col">+ <Form+ form={form}+ handleSubmit={changeRole}+ className="flex h-full flex-col"+ ><SheetHeader showCloseButton={false} className="w-full">- <div className="border-sublte bg-default w-full rounded-xl border p-4">+ <div className="border-subtle bg-default w-full rounded-xl border p-4"><divclassName="block w-full rounded-lg ring-1 ring-[#0000000F]"style={{- background: "linear-gradient(to top right, var(--cal-bg-emphasis), var(--cal-bg))",+ background:+ "linear-gradient(to top right, var(--cal-bg-emphasis), var(--cal-bg))",height: "110px",}}/><div className="bg-default ml-3 w-fit translate-y-[-50%] rounded-full p-1 ring-1 ring-[#0000000F]">- <Avatar asChild size="lg" alt={`${name} avatar`} imageSrc={selectedUser.avatarUrl} />+ <Avatar+ asChild+ size="lg"+ alt={`${name} avatar`}+ imageSrc={selectedUser.avatarUrl}+ /></div><Skeleton as="p" waitForTranslation={false}><h2 className="text-emphasis font-sans text-2xl font-semibold">@@ -214,16 +240,28 @@ export function EditMemberSheet({</Skeleton><Skeleton as="p" waitForTranslation={false}><p className="text-subtle max-h-[3em] overflow-hidden text-ellipsis text-sm font-normal">- {selectedUser.bio ? selectedUser?.bio : t("user_has_no_bio")}+ {selectedUser.bio+ ? selectedUser?.bio+ : t("user_has_no_bio")}</p></Skeleton></div></SheetHeader><SheetBody className="stack-y-4 flex flex-col p-4"><div className="stack-y-4 mb-4 flex flex-col">- <h3 className="text-emphasis mb-1 text-base font-semibold">{t("profile")}</h3>- <DisplayInfo label="Cal" value={bookingLink} icon="external-link" />- <DisplayInfo label={t("email")} value={selectedUser.email} icon="at-sign" />+ <h3 className="text-emphasis mb-1 text-base font-semibold">+ {t("profile")}+ </h3>+ <DisplayInfo+ label="Cal"+ value={bookingLink}+ icon="external-link"+ />+ <DisplayInfo+ label={t("email")}+ value={selectedUser.email}+ icon="at-sign"+ />{!editMode ? (<DisplayInfolabel={t("role")}@@ -239,7 +277,9 @@ export function EditMemberSheet({<div className="flex flex-1">{shouldUseSelect ? (<Select- value={options.find((option) => option.value === form.watch("role"))}+ value={options.find(+ (option) => option.value === form.watch("role")+ )}onChange={(selectedOption: any) => {if (selectedOption) {form.setValue("role", selectedOption.value);@@ -247,7 +287,9 @@ export function EditMemberSheet({}}options={options}isDisabled={isLoadingRoles}- placeholder={isLoadingRoles ? t("loading") : t("select_role")}+ placeholder={+ isLoadingRoles ? t("loading") : t("select_role")+ }className="flex-1"/>) : (@@ -267,7 +309,9 @@ export function EditMemberSheet({<div className="flex items-center gap-6"><div className="flex w-[110px] items-center gap-2"><Icon className="text-subtle h-4 w-4" name="grid-3x3" />- <label className="text-subtle text-sm font-medium">{t("apps")}</label>+ <label className="text-subtle text-sm font-medium">+ {t("apps")}+ </label></div><div className="flex flex-1">{!connectedApps ? (diff --git a/apps/web/modules/ee/teams/components/createButton/CreateButton.tsx b/apps/web/modules/ee/teams/components/createButton/CreateButton.tsxindex 76191dd6e13..2b1c44476a2 100644--- a/apps/web/modules/ee/teams/components/createButton/CreateButton.tsx+++ b/apps/web/modules/ee/teams/components/createButton/CreateButton.tsx@@ -62,12 +62,22 @@ export function CreateButton(props: CreateBtnProps) {const hasTeams = !!options.find((option) => option.teamId);const platform = !!options.find((option) => option.platform);+ const hasMultipleOptions = options.length > 1;+ const isFabVariant = !disableMobileButton;+ // On FAB variant, EndIcon shows as "plus" on mobile, so we remove StartIcon to avoid duplicate+ // On button variant, both icons work correctly+ const startIcon = isFabVariant && hasMultipleOptions ? undefined : "plus";+ const endIcon = hasMultipleOptions ? "chevron-down" : undefined;// inject selection data into url for correct router historyconst openModal = (option: Option) => {const _searchParams = new URLSearchParams(searchParams.toString());- function setParamsIfDefined(key: string, value: string | number | boolean | null | undefined) {- if (value !== undefined && value !== null) _searchParams.set(key, value.toString());+ function setParamsIfDefined(+ key: string,+ value: string | number | boolean | null | undefined+ ) {+ if (value !== undefined && value !== null)+ _searchParams.set(key, value.toString());}setParamsIfDefined("dialog", "new");setParamsIfDefined("eventPage", option.slug);@@ -82,7 +92,6 @@ export function CreateButton(props: CreateBtnProps) {<>{!hasTeams && !platform ? (<Button- size="sm"onClick={() =>CreateDialog? openModal(options[0])@@ -91,11 +100,17 @@ export function CreateButton(props: CreateBtnProps) {: null}data-testid="create-button"- StartIcon="plus"+ StartIcon={startIcon}+ EndIcon={endIcon}+ size="sm"loading={isPending}variant={disableMobileButton ? "button" : "fab"}- className={classNames(disableMobileButton && "md:min-h-min md:min-w-min", className)}- {...restProps}>+ className={classNames(+ disableMobileButton && "md:min-h-min md:min-w-min",+ className+ )}+ {...restProps}+ >{buttonText ? buttonText : t("new")}</Button>) : (@@ -103,16 +118,25 @@ export function CreateButton(props: CreateBtnProps) {<DropdownMenuTrigger asChild><Buttonvariant={disableMobileButton ? "button" : "fab"}- StartIcon="plus"+ StartIcon={startIcon}+ EndIcon={endIcon}size="sm"data-testid="create-button-dropdown"loading={isPending}- className={classNames(disableMobileButton && "md:min-h-min md:min-w-min", className)}- {...restProps}>+ className={classNames(+ disableMobileButton && "md:min-h-min md:min-w-min",+ className+ )}+ {...restProps}+ >{buttonText ? buttonText : t("new")}</Button></DropdownMenuTrigger>- <DropdownMenuContent sideOffset={14} align="end" className="scroll-bar max-h-60 overflow-y-auto">+ <DropdownMenuContent+ sideOffset={14}+ align="end"+ className="scroll-bar max-h-60 overflow-y-auto"+ ><DropdownMenuLabel><div className="w-48 text-left text-xs">{subtitle}</div></DropdownMenuLabel>@@ -121,14 +145,24 @@ export function CreateButton(props: CreateBtnProps) {<DropdownItemtype="button"data-testid={`option${option.teamId ? "-team" : ""}-${idx}`}- CustomStartIcon={<Avatar alt={option.label || ""} imageSrc={option.image} size="sm" />}+ CustomStartIcon={+ <Avatar+ alt={option.label || ""}+ imageSrc={option.image}+ size="sm"+ />+ }onClick={() =>CreateDialog? openModal(option): createFunction- ? createFunction(option.teamId || undefined, option.platform)+ ? createFunction(+ option.teamId || undefined,+ option.platform+ ): null- }>+ }+ >{" "}{/*improve this code */}<span>{option.label}</span>diff --git a/apps/web/modules/ee/workflows/components/WorkflowDetailsPage.tsx b/apps/web/modules/ee/workflows/components/WorkflowDetailsPage.tsxindex 1221bbcfe9b..ffa96b7964d 100644--- a/apps/web/modules/ee/workflows/components/WorkflowDetailsPage.tsx+++ b/apps/web/modules/ee/workflows/components/WorkflowDetailsPage.tsx@@ -13,7 +13,11 @@ import { ALLOWED_FORM_WORKFLOW_ACTIONS } from "@calcom/features/ee/workflows/libimport emailReminderTemplate from "@calcom/features/ee/workflows/lib/reminders/templates/emailReminderTemplate";import type { FormValues } from "@calcom/features/ee/workflows/lib/types";import type { WorkflowPermissions } from "@calcom/features/workflows/repositories/WorkflowPermissionsRepository";-import { SENDER_ID, SENDER_NAME, SCANNING_WORKFLOW_STEPS } from "@calcom/lib/constants";+import {+ SENDER_ID,+ SENDER_NAME,+ SCANNING_WORKFLOW_STEPS,+} from "@calcom/lib/constants";import { useLocale } from "@calcom/lib/hooks/useLocale";import { getTimeFormatStringFromUserTimeFormat } from "@calcom/lib/timeFormat";import { WorkflowActions } from "@calcom/prisma/enums";@@ -23,7 +27,10 @@ import { Button } from "@calcom/ui/components/button";import { FormCard, FormCardBody } from "@calcom/ui/components/card";import type { MultiSelectCheckboxesOptionType as Option } from "@calcom/ui/components/form";import { Icon } from "@calcom/ui/components/icon";-import { useHasPaidPlan, useHasActiveTeamPlan } from "@calcom/web/modules/billing/hooks/useHasPaidPlan";+import {+ useHasPaidPlan,+ useHasActiveTeamPlan,+} from "@calcom/web/modules/billing/hooks/useHasPaidPlan";import { AddActionDialog } from "./AddActionDialog";import WorkflowStepContainer from "./WorkflowStepContainer";@@ -70,20 +77,28 @@ export default function WorkflowDetailsPage(props: Props) {const eventTypeId = searchParams?.get("eventTypeId");// Get base action options and transform them for form triggers- const { data: baseActionOptions } = trpc.viewer.workflows.getWorkflowActionOptions.useQuery();+ const { data: baseActionOptions } =+ trpc.viewer.workflows.getWorkflowActionOptions.useQuery();const transformedActionOptions = baseActionOptions? baseActionOptions.filter((option) => {const isFormWorkflowWithInvalidSteps =isFormTrigger(form.getValues("trigger")) &&- !ALLOWED_FORM_WORKFLOW_ACTIONS.some((action) => action === option.value);+ !ALLOWED_FORM_WORKFLOW_ACTIONS.some(+ (action) => action === option.value+ );- const isSelectAllCalAiAction = isCalAIAction(option.value) && form.watch("selectAll");+ const isSelectAllCalAiAction =+ isCalAIAction(option.value) && form.watch("selectAll");const isOrgCalAiAction = isCalAIAction(option.value) && isOrg;- if (isFormWorkflowWithInvalidSteps || isSelectAllCalAiAction || isOrgCalAiAction) {+ if (+ isFormWorkflowWithInvalidSteps ||+ isSelectAllCalAiAction ||+ isOrgCalAiAction+ ) {return false;}return true;@@ -100,7 +115,8 @@ export default function WorkflowDetailsPage(props: Props) {}}- const needsTeamsUpgrade = isFormTrigger(form.getValues("trigger")) && !hasActiveTeamPlan;+ const needsTeamsUpgrade =+ isFormTrigger(form.getValues("trigger")) && !hasActiveTeamPlan;return {...option,@@ -117,8 +133,13 @@ export default function WorkflowDetailsPage(props: Props) {: [];useEffect(() => {- const matchingOption = allOptions.find((option) => option.value === eventTypeId);- if (matchingOption && !selectedOptions.find((option) => option.value === eventTypeId)) {+ const matchingOption = allOptions.find(+ (option) => option.value === eventTypeId+ );+ if (+ matchingOption &&+ !selectedOptions.find((option) => option.value === eventTypeId)+ ) {const newOptions = [...selectedOptions, matchingOption];setSelectedOptions(newOptions);form.setValue("activeOn", newOptions);@@ -141,7 +162,9 @@ export default function WorkflowDetailsPage(props: Props) {})[0].id - 1: 0;- const timeFormat = getTimeFormatStringFromUserTimeFormat(props.user.timeFormat);+ const timeFormat = getTimeFormatStringFromUserTimeFormat(+ props.user.timeFormat+ );const template = isFormTrigger(form.getValues("trigger"))? WorkflowTemplates.CUSTOM@@ -174,7 +197,9 @@ export default function WorkflowDetailsPage(props: Props) {template,numberRequired: numberRequired || false,sender: isSMSAction(action) ? sender || SENDER_ID : SENDER_ID,- senderName: !isSMSAction(action) ? senderName || SENDER_NAME : SENDER_NAME,+ senderName: !isSMSAction(action)+ ? senderName || SENDER_NAME+ : SENDER_NAME,numberVerificationPending: false,includeCalendarEvent: false,verifiedAt: SCANNING_WORKFLOW_STEPS ? null : new Date(),@@ -185,8 +210,10 @@ export default function WorkflowDetailsPage(props: Props) {form.setValue("steps", steps);};- const { outboundAgentQueries: agentQueriesTrpc, inboundAgentQueries: inboundAgentQueriesTrpc } =- useAgentsData(form);+ const {+ outboundAgentQueries: agentQueriesTrpc,+ inboundAgentQueries: inboundAgentQueriesTrpc,+ } = useAgentsData(form);return (<>@@ -199,9 +226,12 @@ export default function WorkflowDetailsPage(props: Props) {<div className="border-subtle text-subtle ml-1 rounded-lg border p-1"><Icon name="zap" size="16" /></div>- <div className="text-sm font-medium leading-none">{t("trigger")}</div>+ <div className="text-sm font-medium leading-none">+ {t("trigger")}+ </div></div>- }>+ }+ ><FormCardBody className="border-muted"><WorkflowStepContainerform={form}@@ -228,7 +258,8 @@ export default function WorkflowDetailsPage(props: Props) {const agentData = agentQueriesTrpc[index]?.data;const isAgentLoading = agentQueriesTrpc[index]?.isPending;const inboundAgentData = inboundAgentQueriesTrpc[index]?.data;- const isInboundAgentLoading = inboundAgentQueriesTrpc[index]?.isPending;+ const isInboundAgentLoading =+ inboundAgentQueriesTrpc[index]?.isPending;return (<div key={index}>@@ -241,13 +272,15 @@ export default function WorkflowDetailsPage(props: Props) {<div className="border-subtle text-subtle rounded-lg border p-1"><Icon name="arrow-right" size="16" /></div>- <div className="text-sm font-medium leading-none">{t("action")}</div>+ <div className="text-sm font-medium leading-none">+ {t("action")}+ </div></div>}deleteField={!permissions.readOnly? {- color: "destructive",+ color: "minimal",check: () => true,disabled: !permissions.canUpdate,fn: () => {@@ -260,11 +293,16 @@ export default function WorkflowDetailsPage(props: Props) {} else {const steps = form.getValues("steps");const updatedSteps = steps- ?.filter((currStep) => currStep.id !== step.id)+ ?.filter(+ (currStep) => currStep.id !== step.id+ ).map((s) => {const updatedStep = s;- if (step.stepNumber < updatedStep.stepNumber) {- updatedStep.stepNumber = updatedStep.stepNumber - 1;+ if (+ step.stepNumber < updatedStep.stepNumber+ ) {+ updatedStep.stepNumber =+ updatedStep.stepNumber - 1;}return updatedStep;});@@ -276,7 +314,8 @@ export default function WorkflowDetailsPage(props: Props) {},}: null- }>+ }+ ><FormCardBody className="border-muted"><WorkflowStepContainerform={form}@@ -316,7 +355,8 @@ export default function WorkflowDetailsPage(props: Props) {type="button"onClick={() => setIsAddActionDialogOpen(true)}color="secondary"- className="bg-default">+ className="bg-default"+ >{t("add_action")}</Button></>diff --git a/apps/web/modules/ee/workflows/components/WorkflowStepContainer.tsx b/apps/web/modules/ee/workflows/components/WorkflowStepContainer.tsxindex 41f8fcc432c..574d186379e 100644--- a/apps/web/modules/ee/workflows/components/WorkflowStepContainer.tsx+++ b/apps/web/modules/ee/workflows/components/WorkflowStepContainer.tsx@@ -48,7 +48,11 @@ import { trpc } from "@calcom/trpc/react";import classNames from "@calcom/ui/classNames";import { Badge, InfoBadge } from "@calcom/ui/components/badge";import { Button } from "@calcom/ui/components/button";-import { DialogContent, DialogFooter, DialogClose } from "@calcom/ui/components/dialog";+import {+ DialogContent,+ DialogFooter,+ DialogClose,+} from "@calcom/ui/components/dialog";import {Dropdown,DropdownItem,@@ -70,7 +74,10 @@ import type { MultiSelectCheckboxesOptionType as Option } from "@calcom/ui/compoimport { Icon } from "@calcom/ui/components/icon";import { SkeletonText } from "@calcom/ui/components/skeleton";import { showToast } from "@calcom/ui/components/toast";-import { useHasPaidPlan, useHasActiveTeamPlan } from "@calcom/web/modules/billing/hooks/useHasPaidPlan";+import {+ useHasPaidPlan,+ useHasActiveTeamPlan,+} from "@calcom/web/modules/billing/hooks/useHasPaidPlan";import { TestPhoneCallDialog } from "./TestPhoneCallDialog";import { TimeTimeUnitInput } from "./TimeTimeUnitInput";@@ -117,9 +124,12 @@ const getTimeSectionText = (trigger: WorkflowTriggerEvents, t: TFunction) => {const triggerMap: Partial<Record<WorkflowTriggerEvents, string>> = {[WorkflowTriggerEvents.AFTER_EVENT]: "how_long_after",[WorkflowTriggerEvents.BEFORE_EVENT]: "how_long_before",- [WorkflowTriggerEvents.AFTER_HOSTS_CAL_VIDEO_NO_SHOW]: "how_long_after_hosts_no_show",- [WorkflowTriggerEvents.AFTER_GUESTS_CAL_VIDEO_NO_SHOW]: "how_long_after_guests_no_show",- [WorkflowTriggerEvents.FORM_SUBMITTED_NO_EVENT]: "how_long_after_form_submitted_no_event",+ [WorkflowTriggerEvents.AFTER_HOSTS_CAL_VIDEO_NO_SHOW]:+ "how_long_after_hosts_no_show",+ [WorkflowTriggerEvents.AFTER_GUESTS_CAL_VIDEO_NO_SHOW]:+ "how_long_after_guests_no_show",+ [WorkflowTriggerEvents.FORM_SUBMITTED_NO_EVENT]:+ "how_long_after_form_submitted_no_event",};return triggerMap[trigger] ? t(triggerMap[trigger]) : null;};@@ -151,7 +161,8 @@ const getActivePhoneNumbers = (return (phoneNumbers?.filter((phone) =>- phone.subscriptionStatus === PhoneNumberSubscriptionStatus.ACTIVE || !phone.subscriptionStatus+ phone.subscriptionStatus === PhoneNumberSubscriptionStatus.ACTIVE ||+ !phone.subscriptionStatus) || []);};@@ -184,14 +195,18 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {updateTemplate,setUpdateTemplate,} = props;- const { data: _verifiedNumbers } = trpc.viewer.workflows.getVerifiedNumbers.useQuery(- { teamId },- { enabled: !!teamId }- );+ const { data: _verifiedNumbers } =+ trpc.viewer.workflows.getVerifiedNumbers.useQuery(+ { teamId },+ { enabled: !!teamId }+ );const isMobile = useMediaQuery("(max-width: 569px)");- const { data: userTeams } = trpc.viewer.teams.list.useQuery({}, { enabled: !teamId });+ const { data: userTeams } = trpc.viewer.teams.list.useQuery(+ {},+ { enabled: !teamId }+ );const [agentConfigurationSheet, setAgentConfigurationSheet] = useState<{open: boolean;activeTab?: "outgoingCalls" | "phoneNumber" | "incomingCalls";@@ -201,16 +216,21 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {});const creditsTeamId = userTeams?.find(- (team) => team.accepted && (team.role === MembershipRole.ADMIN || team.role === MembershipRole.OWNER)+ (team) =>+ team.accepted &&+ (team.role === MembershipRole.ADMIN || team.role === MembershipRole.OWNER))?.id;const { hasPaidPlan } = useHasPaidPlan();const { hasActiveTeamPlan, isTrial } = useHasActiveTeamPlan();const planState = { hasPaidPlan, hasActiveTeamPlan, isTrial };- const { data: _verifiedEmails } = trpc.viewer.workflows.getVerifiedEmails.useQuery({ teamId });+ const { data: _verifiedEmails } =+ trpc.viewer.workflows.getVerifiedEmails.useQuery({ teamId });- const timeFormat = getTimeFormatStringFromUserTimeFormat(props.user.timeFormat);+ const timeFormat = getTimeFormatStringFromUserTimeFormat(+ props.user.timeFormat+ );const createAgentMutation = trpc.viewer.aiVoiceAgent.create.useMutation({onSuccess: async (data) => {@@ -234,9 +254,14 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {},});- const stepAgentId = step?.agentId || form.watch(`steps.${step ? step.stepNumber - 1 : 0}.agentId`) || null;+ const stepAgentId =+ step?.agentId ||+ form.watch(`steps.${step ? step.stepNumber - 1 : 0}.agentId`) ||+ null;const stepInboundAgentId =- step?.inboundAgentId || form.watch(`steps.${step ? step.stepNumber - 1 : 0}.inboundAgentId`) || null;+ step?.inboundAgentId ||+ form.watch(`steps.${step ? step.stepNumber - 1 : 0}.inboundAgentId`) ||+ null;const updateAgentMutation = trpc.viewer.aiVoiceAgent.update.useMutation({onSuccess: async () => {@@ -251,23 +276,26 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {},});- const unsubscribePhoneNumberMutation = trpc.viewer.phoneNumber.update.useMutation({- onSuccess: async () => {- showToast(t("phone_number_unsubscribed_successfully"), "success");- setIsUnsubscribeDialogOpen(false);- const currentAgentId = stepAgentId || stepInboundAgentId;- if (currentAgentId) {- utils.viewer.aiVoiceAgent.get.invalidate({ id: currentAgentId });- }- },- onError: (error: { message: string }) => {- showToast(error.message, "error");- },- });-- const verifiedNumbers = _verifiedNumbers?.map((number) => number.phoneNumber) || [];+ const unsubscribePhoneNumberMutation =+ trpc.viewer.phoneNumber.update.useMutation({+ onSuccess: async () => {+ showToast(t("phone_number_unsubscribed_successfully"), "success");+ setIsUnsubscribeDialogOpen(false);+ const currentAgentId = stepAgentId || stepInboundAgentId;+ if (currentAgentId) {+ utils.viewer.aiVoiceAgent.get.invalidate({ id: currentAgentId });+ }+ },+ onError: (error: { message: string }) => {+ showToast(error.message, "error");+ },+ });++ const verifiedNumbers =+ _verifiedNumbers?.map((number) => number.phoneNumber) || [];const verifiedEmails = _verifiedEmails || [];- const [isAdditionalInputsDialogOpen, setIsAdditionalInputsDialogOpen] = useState(false);+ const [isAdditionalInputsDialogOpen, setIsAdditionalInputsDialogOpen] =+ useState(false);const [isTestAgentDialogOpen, setIsTestAgentDialogOpen] = useState(false);const [isWebCallDialogOpen, setIsWebCallDialogOpen] = useState(false);const [isUnsubscribeDialogOpen, setIsUnsubscribeDialogOpen] = useState(false);@@ -276,13 +304,16 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {const action = step?.action;const requirePhoneNumber =- WorkflowActions.SMS_NUMBER === action || WorkflowActions.WHATSAPP_NUMBER === action;- const [isPhoneNumberNeeded, setIsPhoneNumberNeeded] = useState(requirePhoneNumber);+ WorkflowActions.SMS_NUMBER === action ||+ WorkflowActions.WHATSAPP_NUMBER === action;+ const [isPhoneNumberNeeded, setIsPhoneNumberNeeded] =+ useState(requirePhoneNumber);const [firstRender, setFirstRender] = useState(true);const senderNeeded =- step?.action === WorkflowActions.SMS_NUMBER || step?.action === WorkflowActions.SMS_ATTENDEE;+ step?.action === WorkflowActions.SMS_NUMBER ||+ step?.action === WorkflowActions.SMS_ATTENDEE;const [_isSenderIsNeeded, setIsSenderIsNeeded] = useState(senderNeeded);@@ -303,7 +334,9 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {name: "trigger",});- const [timeSectionText, setTimeSectionText] = useState(getTimeSectionText(trigger, t));+ const [timeSectionText, setTimeSectionText] = useState(+ getTimeSectionText(trigger, t)+ );const isCreatingAgent = useRef(false);const hasAutoCreated = useRef(false);@@ -326,7 +359,10 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {const updatedStep = updatedSteps[currentStepIndex];if (updatedStep?.action !== WorkflowActions.CAL_AI_PHONE_CALL) {- form.setValue(`steps.${currentStepIndex}.action`, WorkflowActions.CAL_AI_PHONE_CALL);+ form.setValue(+ `steps.${currentStepIndex}.action`,+ WorkflowActions.CAL_AI_PHONE_CALL+ );}if (updatedStep?.id) {@@ -379,14 +415,21 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {]);const triggerOptions = getWorkflowTriggerOptions(t, planState);- const templateOptions = getWorkflowTemplateOptions(t, step?.action, planState, trigger);+ const templateOptions = getWorkflowTemplateOptions(+ t,+ step?.action,+ planState,+ trigger+ );const steps = useWatch({control: form.control,name: "steps",});- const hasEmailToHostAction = steps.some((s) => s.action === WorkflowActions.EMAIL_HOST);+ const hasEmailToHostAction = steps.some(+ (s) => s.action === WorkflowActions.EMAIL_HOST+ );const hasWhatsappAction = steps.some((s) => isWhatsappAction(s.action));const disallowFormTriggers = hasEmailToHostAction || hasWhatsappAction;@@ -404,95 +447,126 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {const getNumberVerificationStatus = () =>!!step &&!!verifiedNumbers.find(- (number: string) => number === form.getValues(`steps.${step.stepNumber - 1}.sendTo`)+ (number: string) =>+ number === form.getValues(`steps.${step.stepNumber - 1}.sendTo`));const getEmailVerificationStatus = () =>!!step &&- !!verifiedEmails.find((email: string) => email === form.getValues(`steps.${step.stepNumber - 1}.sendTo`));+ !!verifiedEmails.find(+ (email: string) =>+ email === form.getValues(`steps.${step.stepNumber - 1}.sendTo`)+ );- const [numberVerified, setNumberVerified] = useState(getNumberVerificationStatus());- const [emailVerified, setEmailVerified] = useState(getEmailVerificationStatus());+ const [numberVerified, setNumberVerified] = useState(+ getNumberVerificationStatus()+ );+ const [emailVerified, setEmailVerified] = useState(+ getEmailVerificationStatus()+ );// eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally only run when verifiedNumbers.length changes- useEffect(() => setNumberVerified(getNumberVerificationStatus()), [verifiedNumbers.length]);+ useEffect(+ () => setNumberVerified(getNumberVerificationStatus()),+ [verifiedNumbers.length]+ );// eslint-disable-next-line react-hooks/exhaustive-deps -- intentionally only run when verifiedEmails.length changes- useEffect(() => setEmailVerified(getEmailVerificationStatus()), [verifiedEmails.length]);+ useEffect(+ () => setEmailVerified(getEmailVerificationStatus()),+ [verifiedEmails.length]+ );const addVariableEmailSubject = (variable: string) => {if (step) {const currentEmailSubject = refEmailSubject?.current?.value || "";- const cursorPosition = refEmailSubject?.current?.selectionStart || currentEmailSubject.length;- const subjectWithAddedVariable = `${currentEmailSubject.substring(0, cursorPosition)}{${variable+ const cursorPosition =+ refEmailSubject?.current?.selectionStart || currentEmailSubject.length;+ const subjectWithAddedVariable = `${currentEmailSubject.substring(+ 0,+ cursorPosition+ )}{${variable.toUpperCase().replace(/ /g, "_")}}${currentEmailSubject.substring(cursorPosition)}`;- form.setValue(`steps.${step.stepNumber - 1}.emailSubject`, subjectWithAddedVariable);+ form.setValue(+ `steps.${step.stepNumber - 1}.emailSubject`,+ subjectWithAddedVariable+ );}};- const sendVerificationCodeMutation = trpc.viewer.workflows.sendVerificationCode.useMutation({- onSuccess: async () => {- showToast(t("verification_code_sent"), "success");- },- onError: async (error) => {- showToast(error.message, "error");- },- });-- const verifyPhoneNumberMutation = trpc.viewer.workflows.verifyPhoneNumber.useMutation({- onSuccess: async (isVerified) => {- showToast(isVerified ? t("verified_successfully") : t("wrong_code"), "success");- setNumberVerified(isVerified);- if (- step &&- form?.formState?.errors?.steps &&- form.formState.errors.steps[step.stepNumber - 1]?.sendTo &&- isVerified- ) {- form.clearErrors(`steps.${step.stepNumber - 1}.sendTo`);- }-- utils.viewer.workflows.getVerifiedNumbers.invalidate();- },- onError: (err) => {- if (err instanceof HttpError) {- const message = `${err.statusCode}: ${err.message}`;- showToast(message, "error");- setNumberVerified(false);- }- },- });-- const sendEmailVerificationCodeMutation = trpc.viewer.auth.sendVerifyEmailCode.useMutation({- onSuccess() {- showToast(t("email_sent"), "success");- },- onError: () => {- showToast(t("email_not_sent"), "error");- },- });+ const sendVerificationCodeMutation =+ trpc.viewer.workflows.sendVerificationCode.useMutation({+ onSuccess: async () => {+ showToast(t("verification_code_sent"), "success");+ },+ onError: async (error) => {+ showToast(error.message, "error");+ },+ });++ const verifyPhoneNumberMutation =+ trpc.viewer.workflows.verifyPhoneNumber.useMutation({+ onSuccess: async (isVerified) => {+ showToast(+ isVerified ? t("verified_successfully") : t("wrong_code"),+ "success"+ );+ setNumberVerified(isVerified);+ if (+ step &&+ form?.formState?.errors?.steps &&+ form.formState.errors.steps[step.stepNumber - 1]?.sendTo &&+ isVerified+ ) {+ form.clearErrors(`steps.${step.stepNumber - 1}.sendTo`);+ }- const verifyEmailCodeMutation = trpc.viewer.workflows.verifyEmailCode.useMutation({- onSuccess: (isVerified) => {- showToast(isVerified ? t("verified_successfully") : t("wrong_code"), "success");- setEmailVerified(true);- if (- step &&- form?.formState?.errors?.steps &&- form.formState.errors.steps[step.stepNumber - 1]?.sendTo &&- isVerified- ) {- form.clearErrors(`steps.${step.stepNumber - 1}.sendTo`);- }- utils.viewer.workflows.getVerifiedEmails.invalidate();- },- onError: (err) => {- if (err.message === "invalid_code") {- showToast(t("code_provided_invalid"), "error");- setEmailVerified(false);- }- },- });+ utils.viewer.workflows.getVerifiedNumbers.invalidate();+ },+ onError: (err) => {+ if (err instanceof HttpError) {+ const message = `${err.statusCode}: ${err.message}`;+ showToast(message, "error");+ setNumberVerified(false);+ }+ },+ });++ const sendEmailVerificationCodeMutation =+ trpc.viewer.auth.sendVerifyEmailCode.useMutation({+ onSuccess() {+ showToast(t("email_sent"), "success");+ },+ onError: () => {+ showToast(t("email_not_sent"), "error");+ },+ });++ const verifyEmailCodeMutation =+ trpc.viewer.workflows.verifyEmailCode.useMutation({+ onSuccess: (isVerified) => {+ showToast(+ isVerified ? t("verified_successfully") : t("wrong_code"),+ "success"+ );+ setEmailVerified(true);+ if (+ step &&+ form?.formState?.errors?.steps &&+ form.formState.errors.steps[step.stepNumber - 1]?.sendTo &&+ isVerified+ ) {+ form.clearErrors(`steps.${step.stepNumber - 1}.sendTo`);+ }+ utils.viewer.workflows.getVerifiedEmails.invalidate();+ },+ onError: (err) => {+ if (err.message === "invalid_code") {+ showToast(t("code_provided_invalid"), "error");+ setEmailVerified(false);+ }+ },+ });/* const testActionMutation = trpc.viewer.workflows.testAction.useMutation({onSuccess: async () => {showToast(t("notification_sent"), "success");@@ -525,7 +599,9 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {return (<><div className="mb-3">- <Label className="text-default text-sm leading-none">{t("when")}</Label>+ <Label className="text-default text-sm leading-none">+ {t("when")}+ </Label><Controllername="trigger"control={form.control}@@ -540,8 +616,11 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {onChange={(val) => {if (val) {const triggerValue = val.value as WorkflowTriggerEvents;- const currentTrigger = form.getValues("trigger") as WorkflowTriggerEvents;- const isCurrentFormTrigger = isFormTrigger(currentTrigger);+ const currentTrigger = form.getValues(+ "trigger"+ ) as WorkflowTriggerEvents;+ const isCurrentFormTrigger =+ isFormTrigger(currentTrigger);const isNewFormTrigger = isFormTrigger(triggerValue);form.setValue("trigger", triggerValue);@@ -555,12 +634,17 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {form.setValue("selectAll", false);}- const newTimeSectionText = getTimeSectionText(triggerValue, t);+ const newTimeSectionText = getTimeSectionText(+ triggerValue,+ t+ );if (newTimeSectionText) {setTimeSectionText(newTimeSectionText);if (- triggerValue === WorkflowTriggerEvents.AFTER_HOSTS_CAL_VIDEO_NO_SHOW ||- triggerValue === WorkflowTriggerEvents.AFTER_GUESTS_CAL_VIDEO_NO_SHOW+ triggerValue ===+ WorkflowTriggerEvents.AFTER_HOSTS_CAL_VIDEO_NO_SHOW ||+ triggerValue ===+ WorkflowTriggerEvents.AFTER_GUESTS_CAL_VIDEO_NO_SHOW) {form.setValue("time", 5);form.setValue("timeUnit", TimeUnit.MINUTE);@@ -599,9 +683,11 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {needsTeamsUpgrade: option.needsTeamsUpgrade,upgradeTeamsBadgeProps: option.upgradeTeamsBadgeProps,}))}- isOptionDisabled={(option: { label: string; value: string; needsTeamsUpgrade?: boolean }) =>- !!option.needsTeamsUpgrade- }+ isOptionDisabled={(option: {+ label: string;+ value: string;+ needsTeamsUpgrade?: boolean;+ }) => !!option.needsTeamsUpgrade}/>);}}@@ -626,7 +712,9 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {</div>) : (<Label>- {isFormTrigger(trigger) ? t("which_routing_form_apply") : t("which_event_type_apply")}+ {isFormTrigger(trigger)+ ? t("which_routing_form_apply")+ : t("which_event_type_apply")}</Label>)}<Controller@@ -639,7 +727,11 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {isDisabled={props.readOnly || form.getValues("selectAll")}className="w-full"setSelected={setSelectedOptions}- selected={form.getValues("selectAll") ? allOptions : selectedOptions}+ selected={+ form.getValues("selectAll")+ ? allOptions+ : selectedOptions+ }setValue={(s: Option[]) => {form.setValue("activeOn", s);}}@@ -684,10 +776,12 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {)}</div>)}- {!!timeSectionText && (+ {!!timeSectionText && steps.some((s) => isSMSAction(s.action)) && (<div className="mt-1 flex text-gray-500"><Icon name="info" className="mr-1 mt-0.5 h-4 w-4" />- <p className="text-sm">{t("testing_sms_workflow_info_message")}</p>+ <p className="text-sm">+ {t("testing_sms_workflow_info_message")}+ </p></div>)}</div>@@ -715,7 +809,8 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {const canRequirePhoneNumber = (workflowStep: string) => {return (- WorkflowActions.SMS_ATTENDEE === workflowStep || WorkflowActions.WHATSAPP_ATTENDEE === workflowStep+ WorkflowActions.SMS_ATTENDEE === workflowStep ||+ WorkflowActions.WHATSAPP_ATTENDEE === workflowStep);};@@ -742,7 +837,9 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {isDisabled={props.readOnly}onChange={(val) => {if (val) {- const oldValue = form.getValues(`steps.${step.stepNumber - 1}.action`);+ const oldValue = form.getValues(+ `steps.${step.stepNumber - 1}.action`+ );const template = getTemplateBodyForAction({action: val.value,@@ -752,7 +849,10 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {timeFormat,});- form.setValue(`steps.${step.stepNumber - 1}.reminderBody`, template);+ form.setValue(+ `steps.${step.stepNumber - 1}.reminderBody`,+ template+ );const setNumberRequiredConfigs = (phoneNumberIsNeeded: boolean,@@ -765,42 +865,79 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {};if (isSMSAction(val.value)) {- setNumberRequiredConfigs(val.value === WorkflowActions.SMS_NUMBER);+ setNumberRequiredConfigs(+ val.value === WorkflowActions.SMS_NUMBER+ );// email action changes to sms actionif (!isSMSAction(oldValue)) {- form.setValue(`steps.${step.stepNumber - 1}.sender`, SENDER_ID);+ form.setValue(+ `steps.${step.stepNumber - 1}.sender`,+ SENDER_ID+ );}setIsEmailSubjectNeeded(false);- form.setValue(`steps.${step.stepNumber - 1}.agentId`, null);+ form.setValue(+ `steps.${step.stepNumber - 1}.agentId`,+ null+ );} else if (isWhatsappAction(val.value)) {- setNumberRequiredConfigs(val.value === WorkflowActions.WHATSAPP_NUMBER, false);+ setNumberRequiredConfigs(+ val.value === WorkflowActions.WHATSAPP_NUMBER,+ false+ );if (!isWhatsappAction(oldValue)) {- form.setValue(`steps.${step.stepNumber - 1}.sender`, "");+ form.setValue(+ `steps.${step.stepNumber - 1}.sender`,+ ""+ );}setIsEmailSubjectNeeded(false);- form.setValue(`steps.${step.stepNumber - 1}.agentId`, null);+ form.setValue(+ `steps.${step.stepNumber - 1}.agentId`,+ null+ );} else if (isCalAIAction(val.value)) {setIsPhoneNumberNeeded(false);setIsSenderIsNeeded(false);setIsEmailAddressNeeded(false);setIsEmailSubjectNeeded(false);- form.setValue(`steps.${step.stepNumber - 1}.emailSubject`, null);- form.setValue(`steps.${step.stepNumber - 1}.reminderBody`, null);- form.setValue(`steps.${step.stepNumber - 1}.sender`, null);+ form.setValue(+ `steps.${step.stepNumber - 1}.emailSubject`,+ null+ );+ form.setValue(+ `steps.${step.stepNumber - 1}.reminderBody`,+ null+ );+ form.setValue(+ `steps.${step.stepNumber - 1}.sender`,+ null+ );} else {setIsPhoneNumberNeeded(false);setIsSenderIsNeeded(false);- setIsEmailAddressNeeded(val.value === WorkflowActions.EMAIL_ADDRESS);+ setIsEmailAddressNeeded(+ val.value === WorkflowActions.EMAIL_ADDRESS+ );setIsEmailSubjectNeeded(true);- form.setValue(`steps.${step.stepNumber - 1}.agentId`, null);+ form.setValue(+ `steps.${step.stepNumber - 1}.agentId`,+ null+ );}- form.setValue(`steps.${step.stepNumber - 1}.sendTo`, null);+ form.setValue(+ `steps.${step.stepNumber - 1}.sendTo`,+ null+ );form.clearErrors(`steps.${step.stepNumber - 1}.sendTo`);- form.setValue(`steps.${step.stepNumber - 1}.action`, val.value);+ form.setValue(+ `steps.${step.stepNumber - 1}.action`,+ val.value+ );setUpdateTemplate(!updateTemplate);}}}@@ -814,8 +951,12 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {}}/></div>- {!isWhatsappAction(form.getValues(`steps.${step.stepNumber - 1}.action`)) &&- !isCalAIAction(form.getValues(`steps.${step.stepNumber - 1}.action`)) && (+ {!isWhatsappAction(+ form.getValues(`steps.${step.stepNumber - 1}.action`)+ ) &&+ !isCalAIAction(+ form.getValues(`steps.${step.stepNumber - 1}.action`)+ ) && (<div>{_isSenderIsNeeded ? (<>@@ -828,16 +969,23 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {placeholder={SENDER_ID}disabled={props.readOnly}maxLength={11}- {...form.register(`steps.${step.stepNumber - 1}.sender`)}+ {...form.register(+ `steps.${step.stepNumber - 1}.sender`+ )}/><div className="mt-1.5 flex items-center gap-1"><Icon name="info" size="10" className="text-gray-500" />- <div className="text-subtle text-xs">{t("sender_id_info")}</div>+ <div className="text-subtle text-xs">+ {t("sender_id_info")}+ </div></div></div>{form.formState.errors.steps &&- form.formState?.errors?.steps[step.stepNumber - 1]?.sender && (- <p className="text-error mt-1 text-xs">{t("sender_id_error_message")}</p>+ form.formState?.errors?.steps[step.stepNumber - 1]+ ?.sender && (+ <p className="text-error mt-1 text-xs">+ {t("sender_id_error_message")}+ </p>)}</>) : (@@ -848,38 +996,54 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {type="text"disabled={props.readOnly}placeholder={SENDER_NAME}- {...form.register(`steps.${step.stepNumber - 1}.senderName`)}+ {...form.register(+ `steps.${step.stepNumber - 1}.senderName`+ )}/></div></>)}</div>)}- {isCalAIAction(form.getValues(`steps.${step.stepNumber - 1}.action`)) && !stepAgentId && (- <div className="bg-cal-muted border-muted mt-2 rounded-2xl border p-3">- <div className="flex flex-col justify-between gap-4 sm:flex-row sm:items-center sm:gap-0">- <div>- <h2 className="text-emphasis text-sm font-medium leading-none">- {t("cal_ai_agent")}- <Badge startIcon="info" className="ms-2 rounded-md" variant="warning">- {t("set_up_required")}- </Badge>- </h2>- <p className="text-muted mt-1 text-sm font-medium leading-none">- {t("no_phone_number_connected")}.- </p>+ {isCalAIAction(+ form.getValues(`steps.${step.stepNumber - 1}.action`)+ ) &&+ !stepAgentId && (+ <div className="bg-cal-muted border-muted mt-2 rounded-2xl border p-3">+ <div className="flex flex-col justify-between gap-4 sm:flex-row sm:items-center sm:gap-0">+ <div>+ <h2 className="text-emphasis text-sm font-medium leading-none">+ {t("cal_ai_agent")}+ <Badge+ startIcon="info"+ className="ms-2 rounded-md"+ variant="warning"+ >+ {t("set_up_required")}+ </Badge>+ </h2>+ <p className="text-muted mt-1 text-sm font-medium leading-none">+ {t("no_phone_number_connected")}.+ </p>+ </div>+ <Button+ color="primary"+ disabled={+ props.readOnly ||+ isCreatingAgent.current ||+ hasAutoCreated.current+ }+ className="flex items-center justify-center"+ onClick={() => handleCreateAgent()}+ loading={+ createAgentMutation.isPending || isCreatingAgent.current+ }+ >+ {t("set_up_agent")}+ </Button></div>- <Button- color="primary"- disabled={props.readOnly || isCreatingAgent.current || hasAutoCreated.current}- className="flex items-center justify-center"- onClick={() => handleCreateAgent()}- loading={createAgentMutation.isPending || isCreatingAgent.current}>- {t("set_up_agent")}- </Button></div>- </div>- )}+ )}{stepAgentId && isAgentLoading && <CalAIAgentDataSkeleton />}{stepAgentId && agentData && (@@ -896,16 +1060,24 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {return;}if (!props.readOnly) {- setAgentConfigurationSheet({ open: true, activeTab: "outgoingCalls" });+ setAgentConfigurationSheet({+ open: true,+ activeTab: "outgoingCalls",+ });}- }}>+ }}+ ><div>- <h3 className="text-emphasis text-base font-medium">{t("cal_ai_agent")}</h3>+ <h3 className="text-emphasis text-base font-medium">+ {t("cal_ai_agent")}+ </h3>{arePhoneNumbersActive.length > 0 ? (<div className="flex items-center gap-2"><Icon name="phone" className="text-emphasis h-4 w-4" /><span className="text-emphasis text-sm">- {formatPhoneNumber(arePhoneNumbersActive[0].phoneNumber)}+ {formatPhoneNumber(+ arePhoneNumbersActive[0].phoneNumber+ )}</span><Badge variant="green" size="sm" withDot>{t("active")}@@ -913,11 +1085,16 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {</div>) : (<div className="flex items-center gap-1">- <span className="text-subtle text-sm">{t("no_phone_number_connected")}</span>+ <span className="text-subtle text-sm">+ {t("no_phone_number_connected")}+ </span></div>)}</div>- <div className="flex items-center gap-1" onClick={(e) => e.stopPropagation()}>+ <div+ className="flex items-center gap-1"+ onClick={(e) => e.stopPropagation()}+ >{arePhoneNumbersActive.length > 0 ? (<Dropdown><DropdownMenuTrigger asChild>@@ -925,7 +1102,8 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {color="secondary"className="rounded-[10px]"disabled={props.readOnly}- EndIcon="chevron-down">+ EndIcon="chevron-down"+ >{t("test_agent")}</Button></DropdownMenuTrigger>@@ -934,7 +1112,8 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {<DropdownItemtype="button"StartIcon="phone"- onClick={() => setIsTestAgentDialogOpen(true)}>+ onClick={() => setIsTestAgentDialogOpen(true)}+ >{t("phone_call")}</DropdownItem></DropdownMenuItem>@@ -942,7 +1121,8 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {<DropdownItemtype="button"StartIcon="monitor"- onClick={() => setIsWebCallDialogOpen(true)}>+ onClick={() => setIsWebCallDialogOpen(true)}+ >{t("web_call")}</DropdownItem></DropdownMenuItem>@@ -959,14 +1139,16 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {activeTab: "phoneNumber",}));}}- disabled={props.readOnly}>+ disabled={props.readOnly}+ >{t("connect_phone_number")}</Button><Buttoncolor="secondary"onClick={() => setIsWebCallDialogOpen(true)}disabled={props.readOnly}- StartIcon="monitor">+ StartIcon="monitor"+ >{t("test_web_call")}</Button></>@@ -995,7 +1177,8 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {open: true,activeTab: "phoneNumber",}));- }}>+ }}+ >{t("connect_phone_number")}</DropdownItem></DropdownMenuItem>@@ -1004,7 +1187,8 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {type="button"onClick={() => setIsWebCallDialogOpen(true)}disabled={props.readOnly}- StartIcon="monitor">+ StartIcon="monitor"+ >{t("test_web_call")}</DropdownItem></DropdownMenuItem>@@ -1015,8 +1199,12 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {type="button"StartIcon="pencil"onClick={() =>- setAgentConfigurationSheet({ open: true, activeTab: "outgoingCalls" })- }>+ setAgentConfigurationSheet({+ open: true,+ activeTab: "outgoingCalls",+ })+ }+ >{t("edit")}</DropdownItem></DropdownMenuItem>@@ -1043,7 +1231,11 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {onChange={(val) => {const isAlreadyVerified = !!verifiedNumbers?.concat([])- .find((number) => number.replace(/\s/g, "") === val?.replace(/\s/g, ""));+ .find(+ (number) =>+ number.replace(/\s/g, "") ===+ val?.replace(/\s/g, "")+ );setNumberVerified(isAlreadyVerified);onChange(val);}}@@ -1059,18 +1251,23 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {)}onClick={() =>sendVerificationCodeMutation.mutate({- phoneNumber: form.getValues(`steps.${step.stepNumber - 1}.sendTo`) || "",+ phoneNumber:+ form.getValues(`steps.${step.stepNumber - 1}.sendTo`) ||+ "",})- }>+ }+ >{t("send_code")}</Button></div>- {form.formState.errors.steps && form.formState?.errors?.steps[step.stepNumber - 1]?.sendTo && (- <p className="text-error mt-1 text-xs">- {form.formState?.errors?.steps[step.stepNumber - 1]?.sendTo?.message || ""}- </p>- )}+ {form.formState.errors.steps &&+ form.formState?.errors?.steps[step.stepNumber - 1]?.sendTo && (+ <p className="text-error mt-1 text-xs">+ {form.formState?.errors?.steps[step.stepNumber - 1]?.sendTo+ ?.message || ""}+ </p>+ )}{numberVerified ? (<div className="mt-1"><Badge variant="green">{t("number_verified")}</Badge>@@ -1096,22 +1293,31 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {color="secondary"size="sm"className="ml-2 min-w-fit rounded-[10px]"- disabled={verifyPhoneNumberMutation.isPending || props.readOnly}+ disabled={+ verifyPhoneNumberMutation.isPending ||+ props.readOnly+ }onClick={() => {verifyPhoneNumberMutation.mutate({- phoneNumber: form.getValues(`steps.${step.stepNumber - 1}.sendTo`) || "",+ phoneNumber:+ form.getValues(+ `steps.${step.stepNumber - 1}.sendTo`+ ) || "",code: verificationCode,teamId,});- }}>+ }}+ >{t("verify")}</Button></div></div>{form.formState.errors.steps &&- form.formState?.errors?.steps[step.stepNumber - 1]?.sendTo && (+ form.formState?.errors?.steps[step.stepNumber - 1]+ ?.sendTo && (<p className="text-error mt-1 text-xs">- {form.formState?.errors?.steps[step.stepNumber - 1]?.sendTo?.message || ""}+ {form.formState?.errors?.steps[step.stepNumber - 1]+ ?.sendTo?.message || ""}</p>)}</>@@ -1119,8 +1325,12 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {)}</div>)}- {canRequirePhoneNumber(form.getValues(`steps.${step.stepNumber - 1}.action`)) &&- !isCalAIAction(form.getValues(`steps.${step.stepNumber - 1}.action`)) && (+ {canRequirePhoneNumber(+ form.getValues(`steps.${step.stepNumber - 1}.action`)+ ) &&+ !isCalAIAction(+ form.getValues(`steps.${step.stepNumber - 1}.action`)+ ) && (<div className="mt-2"><Controllername={`steps.${step.stepNumber - 1}.numberRequired`}@@ -1128,114 +1338,141 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {render={() => (<CheckboxFielddisabled={props.readOnly}- defaultChecked={form.getValues(`steps.${step.stepNumber - 1}.numberRequired`) || false}+ defaultChecked={+ form.getValues(+ `steps.${step.stepNumber - 1}.numberRequired`+ ) || false+ }description={t("make_phone_number_required")}descriptionClassName="ml-0"onChange={(e) =>- form.setValue(`steps.${step.stepNumber - 1}.numberRequired`, e.target.checked)+ form.setValue(+ `steps.${step.stepNumber - 1}.numberRequired`,+ e.target.checked+ )}/>)}/></div>)}- {isEmailAddressNeeded && !isCalAIAction(form.getValues(`steps.${step.stepNumber - 1}.action`)) && (- <div className="bg-cal-muted border-muted mt-5 rounded-2xl border p-4">- <Label>{t("email_address")}</Label>- <div className="block items-center gap-2 sm:flex">- <Controller- name={`steps.${step.stepNumber - 1}.sendTo`}- render={({ field: { value, onChange } }) => (- <EmailField- required- containerClassName="w-full"- className="h-8 min-w-fit"- placeholder={t("email_address")}- value={value}- disabled={props.readOnly}- onChange={(val) => {- const isAlreadyVerified = !!verifiedEmails- ?.concat([])- .find((email) => email === val.target.value);- setEmailVerified(isAlreadyVerified);- onChange(val);- }}- />- )}- />- <Button- color="secondary"- size="sm"- disabled={emailVerified || props.readOnly || false}- className={classNames(- "min-w-fit text-sm font-medium",- emailVerified ? "hidden" : "mt-3 sm:mt-0"- )}- onClick={() => {- const email = form.getValues(`steps.${step.stepNumber - 1}.sendTo`) || "";- sendEmailVerificationCodeMutation.mutate({- email,- isVerifyingEmail: true,- language: i18n.language || "en",- });- }}>- {t("send_code")}- </Button>- </div>- {form.formState.errors.steps && form.formState?.errors?.steps[step.stepNumber - 1]?.sendTo && (- <p className="text-error mt-1 text-xs">- {form.formState?.errors?.steps[step.stepNumber - 1]?.sendTo?.message || ""}- </p>- )}- {emailVerified ? (- <div className="mt-1">- <Badge variant="green">{t("email_verified")}</Badge>+ {isEmailAddressNeeded &&+ !isCalAIAction(+ form.getValues(`steps.${step.stepNumber - 1}.action`)+ ) && (+ <div className="bg-cal-muted border-muted mt-5 rounded-2xl border p-4">+ <Label>{t("email_address")}</Label>+ <div className="block items-center gap-2 sm:flex">+ <Controller+ name={`steps.${step.stepNumber - 1}.sendTo`}+ render={({ field: { value, onChange } }) => (+ <EmailField+ required+ containerClassName="w-full"+ className="h-8 min-w-fit"+ placeholder={t("email_address")}+ value={value}+ disabled={props.readOnly}+ onChange={(val) => {+ const isAlreadyVerified = !!verifiedEmails+ ?.concat([])+ .find((email) => email === val.target.value);+ setEmailVerified(isAlreadyVerified);+ onChange(val);+ }}+ />+ )}+ />+ <Button+ color="secondary"+ size="sm"+ disabled={emailVerified || props.readOnly || false}+ className={classNames(+ "min-w-fit text-sm font-medium",+ emailVerified ? "hidden" : "mt-3 sm:mt-0"+ )}+ onClick={() => {+ const email =+ form.getValues(`steps.${step.stepNumber - 1}.sendTo`) ||+ "";+ sendEmailVerificationCodeMutation.mutate({+ email,+ isVerifyingEmail: true,+ language: i18n.language || "en",+ });+ }}+ >+ {t("send_code")}+ </Button></div>- ) : (- !props.readOnly && (- <>- <div className="mt-3 flex w-full flex-col">- <Label className="">{t("verification_code")}</Label>- <div className="flex w-full items-center">- <TextField- containerClassName="w-full"- className="h-8 rounded-xl"- placeholder={t("code")}- disabled={props.readOnly}- value={verificationCode}- onChange={(e) => {- setVerificationCode(e.target.value);- }}- required- />- <Button- color="secondary"- size="sm"- className="ml-2 min-w-fit rounded-[10px]"- disabled={verifyEmailCodeMutation.isPending || props.readOnly}- onClick={() => {- verifyEmailCodeMutation.mutate({- code: verificationCode,- email: form.getValues(`steps.${step.stepNumber - 1}.sendTo`) || "",- teamId,- });- }}>- {t("verify")}- </Button>+ {form.formState.errors.steps &&+ form.formState?.errors?.steps[step.stepNumber - 1]+ ?.sendTo && (+ <p className="text-error mt-1 text-xs">+ {form.formState?.errors?.steps[step.stepNumber - 1]+ ?.sendTo?.message || ""}+ </p>+ )}+ {emailVerified ? (+ <div className="mt-1">+ <Badge variant="green">{t("email_verified")}</Badge>+ </div>+ ) : (+ !props.readOnly && (+ <>+ <div className="mt-3 flex w-full flex-col">+ <Label className="">{t("verification_code")}</Label>+ <div className="flex w-full items-center">+ <TextField+ containerClassName="w-full"+ className="h-8 rounded-xl"+ placeholder={t("code")}+ disabled={props.readOnly}+ value={verificationCode}+ onChange={(e) => {+ setVerificationCode(e.target.value);+ }}+ required+ />+ <Button+ color="secondary"+ size="sm"+ className="ml-2 min-w-fit rounded-[10px]"+ disabled={+ verifyEmailCodeMutation.isPending ||+ props.readOnly+ }+ onClick={() => {+ verifyEmailCodeMutation.mutate({+ code: verificationCode,+ email:+ form.getValues(+ `steps.${step.stepNumber - 1}.sendTo`+ ) || "",+ teamId,+ });+ }}+ >+ {t("verify")}+ </Button>+ </div></div>- </div>- {form.formState.errors.steps &&- form.formState?.errors?.steps[step.stepNumber - 1]?.sendTo && (- <p className="text-error mt-1 text-xs">- {form.formState?.errors?.steps[step.stepNumber - 1]?.sendTo?.message || ""}- </p>- )}- </>- )- )}- </div>- )}- {!isCalAIAction(form.getValues(`steps.${step.stepNumber - 1}.action`)) && (+ {form.formState.errors.steps &&+ form.formState?.errors?.steps[step.stepNumber - 1]+ ?.sendTo && (+ <p className="text-error mt-1 text-xs">+ {form.formState?.errors?.steps[step.stepNumber - 1]+ ?.sendTo?.message || ""}+ </p>+ )}+ </>+ )+ )}+ </div>+ )}+ {!isCalAIAction(+ form.getValues(`steps.${step.stepNumber - 1}.action`)+ ) && (<div className="mt-3"><Label>{t("message_template")}</Label><Controller@@ -1249,7 +1486,9 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {isDisabled={props.readOnly}onChange={(val) => {if (val) {- const action = form.getValues(`steps.${step.stepNumber - 1}.action`);+ const action = form.getValues(+ `steps.${step.stepNumber - 1}.action`+ );const value = val.value as WorkflowTemplates;const template = getTemplateBodyForAction({@@ -1260,7 +1499,10 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {timeFormat,});- form.setValue(`steps.${step.stepNumber - 1}.reminderBody`, template);+ form.setValue(+ `steps.${step.stepNumber - 1}.reminderBody`,+ template+ );if (shouldScheduleEmailReminder(action)) {if (value === WorkflowTemplates.REMINDER) {@@ -1288,7 +1530,10 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {}}field.onChange(value);- form.setValue(`steps.${step.stepNumber - 1}.template`, value);+ form.setValue(+ `steps.${step.stepNumber - 1}.template`,+ value+ );setUpdateTemplate(!updateTemplate);}}}@@ -1297,7 +1542,11 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {options={templateOptions.map((option) => {const needsTeamsUpgrade =option.needsTeamsUpgrade &&- !isSMSAction(form.getValues(`steps.${step.stepNumber - 1}.action`));+ !isSMSAction(+ form.getValues(+ `steps.${step.stepNumber - 1}.action`+ )+ );return {label: option.label,value: option.value,@@ -1318,16 +1567,21 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {/></div>)}- {!isCalAIAction(form.getValues(`steps.${step.stepNumber - 1}.action`)) && (- <div className="bg-cal-muted border-muted mt-3 rounded-2xl border p-3">+ {!isCalAIAction(+ form.getValues(`steps.${step.stepNumber - 1}.action`)+ ) && (+ <div className="bg-cal-muted border-muted mt-3 rounded-2xl border py-1 px-3">{isEmailSubjectNeeded && (<div className="mb-6"><div className="flex items-center"><LabelclassName={classNames("flex-none",- props.readOnly || isFormTrigger(trigger) ? "mb-2" : "mb-0"- )}>+ props.readOnly || isFormTrigger(trigger)+ ? "mb-2"+ : "mb-0"+ )}+ >{t("email_subject")}</Label>{!props.readOnly && !isFormTrigger(trigger) && (@@ -1351,9 +1605,11 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {{...restEmailSubjectForm}/>{form.formState.errors.steps &&- form.formState?.errors?.steps[step.stepNumber - 1]?.emailSubject && (+ form.formState?.errors?.steps[step.stepNumber - 1]+ ?.emailSubject && (<p className="text-error mt-1 text-xs">- {form.formState?.errors?.steps[step.stepNumber - 1]?.emailSubject?.message || ""}+ {form.formState?.errors?.steps[step.stepNumber - 1]+ ?.emailSubject?.message || ""}</p>)}</div>@@ -1364,12 +1620,21 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {</Label></div><Editor- getText={() => props.form.getValues(`steps.${step.stepNumber - 1}.reminderBody`) || ""}+ getText={() =>+ props.form.getValues(+ `steps.${step.stepNumber - 1}.reminderBody`+ ) || ""+ }setText={(text: string) => {- props.form.setValue(`steps.${step.stepNumber - 1}.reminderBody`, text);+ props.form.setValue(+ `steps.${step.stepNumber - 1}.reminderBody`,+ text+ );props.form.clearErrors();}}- variables={!isFormTrigger(trigger) ? DYNAMIC_TEXT_VARIABLES : undefined}+ variables={+ !isFormTrigger(trigger) ? DYNAMIC_TEXT_VARIABLES : undefined+ }addVariableButtonTop={isSMSAction(step.action)}height="200px"updateTemplate={updateTemplate}@@ -1381,15 +1646,19 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {(hasActiveTeamPlan || isSMSAction(step.action))}excludedToolbarItems={- isSMSAction(step.action) ? ["blockType", "bold", "italic", "link"] : ["link"]+ isSMSAction(step.action)+ ? ["blockType", "bold", "italic", "link"]+ : ["link"]}plainText={isSMSAction(step.action)}/>{form.formState.errors.steps &&- form.formState?.errors?.steps[step.stepNumber - 1]?.reminderBody && (+ form.formState?.errors?.steps[step.stepNumber - 1]+ ?.reminderBody && (<p className="text-error mt-1 text-sm">- {form.formState?.errors?.steps[step.stepNumber - 1]?.reminderBody?.message || ""}+ {form.formState?.errors?.steps[step.stepNumber - 1]+ ?.reminderBody?.message || ""}</p>)}{isEmailSubjectNeeded &&@@ -1402,12 +1671,17 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {<CheckboxFielddisabled={props.readOnly}defaultChecked={- form.getValues(`steps.${step.stepNumber - 1}.includeCalendarEvent`) || false+ form.getValues(+ `steps.${step.stepNumber - 1}.includeCalendarEvent`+ ) || false}description={t("include_calendar_event")}descriptionClassName="ml-0"onChange={(e) =>- form.setValue(`steps.${step.stepNumber - 1}.includeCalendarEvent`, e.target.checked)+ form.setValue(+ `steps.${step.stepNumber - 1}.includeCalendarEvent`,+ e.target.checked+ )}/>)}@@ -1416,7 +1690,10 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {)}{!props.readOnly && (<div className="ml-1 mt-2">- <button type="button" onClick={() => setIsAdditionalInputsDialogOpen(true)}>+ <button+ type="button"+ onClick={() => setIsAdditionalInputsDialogOpen(true)}+ ><div className="text-subtle ml-1 flex items-center gap-2"><Icon name="circle-help" className="h-3 w-3" /><p className="text-left text-xs">@@ -1528,8 +1805,15 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {{t("send_sms_to_number", { number: form.getValues(`steps.${step.stepNumber - 1}.sendTo`) })}</ConfirmationDialogContent></Dialog> */}- <Dialog open={isAdditionalInputsDialogOpen} onOpenChange={setIsAdditionalInputsDialogOpen}>- <DialogContent enableOverflow type="creation" className="sm:max-w-[610px]">+ <Dialog+ open={isAdditionalInputsDialogOpen}+ onOpenChange={setIsAdditionalInputsDialogOpen}+ >+ <DialogContent+ enableOverflow+ type="creation"+ className="sm:max-w-[610px]"+ ><div><h1 className="w-full text-xl font-semibold">{isFormTrigger(trigger)@@ -1551,10 +1835,16 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {<p className="test-sm w-full font-medium">{t("example_1")}</p><div className="mt-2 grid grid-cols-12"><div className="test-sm text-default col-span-5 ltr:mr-2 rtl:ml-2">- {isFormTrigger(trigger) ? t("form_field_identifier") : t("booking_question_identifier")}+ {isFormTrigger(trigger)+ ? t("form_field_identifier")+ : t("booking_question_identifier")}+ </div>+ <div className="test-sm text-emphasis col-span-7">+ {t("company_size")}+ </div>+ <div className="test-sm text-default col-span-5 w-full">+ {t("variable")}</div>- <div className="test-sm text-emphasis col-span-7">{t("company_size")}</div>- <div className="test-sm text-default col-span-5 w-full">{t("variable")}</div><div className="test-sm text-emphasis wrap-break-word col-span-7">{" "}@@ -1570,10 +1860,16 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {<p className="test-sm w-full font-medium">{t("example_2")}</p><div className="mt-2 grid grid-cols-12"><div className="test-sm text-default col-span-5 ltr:mr-2 rtl:ml-2">- {isFormTrigger(trigger) ? t("form_field_identifier") : t("booking_question_identifier")}+ {isFormTrigger(trigger)+ ? t("form_field_identifier")+ : t("booking_question_identifier")}+ </div>+ <div className="test-sm text-emphasis col-span-7">+ {t("what_help_needed")}+ </div>+ <div className="test-sm text-default col-span-5">+ {t("variable")}</div>- <div className="test-sm text-emphasis col-span-7">{t("what_help_needed")}</div>- <div className="test-sm text-default col-span-5">{t("variable")}</div><div className="test-sm text-emphasis wrap-break-word col-span-7">{" "}{`{${t("what_help_needed")@@ -1595,7 +1891,9 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {<AgentConfigurationSheetopen={agentConfigurationSheet.open}activeTab={agentConfigurationSheet.activeTab}- onOpenChange={(val) => setAgentConfigurationSheet((prev) => ({ ...prev, open: val }))}+ onOpenChange={(val) =>+ setAgentConfigurationSheet((prev) => ({ ...prev, open: val }))+ }agentId={stepAgentId}inboundAgentId={stepInboundAgentId}agentData={agentData}@@ -1626,7 +1924,9 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {agentId={stepAgentId || ""}teamId={teamId}form={form}- eventTypeIds={props.eventTypeOptions?.map((opt) => parseInt(opt.value, 10))}+ eventTypeIds={props.eventTypeOptions?.map((opt) =>+ parseInt(opt.value, 10)+ )}outboundEventTypeId={agentData?.outboundEventTypeId}/>)}@@ -1639,16 +1939,24 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {teamId={teamId}isOrganization={props.isOrganization}form={form}- eventTypeIds={props.eventTypeOptions?.map((opt) => parseInt(opt.value, 10)) || []}+ eventTypeIds={+ props.eventTypeOptions?.map((opt) => parseInt(opt.value, 10)) ||+ []+ }outboundEventTypeId={agentData?.outboundEventTypeId}/>)}{/* Unsubscribe Confirmation Dialog */}- <Dialog open={isUnsubscribeDialogOpen} onOpenChange={setIsUnsubscribeDialogOpen}>+ <Dialog+ open={isUnsubscribeDialogOpen}+ onOpenChange={setIsUnsubscribeDialogOpen}+ ><DialogContent type="creation" title={t("unsubscribe_phone_number")}><div className="stack-y-4">- <p className="text-default text-sm">{t("do_you_still_want_to_unsubscribe")}</p>+ <p className="text-default text-sm">+ {t("do_you_still_want_to_unsubscribe")}+ </p>{getActivePhoneNumbers(agentData?.outboundPhoneNumbers?.map((phone) => ({...phone,@@ -1663,7 +1971,8 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {getActivePhoneNumbers(agentData?.outboundPhoneNumbers?.map((phone) => ({...phone,- subscriptionStatus: phone.subscriptionStatus ?? undefined,+ subscriptionStatus:+ phone.subscriptionStatus ?? undefined,})))?.[0]?.phoneNumber)}@@ -1671,10 +1980,16 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {</div></div>)}- <p className="text-subtle text-sm">{t("the_action_will_disconnect_phone_number")}</p>+ <p className="text-subtle text-sm">+ {t("the_action_will_disconnect_phone_number")}+ </p></div><DialogFooter showDivider>- <Button type="button" color="secondary" onClick={() => setIsUnsubscribeDialogOpen(false)}>+ <Button+ type="button"+ color="secondary"+ onClick={() => setIsUnsubscribeDialogOpen(false)}+ >{t("cancel")}</Button><Button@@ -1695,7 +2010,8 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {});}}}- loading={unsubscribePhoneNumberMutation.isPending}>+ loading={unsubscribePhoneNumberMutation.isPending}+ >{t("unsubscribe")}</Button></DialogFooter>@@ -1703,14 +2019,21 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {</Dialog>{/* Delete Step Confirmation Dialog */}- <Dialog open={isDeleteStepDialogOpen} onOpenChange={setIsDeleteStepDialogOpen}>+ <Dialog+ open={isDeleteStepDialogOpen}+ onOpenChange={setIsDeleteStepDialogOpen}+ ><DialogContent type="confirmation" title={t("delete_workflow_step")}><div className="stack-y-4">- <p className="text-default text-sm">{t("are_you_sure_you_want_to_delete_workflow_step")}</p>+ <p className="text-default text-sm">+ {t("are_you_sure_you_want_to_delete_workflow_step")}+ </p>{(() => {const relevantPhoneNumbers =agentData?.outboundPhoneNumbers?.filter(- (phone) => phone.subscriptionStatus !== PhoneNumberSubscriptionStatus.CANCELLED+ (phone) =>+ phone.subscriptionStatus !==+ PhoneNumberSubscriptionStatus.CANCELLED) || [];return (@@ -1718,26 +2041,44 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {<><div className="bg-attention rounded-lg p-3"><div className="flex items-start gap-2">- <Icon name="info" className="text-attention mt-0.5 h-4 w-4" />+ <Icon+ name="info"+ className="text-attention mt-0.5 h-4 w-4"+ /><div className="stack-y-2">- <p className="text-attention text-sm font-medium">{t("this_action_will_also")}</p>+ <p className="text-attention text-sm font-medium">+ {t("this_action_will_also")}+ </p><ul className="text-attention stack-y-1 list-inside list-disc text-sm">{relevantPhoneNumbers.some(- (phone) => phone.subscriptionStatus === PhoneNumberSubscriptionStatus.ACTIVE- ) && <li>{t("cancel_your_phone_number_subscription")}</li>}+ (phone) =>+ phone.subscriptionStatus ===+ PhoneNumberSubscriptionStatus.ACTIVE+ ) && (+ <li>+ {t("cancel_your_phone_number_subscription")}+ </li>+ )}<li>{t("delete_associated_phone_number")}</li></ul></div></div></div>{relevantPhoneNumbers.map((phone) => (- <div key={phone.phoneNumber} className="bg-cal-muted rounded-lg p-3">+ <div+ key={phone.phoneNumber}+ className="bg-cal-muted rounded-lg p-3"+ ><div className="flex items-center gap-2">- <Icon name="phone" className="text-emphasis h-4 w-4" />+ <Icon+ name="phone"+ className="text-emphasis h-4 w-4"+ /><span className="text-emphasis text-sm font-medium">{formatPhoneNumber(phone.phoneNumber)}</span>- {phone.subscriptionStatus === PhoneNumberSubscriptionStatus.ACTIVE && (+ {phone.subscriptionStatus ===+ PhoneNumberSubscriptionStatus.ACTIVE && (<Badge variant="green" size="sm" withDot>{t("active_subscription")}</Badge>@@ -1751,7 +2092,11 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {})()}</div><DialogFooter showDivider>- <Button type="button" color="secondary" onClick={() => setIsDeleteStepDialogOpen?.(false)}>+ <Button+ type="button"+ color="secondary"+ onClick={() => setIsDeleteStepDialogOpen?.(false)}+ >{t("cancel")}</Button><Button@@ -1775,7 +2120,8 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {setReload(!reload);}setIsDeleteStepDialogOpen?.(false);- }}>+ }}+ >{t("delete")}</Button></DialogFooter>diff --git a/apps/web/modules/ee/workflows/views/WorkflowPage.tsx b/apps/web/modules/ee/workflows/views/WorkflowPage.tsxindex ba6dca4e205..3596eb0c01c 100644--- a/apps/web/modules/ee/workflows/views/WorkflowPage.tsx+++ b/apps/web/modules/ee/workflows/views/WorkflowPage.tsx@@ -462,7 +462,7 @@ function WorkflowPage({<div className="group flex min-w-0 items-center gap-1"><span- className="text-default hover:bg-cal-muted min-w-0 cursor-pointer truncate whitespace-nowrap rounded p-1 text-sm font-semibold leading-none sm:min-w-[100px]"+ className="text-default hover:bg-cal-muted min-w-0 cursor-pointer truncate whitespace-nowrap rounded p-1 text-sm font-semibold leading-none"onClick={() => setIsEditingName(true)}>{watchedName ? watchedName : isPending ? t("loading") : t("untitled")}</span>diff --git a/apps/web/modules/embed/components/Embed.tsx b/apps/web/modules/embed/components/Embed.tsxindex 62b312d41f7..0c695854296 100644--- a/apps/web/modules/embed/components/Embed.tsx+++ b/apps/web/modules/embed/components/Embed.tsx@@ -18,14 +18,21 @@ import {useBookerStoreContext,} from "@calcom/features/bookings/Booker/BookerStoreProvider";import { useInitializeBookerStore } from "@calcom/features/bookings/Booker/store";-import { useEvent, useScheduleForEvent } from "@calcom/features/bookings/Booker/utils/event";+import {+ useEvent,+ useScheduleForEvent,+} from "@calcom/features/bookings/Booker/utils/event";import DatePicker from "@calcom/features/calendars/DatePicker";import { Dialog } from "@calcom/features/components/controlled-dialog";import { TimezoneSelect } from "@calcom/features/components/timezone-select";import type { Slot } from "@calcom/features/schedules/lib/use-schedule/types";import { useNonEmptyScheduleDays } from "@calcom/features/schedules/lib/use-schedule/useNonEmptyScheduleDays";import { useSlotsForDate } from "@calcom/features/schedules/lib/use-schedule/useSlotsForDate";-import { APP_NAME, DEFAULT_LIGHT_BRAND_COLOR, DEFAULT_DARK_BRAND_COLOR } from "@calcom/lib/constants";+import {+ APP_NAME,+ DEFAULT_LIGHT_BRAND_COLOR,+ DEFAULT_DARK_BRAND_COLOR,+} from "@calcom/lib/constants";import { weekdayToWeekIndex } from "@calcom/lib/dayjs";import { useCompatSearchParams } from "@calcom/lib/hooks/useCompatSearchParams";import { useLocale } from "@calcom/lib/hooks/useLocale";@@ -33,7 +40,11 @@ import { BookerLayouts } from "@calcom/prisma/zod-utils";import type { RouterOutputs } from "@calcom/trpc/react";import { trpc } from "@calcom/trpc/react";import { Button } from "@calcom/ui/components/button";-import { DialogContent, DialogFooter, DialogClose } from "@calcom/ui/components/dialog";+import {+ DialogContent,+ DialogFooter,+ DialogClose,+} from "@calcom/ui/components/dialog";import { Select, ColorPicker } from "@calcom/ui/components/form";import { Label } from "@calcom/ui/components/form";import { TextField } from "@calcom/ui/components/form";@@ -49,14 +60,25 @@ import { EmbedTheme } from "@calcom/features/embed/lib/constants";import { getDimension } from "@calcom/features/embed/lib/getDimension";import { useEmbedDialogCtx } from "@calcom/features/embed/lib/hooks/useEmbedDialogCtx";import { useEmbedParams } from "@calcom/features/embed/lib/hooks/useEmbedParams";-import type { EmbedTabs, EmbedType, EmbedTypes, PreviewState, EmbedConfig } from "@calcom/features/embed/types";--type EventType = RouterOutputs["viewer"]["eventTypes"]["get"]["eventType"] | undefined;+import type {+ EmbedTabs,+ EmbedType,+ EmbedTypes,+ PreviewState,+ EmbedConfig,+} from "@calcom/features/embed/types";++type EventType =+ | RouterOutputs["viewer"]["eventTypes"]["get"]["eventType"]+ | undefined;type EmbedDialogProps = {types: EmbedTypes;tabs: EmbedTabs;eventTypeHideOptionDisabled: boolean;- defaultBrandColor: { brandColor: string | null; darkBrandColor: string | null } | null;+ defaultBrandColor: {+ brandColor: string | null;+ darkBrandColor: string | null;+ } | null;noQueryParamMode?: boolean;};@@ -91,7 +113,11 @@ function chooseTimezone({userSettingsTimezone: string | undefined;}) {// We prefer user's timezone configured in settings at the moment - Might be a better idea to prefer timezoneFromTimePreferences over user settings as the user might be in different timezone- return timezoneFromBookerStore ?? userSettingsTimezone ?? timezoneFromTimePreferences;+ return (+ timezoneFromBookerStore ??+ userSettingsTimezone ??+ timezoneFromTimePreferences+ );}function useRouterHelpers() {@@ -141,7 +167,10 @@ function useEmbedGoto(noQueryParamMode = false) {}));} else {const validQueryParams = Object.fromEntries(- Object.entries(props).filter(([_, value]) => value !== null) as [string, string][]+ Object.entries(props).filter(([_, value]) => value !== null) as [+ string,+ string+ ][]);goto(validQueryParams);}@@ -203,7 +232,9 @@ const ChooseEmbedTypesDialogContent = ({{t("how_you_want_add_cal_site", { appName: APP_NAME })}</h3><div>- <p className="text-subtle text-sm">{t("choose_ways_put_cal_site", { appName: APP_NAME })}</p>+ <p className="text-subtle text-sm">+ {t("choose_ways_put_cal_site", { appName: APP_NAME })}+ </p></div></div><div className="items-start stack-y-2 md:flex md:stack-y-0">@@ -214,17 +245,23 @@ const ChooseEmbedTypesDialogContent = ({data-testid={embed.type}onClick={() => {if (embed.type === "headless") {- window.open("https://cal.com/help/routing/headless-routing", "_blank");+ window.open(+ "https://cal.com/help/routing/headless-routing",+ "_blank"+ );} else {gotoState({embedType: embed.type as EmbedType,});}- }}>+ }}+ ><div className="bg-default order-0 box-border flex-none rounded-md border border-solid transition dark:bg-transparent dark:invert">{embed.illustration}</div>- <div className="text-emphasis mt-4 font-semibold">{embed.title}</div>+ <div className="text-emphasis mt-4 font-semibold">+ {embed.title}+ </div><p className="text-subtle mt-2 text-sm">{embed.subtitle}</p></button>))}@@ -251,7 +288,8 @@ const EmailEmbed = ({userSettingsTimezone?: string;}) => {const { t, i18n } = useLocale();- const { timezoneFromBookerStore, timezoneFromTimePreferences } = useBookerTime();+ const { timezoneFromBookerStore, timezoneFromTimePreferences } =+ useBookerTime();const timezone = chooseTimezone({timezoneFromBookerStore,timezoneFromTimePreferences,@@ -279,17 +317,22 @@ const EmailEmbed = ({(state) => [state.month, state.selectedDate, state.selectedDatesAndTimes],shallow);- const [setSelectedDate, setMonth, setSelectedDatesAndTimes, setSelectedTimeslot, setTimezone] =- useBookerStoreContext(- (state) => [- state.setSelectedDate,- state.setMonth,- state.setSelectedDatesAndTimes,- state.setSelectedTimeslot,- state.setTimezone,- ],- shallow- );+ const [+ setSelectedDate,+ setMonth,+ setSelectedDatesAndTimes,+ setSelectedTimeslot,+ setTimezone,+ ] = useBookerStoreContext(+ (state) => [+ state.setSelectedDate,+ state.setMonth,+ state.setSelectedDatesAndTimes,+ state.setSelectedTimeslot,+ state.setTimezone,+ ],+ shallow+ );const event = useEvent();const schedule = useScheduleForEvent({orgSlug,@@ -306,8 +349,10 @@ const EmailEmbed = ({return null;}if (selectedDatesAndTimes && selectedDatesAndTimes[eventType.slug]) {- const selectedDatesAndTimesForEvent = selectedDatesAndTimes[eventType.slug];- const selectedSlots = selectedDatesAndTimesForEvent[selectedDate as string] ?? [];+ const selectedDatesAndTimesForEvent =+ selectedDatesAndTimes[eventType.slug];+ const selectedSlots =+ selectedDatesAndTimesForEvent[selectedDate as string] ?? [];if (selectedSlots?.includes(time)) {// Checks whether a user has removed all their timeSlots and thus removes it from the selectedDatesAndTimesForEvent stateif (selectedSlots?.length > 1) {@@ -315,13 +360,17 @@ const EmailEmbed = ({...selectedDatesAndTimes,[eventType.slug]: {...selectedDatesAndTimesForEvent,- [selectedDate as string]: selectedSlots?.filter((slot: string) => slot !== time),+ [selectedDate as string]: selectedSlots?.filter(+ (slot: string) => slot !== time+ ),},};setSelectedDatesAndTimes(updatedDatesAndTimes);} else {- const updatedDatesAndTimesForEvent = { ...selectedDatesAndTimesForEvent };+ const updatedDatesAndTimesForEvent = {+ ...selectedDatesAndTimesForEvent,+ };delete updatedDatesAndTimesForEvent[selectedDate as string];setSelectedTimeslot(null);setSelectedDatesAndTimes({@@ -342,7 +391,9 @@ const EmailEmbed = ({setSelectedDatesAndTimes(updatedDatesAndTimes);} else if (!selectedDatesAndTimes) {- setSelectedDatesAndTimes({ [eventType.slug]: { [selectedDate as string]: [time] } });+ setSelectedDatesAndTimes({+ [eventType.slug]: { [selectedDate as string]: [time] },+ });} else {setSelectedDatesAndTimes({...selectedDatesAndTimes,@@ -377,7 +428,9 @@ const EmailEmbed = ({<DatePickerisLoading={schedule.isPending}onChange={(date: Dayjs | null) => {- setSelectedDate({ date: date === null ? date : date.format("YYYY-MM-DD") });+ setSelectedDate({+ date: date === null ? date : date.format("YYYY-MM-DD"),+ });}}onMonthChange={(date: Dayjs) => {setMonth(date.format("YYYY-MM"));@@ -387,7 +440,9 @@ const EmailEmbed = ({locale={i18n.language}browsingDate={month ? dayjs(month) : undefined}selected={dayjs(selectedDate)}- weekStart={weekdayToWeekIndex(event?.data?.subsetOfUsers?.[0]?.weekStart)}+ weekStart={weekdayToWeekIndex(+ event?.data?.subsetOfUsers?.[0]?.weekStart+ )}eventSlug={eventType?.slug}/></CollapsibleContent>@@ -405,7 +460,9 @@ const EmailEmbed = ({selectedDatesAndTimes &&selectedDatesAndTimes[eventType.slug] &&selectedDatesAndTimes[eventType.slug][selectedDate as string]- ? selectedDatesAndTimes[eventType.slug][selectedDate as string]+ ? selectedDatesAndTimes[eventType.slug][+ selectedDate as string+ ]: undefined}handleSlotClick={handleSlotClick}@@ -423,7 +480,9 @@ const EmailEmbed = ({<div className="text-default mb-[9px] text-sm">{t("duration")}</div>{durationsOptions.length > 0 ? (<Select<{ label: string; value: number }>- value={durationsOptions.find((option) => option.value === selectedDuration)}+ value={durationsOptions.find(+ (option) => option.value === selectedDuration+ )}options={durationsOptions}onChange={(option) => {setSelectedDuration(option?.value);@@ -445,7 +504,11 @@ const EmailEmbed = ({<Collapsible open><CollapsibleContent><div className="text-default mb-[9px] text-sm">{t("timezone")}</div>- <TimezoneSelect id="timezone" value={timezone} onChange={({ value }) => setTimezone(value)} />+ <TimezoneSelect+ id="timezone"+ value={timezone}+ onChange={({ value }) => setTimezone(value)}+ /></CollapsibleContent></Collapsible></div>@@ -474,7 +537,8 @@ const EmailEmbedPreview = ({userSettingsTimezone?: string;}) => {const { t } = useLocale();- const { timeFormat, timezoneFromBookerStore, timezoneFromTimePreferences } = useBookerTime();+ const { timeFormat, timezoneFromBookerStore, timezoneFromTimePreferences } =+ useBookerTime();const timezone = chooseTimezone({timezoneFromBookerStore,timezoneFromTimePreferences,@@ -498,7 +562,8 @@ const EmailEmbedPreview = ({overflowY: "auto",backgroundColor: "white",}}- ref={emailContentRef}>+ ref={emailContentRef}+ ><divstyle={{fontStyle: "normal",@@ -507,7 +572,8 @@ const EmailEmbedPreview = ({lineHeight: "19px",marginTop: "15px",marginBottom: "15px",- }}>+ }}+ ><b style={{ color: "black" }}> {eventType.title}</b></div><div@@ -517,8 +583,10 @@ const EmailEmbedPreview = ({fontSize: "14px",lineHeight: "17px",color: "#333333",- }}>- {t("duration")}: <b style={{ color: "black" }}>{selectedDuration} mins</b>+ }}+ >+ {t("duration")}:{" "}+ <b style={{ color: "black" }}>{selectedDuration} mins</b></div><div><b style={{ color: "black" }}>@@ -529,7 +597,8 @@ const EmailEmbedPreview = ({fontSize: "14px",lineHeight: "17px",color: "#333333",- }}>+ }}+ >{t("timezone")}: <b style={{ color: "black" }}>{timezone}</b></span></b>@@ -553,10 +622,13 @@ const EmailEmbedPreview = ({textAlign: "left",borderCollapse: "collapse",borderSpacing: "0px",- }}>+ }}+ ><tbody><tr>- <td style={{ textAlign: "left", marginTop: "16px" }}>+ <td+ style={{ textAlign: "left", marginTop: "16px" }}+ ><spanstyle={{fontSize: "14px",@@ -564,7 +636,8 @@ const EmailEmbedPreview = ({paddingBottom: "8px",color: "rgb(26, 26, 26)",fontWeight: "bold",- }}>+ }}+ >{selectedDate} </span>@@ -572,15 +645,24 @@ const EmailEmbedPreview = ({</tr><tr><td>- <table style={{ borderCollapse: "separate", borderSpacing: "0px 4px" }}>+ <table+ style={{+ borderCollapse: "separate",+ borderSpacing: "0px 4px",+ }}+ ><tbody><tr style={{ height: "25px" }}>{sortedTimes?.length > 0 &&sortedTimes.map((time) => {// If teamId is present on eventType and is not null, it means it is a team event.// So we add 'team/' to the url.- const bookingURL = `${eventType.bookerUrl}/${- eventType.teamId !== null ? "team/" : ""+ const bookingURL = `${+ eventType.bookerUrl+ }/${+ eventType.teamId !== null+ ? "team/"+ : ""}${username}/${eventType.slug}?duration=${selectedDuration}&date=${key}&month=${month}&slot=${time}&cal.tz=${timezone}`;@@ -596,34 +678,45 @@ const EmailEmbedPreview = ({height: "24px",border: "1px solid #111827",borderRadius: "3px",- }}>+ }}+ ><table style={{ height: "21px" }}><tbody><tr style={{ height: "21px" }}>- <td style={{ width: "7px" }} />+ <td+ style={{ width: "7px" }}+ /><tdstyle={{width: "50px",textAlign: "center",marginRight: "1px",- }}>+ }}+ ><ahref={bookingURL}className="spot"style={{- fontFamily: '"Proxima Nova", sans-serif',+ fontFamily:+ '"Proxima Nova", sans-serif',textDecoration: "none",textAlign: "center",color: "#111827",fontSize: "12px",lineHeight: "16px",- }}>+ }}+ ><bstyle={{fontWeight: "normal",- textDecoration: "none",- }}>- {dayjs.utc(time).tz(timezone).format(timeFormat)}+ textDecoration:+ "none",+ }}+ >+ {dayjs+ .utc(time)+ .tz(timezone)+ .format(timeFormat)} </b></a>@@ -652,7 +745,8 @@ const EmailEmbedPreview = ({textDecoration: "none",cursor: "pointer",color: "black",- }}>+ }}+ >{t("see_all_available_times")}</a></div>@@ -664,7 +758,8 @@ const EmailEmbedPreview = ({borderTop: "1px solid #CCCCCC",marginTop: "8px",paddingTop: "8px",- }}>+ }}+ ><span>{t("powered_by")}</span>{" "}<b style={{ color: "black" }}><span> Cal.com</span>@@ -695,7 +790,8 @@ const EmbedTypeCodeAndPreviewDialogContent = ({const { t } = useLocale();const searchParams = useCompatSearchParams();const pathname = usePathname();- const { resetState, gotoState, gotoEmbedTypeSelectionState } = useEmbedGoto(noQueryParamMode);+ const { resetState, gotoState, gotoEmbedTypeSelectionState } =+ useEmbedGoto(noQueryParamMode);const iframeRef = useRef<HTMLIFrameElement>(null);const dialogContentRef = useRef<HTMLDivElement>(null);const emailContentRef = useRef<HTMLDivElement>(null);@@ -712,7 +808,10 @@ const EmbedTypeCodeAndPreviewDialogContent = ({const calLink = decodeURIComponent(embedUrl);const { data: eventTypeData } = trpc.viewer.eventTypes.get.useQuery({ id: parsedEventId },- { enabled: !Number.isNaN(parsedEventId) && embedType === "email", refetchOnWindowFocus: false }+ {+ enabled: !Number.isNaN(parsedEventId) && embedType === "email",+ refetchOnWindowFocus: false,+ });const { data: userSettings } = trpc.viewer.me.get.useQuery();@@ -743,7 +842,10 @@ const EmbedTypeCodeAndPreviewDialogContent = ({}),};});- const embedCodeRefs: Record<(typeof tabs)[0]["name"], RefObject<HTMLTextAreaElement>> = {};+ const embedCodeRefs: Record<+ (typeof tabs)[0]["name"],+ RefObject<HTMLTextAreaElement>+ > = {};tabs.filter((tab) => tab.type === "code").forEach((codeTab) => {@@ -752,10 +854,14 @@ const EmbedTypeCodeAndPreviewDialogContent = ({const refOfEmbedCodesRefs = useRef(embedCodeRefs);const embed = types.find((embed) => embed.type === embedType);- const [selectedDuration, setSelectedDuration] = useState(eventTypeData?.eventType.length);+ const [selectedDuration, setSelectedDuration] = useState(+ eventTypeData?.eventType.length+ );- const [isEmbedCustomizationOpen, setIsEmbedCustomizationOpen] = useState(true);- const [isBookingCustomizationOpen, setIsBookingCustomizationOpen] = useState(true);+ const [isEmbedCustomizationOpen, setIsEmbedCustomizationOpen] =+ useState(true);+ const [isBookingCustomizationOpen, setIsBookingCustomizationOpen] =+ useState(true);const defaultConfig = {layout: BookerLayouts.MONTH_VIEW,};@@ -832,7 +938,13 @@ const EmbedTypeCodeAndPreviewDialogContent = ({);};- const inlineEmbedDimensionUpdate = ({ width, height }: { width: string; height: string }) => {+ const inlineEmbedDimensionUpdate = ({+ width,+ height,+ }: {+ width: string;+ height: string;+ }) => {iframeRef.current?.contentWindow?.postMessage({mode: "cal:preview",@@ -924,18 +1036,22 @@ const EmbedTypeCodeAndPreviewDialogContent = ({enableOverflowref={dialogContentRef}className="rounded-lg p-0.5 sm:max-w-7xl!"- type="creation">+ type="creation"+ ><div className="flex"><div className="bg-cal-muted flex h-[95vh] w-1/3 flex-col overflow-y-auto p-8"><h3className="text-emphasis mb-2.5 flex items-center text-xl font-semibold leading-5"- id="modal-title">+ id="modal-title"+ ><button className="h-6 w-6" onClick={gotoEmbedTypeSelectionState}><Icon name="arrow-left" className="mr-4 w-4" /></button>{embed.title}</h3>- <h4 className="text-subtle mb-6 text-sm font-normal">{embed.subtitle}</h4>+ <h4 className="text-subtle mb-6 text-sm font-normal">+ {embed.subtitle}+ </h4>{eventTypeData?.eventType && embedType === "email" ? (<EmailEmbedeventType={eventTypeData?.eventType}@@ -948,68 +1064,82 @@ const EmbedTypeCodeAndPreviewDialogContent = ({/>) : (<div className="flex flex-col">- <div className={classNames("font-medium", embedType === "element-click" ? "hidden" : "")}>+ <div+ className={classNames(+ "font-medium",+ embedType === "element-click" ? "hidden" : ""+ )}+ ><Collapsibleopen={isEmbedCustomizationOpen}- onOpenChange={() => setIsEmbedCustomizationOpen((val) => !val)}>+ onOpenChange={() =>+ setIsEmbedCustomizationOpen((val) => !val)+ }+ ><CollapsibleContent className="text-sm">{/* Conditionally render Window Sizing only if inline embed AND NOT React Atom */}- {embedType === "inline" && embedParams.embedTabName !== EmbedTabName.ATOM_REACT && (- <div>- {/*TODO: Add Auto/Fixed toggle from Figma */}- <div className="text-default mb-[9px] text-sm">Window sizing</div>- <div className="justify-left mb-6 flex items-center font-normal! ">- <div className="mr-[9px]">+ {embedType === "inline" &&+ embedParams.embedTabName !== EmbedTabName.ATOM_REACT && (+ <div>+ {/*TODO: Add Auto/Fixed toggle from Figma */}+ <div className="text-default mb-[9px] text-sm">+ Window sizing+ </div>+ <div className="justify-left mb-6 flex items-center font-normal! ">+ <div className="mr-[9px]">+ <TextField+ labelProps={{ className: "hidden" }}+ className="focus:ring-offset-0"+ required+ value={previewState.inline.width}+ onChange={(e) => {+ setPreviewState((previewState) => {+ const width = e.target.value || "100%";++ return {+ ...previewState,+ inline: {+ ...previewState.inline,+ width,+ },+ };+ });+ }}+ addOnLeading={<>W</>}+ />+ </div>+<TextFieldlabelProps={{ className: "hidden" }}className="focus:ring-offset-0"+ value={previewState.inline.height}required- value={previewState.inline.width}onChange={(e) => {- setPreviewState((previewState) => {- const width = e.target.value || "100%";+ const height = e.target.value || "100%";+ setPreviewState((previewState) => {return {...previewState,inline: {...previewState.inline,- width,+ height,},};});}}- addOnLeading={<>W</>}+ addOnLeading={<>H</>}/></div>-- <TextField- labelProps={{ className: "hidden" }}- className="focus:ring-offset-0"- value={previewState.inline.height}- required- onChange={(e) => {- const height = e.target.value || "100%";-- setPreviewState((previewState) => {- return {- ...previewState,- inline: {- ...previewState.inline,- height,- },- };- });- }}- addOnLeading={<>H</>}- /></div>- </div>- )}+ )}<divclassName={classNames("items-center justify-between",- embedType === "floating-popup" ? "text-emphasis" : "hidden"- )}>+ embedType === "floating-popup"+ ? "text-emphasis"+ : "hidden"+ )}+ ><div className="mb-2 text-sm">Button text</div>{/* Default Values should come from preview iframe */}<TextField@@ -1035,7 +1165,8 @@ const EmbedTypeCodeAndPreviewDialogContent = ({embedType === "floating-popup"? "text-emphasis space-x-2 rtl:space-x-reverse": "hidden"- )}>+ )}+ ><SwitchdefaultChecked={true}onCheckedChange={(checked) => {@@ -1050,13 +1181,18 @@ const EmbedTypeCodeAndPreviewDialogContent = ({});}}/>- <div className="text-default my-2 text-sm">Display calendar icon</div>+ <div className="text-default my-2 text-sm">+ Display calendar icon+ </div></div><divclassName={classNames("mt-4 items-center justify-between",- embedType === "floating-popup" ? "text-emphasis" : "hidden"- )}>+ embedType === "floating-popup"+ ? "text-emphasis"+ : "hidden"+ )}+ ><div className="mb-2">Position of button</div><SelectonChange={(position) => {@@ -1075,7 +1211,12 @@ const EmbedTypeCodeAndPreviewDialogContent = ({/></div><div className="mt-3 flex flex-col xl:flex-row xl:justify-between">- <div className={classNames("mt-4", embedType === "floating-popup" ? "" : "hidden")}>+ <div+ className={classNames(+ "mt-4",+ embedType === "floating-popup" ? "" : "hidden"+ )}+ ><div className="whitespace-nowrap">Button color</div><div className="mt-2 w-40 xl:mt-0 xl:w-full"><ColorPicker@@ -1097,7 +1238,12 @@ const EmbedTypeCodeAndPreviewDialogContent = ({/></div></div>- <div className={classNames("mt-4", embedType === "floating-popup" ? "" : "hidden")}>+ <div+ className={classNames(+ "mt-4",+ embedType === "floating-popup" ? "" : "hidden"+ )}+ ><div className="whitespace-nowrap">Text color</div><div className="mb-6 mt-2 w-40 xl:mt-0 xl:w-full"><ColorPicker@@ -1126,13 +1272,16 @@ const EmbedTypeCodeAndPreviewDialogContent = ({<div className="font-medium"><Collapsibleopen={isBookingCustomizationOpen}- onOpenChange={() => setIsBookingCustomizationOpen((val) => !val)}>+ onOpenChange={() =>+ setIsBookingCustomizationOpen((val) => !val)+ }+ ><CollapsibleContent><div className="text-sm">{/* Conditionally render EmbedTheme only if NOT React Atom */}{embedParams.embedTabName !== EmbedTabName.ATOM_REACT && (<Label className="mb-6">- <div className="mb-2">EmbedTheme</div>+ <div className="mb-2">Embed theme</div><SelectclassName="w-full"defaultValue={ThemeOptions[0]}@@ -1146,7 +1295,9 @@ const EmbedTypeCodeAndPreviewDialogContent = ({}setPreviewState((previewState) => {// Ensure theme is updated in config for all embed types- const newConfig = (currentConfig?: EmbedConfig) => ({+ const newConfig = (+ currentConfig?: EmbedConfig+ ) => ({...(currentConfig ?? {}),theme: option.value,});@@ -1154,15 +1305,21 @@ const EmbedTypeCodeAndPreviewDialogContent = ({...previewState,inline: {...previewState.inline,- config: newConfig(previewState.inline.config),+ config: newConfig(+ previewState.inline.config+ ),},floatingPopup: {...previewState.floatingPopup,- config: newConfig(previewState.floatingPopup.config),+ config: newConfig(+ previewState.floatingPopup.config+ ),},elementClick: {...previewState.elementClick,- config: newConfig(previewState.elementClick.config),+ config: newConfig(+ previewState.elementClick.config+ ),},// Keep updating top-level theme for preview iframetheme: option.value,@@ -1188,7 +1345,9 @@ const EmbedTypeCodeAndPreviewDialogContent = ({});}}/>- <div className="text-default text-sm">{t("hide_eventtype_details")}</div>+ <div className="text-default text-sm">+ {t("hide_eventtype_details")}+ </div></div>) : null}{/* Conditionally render Brand Colors only if NOT React Atom */}@@ -1207,11 +1366,14 @@ const EmbedTypeCodeAndPreviewDialogContent = ({<div className="w-full"><ColorPickerpopoverAlign="start"- container={dialogContentRef?.current ?? undefined}+ container={+ dialogContentRef?.current ?? undefined+ }defaultValue={paletteDefaultValue(palette.name)}onChange={(color) => {addToPalette({- [palette.name as keyof (typeof previewState)["palette"]]: color,+ [palette.name as keyof (typeof previewState)["palette"]]:+ color,});}}/>@@ -1229,7 +1391,9 @@ const EmbedTypeCodeAndPreviewDialogContent = ({}setPreviewState((previewState) => {// Ensure layout is updated in config for all embed types- const newConfig = (currentConfig?: EmbedConfig) => ({+ const newConfig = (+ currentConfig?: EmbedConfig+ ) => ({...(currentConfig ?? {}),layout: option.value,});@@ -1241,11 +1405,15 @@ const EmbedTypeCodeAndPreviewDialogContent = ({},floatingPopup: {...previewState.floatingPopup,- config: newConfig(previewState.floatingPopup.config),+ config: newConfig(+ previewState.floatingPopup.config+ ),},elementClick: {...previewState.elementClick,- config: newConfig(previewState.elementClick.config),+ config: newConfig(+ previewState.elementClick.config+ ),},// Keep updating top-level layout for preview iframelayout: option.value,@@ -1281,8 +1449,11 @@ const EmbedTypeCodeAndPreviewDialogContent = ({<divkey={tab.href}className={classNames(- embedParams.embedTabName === tab.href.split("=")[1] ? "flex-1" : "hidden"- )}>+ embedParams.embedTabName === tab.href.split("=")[1]+ ? "flex-1"+ : "hidden"+ )}+ >{tab.type === "code" && (<tab.Componentnamespace={namespace}@@ -1293,16 +1464,27 @@ const EmbedTypeCodeAndPreviewDialogContent = ({/>)}<div- className={embedParams.embedTabName === "embed-preview" ? "mt-2 block" : "hidden"}+ className={+ embedParams.embedTabName === "embed-preview"+ ? "mt-2 block"+ : "hidden"+ }/></div>);}- if (embedType === "email" && (tab.name !== "Preview" || !eventTypeData?.eventType)) return;+ if (+ embedType === "email" &&+ (tab.name !== "Preview" || !eventTypeData?.eventType)+ )+ return;return (- <div key={tab.href} className={classNames("flex grow flex-col")}>+ <div+ key={tab.href}+ className={classNames("flex grow flex-col")}+ ><div className="flex h-[55vh] grow flex-col"><EmailEmbedPreviewselectedDuration={selectedDuration}@@ -1314,12 +1496,20 @@ const EmbedTypeCodeAndPreviewDialogContent = ({month={month as string}selectedDateAndTime={selectedDatesAndTimes- ? selectedDatesAndTimes[eventTypeData?.eventType.slug as string]+ ? selectedDatesAndTimes[+ eventTypeData?.eventType.slug as string+ ]: {}}/></div>- <div className={embedParams.embedTabName === "embed-preview" ? "mt-2 block" : "hidden"} />+ <div+ className={+ embedParams.embedTabName === "embed-preview"+ ? "mt-2 block"+ : "hidden"+ }+ /></div>);})}@@ -1336,7 +1526,10 @@ const EmbedTypeCodeAndPreviewDialogContent = ({</div>)}</div>- <DialogFooter className="mt-10 flex-row-reverse gap-x-2" showDivider>+ <DialogFooter+ className="mt-10 flex-row-reverse gap-x-2"+ showDivider+ ><DialogClose /><Buttontype="submit"@@ -1349,14 +1542,16 @@ const EmbedTypeCodeAndPreviewDialogContent = ({(tab) => tab.href === `embedTabName=${currentTabHref}`)?.name;if (!currentTabName) return;- const currentTabCodeEl = refOfEmbedCodesRefs.current[currentTabName].current;+ const currentTabCodeEl =+ refOfEmbedCodesRefs.current[currentTabName].current;if (!currentTabCodeEl) {return;}navigator.clipboard.writeText(currentTabCodeEl.value);showToast(t("code_copied"), "success");}- }}>+ }}+ >{embedType === "email" ? t("copy") : t("copy_code")}</Button></DialogFooter>@@ -1395,9 +1590,13 @@ export const EmbedDialog = ({// Must not set name when noQueryParam mode as required by Dialog componentname: "embed",clearQueryParamsOnClose: queryParamsForDialog,- })}>+ })}+ >{!embedParams.embedType ? (- <ChooseEmbedTypesDialogContent types={types} noQueryParamMode={noQueryParamMode} />+ <ChooseEmbedTypesDialogContent+ types={types}+ noQueryParamMode={noQueryParamMode}+ />) : (<EmbedTypeCodeAndPreviewDialogContentembedType={embedParams.embedType as EmbedType}@@ -1455,7 +1654,8 @@ export const EmbedButton = <T extends React.ElementType = typeof Button>({data-test-embed-url={embedUrl}data-testid="embed"type="button"- onClick={openEmbedModal}>+ onClick={openEmbedModal}+ >{children}</Component>);diff --git a/apps/web/modules/event-types/views/event-types-listing-view.tsx b/apps/web/modules/event-types/views/event-types-listing-view.tsxindex 05c8b76ea36..9260449bb74 100644--- a/apps/web/modules/event-types/views/event-types-listing-view.tsx+++ b/apps/web/modules/event-types/views/event-types-listing-view.tsx@@ -1,21 +1,12 @@"use client";-import { useAutoAnimate } from "@formkit/auto-animate/react";-import Link from "next/link";-import { usePathname, useRouter, useSearchParams } from "next/navigation";-import type { FC } from "react";-import { memo, useEffect, useState } from "react";-import { z } from "zod";-import { Dialog } from "@calcom/features/components/controlled-dialog";import { useOrgBranding } from "@calcom/features/ee/organizations/context/provider";-import { EventTypeEmbedButton, EventTypeEmbedDialog } from "@calcom/web/modules/embed/components/EventTypeEmbed";-import { EventTypeDescription } from "@calcom/web/modules/event-types/components";-import { DuplicateDialog } from "@calcom/web/modules/event-types/components/DuplicateDialog";-import { InfiniteSkeletonLoader } from "@calcom/web/modules/event-types/components/SkeletonLoader";import { APP_NAME, WEBSITE_URL } from "@calcom/lib/constants";-import { extractHostTimezone } from "@calcom/lib/hashedLinksUtils";-import { filterActiveLinks } from "@calcom/lib/hashedLinksUtils";+import {+ extractHostTimezone,+ filterActiveLinks,+} from "@calcom/lib/hashedLinksUtils";import { useCopy } from "@calcom/lib/hooks/useCopy";import { useDebounce } from "@calcom/lib/hooks/useDebounce";import { useInViewObserver } from "@calcom/lib/hooks/useInViewObserver";@@ -25,8 +16,7 @@ import { useTypedQuery } from "@calcom/lib/hooks/useTypedQuery";import { HttpError } from "@calcom/lib/http-error";import { parseEventTypeColor } from "@calcom/lib/isEventTypeColor";import { localStorage } from "@calcom/lib/webstorage";-import { MembershipRole } from "@calcom/prisma/enums";-import { SchedulingType } from "@calcom/prisma/enums";+import { MembershipRole, SchedulingType } from "@calcom/prisma/enums";import type { RouterOutputs } from "@calcom/trpc/react";import { trpc } from "@calcom/trpc/react";import classNames from "@calcom/ui/classNames";@@ -46,40 +36,77 @@ import {DropdownMenuTrigger,} from "@calcom/ui/components/dropdown";import { EmptyScreen } from "@calcom/ui/components/empty-screen";-import { Label } from "@calcom/ui/components/form";-import { TextField } from "@calcom/ui/components/form";-import { Switch } from "@calcom/ui/components/form";+import { Label, Switch, TextField } from "@calcom/ui/components/form";import { Icon } from "@calcom/ui/components/icon";import { HorizontalTabs } from "@calcom/ui/components/navigation";import { Skeleton } from "@calcom/ui/components/skeleton";import { showToast } from "@calcom/ui/components/toast";import { Tooltip } from "@calcom/ui/components/tooltip";import { CreateButton } from "@calcom/web/modules/ee/teams/components/createButton/CreateButton";+import {+ EventTypeEmbedButton,+ EventTypeEmbedDialog,+} from "@calcom/web/modules/embed/components/EventTypeEmbed";+import { EventTypeDescription } from "@calcom/web/modules/event-types/components";import {CreateEventTypeDialog,type ProfileOption,} from "@calcom/web/modules/event-types/components/CreateEventTypeDialog";-+import { DuplicateDialog } from "@calcom/web/modules/event-types/components/DuplicateDialog";+import { InfiniteSkeletonLoader } from "@calcom/web/modules/event-types/components/SkeletonLoader";+import { useAutoAnimate } from "@formkit/auto-animate/react";import { TRPCClientError } from "@trpc/client";+import Link from "next/link";+import { usePathname, useRouter, useSearchParams } from "next/navigation";+import type React from "react";+import type { FC } from "react";+import { createContext, memo, useContext, useEffect, useState } from "react";+import { z } from "zod";-type GetUserEventGroupsResponse = RouterOutputs["viewer"]["eventTypes"]["getUserEventGroups"];-type GetEventTypesFromGroupsResponse = RouterOutputs["viewer"]["eventTypes"]["getEventTypesFromGroup"];+type GetUserEventGroupsResponse =+ RouterOutputs["viewer"]["eventTypes"]["getUserEventGroups"];+type GetEventTypesFromGroupsResponse =+ RouterOutputs["viewer"]["eventTypes"]["getEventTypesFromGroup"];-type InfiniteEventTypeGroup = GetUserEventGroupsResponse["eventTypeGroups"][number];+type InfiniteEventTypeGroup =+ GetUserEventGroupsResponse["eventTypeGroups"][number];type InfiniteEventType = GetEventTypesFromGroupsResponse["eventTypes"][number];-type EventTypeGroups = RouterOutputs["viewer"]["eventTypes"]["getByViewer"]["eventTypeGroups"];+type EventTypeGroups =+ RouterOutputs["viewer"]["eventTypes"]["getByViewer"]["eventTypeGroups"];type EventTypeGroup = EventTypeGroups[number];type EventType = EventTypeGroup["eventTypes"][number];const LIMIT = 10;+interface SearchContextType {+ searchTerm: string;+ setSearchTerm: (value: string) => void;+ debouncedSearchTerm: string;+}++const SearchContextInternal: React.Context<SearchContextType | undefined> =+ createContext<SearchContextType | undefined>(undefined);++const useSearchContext = (): SearchContextType => {+ const context = useContext(SearchContextInternal);+ if (!context) {+ throw new Error("useSearchContext must be used within SearchProvider");+ }+ return context;+};+interface InfiniteEventTypeListProps {group: InfiniteEventTypeGroup;readOnly: boolean;bookerUrl: string | null;- pages: { nextCursor: number | null | undefined; eventTypes: InfiniteEventType[] }[] | undefined;+ pages:+ | {+ nextCursor: number | null | undefined;+ eventTypes: InfiniteEventType[];+ }[]+ | undefined;lockedByOrg?: boolean;isPending?: boolean;debouncedSearchTerm?: string;@@ -93,24 +120,28 @@ const querySchema = z.object({teamId: z.nullable(z.coerce.number()).optional().default(null),});-const InfiniteTeamsTab: FC<InfiniteTeamsTabProps> = (props) => {+const InfiniteTeamsTab: FC<InfiniteTeamsTabProps> = (+ props: InfiniteTeamsTabProps+) => {const { activeEventTypeGroup } = props;+ const { debouncedSearchTerm } = useSearchContext();const { t } = useLocale();- const [searchTerm, setSearchTerm] = useState("");- const debouncedSearchTerm = useDebounce(searchTerm, 500);-const query = trpc.viewer.eventTypes.getEventTypesFromGroup.useInfiniteQuery({limit: LIMIT,searchQuery: debouncedSearchTerm,- group: { teamId: activeEventTypeGroup?.teamId, parentId: activeEventTypeGroup?.parentId },+ group: {+ teamId: activeEventTypeGroup?.teamId,+ parentId: activeEventTypeGroup?.parentId,+ },},{refetchOnWindowFocus: true,refetchOnMount: true,staleTime: 0,- getNextPageParam: (lastPage) => lastPage.nextCursor,+ getNextPageParam: (lastPage: { nextCursor: number | null | undefined }) =>+ lastPage.nextCursor,});@@ -122,18 +153,6 @@ const InfiniteTeamsTab: FC<InfiniteTeamsTabProps> = (props) => {return (<div>- <TextField- className="max-w-64"- addOnLeading={<Icon name="search" className="text-subtle h-4 w-4" />}- containerClassName="max-w-64 focus:ring-offset-0! mb-4"- type="search"- value={searchTerm}- autoComplete="false"- onChange={(e) => {- setSearchTerm(e.target.value);- }}- placeholder={t("search")}- />{!!activeEventTypeGroup && (<InfiniteEventTypeListpages={query?.data?.pages}@@ -144,17 +163,20 @@ const InfiniteTeamsTab: FC<InfiniteTeamsTabProps> = (props) => {debouncedSearchTerm={debouncedSearchTerm}/>)}- {(query.data?.pages?.[0]?.eventTypes?.length ?? 0) > 0 && (- <div className="text-default p-4 text-center" ref={buttonInView.ref}>- <Button- color="minimal"- loading={query.isFetchingNextPage}- disabled={!query.hasNextPage}- onClick={() => query.fetchNextPage()}>- {query.hasNextPage ? t("load_more_results") : t("no_more_results")}- </Button>- </div>- )}+ {(query.data?.pages?.[0]?.eventTypes?.length ?? 0) > 0 &&+ query.hasNextPage && (+ <div className="text-default p-4 text-center" ref={buttonInView.ref}>+ <Button+ color="minimal"+ loading={query.isFetchingNextPage}+ onClick={(): void => {+ query.fetchNextPage();+ }}+ >+ {t("load_more_results")}+ </Button>+ </div>+ )}</div>);};@@ -167,33 +189,38 @@ const Item = ({type: EventType | InfiniteEventType;group: EventTypeGroup | InfiniteEventTypeGroup;readOnly: boolean;-}) => {+}): JSX.Element => {const { t } = useLocale();const { resolvedTheme, forcedTheme } = useGetTheme();const hasDarkTheme = !forcedTheme && resolvedTheme === "dark";const parsedeventTypeColor = parseEventTypeColor(type.eventTypeColor);const eventTypeColor =- parsedeventTypeColor && parsedeventTypeColor[hasDarkTheme ? "darkEventTypeColor" : "lightEventTypeColor"];+ parsedeventTypeColor &&+ parsedeventTypeColor[+ hasDarkTheme ? "darkEventTypeColor" : "lightEventTypeColor"+ ];const isManagedEventType = type.schedulingType === SchedulingType.MANAGED;- const content = () => (+ const content = (): JSX.Element => (<div><spanclassName="text-default break-words font-semibold ltr:mr-1 rtl:ml-1"- data-testid={`event-type-title-${type.id}`}>+ data-testid={`event-type-title-${type.id}`}+ >{type.title}</span>{group.profile.slug && type.schedulingType !== SchedulingType.MANAGED ? (<smallclassName="text-subtle hidden font-normal leading-4 sm:inline"- data-testid={`event-type-slug-${type.id}`}>+ data-testid={`event-type-slug-${type.id}`}+ >{`/${group.profile.slug}/${type.slug}`}</small>) : null}{!isManagedEventType && type.hidden && (- <Badge variant="gray" className="ml-2 sm:hidden">+ <span className="ml-2 text-sm text-gray-400 sm:hidden">{t("hidden")}- </Badge>+ </span>)}{readOnly && (<Badge variant="gray" className="ml-2" data-testid="readonly-badge">@@ -204,9 +231,17 @@ const Item = ({);return (- <div className={classNames(eventTypeColor && "-ml-3", "relative flex-1 overflow-hidden pr-4 text-sm")}>+ <div+ className={classNames(+ eventTypeColor && "-ml-3",+ "relative flex-1 overflow-hidden pr-4 text-sm"+ )}+ >{eventTypeColor && (- <div className="absolute h-full w-0.5" style={{ backgroundColor: eventTypeColor }} />+ <div+ className="absolute h-full w-0.5"+ style={{ backgroundColor: eventTypeColor }}+ />)}<div className={classNames(eventTypeColor && "ml-3")}>{readOnly ? (@@ -215,33 +250,46 @@ const Item = ({<EventTypeDescription eventType={type} shortenDescription /></div>) : (- <Link href={`/event-types/${type.id}?tabName=setup`} title={type.title}>+ <Link+ href={`/event-types/${type.id}?tabName=setup`}+ title={type.title}+ ><div><spanclassName="text-default break-words font-semibold ltr:mr-1 rtl:ml-1"- data-testid={`event-type-title-${type.id}`}>+ data-testid={`event-type-title-${type.id}`}+ >{type.title}</span>- {group.profile.slug && type.schedulingType !== SchedulingType.MANAGED ? (+ {group.profile.slug &&+ type.schedulingType !== SchedulingType.MANAGED ? (<smallclassName="text-subtle hidden font-normal leading-4 sm:inline"- data-testid={`event-type-slug-${type.id}`}>+ data-testid={`event-type-slug-${type.id}`}+ >{`/${group.profile.slug}/${type.slug}`}</small>) : null}{!isManagedEventType && type.hidden && (- <Badge variant="gray" className="ml-2 sm:hidden">+ <span className="ml-2 text-sm text-gray-400 sm:hidden">{t("hidden")}- </Badge>+ </span>)}{readOnly && (- <Badge variant="gray" className="ml-2" data-testid="readonly-badge">+ <Badge+ variant="gray"+ className="ml-2"+ data-testid="readonly-badge"+ >{t("readonly")}</Badge>)}</div><EventTypeDescription- eventType={{ ...type, descriptionAsSafeHTML: type.safeDescription }}+ eventType={{+ ...type,+ descriptionAsSafeHTML: type.safeDescription,+ }}shortenDescription/></Link>@@ -270,10 +318,11 @@ export const InfiniteEventTypeList = ({const [parent] = useAutoAnimate<HTMLUListElement>();const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);const [deleteDialogTypeId, setDeleteDialogTypeId] = useState(0);- const [deleteDialogTypeSchedulingType, setDeleteDialogSchedulingType] = useState<SchedulingType | null>(- null- );- const [privateLinkCopyIndices, setPrivateLinkCopyIndices] = useState<Record<string, number>>({});+ const [deleteDialogTypeSchedulingType, setDeleteDialogSchedulingType] =+ useState<SchedulingType | null>(null);+ const [privateLinkCopyIndices, setPrivateLinkCopyIndices] = useState<+ Record<string, number>+ >({});const utils = trpc.useUtils();const mutation = trpc.viewer.loggedInViewerRouter.eventTypeOrder.useMutation({@@ -285,13 +334,14 @@ export const InfiniteEventTypeList = ({});const setHiddenMutation = trpc.viewer.eventTypesHeavy.update.useMutation({- onMutate: async (data) => {+ onMutate: async (data: { id: number; hidden?: boolean }) => {await utils.viewer.eventTypes.getEventTypesFromGroup.cancel();- const previousValue = utils.viewer.eventTypes.getEventTypesFromGroup.getInfiniteData({- limit: LIMIT,- searchQuery: debouncedSearchTerm,- group: { teamId: group?.teamId, parentId: group?.parentId },- });+ const previousValue =+ utils.viewer.eventTypes.getEventTypesFromGroup.getInfiniteData({+ limit: LIMIT,+ searchQuery: debouncedSearchTerm,+ group: { teamId: group?.teamId, parentId: group?.parentId },+ });if (previousValue) {await utils.viewer.eventTypes.getEventTypesFromGroup.setInfiniteData(@@ -312,7 +362,9 @@ export const InfiniteEventTypeList = ({pages: oldData.pages.map((page) => ({...page,eventTypes: page.eventTypes.map((eventType) =>- eventType.id === data.id ? { ...eventType, hidden: !eventType.hidden } : eventType+ eventType.id === data.id+ ? { ...eventType, hidden: !eventType.hidden }+ : eventType),})),};@@ -330,14 +382,17 @@ export const InfiniteEventTypeList = ({searchQuery: debouncedSearchTerm,group: { teamId: group?.teamId, parentId: group?.parentId },},- context.previousValue+ () => context.previousValue);}console.error(err.message);},});- async function moveEventType(index: number, increment: 1 | -1) {+ async function moveEventType(+ index: number,+ increment: 1 | -1+ ): Promise<void> {if (!pages) return;const newOrder = pages;const pageNo = Math.floor(index / LIMIT);@@ -360,11 +415,12 @@ export const InfiniteEventTypeList = ({newOrder[newPageNo].eventTypes[newIdx] = currentPositionEventType;await utils.viewer.eventTypes.getEventTypesFromGroup.cancel();- const previousValue = utils.viewer.eventTypes.getEventTypesFromGroup.getInfiniteData({- limit: LIMIT,- searchQuery: debouncedSearchTerm,- group: { teamId: group?.teamId, parentId: group?.parentId },- });+ const previousValue =+ utils.viewer.eventTypes.getEventTypesFromGroup.getInfiniteData({+ limit: LIMIT,+ searchQuery: debouncedSearchTerm,+ group: { teamId: group?.teamId, parentId: group?.parentId },+ });if (previousValue) {utils.viewer.eventTypes.getEventTypesFromGroup.setInfiniteData(@@ -392,15 +448,23 @@ export const InfiniteEventTypeList = ({});}- async function deleteEventTypeHandler(id: number) {+ async function deleteEventTypeHandler(id: number): Promise<void> {const payload = { id };deleteMutation.mutate(payload);}// inject selection data into url for correct router history- const openDuplicateModal = (eventType: InfiniteEventType, group: InfiniteEventTypeGroup) => {- const newSearchParams = new URLSearchParams(searchParams?.toString() ?? undefined);- function setParamsIfDefined(key: string, value: string | number | boolean | null | undefined) {+ const openDuplicateModal = (+ eventType: InfiniteEventType,+ group: InfiniteEventTypeGroup+ ): void => {+ const newSearchParams = new URLSearchParams(+ searchParams?.toString() ?? undefined+ );+ function setParamsIfDefined(+ key: string,+ value: string | number | boolean | null | undefined+ ) {if (value) newSearchParams.set(key, value.toString());if (value === null) newSearchParams.delete(key);}@@ -421,11 +485,12 @@ export const InfiniteEventTypeList = ({},onMutate: async ({ id }) => {await utils.viewer.eventTypes.getEventTypesFromGroup.cancel();- const previousValue = utils.viewer.eventTypes.getEventTypesFromGroup.getInfiniteData({- limit: LIMIT,- searchQuery: debouncedSearchTerm,- group: { teamId: group?.teamId, parentId: group?.parentId },- });+ const previousValue =+ utils.viewer.eventTypes.getEventTypesFromGroup.getInfiniteData({+ limit: LIMIT,+ searchQuery: debouncedSearchTerm,+ group: { teamId: group?.teamId, parentId: group?.parentId },+ });if (previousValue) {await utils.viewer.eventTypes.getEventTypesFromGroup.setInfiniteData(@@ -489,16 +554,24 @@ export const InfiniteEventTypeList = ({return group.teamId ? (<EmptyEventTypeList group={group} searchTerm={debouncedSearchTerm} />) : !group.profile.eventTypesLockedByOrg ? (- <CreateFirstEventTypeView slug={group.profile.slug ?? ""} searchTerm={debouncedSearchTerm} />+ <CreateFirstEventTypeView+ slug={group.profile.slug ?? ""}+ searchTerm={debouncedSearchTerm}+ />) : (<></>);}const firstItem = pages?.[0]?.eventTypes[0];- const lastItem = pages?.[pages.length - 1]?.eventTypes[pages?.[pages.length - 1].eventTypes.length - 1];+ const lastItem =+ pages?.[pages.length - 1]?.eventTypes[+ pages?.[pages.length - 1].eventTypes.length - 1+ ];const isManagedEventPrefix = () => {- return deleteDialogTypeSchedulingType === SchedulingType.MANAGED ? "_managed" : "";+ return deleteDialogTypeSchedulingType === SchedulingType.MANAGED+ ? "_managed"+ : "";};const userTimezone = extractHostTimezone({@@ -511,23 +584,35 @@ export const InfiniteEventTypeList = ({return (<div className="bg-default border-subtle flex flex-col overflow-hidden rounded-md border">- <ul ref={parent} className="divide-subtle static! w-full divide-y" data-testid="event-types">+ <ul+ ref={parent}+ className="divide-subtle static! w-full divide-y"+ data-testid="event-types"+ >{pages.map((page, pageIdx) => {return page?.eventTypes?.map((type, index) => {const embedLink = `${group.profile.slug}/${type.slug}`;const calLink = `${bookerUrl}/${embedLink}`;- const activeHashedLinks = type.hashedLink ? filterActiveLinks(type.hashedLink, userTimezone) : [];+ const activeHashedLinks = type.hashedLink+ ? filterActiveLinks(type.hashedLink, userTimezone)+ : [];// Ensure index is within bounds for active linksconst currentIndex = privateLinkCopyIndices[type.slug] ?? 0;- const safeIndex = activeHashedLinks.length > 0 ? currentIndex % activeHashedLinks.length : 0;+ const safeIndex =+ activeHashedLinks.length > 0+ ? currentIndex % activeHashedLinks.length+ : 0;const isPrivateURLEnabled =- activeHashedLinks.length > 0 ? activeHashedLinks[safeIndex]?.link : "";+ activeHashedLinks.length > 0+ ? activeHashedLinks[safeIndex]?.link+ : "";const placeholderHashedLink = `${bookerUrl}/d/${isPrivateURLEnabled}/${type.slug}`;- const isManagedEventType = type.schedulingType === SchedulingType.MANAGED;+ const isManagedEventType =+ type.schedulingType === SchedulingType.MANAGED;const isChildrenManagedEventType =type.metadata?.managedEventConfig !== undefined &&type.schedulingType !== SchedulingType.MANAGED;@@ -537,18 +622,26 @@ export const InfiniteEventTypeList = ({<div className="group flex w-full max-w-full items-center justify-between overflow-hidden px-4 py-4 sm:px-6">{!(firstItem && firstItem.id === type.id) && (<ArrowButton- onClick={() => moveEventType(LIMIT * pageIdx + index, -1)}+ onClick={() =>+ moveEventType(LIMIT * pageIdx + index, -1)+ }arrowDirection="up"/>)}{!(lastItem && lastItem.id === type.id) && (<ArrowButton- onClick={() => moveEventType(LIMIT * pageIdx + index, 1)}+ onClick={() =>+ moveEventType(LIMIT * pageIdx + index, 1)+ }arrowDirection="down"/>)}- <MemoizedItem type={type} group={group} readOnly={readOnly} />+ <MemoizedItem+ type={type}+ group={group}+ readOnly={readOnly}+ /><div className="mt-4 hidden sm:mt-0 sm:flex"><div className="flex justify-between space-x-2 rtl:space-x-reverse">{!!type.teamId && !isManagedEventType && (@@ -560,30 +653,44 @@ export const InfiniteEventTypeList = ({users={type?.users ?? []}/>)}- {isManagedEventType && type?.children && type.children?.length > 0 && (- <UserAvatarGroup- className="relative right-3"- size="sm"- truncateAfter={4}- hideTruncatedAvatarsCount={true}- users={type?.children.flatMap((ch) => ch.users) ?? []}- />- )}+ {isManagedEventType &&+ type?.children &&+ type.children?.length > 0 && (+ <UserAvatarGroup+ className="relative right-3"+ size="sm"+ truncateAfter={4}+ hideTruncatedAvatarsCount={true}+ users={+ type?.children.flatMap((ch) => ch.users) ?? []+ }+ />+ )}<div className="flex items-center justify-between space-x-2 rtl:space-x-reverse">{!isManagedEventType && (<>- {type.hidden && <Badge variant="gray">{t("hidden")}</Badge>}+ {type.hidden && (+ <span className="text-sm text-gray-400">+ {t("hidden")}+ </span>+ )}<Tooltipcontent={- type.hidden ? t("show_eventtype_on_profile") : t("hide_from_profile")- }>+ type.hidden+ ? t("show_eventtype_on_profile")+ : t("hide_from_profile")+ }+ ><div className="self-center rounded-md p-2"><Switchname="Hidden"disabled={lockedByOrg}checked={!type.hidden}onCheckedChange={() => {- setHiddenMutation.mutate({ id: type.id, hidden: !type.hidden });+ setHiddenMutation.mutate({+ id: type.id,+ hidden: !type.hidden,+ });}}/></div>@@ -618,18 +725,29 @@ export const InfiniteEventTypeList = ({</Tooltip>{isPrivateURLEnabled && (- <Tooltip content={t("copy_private_link_to_event")}>+ <Tooltip+ content={t("copy_private_link_to_event")}+ ><Buttoncolor="secondary"variant="icon"StartIcon="venetian-mask"onClick={() => {- showToast(t("private_link_copied"), "success");+ showToast(+ t("private_link_copied"),+ "success"+ );copyToClipboard(placeholderHashedLink);setPrivateLinkCopyIndices((prev) => {- const prevIndex = prev[type.slug] ?? 0;- const nextIndex = (prevIndex + 1) % activeHashedLinks.length;- return { ...prev, [type.slug]: nextIndex };+ const prevIndex =+ prev[type.slug] ?? 0;+ const nextIndex =+ (prevIndex + 1) %+ activeHashedLinks.length;+ return {+ ...prev,+ [type.slug]: nextIndex,+ };});}}/>@@ -638,7 +756,10 @@ export const InfiniteEventTypeList = ({</>)}<Dropdown modal={false}>- <DropdownMenuTrigger asChild data-testid={`event-type-options-${type.id}`}>+ <DropdownMenuTrigger+ asChild+ data-testid={`event-type-options-${type.id}`}+ ><Buttontype="button"variant="icon"@@ -655,25 +776,33 @@ export const InfiniteEventTypeList = ({type="button"data-testid={`event-type-edit-${type.id}`}StartIcon="pencil"- onClick={() => router.push(`/event-types/${type.id}`)}>+ onClick={() =>+ router.push(`/event-types/${type.id}`)+ }+ >{t("edit")}</DropdownItem></DropdownMenuItem>)}{/* readonly is only set when we are on a team - if we are on a user event type null will be the value. */}- {!readOnly && !isManagedEventType && !isChildrenManagedEventType && (- <>- <DropdownMenuItem className="outline-none">- <DropdownItem- type="button"- data-testid={`event-type-duplicate-${type.id}`}- StartIcon="copy"- onClick={() => openDuplicateModal(type, group)}>- {t("duplicate")}- </DropdownItem>- </DropdownMenuItem>- </>- )}+ {!readOnly &&+ !isManagedEventType &&+ !isChildrenManagedEventType && (+ <>+ <DropdownMenuItem className="outline-none">+ <DropdownItem+ type="button"+ data-testid={`event-type-duplicate-${type.id}`}+ StartIcon="copy"+ onClick={() =>+ openDuplicateModal(type, group)+ }+ >+ {t("duplicate")}+ </DropdownItem>+ </DropdownMenuItem>+ </>+ )}{!isManagedEventType && (<DropdownMenuItem className="outline-none"><EventTypeEmbedButton@@ -683,7 +812,8 @@ export const InfiniteEventTypeList = ({StartIcon="code"className="w-full rounded-none"embedUrl={encodeURIComponent(embedLink)}- eventId={type.id}>+ eventId={type.id}+ >{t("embed")}</EventTypeEmbedButton></DropdownMenuItem>@@ -698,10 +828,13 @@ export const InfiniteEventTypeList = ({onClick={() => {setDeleteDialogOpen(true);setDeleteDialogTypeId(type.id);- setDeleteDialogSchedulingType(type.schedulingType);+ setDeleteDialogSchedulingType(+ type.schedulingType+ );}}StartIcon="trash"- className="w-full rounded-t-none">+ className="w-full rounded-t-none"+ >{t("delete")}</DropdownItem></DropdownMenuItem>@@ -716,8 +849,16 @@ export const InfiniteEventTypeList = ({</div><div className="min-w-9 mx-5 flex sm:hidden"><Dropdown>- <DropdownMenuTrigger asChild data-testid={`event-type-options-${type.id}`}>- <Button type="button" variant="icon" color="secondary" StartIcon="ellipsis" />+ <DropdownMenuTrigger+ asChild+ data-testid={`event-type-options-${type.id}`}+ >+ <Button+ type="button"+ variant="icon"+ color="secondary"+ StartIcon="ellipsis"+ /></DropdownMenuTrigger><DropdownMenuPortal><DropdownMenuContent>@@ -728,7 +869,8 @@ export const InfiniteEventTypeList = ({href={calLink}target="_blank"StartIcon="external-link"- className="w-full rounded-none">+ className="w-full rounded-none"+ >{t("preview")}</DropdownItem></DropdownMenuItem>@@ -740,7 +882,8 @@ export const InfiniteEventTypeList = ({showToast(t("link_copied"), "success");}}StartIcon="clipboard"- className="w-full rounded-none text-left">+ className="w-full rounded-none text-left"+ >{t("copy_link")}</DropdownItem></DropdownMenuItem>@@ -754,14 +897,21 @@ export const InfiniteEventTypeList = ({navigator.share({title: t("share"),- text: t("share_event", { appName: APP_NAME }),+ text: t("share_event", {+ appName: APP_NAME,+ }),url: calLink,})- .then(() => showToast(t("link_shared"), "success"))- .catch(() => showToast(t("failed"), "error"));+ .then(() =>+ showToast(t("link_shared"), "success")+ )+ .catch(() =>+ showToast(t("failed"), "error")+ );}}StartIcon="upload"- className="w-full rounded-none">+ className="w-full rounded-none"+ >{t("share")}</DropdownItem></DropdownMenuItem>@@ -769,23 +919,31 @@ export const InfiniteEventTypeList = ({{!readOnly && (<DropdownMenuItem className="outline-none"><DropdownItem- onClick={() => router.push(`/event-types/${type.id}`)}+ onClick={() =>+ router.push(`/event-types/${type.id}`)+ }StartIcon="pencil"- className="w-full rounded-none">+ className="w-full rounded-none"+ >{t("edit")}</DropdownItem></DropdownMenuItem>)}- {!readOnly && !isManagedEventType && !isChildrenManagedEventType && (- <DropdownMenuItem className="outline-none">- <DropdownItem- onClick={() => openDuplicateModal(type, group)}- StartIcon="copy"- data-testid={`event-type-duplicate-${type.id}`}>- {t("duplicate")}- </DropdownItem>- </DropdownMenuItem>- )}+ {!readOnly &&+ !isManagedEventType &&+ !isChildrenManagedEventType && (+ <DropdownMenuItem className="outline-none">+ <DropdownItem+ onClick={() =>+ openDuplicateModal(type, group)+ }+ StartIcon="copy"+ data-testid={`event-type-duplicate-${type.id}`}+ >+ {t("duplicate")}+ </DropdownItem>+ </DropdownMenuItem>+ )}{/* readonly is only set when we are on a team - if we are on a user event type null will be the value. */}{!readOnly && !isChildrenManagedEventType && (<>@@ -795,10 +953,13 @@ export const InfiniteEventTypeList = ({onClick={() => {setDeleteDialogOpen(true);setDeleteDialogTypeId(type.id);- setDeleteDialogSchedulingType(type.schedulingType);+ setDeleteDialogSchedulingType(+ type.schedulingType+ );}}StartIcon="trash"- className="w-full rounded-t-none">+ className="w-full rounded-t-none"+ >{t("delete")}</DropdownItem></DropdownMenuItem>@@ -810,15 +971,21 @@ export const InfiniteEventTypeList = ({<Skeletonas={Label}htmlFor="hiddenSwitch"- className="mt-2 inline cursor-pointer self-center pr-2 ">- {type.hidden ? t("show_eventtype_on_profile") : t("hide_from_profile")}+ className="mt-2 inline cursor-pointer self-center pr-2 "+ >+ {type.hidden+ ? t("show_eventtype_on_profile")+ : t("hide_from_profile")}</Skeleton><Switchid="hiddenSwitch"name="Hidden"checked={!type.hidden}onCheckedChange={() => {- setHiddenMutation.mutate({ id: type.id, hidden: !type.hidden });+ setHiddenMutation.mutate({+ id: type.id,+ hidden: !type.hidden,+ });}}/></div>@@ -844,7 +1011,8 @@ export const InfiniteEventTypeList = ({onConfirm={(e) => {e.preventDefault();deleteEventTypeHandler(deleteDialogTypeId);- }}>+ }}+ ><p className="mt-5">{deleteDialogTypeSchedulingType === SchedulingType.MANAGED ? (<ul className="ml-4 list-disc">@@ -861,13 +1029,23 @@ export const InfiniteEventTypeList = ({);};-const CreateFirstEventTypeView = ({ slug, searchTerm }: { slug: string; searchTerm?: string }) => {+const CreateFirstEventTypeView = ({+ slug,+ searchTerm,+}: {+ slug: string;+ searchTerm?: string;+}) => {const { t } = useLocale();return (<EmptyScreenIcon="link"- headline={searchTerm ? t("no_result_found_for", { searchTerm }) : t("new_event_type_heading")}+ headline={+ searchTerm+ ? t("no_result_found_for", { searchTerm })+ : t("new_event_type_heading")+ }description={t("new_event_type_description")}className="mb-16"buttonRaw={@@ -881,16 +1059,33 @@ const CreateFirstEventTypeView = ({ slug, searchTerm }: { slug: string; searchTeconst CTA = ({ profileOptions }: { profileOptions: ProfileOption[] }) => {const { t } = useLocale();+ const { searchTerm, setSearchTerm } = useSearchContext();if (!profileOptions.length) return null;return (- <CreateButton- data-testid="new-event-type"- subtitle={t("create_event_on").toUpperCase()}- options={profileOptions}- createDialog={() => <CreateEventTypeDialog profileOptions={profileOptions} />}- />+ <div className="flex items-center gap-4">+ <TextField+ className="max-w-64"+ addOnLeading={<Icon name="search" className="text-subtle h-4 w-4" />}+ containerClassName="max-w-64 focus:ring-offset-0!"+ type="search"+ value={searchTerm}+ autoComplete="false"+ onChange={(e) => {+ setSearchTerm(e.target.value);+ }}+ placeholder={t("search")}+ />+ <CreateButton+ data-testid="new-event-type"+ subtitle={t("create_event_on").toUpperCase()}+ options={profileOptions}+ createDialog={() => (+ <CreateEventTypeDialog profileOptions={profileOptions} />+ )}+ />+ </div>);};@@ -906,13 +1101,18 @@ const EmptyEventTypeList = ({<><EmptyScreenIcon="link"- headline={searchTerm ? t("no_result_found_for", { searchTerm }) : t("team_no_event_types")}+ headline={+ searchTerm+ ? t("no_result_found_for", { searchTerm })+ : t("team_no_event_types")+ }description={t("new_team_event_type_description")}className="mb-16"buttonRaw={<Buttonhref={`?dialog=new&eventPage=${group.profile.slug}&teamId=${group.teamId}`}- variant="button">+ variant="button"+ >{t("create")}</Button>}@@ -941,7 +1141,8 @@ const InfiniteScrollMain = ({}));const activeEventTypeGroup =- eventTypeGroups.filter((item) => item.teamId === data.teamId) ?? eventTypeGroups[0];+ eventTypeGroups.filter((item) => item.teamId === data.teamId) ??+ eventTypeGroups[0];const bookerUrl = orgBranding ? orgBranding?.fullDomain : WEBSITE_URL;@@ -950,7 +1151,8 @@ const InfiniteScrollMain = ({// This keeps the app working for personal event types that were not migrated to the org (rare)if (orgBranding &&- (activeEventTypeGroup[0].teamId === orgBranding.id || activeEventTypeGroup[0].parentId === orgBranding.id)+ (activeEventTypeGroup[0].teamId === orgBranding.id ||+ activeEventTypeGroup[0].parentId === orgBranding.id)) {activeEventTypeGroup[0].bookerUrl = bookerUrl;}@@ -958,8 +1160,12 @@ const InfiniteScrollMain = ({return (<>{eventTypeGroups.length > 1 && <HorizontalTabs tabs={tabs} />}- {eventTypeGroups.length >= 1 && <InfiniteTeamsTab activeEventTypeGroup={activeEventTypeGroup[0]} />}- {eventTypeGroups.length === 0 && <CreateFirstEventTypeView slug={profiles[0].slug ?? ""} />}+ {eventTypeGroups.length >= 1 && (+ <InfiniteTeamsTab activeEventTypeGroup={activeEventTypeGroup[0]} />+ )}+ {eventTypeGroups.length === 0 && (+ <CreateFirstEventTypeView slug={profiles[0].slug ?? ""} />+ )}<EventTypeEmbedDialog />{searchParams?.get("dialog") === "duplicate" && <DuplicateDialog />}</>@@ -994,7 +1200,8 @@ export const EventTypesCTA = ({ userEventGroupsData }: Omit<Props, "user">) => {// Fallback: allow admin and owner rolesreturn (- profile.membershipRole === MembershipRole.ADMIN || profile.membershipRole === MembershipRole.OWNER+ profile.membershipRole === MembershipRole.ADMIN ||+ profile.membershipRole === MembershipRole.OWNER);})?.map((profile) => {@@ -1037,7 +1244,9 @@ const EventTypesPage = ({ userEventGroupsData, user }: Props) => {useEffect(() => {setShowProfileBanner(- !!orgBranding && !document.cookie.includes("calcom-profile-banner=1") && !user?.completedOnboarding+ !!orgBranding &&+ !document.cookie.includes("calcom-profile-banner=1") &&+ !user?.completedOnboarding);}, [orgBranding, user]);@@ -1049,4 +1258,7 @@ const EventTypesPage = ({ userEventGroupsData, user }: Props) => {);};+export const SearchContext: React.Context<SearchContextType | undefined> =+ SearchContextInternal;+export default EventTypesPage;diff --git a/apps/web/modules/settings/my-account/general-view.tsx b/apps/web/modules/settings/my-account/general-view.tsxindex 0b49fc7541a..66c0b329bb9 100644--- a/apps/web/modules/settings/my-account/general-view.tsx+++ b/apps/web/modules/settings/my-account/general-view.tsx@@ -107,16 +107,22 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {defaultValues: {locale: {value: localeProp || "",- label: localeOptions.find((option) => option.value === localeProp)?.label || "",+ label:+ localeOptions.find((option) => option.value === localeProp)?.label ||+ "",},timeZone: user.timeZone || "",timeFormat: {value: user.timeFormat || 12,- label: timeFormatOptions.find((option) => option.value === user.timeFormat)?.label || 12,+ label:+ timeFormatOptions.find((option) => option.value === user.timeFormat)+ ?.label || 12,},weekStart: {value: user.weekStart,- label: weekStartOptions.find((option) => option.value === user.weekStart)?.label || "",+ label:+ weekStartOptions.find((option) => option.value === user.weekStart)+ ?.label || "",},travelSchedules:travelSchedules.map((schedule) => {@@ -136,25 +142,30 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {} = formMethods;const isDisabled = isSubmitting || !isDirty;- const [isAllowDynamicBookingChecked, setIsAllowDynamicBookingChecked] = useState(- !!user.allowDynamicBooking- );+ const [isAllowDynamicBookingChecked, setIsAllowDynamicBookingChecked] =+ useState(!!user.allowDynamicBooking);const [isAllowSEOIndexingChecked, setIsAllowSEOIndexingChecked] = useState(user.organizationSettings?.allowSEOIndexing === false? !!user.organizationSettings?.allowSEOIndexing: !!user.allowSEOIndexing);- const [isReceiveMonthlyDigestEmailChecked, setIsReceiveMonthlyDigestEmailChecked] = useState(- !!user.receiveMonthlyDigestEmail- );- const [isRequireBookerEmailVerificationChecked, setIsRequireBookerEmailVerificationChecked] = useState(- !!user.requiresBookerEmailVerification- );+ const [+ isReceiveMonthlyDigestEmailChecked,+ setIsReceiveMonthlyDigestEmailChecked,+ ] = useState(!!user.receiveMonthlyDigestEmail);+ const [+ isRequireBookerEmailVerificationChecked,+ setIsRequireBookerEmailVerificationChecked,+ ] = useState(!!user.requiresBookerEmailVerification);const watchedTzSchedules = formMethods.watch("travelSchedules");return (- <SettingsHeader title={t("general")} description={t("general_description")} borderInShellHeader={true}>+ <SettingsHeader+ title={t("general")}+ description={t("general_description")}+ borderInShellHeader={true}+ ><div><Formform={formMethods}@@ -166,7 +177,8 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {timeFormat: values.timeFormat.value,weekStart: values.weekStart.value,});- }}>+ }}+ ><div className="border-subtle border-x border-y-0 px-4 py-8 sm:px-6"><Controllername="locale"@@ -192,25 +204,33 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {<Label className="text-emphasis mt-6"><>{t("timezone")}</></Label>- <TimezoneSelect- id="timezone"- value={value}- onChange={(event) => {- if (event) formMethods.setValue("timeZone", event.value, { shouldDirty: true });- }}- />+ <div className="flex items-end gap-2">+ <div className="flex-1">+ <TimezoneSelect+ id="timezone"+ value={value}+ onChange={(event) => {+ if (event)+ formMethods.setValue("timeZone", event.value, {+ shouldDirty: true,+ });+ }}+ />+ </div>+ {!watchedTzSchedules.length && (+ <Button+ color="secondary"+ StartIcon="calendar"+ onClick={() => setIsTZScheduleOpen(true)}+ >+ {t("schedule_timezone_change")}+ </Button>+ )}+ </div></>)}/>- {!watchedTzSchedules.length ? (- <Button- color="secondary"- className="mt-2"- StartIcon="calendar"- onClick={() => setIsTZScheduleOpen(true)}>- {t("schedule_timezone_change")}- </Button>- ) : (+ {watchedTzSchedules.length > 0 && (<div className="bg-cal-muted border-subtle mt-2 rounded-md border p-4"><Label>{t("travel_schedule")}</Label><div className="border-subtle bg-default mt-4 rounded-md border text-sm">@@ -221,7 +241,8 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {"flex items-center p-4",index !== 0 ? "border-subtle border-t" : "")}- key={index}>+ key={index}+ ><div><div className="text-emphasis font-semibold">{`${formatLocalizedDateTime(schedule.startDate,@@ -236,7 +257,9 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {)}`: ``}`}</div>- <div className="text-subtle">{schedule.timeZone.replace(/_/g, " ")}</div>+ <div className="text-subtle">+ {schedule.timeZone.replace(/_/g, " ")}+ </div></div><Buttoncolor="destructive"@@ -247,7 +270,11 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {const updatedSchedules = watchedTzSchedules.filter((s, filterIndex) => filterIndex !== index);- formMethods.setValue("travelSchedules", updatedSchedules, { shouldDirty: true });+ formMethods.setValue(+ "travelSchedules",+ updatedSchedules,+ { shouldDirty: true }+ );}}/></div>@@ -258,7 +285,8 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {StartIcon="plus"color="secondary"className="mt-4"- onClick={() => setIsTZScheduleOpen(true)}>+ onClick={() => setIsTZScheduleOpen(true)}+ >{t("add")}</Button></div>@@ -276,7 +304,12 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {value={value}options={timeFormatOptions}onChange={(event) => {- if (event) formMethods.setValue("timeFormat", { ...event }, { shouldDirty: true });+ if (event)+ formMethods.setValue(+ "timeFormat",+ { ...event },+ { shouldDirty: true }+ );}}/></>@@ -297,7 +330,12 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {value={value}options={weekStartOptions}onChange={(event) => {- if (event) formMethods.setValue("weekStart", { ...event }, { shouldDirty: true });+ if (event)+ formMethods.setValue(+ "weekStart",+ { ...event },+ { shouldDirty: true }+ );}}/></>@@ -311,7 +349,8 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {disabled={isDisabled}color="primary"type="submit"- data-testid="general-submit-button">+ data-testid="general-submit-button"+ ><>{t("update")}</></Button></SectionBottomActions>@@ -335,7 +374,10 @@ const GeneralView = ({ user, travelSchedules }: GeneralViewProps) => {toggleSwitchAtTheEnd={true}title={t("seo_indexing")}description={t("allow_seo_indexing")}- disabled={mutation.isPending || user.organizationSettings?.allowSEOIndexing === false}+ disabled={+ mutation.isPending ||+ user.organizationSettings?.allowSEOIndexing === false+ }checked={isAllowSEOIndexingChecked}onCheckedChange={(checked) => {setIsAllowSEOIndexingChecked(checked);diff --git a/apps/web/modules/settings/my-account/profile-view.tsx b/apps/web/modules/settings/my-account/profile-view.tsxindex c4b3c0261bb..ed36032562c 100644--- a/apps/web/modules/settings/my-account/profile-view.tsx+++ b/apps/web/modules/settings/my-account/profile-view.tsx@@ -28,7 +28,12 @@ import type { AppRouter } from "@calcom/trpc/types/server/routers/_app";import { Alert } from "@calcom/ui/components/alert";import { UserAvatar } from "@calcom/ui/components/avatar";import { Button } from "@calcom/ui/components/button";-import { DialogContent, DialogFooter, DialogTrigger, DialogClose } from "@calcom/ui/components/dialog";+import {+ DialogContent,+ DialogFooter,+ DialogTrigger,+ DialogClose,+} from "@calcom/ui/components/dialog";import { Editor } from "@calcom/ui/components/editor";import { Form } from "@calcom/ui/components/form";import { PasswordField } from "@calcom/ui/components/form";@@ -85,7 +90,10 @@ const ProfileView = ({ user }: Props) => {revalidateSettingsProfile();if (res.hasEmailBeenChanged && res.sendEmailVerification) {- showToast(t("change_of_email_toast", { email: tempFormValues?.email }), "success");+ showToast(+ t("change_of_email_toast", { email: tempFormValues?.email }),+ "success"+ );} else {showToast(t("settings_updated_successfully"), "success");}@@ -105,44 +113,56 @@ const ProfileView = ({ user }: Props) => {}},});- const unlinkConnectedAccountMutation = trpc.viewer.loggedInViewerRouter.unlinkConnectedAccount.useMutation({- onSuccess: async (res) => {- showToast(t(res.message), "success");- utils.viewer.me.invalidate();- revalidateSettingsProfile();- },- onError: (e) => {- showToast(t(e.message), "error");- },- });+ const unlinkConnectedAccountMutation =+ trpc.viewer.loggedInViewerRouter.unlinkConnectedAccount.useMutation({+ onSuccess: async (res) => {+ showToast(t(res.message), "success");+ utils.viewer.me.invalidate();+ revalidateSettingsProfile();+ },+ onError: (e) => {+ showToast(t(e.message), "error");+ },+ });- const addSecondaryEmailMutation = trpc.viewer.loggedInViewerRouter.addSecondaryEmail.useMutation({- onSuccess: (res) => {- setShowSecondaryEmailModalOpen(false);- setNewlyAddedSecondaryEmail(res?.data?.email);- utils.viewer.me.invalidate();- revalidateSettingsProfile();- },- onError: (error) => {- setSecondaryEmailAddErrorMessage(error?.message || "");- },- });+ const addSecondaryEmailMutation =+ trpc.viewer.loggedInViewerRouter.addSecondaryEmail.useMutation({+ onSuccess: (res) => {+ setShowSecondaryEmailModalOpen(false);+ setNewlyAddedSecondaryEmail(res?.data?.email);+ utils.viewer.me.invalidate();+ revalidateSettingsProfile();+ },+ onError: (error) => {+ setSecondaryEmailAddErrorMessage(error?.message || "");+ },+ });- const resendVerifyEmailMutation = trpc.viewer.auth.resendVerifyEmail.useMutation();+ const resendVerifyEmailMutation =+ trpc.viewer.auth.resendVerifyEmail.useMutation();const [confirmPasswordOpen, setConfirmPasswordOpen] = useState(false);- const [tempFormValues, setTempFormValues] = useState<ExtendedFormValues | null>(null);- const [confirmPasswordErrorMessage, setConfirmPasswordDeleteErrorMessage] = useState("");- const [showCreateAccountPasswordDialog, setShowCreateAccountPasswordDialog] = useState(false);- const [showAccountDisconnectWarning, setShowAccountDisconnectWarning] = useState(false);- const [showSecondaryEmailModalOpen, setShowSecondaryEmailModalOpen] = useState(false);- const [secondaryEmailAddErrorMessage, setSecondaryEmailAddErrorMessage] = useState("");- const [newlyAddedSecondaryEmail, setNewlyAddedSecondaryEmail] = useState<undefined | string>(undefined);+ const [tempFormValues, setTempFormValues] =+ useState<ExtendedFormValues | null>(null);+ const [confirmPasswordErrorMessage, setConfirmPasswordDeleteErrorMessage] =+ useState("");+ const [showCreateAccountPasswordDialog, setShowCreateAccountPasswordDialog] =+ useState(false);+ const [showAccountDisconnectWarning, setShowAccountDisconnectWarning] =+ useState(false);+ const [showSecondaryEmailModalOpen, setShowSecondaryEmailModalOpen] =+ useState(false);+ const [secondaryEmailAddErrorMessage, setSecondaryEmailAddErrorMessage] =+ useState("");+ const [newlyAddedSecondaryEmail, setNewlyAddedSecondaryEmail] = useState<+ undefined | string+ >(undefined);const [deleteAccountOpen, setDeleteAccountOpen] = useState(false);const [hasDeleteErrors, setHasDeleteErrors] = useState(false);const [deleteErrorMessage, setDeleteErrorMessage] = useState("");- const [isCompanyEmailAlertDismissed, setIsCompanyEmailAlertDismissed] = useState(false);+ const [isCompanyEmailAlertDismissed, setIsCompanyEmailAlertDismissed] =+ useState(false);const form = useForm<DeleteAccountValues>();const onDeleteMeSuccessMutation = async () => {@@ -181,25 +201,30 @@ const ProfileView = ({ user }: Props) => {revalidateSettingsProfile();},});- const deleteMeWithoutPasswordMutation = trpc.viewer.me.deleteMeWithoutPassword.useMutation({- onSuccess: onDeleteMeSuccessMutation,- onError: onDeleteMeErrorMutation,- async onSettled() {- await utils.viewer.me.invalidate();- revalidateSettingsProfile();- },- });+ const deleteMeWithoutPasswordMutation =+ trpc.viewer.me.deleteMeWithoutPassword.useMutation({+ onSuccess: onDeleteMeSuccessMutation,+ onError: onDeleteMeErrorMutation,+ async onSettled() {+ await utils.viewer.me.invalidate();+ revalidateSettingsProfile();+ },+ });const isCALIdentityProvider = user?.identityProvider === IdentityProvider.CAL;- const onConfirmPassword = (e: Event | React.MouseEvent<HTMLElement, MouseEvent>) => {+ const onConfirmPassword = (+ e: Event | React.MouseEvent<HTMLElement, MouseEvent>+ ) => {e.preventDefault();const password = passwordRef.current.value;confirmPasswordMutation.mutate({ passwordInput: password });};- const onConfirmButton = (e: Event | React.MouseEvent<HTMLElement, MouseEvent>) => {+ const onConfirmButton = (+ e: Event | React.MouseEvent<HTMLElement, MouseEvent>+ ) => {e.preventDefault();if (isCALIdentityProvider) {const totpCode = form.getValues("totpCode");@@ -210,7 +235,10 @@ const ProfileView = ({ user }: Props) => {}};- const onConfirm = ({ totpCode }: DeleteAccountValues, e: BaseSyntheticEvent | undefined) => {+ const onConfirm = (+ { totpCode }: DeleteAccountValues,+ e: BaseSyntheticEvent | undefined+ ) => {e?.preventDefault();if (isCALIdentityProvider) {const password = passwordRef.current.value;@@ -225,11 +253,19 @@ const ProfileView = ({ user }: Props) => {const errorMessages: { [key: string]: string } = {[ErrorCode.SecondFactorRequired]: t("2fa_enabled_instructions"),- [ErrorCode.IncorrectPassword]: `${t("incorrect_password")} ${t("please_try_again")}`,+ [ErrorCode.IncorrectPassword]: `${t("incorrect_password")} ${t(+ "please_try_again"+ )}`,[ErrorCode.UserNotFound]: t("no_account_exists"),- [ErrorCode.IncorrectTwoFactorCode]: `${t("incorrect_2fa_code")} ${t("please_try_again")}`,- [ErrorCode.InternalServerError]: `${t("something_went_wrong")} ${t("please_try_again_and_contact_us")}`,- [ErrorCode.ThirdPartyIdentityProviderEnabled]: t("account_created_with_identity_provider"),+ [ErrorCode.IncorrectTwoFactorCode]: `${t("incorrect_2fa_code")} ${t(+ "please_try_again"+ )}`,+ [ErrorCode.InternalServerError]: `${t("something_went_wrong")} ${t(+ "please_try_again_and_contact_us"+ )}`,+ [ErrorCode.ThirdPartyIdentityProviderEnabled]: t(+ "account_created_with_identity_provider"+ ),};const userEmail = user.email || "";@@ -267,7 +303,8 @@ const ProfileView = ({ user }: Props) => {<SettingsHeadertitle={t("profile")}description={t("profile_description", { appName: APP_NAME })}- borderInShellHeader={true}>+ borderInShellHeader={true}+ ><ProfileFormkey={JSON.stringify(defaultValues)}defaultValues={defaultValues}@@ -316,19 +353,30 @@ const ProfileView = ({ user }: Props) => {{shouldShowCompanyEmailAlert && (<div className="mt-6">- <CompanyEmailOrganizationBanner onDismissAction={() => setIsCompanyEmailAlertDismissed(true)} />+ <CompanyEmailOrganizationBanner+ onDismissAction={() => setIsCompanyEmailAlertDismissed(true)}+ /></div>)}<div className="border-subtle mt-6 rounded-lg rounded-b-none border border-b-0 p-6">- <Label className="mb-0 text-base font-semibold text-red-700">{t("danger_zone")}</Label>- <p className="text-subtle text-sm">{t("account_deletion_cannot_be_undone")}</p>+ <Label className="mb-0 text-base font-semibold text-red-700">+ {t("danger_zone")}+ </Label>+ <p className="text-subtle text-sm">+ {t("account_deletion_cannot_be_undone")}+ </p></div>{/* Delete account Dialog */}<Dialog open={deleteAccountOpen} onOpenChange={setDeleteAccountOpen}><SectionBottomActions align="end"><DialogTrigger asChild>- <Button data-testid="delete-account" color="destructive" className="mt-1" StartIcon="trash-2">+ <Button+ data-testid="delete-account"+ color="destructive"+ className="mt-1"+ StartIcon="trash-2"+ >{t("delete_account")}</Button></DialogTrigger>@@ -337,10 +385,13 @@ const ProfileView = ({ user }: Props) => {title={t("delete_account_modal_title")}description={t("confirm_delete_account_modal", { appName: APP_NAME })}type="creation"- Icon="triangle-alert">+ Icon="triangle-alert"+ ><><div className="mb-10">- <p className="text-subtle mb-4 text-sm">{t("delete_account_confirmation_message")}</p>+ <p className="text-subtle mb-4 text-sm">+ {t("delete_account_confirmation_message")}+ </p>{isCALIdentityProvider && (<PasswordFielddata-testid="password"@@ -359,7 +410,9 @@ const ProfileView = ({ user }: Props) => {</Form>)}- {hasDeleteErrors && <Alert severity="error" title={deleteErrorMessage} />}+ {hasDeleteErrors && (+ <Alert severity="error" title={deleteErrorMessage} />+ )}</div><DialogFooter showDivider><DialogClose />@@ -367,7 +420,8 @@ const ProfileView = ({ user }: Props) => {color="destructive"data-testid="delete-account-confirm"onClick={(e) => onConfirmButton(e)}- loading={deleteMeMutation.isPending}>+ loading={deleteMeMutation.isPending}+ >{t("delete_my_account")}</Button></DialogFooter>@@ -381,7 +435,8 @@ const ProfileView = ({ user }: Props) => {title={t("confirm_password")}description={t("confirm_password_change_email")}type="creation"- Icon="triangle-alert">+ Icon="triangle-alert"+ ><div className="mb-10"><div className="mb-4 grid gap-2 md:grid-cols-2"><div>@@ -394,7 +449,9 @@ const ProfileView = ({ user }: Props) => {<span className="text-emphasis mb-2 block text-sm font-medium leading-none">{t("new_email_address")}</span>- <p className="text-subtle leading-none">{tempFormValues?.email}</p>+ <p className="text-subtle leading-none">+ {tempFormValues?.email}+ </p></div></div><PasswordField@@ -407,14 +464,17 @@ const ProfileView = ({ user }: Props) => {ref={passwordRef}/>- {confirmPasswordErrorMessage && <Alert severity="error" title={confirmPasswordErrorMessage} />}+ {confirmPasswordErrorMessage && (+ <Alert severity="error" title={confirmPasswordErrorMessage} />+ )}</div><DialogFooter showDivider><Buttondata-testid="profile-update-email-submit-button"color="primary"loading={confirmPasswordMutation.isPending}- onClick={(e) => onConfirmPassword(e)}>+ onClick={(e) => onConfirmPassword(e)}+ >{t("confirm")}</Button><DialogClose />@@ -422,31 +482,40 @@ const ProfileView = ({ user }: Props) => {</DialogContent></Dialog>- <Dialog open={showCreateAccountPasswordDialog} onOpenChange={setShowCreateAccountPasswordDialog}>+ <Dialog+ open={showCreateAccountPasswordDialog}+ onOpenChange={setShowCreateAccountPasswordDialog}+ ><DialogContenttitle={t("create_account_password")}description={t("create_account_password_hint")}type="creation"- Icon="triangle-alert">+ Icon="triangle-alert"+ ><DialogFooter><DialogClose /></DialogFooter></DialogContent></Dialog>- <Dialog open={showAccountDisconnectWarning} onOpenChange={setShowAccountDisconnectWarning}>+ <Dialog+ open={showAccountDisconnectWarning}+ onOpenChange={setShowAccountDisconnectWarning}+ ><DialogContenttitle={t("disconnect_account")}description={t("disconnect_account_hint")}type="creation"- Icon="triangle-alert">+ Icon="triangle-alert"+ ><DialogFooter><Buttoncolor="primary"onClick={() => {unlinkConnectedAccountMutation.mutate();setShowAccountDisconnectWarning(false);- }}>+ }}+ >{t("confirm")}</Button><DialogClose />@@ -528,7 +597,9 @@ const ProfileForm = ({.trim().min(1, t("you_need_to_add_a_name")).max(FULL_NAME_LENGTH_MAX_LIMIT, {- message: t("max_limit_allowed_hint", { limit: FULL_NAME_LENGTH_MAX_LIMIT }),+ message: t("max_limit_allowed_hint", {+ limit: FULL_NAME_LENGTH_MAX_LIMIT,+ }),}),email: emailSchema.toLowerCase(),bio: z.string(),@@ -558,7 +629,8 @@ const ProfileForm = ({});const getUpdatedFormValues = (values: FormValues) => {- const changedFields = formMethods.formState.dirtyFields?.secondaryEmails || [];+ const changedFields =+ formMethods.formState.dirtyFields?.secondaryEmails || [];const updatedValues: FormValues = {...values,};@@ -569,7 +641,8 @@ const ProfileForm = ({);if (primaryEmailIndex >= 0) {// Add the new updated value as primary email- updatedValues.email = updatedValues.secondaryEmails[primaryEmailIndex].email;+ updatedValues.email =+ updatedValues.secondaryEmails[primaryEmailIndex].email;}// We will only send the emails which have already changed@@ -583,12 +656,17 @@ const ProfileForm = ({});const deletedEmails = (user?.secondaryEmails || []).filter(- (secondaryEmail) => !updatedValues.secondaryEmails.find((val) => val.id && val.id === secondaryEmail.id)+ (secondaryEmail) =>+ !updatedValues.secondaryEmails.find(+ (val) => val.id && val.id === secondaryEmail.id+ ));const secondaryEmails = [...updatedEmails.map((email) => ({ ...email, isDeleted: false })),...deletedEmails.map((email) => ({ ...email, isDeleted: true })),- ].map((secondaryEmail) => pick(secondaryEmail, ["id", "email", "isDeleted"]));+ ].map((secondaryEmail) =>+ pick(secondaryEmail, ["id", "email", "isDeleted"])+ );return {...updatedValues,@@ -625,9 +703,16 @@ const ProfileForm = ({const showRemoveAvatarButton = value !== null;return (<>- <UserAvatar data-testid="profile-upload-avatar" previewSrc={value} size="lg" user={user} />+ <UserAvatar+ data-testid="profile-upload-avatar"+ previewSrc={value}+ size="lg"+ user={user}+ /><div className="ms-4">- <h2 className="mb-2 text-sm font-medium">{t("profile_picture")}</h2>+ <h2 className="mb-2 text-sm font-medium">+ {t("profile_picture")}+ </h2><div className="flex gap-2"><ImageUploadertarget="avatar"@@ -637,15 +722,18 @@ const ProfileForm = ({onChange(newAvatar);}}imageSrc={getUserAvatarUrl({ avatarUrl: value })}- triggerButtonColor={showRemoveAvatarButton ? "secondary" : "secondary"}+ triggerButtonColor={+ showRemoveAvatarButton ? "secondary" : "secondary"+ }/>{showRemoveAvatarButton && (<Button- color="destructive"+ color="minimal"onClick={() => {onChange(null);- }}>+ }}+ >{t("remove")}</Button>)}@@ -669,22 +757,32 @@ const ProfileForm = ({<div className="-mt-2 flex flex-wrap items-start gap-2"><divclassName={- secondaryEmailFields.length > 1 ? "grid w-full grid-cols-1 gap-2 sm:grid-cols-2" : "flex-1"- }>+ secondaryEmailFields.length > 1+ ? "grid w-full grid-cols-1 gap-2 sm:grid-cols-2"+ : "flex-1"+ }+ >{secondaryEmailFields.map((field, index) => (<CustomEmailTextFieldkey={field.itemId}formMethods={formMethods}- formMethodFieldName={`secondaryEmails.${index}.email` as keyof FormValues}- errorMessage={get(formMethods.formState.errors, `secondaryEmails.${index}.email.message`)}+ formMethodFieldName={+ `secondaryEmails.${index}.email` as keyof FormValues+ }+ errorMessage={get(+ formMethods.formState.errors,+ `secondaryEmails.${index}.email.message`+ )}emailVerified={Boolean(field.emailVerified)}emailPrimary={field.emailPrimary}dataTestId={`profile-form-email-${index}`}handleChangePrimary={() => {- const fields = secondaryEmailFields.map((secondaryField, cIndex) => ({- ...secondaryField,- emailPrimary: cIndex === index,- }));+ const fields = secondaryEmailFields.map(+ (secondaryField, cIndex) => ({+ ...secondaryField,+ emailPrimary: cIndex === index,+ })+ );updateAllSecondaryEmailFields(fields);}}handleVerifyEmail={() => handleResendVerifyEmail(field.email)}@@ -697,7 +795,8 @@ const ProfileForm = ({StartIcon="plus"className="mt-2"onClick={() => handleAddSecondaryEmail()}- data-testid="add-secondary-email">+ data-testid="add-secondary-email"+ >{t("add_email")}</Button></div>@@ -707,7 +806,9 @@ const ProfileForm = ({<EditorgetText={() => md.render(formMethods.getValues("bio") || "")}setText={(value: string) => {- formMethods.setValue("bio", turndown(value), { shouldDirty: true });+ formMethods.setValue("bio", turndown(value), {+ shouldDirty: true,+ });}}excludedToolbarItems={["blockType"]}disableLists@@ -728,7 +829,9 @@ const ProfileForm = ({labelClassname="font-normal text-sm text-subtle"valueClassname="text-emphasis inline-flex items-center gap-1 font-normal text-sm leading-5"value={- ["TEXT", "NUMBER", "SINGLE_SELECT"].includes(attribute.type)+ ["TEXT", "NUMBER", "SINGLE_SELECT"].includes(+ attribute.type+ )? attribute.options[0].value: attribute.options.map((option) => option.value)}@@ -740,22 +843,27 @@ const ProfileForm = ({)}{/* // For Non-Cal identities, we merge the values from DB and the user logging in,so essentially there's no point in allowing them to disconnect, since when they log in they will get logged into the same account */}- {!isCALIdentityProvider && user.email !== user.identityProviderEmail && (- <div className="mt-6">- <Label>Connected accounts</Label>- <div className="flex items-center">- <span className="text-default text-sm capitalize">{user.identityProvider.toLowerCase()}</span>- {user.identityProviderEmail && (- <span className="text-default ml-2 text-sm">{user.identityProviderEmail}</span>- )}- <div className="flex flex-1 justify-end">- <Button color="destructive" onClick={onDisconnect}>- {t("disconnect")}- </Button>+ {!isCALIdentityProvider &&+ user.email !== user.identityProviderEmail && (+ <div className="mt-6">+ <Label>Connected accounts</Label>+ <div className="flex items-center">+ <span className="text-default text-sm capitalize">+ {user.identityProvider.toLowerCase()}+ </span>+ {user.identityProviderEmail && (+ <span className="text-default ml-2 text-sm">+ {user.identityProviderEmail}+ </span>+ )}+ <div className="flex flex-1 justify-end">+ <Button color="destructive" onClick={onDisconnect}>+ {t("disconnect")}+ </Button>+ </div></div></div>- </div>- )}+ )}</div><SectionBottomActions align="end"><Button@@ -763,7 +871,8 @@ const ProfileForm = ({disabled={isDisabled}color="primary"type="submit"- data-testid="profile-submit-button">+ data-testid="profile-submit-button"+ >{t("update")}</Button></SectionBottomActions>diff --git a/apps/web/modules/shell/navigation/NavigationItem.tsx b/apps/web/modules/shell/navigation/NavigationItem.tsxindex 2047ced22ef..2275e690b34 100644--- a/apps/web/modules/shell/navigation/NavigationItem.tsx+++ b/apps/web/modules/shell/navigation/NavigationItem.tsx@@ -27,7 +27,10 @@ const usePersistedExpansionState = (itemName: string) => {const setPersistedExpansion = (expanded: boolean) => {setIsExpanded(expanded);- sessionStorage.setItem(`nav-expansion-${itemName}`, JSON.stringify(expanded));+ sessionStorage.setItem(+ `nav-expansion-${itemName}`,+ JSON.stringify(expanded)+ );};return [isExpanded, setPersistedExpansion] as const;@@ -64,8 +67,16 @@ export type NavigationItemType = {}) => boolean;};-const defaultIsCurrent: NavigationItemType["isCurrent"] = ({ isChild, item, pathname }) => {- return isChild ? item.href === pathname : item.href ? pathname?.startsWith(item.href) ?? false : false;+const defaultIsCurrent: NavigationItemType["isCurrent"] = ({+ isChild,+ item,+ pathname,+}) => {+ return isChild+ ? item.href === pathname+ : item.href+ ? pathname?.startsWith(item.href) ?? false+ : false;};export const NavigationItem: React.FC<{@@ -76,9 +87,12 @@ export const NavigationItem: React.FC<{const { item, isChild } = props;const { t, isLocaleReady } = useLocale();const pathname = usePathname();- const isCurrent: NavigationItemType["isCurrent"] = item.isCurrent || defaultIsCurrent;+ const isCurrent: NavigationItemType["isCurrent"] =+ item.isCurrent || defaultIsCurrent;const current = isCurrent({ isChild: !!isChild, item, pathname });- const shouldDisplayNavigationItem = useShouldDisplayNavigationItem(props.item);+ const shouldDisplayNavigationItem = useShouldDisplayNavigationItem(+ props.item+ );const [isExpanded, setIsExpanded] = usePersistedExpansionState(item.name);const isTablet = useMediaQuery("(max-width: 1024px)");@@ -88,8 +102,12 @@ export const NavigationItem: React.FC<{const hasChildren = item.child && item.child.length > 0;const hasActiveChild =- hasChildren && item.child?.some((child) => isCurrent({ isChild: true, item: child, pathname }));- const shouldShowChildren = isExpanded || hasActiveChild || isCurrent({ pathname, isChild, item });+ hasChildren &&+ item.child?.some((child) =>+ isCurrent({ isChild: true, item: child, pathname })+ );+ const shouldShowChildren =+ isExpanded || hasActiveChild || isCurrent({ pathname, isChild, item });const shouldShowChevron = hasChildren && !hasActiveChild;const isParentNavigationItem = hasChildren && !isChild;@@ -109,8 +127,16 @@ export const NavigationItem: React.FC<{{item.child?.map((childItem) => {const childIsCurrent =typeof childItem.isCurrent === "function"- ? childItem.isCurrent({ isChild: true, item: childItem, pathname })- : defaultIsCurrent({ isChild: true, item: childItem, pathname });+ ? childItem.isCurrent({+ isChild: true,+ item: childItem,+ pathname,+ })+ : defaultIsCurrent({+ isChild: true,+ item: childItem,+ pathname,+ });return (<Linkkey={childItem.name}@@ -125,7 +151,8 @@ export const NavigationItem: React.FC<{childIsCurrent? "bg-emphasis text-white": "hover:bg-emphasis text-mute hover:text-emphasis"- )}>+ )}+ >{t(childItem.name)}</Link>);@@ -136,7 +163,8 @@ export const NavigationItem: React.FC<{t(item.name))}- className="lg:hidden">+ className="lg:hidden"+ ><buttondata-test-id={item.name}aria-label={t(item.name)}@@ -155,7 +183,8 @@ export const NavigationItem: React.FC<{isLocaleReady? "hover:bg-subtle todesktop:[&[aria-current='page']]:bg-emphasis todesktop:hover:bg-transparent hover:text-emphasis": ""- )}>+ )}+ >{item.icon && (<Iconname={item.isLoading ? "rotate-cw" : item.icon}@@ -169,7 +198,8 @@ export const NavigationItem: React.FC<{{isLocaleReady ? (<spanclassName="hidden w-full justify-between truncate text-ellipsis lg:flex"- data-testid={`${item.name}-test`}>+ data-testid={`${item.name}-test`}+ >{t(item.name)}{item.badge && item.badge}</span>@@ -177,7 +207,10 @@ export const NavigationItem: React.FC<{<SkeletonText className="h-[20px] w-full" />)}{shouldShowChevron && (- <Icon name={isExpanded ? "chevron-up" : "chevron-down"} className="ml-auto h-4 w-4" />+ <Icon+ name={isExpanded ? "chevron-up" : "chevron-down"}+ className="ml-auto h-4 w-4"+ />)}</button></Tooltip>@@ -196,14 +229,17 @@ export const NavigationItem: React.FC<{: `[&[aria-current='page']]:bg-emphasis`,isChild? `[&[aria-current='page']]:text-emphasis [&[aria-current='page']]:bg-emphasis hidden h-8 pl-16 lg:flex lg:pl-11 ${- props.index === 0 ? "mt-0" : "mt-1 hover:mt-1 [&[aria-current='page']]:mt-1"+ props.index === 0+ ? "mt-0"+ : "mt-1 hover:mt-1 [&[aria-current='page']]:mt-1"}`: "[&[aria-current='page']]:text-emphasis mt-0.5 text-sm",isLocaleReady? "hover:bg-subtle todesktop:[&[aria-current='page']]:bg-emphasis todesktop:hover:bg-transparent hover:text-emphasis": "")}- aria-current={current ? "page" : undefined}>+ aria-current={current ? "page" : undefined}+ >{item.icon && (<Iconname={item.isLoading ? "rotate-cw" : item.icon}@@ -218,24 +254,22 @@ export const NavigationItem: React.FC<{{isLocaleReady ? (<spanclassName="hidden w-full justify-between truncate text-ellipsis lg:flex"- data-testid={`${item.name}-test`}>+ data-testid={`${item.name}-test`}+ >{t(item.name)}{item.badge && item.badge}</span>) : (<SkeletonText className="h-[20px] w-full" />)}- {item.name === "workflows" && (- <Badge startIcon="sparkles" variant="purple">- Cal.ai- </Badge>- )}</Link></Tooltip>)}{item.child &&shouldShowChildren &&- item.child.map((item, index) => <NavigationItem index={index} key={item.name} item={item} isChild />)}+ item.child.map((item, index) => (+ <NavigationItem index={index} key={item.name} item={item} isChild />+ ))}</Fragment>);};@@ -247,9 +281,12 @@ export const MobileNavigationItem: React.FC<{const { item, isChild } = props;const pathname = usePathname();const { t, isLocaleReady } = useLocale();- const isCurrent: NavigationItemType["isCurrent"] = item.isCurrent || defaultIsCurrent;+ const isCurrent: NavigationItemType["isCurrent"] =+ item.isCurrent || defaultIsCurrent;const current = isCurrent({ isChild: !!isChild, item, pathname });- const shouldDisplayNavigationItem = useShouldDisplayNavigationItem(props.item);+ const shouldDisplayNavigationItem = useShouldDisplayNavigationItem(+ props.item+ );if (!shouldDisplayNavigationItem) return null;return (@@ -258,7 +295,8 @@ export const MobileNavigationItem: React.FC<{href={item.href}target={item.target}className="[&[aria-current='page']]:text-emphasis hover:text-default text-muted bg-transparent! relative my-2 min-w-0 flex-1 overflow-hidden rounded-md p-1 text-center text-xs font-medium focus:z-10 sm:text-sm"- aria-current={current ? "page" : undefined}>+ aria-current={current ? "page" : undefined}+ >{item.badge && <div className="absolute right-1 top-1">{item.badge}</div>}{item.icon && (<Icon@@ -268,7 +306,11 @@ export const MobileNavigationItem: React.FC<{aria-current={current ? "page" : undefined}/>)}- {isLocaleReady ? <span className="block truncate">{t(item.name)}</span> : <SkeletonText />}+ {isLocaleReady ? (+ <span className="block truncate">{t(item.name)}</span>+ ) : (+ <SkeletonText />+ )}</Link>);};@@ -279,7 +321,9 @@ export const MobileNavigationMoreItem: React.FC<{}> = (props) => {const { item } = props;const { t, isLocaleReady } = useLocale();- const shouldDisplayNavigationItem = useShouldDisplayNavigationItem(props.item);+ const shouldDisplayNavigationItem = useShouldDisplayNavigationItem(+ props.item+ );const [isExpanded, setIsExpanded] = usePersistedExpansionState(item.name);if (!shouldDisplayNavigationItem) return null;@@ -292,14 +336,22 @@ export const MobileNavigationMoreItem: React.FC<{<><buttononClick={() => setIsExpanded(!isExpanded)}- className="hover:bg-subtle flex w-full items-center justify-between p-5 text-left transition">+ className="hover:bg-subtle flex w-full items-center justify-between p-5 text-left transition"+ ><span className="text-default flex items-center font-semibold">{item.icon && (- <Icon name={item.icon} className="h-5 w-5 shrink-0 ltr:mr-3 rtl:ml-3" aria-hidden="true" />+ <Icon+ name={item.icon}+ className="h-5 w-5 shrink-0 ltr:mr-3 rtl:ml-3"+ aria-hidden="true"+ />)}{isLocaleReady ? t(item.name) : <SkeletonText />}</span>- <Icon name={isExpanded ? "chevron-up" : "chevron-down"} className="text-subtle h-5 w-5" />+ <Icon+ name={isExpanded ? "chevron-up" : "chevron-down"}+ className="text-subtle h-5 w-5"+ /></button>{isExpanded && item.child && (<ul className="bg-subtle">@@ -307,7 +359,8 @@ export const MobileNavigationMoreItem: React.FC<{<li key={childItem.name} className="border-subtle border-t"><Linkhref={childItem.href}- className="hover:bg-cal-muted flex items-center p-4 pl-12 transition">+ className="hover:bg-cal-muted flex items-center p-4 pl-12 transition"+ ><span className="text-default font-medium">{isLocaleReady ? t(childItem.name) : <SkeletonText />}</span>@@ -318,10 +371,17 @@ export const MobileNavigationMoreItem: React.FC<{)}</>) : (- <Link href={item.href} className="hover:bg-subtle flex items-center justify-between p-5 transition">+ <Link+ href={item.href}+ className="hover:bg-subtle flex items-center justify-between p-5 transition"+ ><span className="text-default flex items-center font-semibold ">{item.icon && (- <Icon name={item.icon} className="h-5 w-5 shrink-0 ltr:mr-3 rtl:ml-3" aria-hidden="true" />+ <Icon+ name={item.icon}+ className="h-5 w-5 shrink-0 ltr:mr-3 rtl:ml-3"+ aria-hidden="true"+ />)}{isLocaleReady ? t(item.name) : <SkeletonText />}</span>diff --git a/apps/web/modules/users/components/UserTable/EditSheet/EditUserSheet.tsx b/apps/web/modules/users/components/UserTable/EditSheet/EditUserSheet.tsxindex 451d1d3db31..954d9fc47bf 100644--- a/apps/web/modules/users/components/UserTable/EditSheet/EditUserSheet.tsx+++ b/apps/web/modules/users/components/UserTable/EditSheet/EditUserSheet.tsx@@ -6,7 +6,13 @@ import { WEBAPP_URL } from "@calcom/lib/constants";import { useLocale } from "@calcom/lib/hooks/useLocale";import { trpc } from "@calcom/trpc/react";import { Avatar } from "@calcom/ui/components/avatar";-import { Sheet, SheetContent, SheetBody, SheetHeader, SheetFooter } from "@calcom/ui/components/sheet";+import {+ Sheet,+ SheetContent,+ SheetBody,+ SheetHeader,+ SheetFooter,+} from "@calcom/ui/components/sheet";import { Loader } from "@calcom/ui/components/skeleton";import type { UserTableAction, UserTableState } from "../types";@@ -36,15 +42,19 @@ export function EditUserSheet({const { t } = useLocale();const { user: selectedUser } = state.editSheet;const orgBranding = useOrgBranding();- const [editMode, setEditMode] = useEditMode((state) => [state.editMode, state.setEditMode], shallow);- const { data: loadedUser, isPending } = trpc.viewer.organizations.getUser.useQuery(- {- userId: selectedUser?.id,- },- {- enabled: !!selectedUser?.id,- }+ const [editMode, setEditMode] = useEditMode(+ (state) => [state.editMode, state.setEditMode],+ shallow);+ const { data: loadedUser, isPending } =+ trpc.viewer.organizations.getUser.useQuery(+ {+ userId: selectedUser?.id,+ },+ {+ enabled: !!selectedUser?.id,+ }+ );const { data: usersAttributes, isPending: usersAttributesPending } =trpc.viewer.attributes.getByUserId.useQuery(@@ -57,11 +67,15 @@ export function EditUserSheet({});- const avatarURL = `${orgBranding?.fullDomain ?? WEBAPP_URL}/${loadedUser?.username}/avatar.png`;+ const avatarURL = `${orgBranding?.fullDomain ?? WEBAPP_URL}/${+ loadedUser?.username+ }/avatar.png`;- const schedulesNames = loadedUser?.schedules && loadedUser?.schedules.map((s) => s.name);+ const schedulesNames =+ loadedUser?.schedules && loadedUser?.schedules.map((s) => s.name);const teamNames =- loadedUser?.teams && loadedUser?.teams.map((t) => `${t.name} ${!t.accepted ? "(pending)" : ""}`);+ loadedUser?.teams &&+ loadedUser?.teams.map((t) => `${t.name} ${!t.accepted ? "(pending)" : ""}`);return (<Sheet@@ -69,19 +83,25 @@ export function EditUserSheet({onOpenChange={() => {setEditMode(false);dispatch({ type: "CLOSE_MODAL" });- }}>+ }}+ ><SheetContent className="bg-default">{!isPending && loadedUser ? (<>{!editMode ? (<><SheetHeader showCloseButton={false} className="w-full">- <div className="border-sublte bg-default w-full rounded-xl border p-4">+ <div className="border-subtle bg-default w-full rounded-xl border p-4"><OrganizationBanner /><div className="bg-default ml-3 w-fit translate-y-[-50%] rounded-full p-1 ring-1 ring-[#0000000F]">- <Avatar asChild size="lg" alt={`${loadedUser?.name} avatar`} imageSrc={avatarURL} />+ <Avatar+ asChild+ size="lg"+ alt={`${loadedUser?.name} avatar`}+ imageSrc={avatarURL}+ /></div>- <h2 className="text-emphasis font-sans text-2xl font-semibold">+ <h2 className="text-emphasis font-sans text-2xl font-semibold -mt-8">{loadedUser?.name || "Nameless User"}</h2><p className="text-subtle max-h-[3em] overflow-hidden text-ellipsis text-sm font-normal">@@ -91,49 +111,79 @@ export function EditUserSheet({</SheetHeader><SheetBody className="stack-y-4 flex flex-col p-4"><div className="stack-y-4 mb-4 flex flex-col">- <h3 className="text-emphasis mb-1 text-base font-semibold">{t("profile")}</h3>+ <h3 className="text-emphasis mb-1 text-base font-semibold">+ {t("profile")}+ </h3><DisplayInfolabel="Cal"value={removeProtocol(- `${orgBranding?.fullDomain ?? WEBAPP_URL}/${loadedUser?.username}`+ `${orgBranding?.fullDomain ?? WEBAPP_URL}/${+ loadedUser?.username+ }`)}icon="external-link"/>- <DisplayInfo label={t("email")} value={loadedUser?.email ?? ""} icon="at-sign" />- <DisplayInfo label={t("role")} value={[loadedUser?.role ?? ""]} icon="fingerprint" />- <DisplayInfo label={t("timezone")} value={loadedUser?.timeZone ?? ""} icon="clock" />+ <DisplayInfo+ label={t("email")}+ value={loadedUser?.email ?? ""}+ icon="at-sign"+ />+ <DisplayInfo+ label={t("role")}+ value={[loadedUser?.role ?? ""]}+ icon="fingerprint"+ />+ <DisplayInfo+ label={t("timezone")}+ value={loadedUser?.timeZone ?? ""}+ icon="clock"+ /><DisplayInfolabel={t("teams")}- value={!teamNames || teamNames.length === 0 ? "" : teamNames}+ value={+ !teamNames || teamNames.length === 0 ? "" : teamNames+ }icon="users"coloredBadges/><DisplayInfolabel={t("availability")}- value={!schedulesNames || schedulesNames.length === 0 ? "" : schedulesNames}+ value={+ !schedulesNames || schedulesNames.length === 0+ ? ""+ : schedulesNames+ }icon="calendar"/></div>- {canViewAttributes && usersAttributes && usersAttributes?.length > 0 && (- <div className="mt-4 flex flex-col">- <h3 className="text-emphasis mb-5 text-base font-semibold">{t("attributes")}</h3>- <div className="stack-y-4 flex flex-col">- {usersAttributes.map((attribute, index) => (- <>- <DisplayInfo- key={index}- label={attribute.name}- value={- ["TEXT", "NUMBER", "SINGLE_SELECT"].includes(attribute.type)- ? attribute.options[0].value- : attribute.options.map((option) => option.value)- }- />- </>- ))}+ {canViewAttributes &&+ usersAttributes &&+ usersAttributes?.length > 0 && (+ <div className="mt-4 flex flex-col">+ <h3 className="text-emphasis mb-5 text-base font-semibold">+ {t("attributes")}+ </h3>+ <div className="stack-y-4 flex flex-col">+ {usersAttributes.map((attribute, index) => (+ <>+ <DisplayInfo+ key={index}+ label={attribute.name}+ value={+ ["TEXT", "NUMBER", "SINGLE_SELECT"].includes(+ attribute.type+ )+ ? attribute.options[0].value+ : attribute.options.map(+ (option) => option.value+ )+ }+ />+ </>+ ))}+ </div></div>- </div>- )}+ )}</SheetBody><SheetFooter><SheetFooterControlsdiff --git a/apps/web/modules/users/components/UserTable/UserListTable.tsx b/apps/web/modules/users/components/UserTable/UserListTable.tsxindex 3d85807ca36..139cd04b367 100644--- a/apps/web/modules/users/components/UserTable/UserListTable.tsx+++ b/apps/web/modules/users/components/UserTable/UserListTable.tsx@@ -95,7 +95,10 @@ const initalColumnVisibility = {actions: true,};-function reducer(state: UserTableState, action: UserTableAction): UserTableState {+function reducer(+ state: UserTableState,+ action: UserTableAction+): UserTableState {switch (action.type) {case "SET_CHANGE_MEMBER_ROLE_ID":return { ...state, changeMemberRole: action.payload };@@ -143,7 +146,11 @@ function UserListTable(props: UserListTableProps): JSX.Element | null {const pathname = usePathname();if (!pathname) return null;return (- <DataTableProvider tableIdentifier={pathname} useSegments={useSegments} defaultPageSize={25}>+ <DataTableProvider+ tableIdentifier={pathname}+ useSegments={useSegments}+ defaultPageSize={25}+ ><UserListTableContent {...props} /></DataTableProvider>);@@ -305,12 +312,13 @@ function UserListTableContent({size: 200,header: t("members"),cell: ({ row }: CellContext<UserTableUser, unknown>) => {- const { username, email, avatarUrl } = row.original;+ const { username, name, email, avatarUrl } = row.original;+ const displayName = name || username || "No username";return (<div className="flex items-center gap-2"><Avatarsize="sm"- alt={username || email}+ alt={displayName}imageSrc={getUserAvatarUrl({avatarUrl,})}@@ -318,12 +326,14 @@ function UserListTableContent({<div className=""><divdata-testid={`member-${username}-username`}- className="text-emphasis text-sm font-medium leading-none">- {username || "No username"}+ className="text-emphasis text-sm font-medium leading-none"+ >+ {displayName}</div><divdata-testid={`member-${username}-email`}- className="text-subtle mt-1 text-sm leading-none">+ className="text-subtle mt-1 text-sm leading-none"+ >{email}</div></div>@@ -352,7 +362,8 @@ function UserListTableContent({variant={roleVariant}onClick={() => {table.getColumn("role")?.setFilterValue([role]);- }}>+ }}+ >{roleName}</Badge>);@@ -379,7 +390,8 @@ function UserListTableContent({data-testid={`email-${email.replace("@", "")}-pending`}onClick={() => {table.getColumn("role")?.setFilterValue(["PENDING"]);- }}>+ }}+ >{t("pending")}</Badge>)}@@ -490,7 +502,8 @@ function UserListTableContent({const permissionsForUser = {canEdit:- ((permissionsRaw.canEdit ?? false) || (permissions?.canEditAttributesForUser ?? false)) &&+ ((permissionsRaw.canEdit ?? false) ||+ (permissions?.canEditAttributesForUser ?? false)) &&user.accepted &&!isSelf,canRemove: (permissionsRaw.canRemove ?? false) && !isSelf,@@ -501,7 +514,8 @@ function UserListTableContent({!!org?.canAdminImpersonate &&(permissionsRaw.canImpersonate ?? false),canLeave: user.accepted && isSelf,- canResendInvitation: (permissionsRaw.canResendInvitation ?? false) && !user.accepted,+ canResendInvitation:+ (permissionsRaw.canResendInvitation ?? false) && !user.accepted,};return (@@ -559,7 +573,9 @@ function UserListTableContent({})));default: {- const attribute = facetedTeamValues.attributes.find((attr) => attr.id === columnId);+ const attribute = facetedTeamValues.attributes.find(+ (attr) => attr.id === columnId+ );if (attribute) {return convertFacetedValuesToMap(attribute?.options.map(({ value }) => ({@@ -619,12 +635,19 @@ function UserListTableContent({}const ATTRIBUTE_IDS = attributes?.map((attr) => attr.id) ?? [];- const csvRaw = generateCsvRawForMembersTable(headers, allRows, ATTRIBUTE_IDS, domain);+ const csvRaw = generateCsvRawForMembersTable(+ headers,+ allRows,+ ATTRIBUTE_IDS,+ domain+ );if (!csvRaw) {throw new Error("Generating CSV file failed.");}- const filename = `${org.name}_${new Date().toISOString().split("T")[0]}.csv`;+ const filename = `${org.name}_${+ new Date().toISOString().split("T")[0]+ }.csv`;downloadAsCsv(csvRaw, filename);} catch (error) {showToast(`Error: ${error}`, "error");@@ -654,7 +677,8 @@ function UserListTableContent({<DataTableSegment.SaveButton /><DataTableSegment.Select /></>- }>+ }+ >{numberOfSelectedRows >= 2 && dynamicLinkVisible && (<DataTableSelectionBar.Root className="bottom-[7.3rem]! md:bottom-32!"><DynamicLink table={table} domain={domain} />@@ -667,17 +691,23 @@ function UserListTableContent({</p>{!isPlatformUser && (<>- {permissions?.canChangeMemberRole && <TeamListBulkAction table={table} />}+ {permissions?.canChangeMemberRole && (+ <TeamListBulkAction table={table} />+ )}{numberOfSelectedRows >= 2 && (<DataTableSelectionBar.Buttoncolor="secondary"onClick={() => setDynamicLinkVisible(!dynamicLinkVisible)}- icon="handshake">+ icon="handshake"+ >{t("group_meeting")}</DataTableSelectionBar.Button>)}{(permissions?.canEditAttributesForUser ?? adminOrOwner) && (- <MassAssignAttributesBulkAction table={table} filters={columnFilters} />+ <MassAssignAttributesBulkAction+ table={table}+ filters={columnFilters}+ />)}{(permissions?.canChangeMemberRole ?? adminOrOwner) && (<EventTypesList table={table} orgTeams={teams} />@@ -686,7 +716,9 @@ function UserListTableContent({)}{(permissions?.canRemove ?? adminOrOwner) && (<DeleteBulkUsers- users={table.getSelectedRowModel().flatRows.map((row) => row.original)}+ users={table+ .getSelectedRowModel()+ .flatRows.map((row) => row.original)}onRemove={() => table.toggleAllPageRowsSelected(false)}/>)}@@ -694,10 +726,18 @@ function UserListTableContent({)}</DataTableWrapper>- {state.deleteMember.showModal && <DeleteMemberModal state={state} dispatch={dispatch} />}- {state.inviteMember.showModal && <InviteMemberModal dispatch={dispatch} />}- {state.impersonateMember.showModal && <ImpersonationMemberModal dispatch={dispatch} state={state} />}- {state.changeMemberRole.showModal && <ChangeUserRoleModal dispatch={dispatch} state={state} />}+ {state.deleteMember.showModal && (+ <DeleteMemberModal state={state} dispatch={dispatch} />+ )}+ {state.inviteMember.showModal && (+ <InviteMemberModal dispatch={dispatch} />+ )}+ {state.impersonateMember.showModal && (+ <ImpersonationMemberModal dispatch={dispatch} state={state} />+ )}+ {state.changeMemberRole.showModal && (+ <ChangeUserRoleModal dispatch={dispatch} state={state} />+ )}{state.editSheet.showModal && (<EditUserSheetdispatch={dispatch}@@ -717,7 +757,8 @@ function UserListTableContent({StartIcon="file-down"loading={isDownloading}onClick={() => handleDownload()}- data-testid="export-members-button">+ data-testid="export-members-button"+ >{t("download")}</DataTableToolbar.CTA>{(permissions?.canInvite ?? adminOrOwner) && (@@ -734,7 +775,8 @@ function UserListTableContent({});posthog.capture("add_organization_member_clicked");}}- data-testid="new-organization-member-button">+ data-testid="new-organization-member-button"+ >{t("add")}</DataTableToolbar.CTA>)}diff --git a/apps/web/modules/users/lib/UserListTableUtils.test.ts b/apps/web/modules/users/lib/UserListTableUtils.test.tsindex 115ad49c618..4e6618b1a40 100644--- a/apps/web/modules/users/lib/UserListTableUtils.test.ts+++ b/apps/web/modules/users/lib/UserListTableUtils.test.ts@@ -61,6 +61,7 @@ describe("generate Csv for Org Users Table", () => {const mockUser: UserTableUser = {id: 1,username: "testuser",+ name: "Test User",email: "[email protected]",timeZone: "UTC",role: MembershipRole.MEMBER,diff --git a/apps/web/playwright/event-types.e2e.ts b/apps/web/playwright/event-types.e2e.tsindex afabbf3bd97..0eb357fcce3 100644--- a/apps/web/playwright/event-types.e2e.ts+++ b/apps/web/playwright/event-types.e2e.ts@@ -223,7 +223,7 @@ test.describe("Event Types tests", () => {await gotoFirstEventType(page);await page.getByTestId("location-select").click();- await page.locator(`text="Organizer Phone Number"`).click();+ await page.getByTestId("location-select-item-userPhone").click();const locationInputName = "locations[0].hostPhoneNumber";await page.locator(`input[name="${locationInputName}"]`).waitFor();await page.locator(`input[name="${locationInputName}"]`).clear();@@ -367,7 +367,7 @@ test.describe("Event Types tests", () => {// Add Multiple Organizer Phone Number optionsawait page.getByTestId("location-select").last().click();- await page.locator(`text="Organizer Phone Number"`).click();+ await page.getByTestId("location-select-item-userPhone").click();const organizerPhoneNumberInputName = (idx: number) => `locations[${idx}].hostPhoneNumber`;@@ -380,7 +380,7 @@ test.describe("Event Types tests", () => {await page.locator("[data-testid=add-location]").click();const testPhoneInputValue2 = "9188888888";- await page.locator(`text="Organizer Phone Number"`).last().click();+ await page.getByTestId("location-select-item-userPhone").last().click();await page.locator(`input[name="${organizerPhoneNumberInputName(1)}"]`).waitFor();await page.locator(`input[name="${organizerPhoneNumberInputName(1)}"]`).fill(testPhoneInputValue2);await checkDisplayLocation(page);@@ -629,9 +629,8 @@ test.describe("Event Types tests", () => {});const selectAttendeePhoneNumber = async (page: Page) => {- const locationOptionText = "Attendee Phone Number";await page.getByTestId("location-select").click();- await page.locator(`text=${locationOptionText}`).click();+ await page.getByTestId("location-select-item-phone").click();};/**diff --git a/apps/web/playwright/insights.e2e.ts b/apps/web/playwright/insights.e2e.tsindex fa358eef9f3..aa00615b814 100644--- a/apps/web/playwright/insights.e2e.ts+++ b/apps/web/playwright/insights.e2e.ts@@ -254,20 +254,20 @@ test.describe("Insights", async () => {const expectedChartTitles = ["Events","Performance",- "Event Trends",- "Bookings by Hour",- "Average Event Duration",- "Most Bookings Scheduled",- "Least Bookings Scheduled",- "Most Bookings Completed",- "Least Bookings Completed",- "Most Cancelled",- "Most No-Show",- "Recent No-Show Guests",- "Highest Rated",- "Lowest Rated",- "Recent Ratings",- "Popular Events",+ "Event trends",+ "Bookings by hour",+ "Average event duration",+ "Most bookings scheduled",+ "Least bookings scheduled",+ "Most bookings completed",+ "Least bookings completed",+ "Most cancelled",+ "Most no-show",+ "Recent no-show guests",+ "Highest rated",+ "Lowest rated",+ "Recent ratings",+ "Popular events",];for (const title of expectedChartTitles) {diff --git a/apps/web/playwright/manage-booking-questions.e2e.ts b/apps/web/playwright/manage-booking-questions.e2e.tsindex ad157a0974b..28d748f6399 100644--- a/apps/web/playwright/manage-booking-questions.e2e.ts+++ b/apps/web/playwright/manage-booking-questions.e2e.ts@@ -759,7 +759,7 @@ test.describe("Text area min and max characters text", () => {await element.click();const locatorForSelect = page.locator("[id=test-field-type]").nth(0);await locatorForSelect.click();- await locatorForSelect.locator(`text="Long Text"`).click();+ await page.getByTestId("select-option-textarea").click();await page.fill('[name="name"]', questionName);await page.fill('[name="label"]', questionName);diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.jsonindex da9eb999044..2e8e699d4fc 100644--- a/apps/web/public/static/locales/en/common.json+++ b/apps/web/public/static/locales/en/common.json@@ -1,15 +1,15 @@{"identity_provider": "Identity provider",- "trial_days_left": "You have $t(day, {\"count\": {{days}} }) left on your PRO trial",+ "trial_days_left": "You have $t(day, {\"count\": {{days}} }) left on your pro trial","day_one": "{{count}} day","day_other": "{{count}} days","second_one": "{{count}} second","second_other": "{{count}} seconds","upgrade_now": "Upgrade now","untitled": "Untitled",- "accept_invitation": "Accept Invitation",- "max_characters": "Max. Characters",- "min_characters": "Min. Characters",+ "accept_invitation": "Accept invitation",+ "max_characters": "Max. characters",+ "min_characters": "Min. characters","min_characters_required": "Min. {{count}} characters required","max_characters_allowed": "Max. {{count}} characters allowed","calcom_explained": "{{appName}} provides scheduling infrastructure for absolutely everyone.",@@ -19,14 +19,14 @@"verify_email_subject": "{{appName}}: Verify your account","verify_email_subject_verifying_email": "{{appName}}: Verify your email","check_your_email": "Check your email",- "old_email_address": "Old Email",- "new_email_address": "New Email",+ "old_email_address": "Old email",+ "new_email_address": "New email","verify_email_page_body": "We've sent an email to {{email}}. It is important to verify your email address to guarantee the best email and calendar deliverability from {{appName}}.","verify_email_banner_body": "Verify your email address to guarantee the best email and calendar deliverability","verify_email_email_header": "Verify your email address","verify_email_button": "Verify email","cal_ai_assistant": "Assistant",- "send_cal_video_transcription_emails": "Send Cal Video Transcription Emails",+ "send_cal_video_transcription_emails": "Send Cal Video transcription emails","description_send_cal_video_transcription_emails": "Send emails with the transcription of the Cal Video after the meeting ends. (Requires a paid plan)","verify_email_change_description": "You have recently requested to change the email address you use to log into your {{appName}} account. Please click the button below to confirm your new email address.","verify_email_change_success_toast": "Updated your email to {{email}}",@@ -47,24 +47,24 @@"event_cancelled_subject": "Canceled: {{title}} at {{date}}","event_reassigned_subject": "Reassigned: {{title}} at {{date}}","event_request_declined": "Your event request has been declined",- "customize_calvideo_settings": "Customize Cal Video Settings",+ "customize_calvideo_settings": "Customize Cal Video settings","calvideo_settings_description": "Configure video meeting preferences including recording permissions for hosts and attendees.","disable_recording_for_guests": "Disable recording for guests","enable_automatic_transcription": "Enable automatic transcription after joining the meeting","enable_automatic_recording": "Enable automatic recording after organizer joins the meeting",- "video_options": "Video Options",+ "video_options": "Video options","edit_event": "Edit event",- "view_session_details": "View Session Details",- "meeting_session_details": "Meeting Session Details",- "meeting_session": "Meeting Session",+ "view_session_details": "View session details",+ "meeting_session_details": "Meeting session details",+ "meeting_session": "Meeting session","session_id": "Session ID",- "max_participants": "Max Participants",+ "max_participants": "Max participants","unlimited": "Unlimited","ongoing": "Ongoing","ended": "Ended","participants": "Participants",- "anonymous_user": "Anonymous User",- "session_duration": "Session Duration",+ "anonymous_user": "Anonymous user",+ "session_duration": "Session duration","no_meeting_sessions_found": "No meeting sessions found","not_available": "Not available","disable_recording_for_organizer": "Disable recording for organizer",@@ -114,30 +114,30 @@"refund_failed": "The refund for the event {{eventType}} with {{userName}} on {{date}} failed.","check_with_provider_and_user": "Please check with your payment provider and {{user}} how to handle this.","a_refund_failed": "A refund failed",- "awaiting_payment_subject": "Awaiting Payment: {{title}} on {{date}}",+ "awaiting_payment_subject": "Awaiting payment: {{title}} on {{date}}","meeting_awaiting_payment": "Your meeting is awaiting payment",- "dark_theme_contrast_error": "Dark Theme color doesn't pass contrast check. We recommend you change this colour so your buttons will be more visible.",- "light_theme_contrast_error": "Light Theme color doesn't pass contrast check. We recommend you change this colour so your buttons will be more visible.",- "event_type_color_light_theme_contrast_error": "Light Theme color doesn't pass contrast check. We recommend you change this color so your event types color will be more visible.",- "event_type_color_dark_theme_contrast_error": "Dark Theme color doesn't pass contrast check. We recommend you change this color so your event types color will be more visible.",+ "dark_theme_contrast_error": "Dark theme color doesn't pass contrast check. We recommend you change this colour so your buttons will be more visible.",+ "light_theme_contrast_error": "Light theme color doesn't pass contrast check. We recommend you change this colour so your buttons will be more visible.",+ "event_type_color_light_theme_contrast_error": "Light theme color doesn't pass contrast check. We recommend you change this color so your event types color will be more visible.",+ "event_type_color_dark_theme_contrast_error": "Dark theme color doesn't pass contrast check. We recommend you change this color so your event types color will be more visible.","payment_not_created_error": "Payment could not be created",- "couldnt_charge_card_error": "Could not charge card for Payment",+ "couldnt_charge_card_error": "Could not charge card for payment","no_available_users_found_error": "No available users found. Could you try another time slot?","timeslot_unavailable_book_a_new_time": "The selected time slot is no longer available. <0>Please select a new time</0>","timeslot_unavailable_short": "Taken","time_shift": "Time shift",- "just_connected_description": "You’ve just connected. Please book from above slots or retry later.",+ "just_connected_description": "You've just connected. Please book from above slots or retry later.","please_try_again_later_or_book_another_slot": "You've just tried connecting now. Please try again later in {{remaining}} minutes or book another slot from the booking page.","unavailable_timeslot_title": "Unavailable timeslot","booking_time_out_of_bounds_error": "The event type cannot be booked at this time. Could you try another time slot?","request_body_end_time_internal_error": "Internal Error. Request body does not contain end time",- "create_calendar_event_error": "Unable to create Calendar event in Organizer's calendar",- "update_calendar_event_error": "Unable to update Calendar event.",- "delete_calendar_event_error": "Unable to delete Calendar event.",+ "create_calendar_event_error": "Unable to create calendar event in organizer's calendar",+ "update_calendar_event_error": "Unable to update calendar event.",+ "delete_calendar_event_error": "Unable to delete calendar event.","already_signed_up_for_this_booking_error": "You are already signed up for this booking.","hosts_unavailable_for_booking": "Some of the hosts are unavailable for booking.","fixed_hosts_unavailable_for_booking": "Some of the fixed hosts are unavailable for booking.",- "round_robin_host_unavailable_for_booking": "Round Robin host is unavailable for booking.",+ "round_robin_host_unavailable_for_booking": "Round robin host is unavailable for booking.","help": "Help","price": "Price","paid": "Paid",@@ -147,17 +147,17 @@"payment": "Payment","missing_card_fields": "Missing card fields","pay_now": "Pay now",- "general_prompt": "General Prompt",+ "general_prompt": "General prompt","transcription_powered_by_ai": "Transcription powered by AI","start_or_stop_recording": "Start or stop recording",- "begin_message": "Begin Message",+ "begin_message": "Begin message","codebase_has_to_stay_opensource": "The codebase has to stay open source, whether it was modified or not","cannot_repackage_codebase": "You can not repackage or sell the codebase","acquire_license": "Acquire a commercial license to remove these terms by emailing","terms_summary": "Summary of terms",- "open_env": "Open .env and agree to our License",+ "open_env": "Open .env and agree to our license","env_changed": "I've changed my .env",- "accept_license": "Accept License",+ "accept_license": "Accept license","still_waiting_for_approval": "An event is still waiting for approval","event_is_still_waiting": "Event request is still waiting: {{attendeeName}} - {{date}} - {{eventType}}","no_result_found_for": "No result found for \"{{searchTerm}}\"",@@ -169,7 +169,7 @@"new_event_request": "New event request: {{attendeeName}} - {{date}} - {{eventType}}","confirm_or_reject_request": "Confirm or reject the request","check_bookings_page_to_confirm_or_reject": "Check your bookings page to confirm or reject the booking.",- "check_in_assistant": "Check-in Assistant",+ "check_in_assistant": "Check-in assistant","check_in_assistant_description": "Makes an outbound call to check if scheduled appointment works or if you want to reschedule.","create_your_own_prompt": "Create your own prompt and use it to make an outbound call.","event_awaiting_approval": "An event is waiting for your approval",@@ -178,13 +178,13 @@"someone_requested_password_reset": "Someone has requested a link to change your password.","password_reset_email_sent": "If this email exists in our system, you should receive a reset email.","password_reset_instructions": "If you didn't request this, you can safely ignore this email and your password will not be changed.",- "event_awaiting_approval_subject": "Awaiting Approval: {{title}} at {{date}}",+ "event_awaiting_approval_subject": "Awaiting approval: {{title}} at {{date}}","event_still_awaiting_approval": "An event is still waiting for your approval",- "booking_submitted_subject": "Booking Submitted: {{title}} at {{date}}",- "download_recording_subject": "Download Recording: {{title}} at {{date}}",- "download_transcript_email_subject": "Download Transcript: {{title}} at {{date}}",+ "booking_submitted_subject": "Booking submitted: {{title}} at {{date}}",+ "download_recording_subject": "Download recording: {{title}} at {{date}}",+ "download_transcript_email_subject": "Download transcript: {{title}} at {{date}}","download_your_recording": "Download your recording",- "download_your_transcripts": "Download your Transcripts",+ "download_your_transcripts": "Download your transcripts","your_meeting_has_been_booked": "Your meeting has been booked","event_type_has_been_rescheduled_on_time_date": "Your {{title}} has been rescheduled to {{date}}.","event_type_has_been_updated": "Your {{title}} has been updated.",@@ -207,26 +207,26 @@"need_to_make_a_change": "Need to make a change?","new_event_scheduled": "A new event has been scheduled.","new_event_scheduled_recurring": "A new recurring event has been scheduled.",- "invitee_email": "Invitee Email",- "invitee_timezone": "Invitee Time Zone",+ "invitee_email": "Invitee email",+ "invitee_timezone": "Invitee timezone","time_left": "Time left",- "event_type": "Event Type",- "duplicate_event_type": "Duplicate Event Type",- "enter_meeting": "Enter Meeting",+ "event_type": "Event type",+ "duplicate_event_type": "Duplicate event type",+ "enter_meeting": "Enter meeting","video_call_provider": "Video call provider","meeting_id": "Meeting ID",- "meeting_password": "Meeting Password",+ "meeting_password": "Meeting password","meeting_url": "Meeting URL","meeting_url_not_found": "Meeting URL not found","token_not_found": "Token not found",- "some_other_host_already_accepted_the_meeting": "Some other host already accepted the meeting. Do you still want to join? <0>Continue to Meeting</0>",+ "some_other_host_already_accepted_the_meeting": "Some other host already accepted the meeting. Do you still want to join? <0>Continue to meeting</0>","meeting_request_rejected": "Your meeting request has been rejected","rejected_event_type_with_organizer": "Rejected: {{eventType}} with {{organizer}} on {{date}}","hi": "Hi","join_team": "Join team","manage_this_team": "Manage this team","team_info": "Team Info",- "join_meeting": "Join Meeting",+ "join_meeting": "Join meeting","join_platform": "Join {{platform}}","request_another_invitation_email": "If you prefer not to use {{toEmail}} as your {{appName}} email or already have a {{appName}} account, please request another invitation to that email.","you_have_been_invited": "You have been invited to join the team {{teamName}}",@@ -235,11 +235,11 @@"hidden_team_member_message": "Your seat is not paid for, either Upgrade to PRO or let the team owner know they can pay for your seat.","hidden_team_owner_message": "You need a pro account to use teams, you are hidden until you upgrade.","link_expires": "p.s. It expires in {{expiresIn}} hours.",- "upgrade_to_per_seat": "Upgrade to Per-Seat",+ "upgrade_to_per_seat": "Upgrade to per-seat","seat_options_doesnt_support_confirmation": "Seats option doesn't support confirmation requirement",- "multilocation_doesnt_support_seats": "Multiple Locations doesn't support seats option",+ "multilocation_doesnt_support_seats": "Multiple locations doesn't support seats option","no_show_fee_doesnt_support_seats": "No show fee doesn't support seats option",- "seats_option_doesnt_support_multi_location": "Seats option doesn't support Multiple Locations",+ "seats_option_doesnt_support_multi_location": "Seats option doesn't support multiple locations","team_upgrade_seats_details": "Of the {{memberCount}} members in your team, {{unpaidCount}} seat(s) are unpaid. At ${{seatPrice}}/month per seat the estimated total cost of your membership is ${{totalCost}}/month.","team_upgrade_banner_description": "You haven't finished your team setup. Your team \"{{teamName}}\" needs to be upgraded.","upgrade_banner_action": "Upgrade here",@@ -251,12 +251,12 @@"there": "there","forgot_your_password_calcom": "Forgot your password? - {{appName}}","delete_webhook_confirmation_message": "Are you sure you want to delete this webhook? You will no longer receive {{appName}} meeting data at a specified URL, in real-time, when an event is scheduled or canceled.",- "confirm_delete_webhook": "Yes, delete webhook",- "edit_webhook": "Edit Webhook",- "delete_webhook": "Delete Webhook",- "webhook_status": "Webhook Status",- "webhook_enabled": "Webhook Enabled",- "webhook_disabled": "Webhook Disabled",+ "confirm_delete_webhook": "Delete webhook",+ "edit_webhook": "Edit webhook",+ "delete_webhook": "Delete webhook",+ "webhook_status": "Webhook status",+ "webhook_enabled": "Webhook enabled",+ "webhook_disabled": "Webhook disabled","webhook_response": "Webhook response","webhook_test": "Webhook test","webhook_update_form": "Webhook update form",@@ -267,7 +267,7 @@"webhook_removed_successfully": "Webhook removed successfully!","subscription_needed": "Subscription needed","subscription_needed_description": "You are not subscribed to a Platform plan.",- "payload_template": "Payload Template",+ "payload_template": "Payload template","dismiss": "Dismiss","no_data_yet": "No data yet","ping_test": "Ping test",@@ -275,10 +275,10 @@"upcoming": "Upcoming","recurring": "Recurring","past": "Past",- "choose_a_file": "Choose a file...",+ "choose_a_file": "Choose a file","upload_image": "Upload image","upload_target": "Upload {{target}}",- "no_target": "No {{target}}",+ "no_target": "You don't currently have a {{target}}","slide_zoom_drag_instructions": "Slide to zoom, drag to reposition","view_notifications": "View notifications","view_public_page": "View public page",@@ -297,7 +297,7 @@"2fa_scan_image_or_use_code": "Scan the image below with the authenticator app on your phone or manually enter the text code instead.","text": "Text","your_phone_number": "Your Phone Number",- "multiline_text": "Multiline Text",+ "multiline_text": "Multiline text","number": "Number","checkbox": "Checkbox","is_required": "Is required",@@ -335,15 +335,15 @@"check_spelling_mistakes_or_go_back": "Check for spelling mistakes or go back to the previous page.","404_page_not_found": "404: This page could not be found.","booker_event_not_found": "We could not find the event you are trying to book.",- "getting_started": "Getting Started",- "15min_meeting": "15 Min Meeting",- "30min_meeting": "30 Min Meeting",+ "getting_started": "Getting started",+ "15min_meeting": "15 min meeting",+ "30min_meeting": "30 min meeting","secret": "Secret","leave_blank_to_remove_secret": "Leave blank to remove secret","webhook_secret_key_description": "Ensure your server is only receiving the expected {{appName}} requests for security reasons",- "secret_meeting": "Secret Meeting",+ "secret_meeting": "Secret meeting","login_instead": "Login instead",- "create_account": "Create Account",+ "create_account": "Create account","get_started": "Get started","confirm_password": "Confirm password","reset_your_password": "Set your new password with the instructions sent to your email address.",@@ -362,21 +362,21 @@"2fa_enter_six_digit_code": "Enter the six-digit code from your authenticator app below.","create_an_account": "Create an account","dont_have_an_account": "Don't have an account?",- "2fa_code": "Two-Factor Code",+ "2fa_code": "Two-factor code","sign_in_account": "Sign in to your account","sign_in": "Sign in","go_back_login": "Go back to the login page","error_during_login": "An error occurred when logging you in. Head back to the login screen and try again.","request_password_reset": "Send reset email","send_invite": "Send invite",- "forgot_password": "Forgot Password?",+ "forgot_password": "Forgot password?","forgot": "Forgot?","done": "Done","all_done": "All done!","all": "All","any": "Any","yours": "Your account",- "available_apps": "Available Apps",+ "available_apps": "Available apps","available_apps_lower_case": "Available apps","available_apps_desc": "View popular apps below and explore more in our <0>App Store</0>","msteams_calendar_warning_body": "Install Microsoft Teams and Microsoft Outlook Calendar together so meetings include a proper online link and professional description.",@@ -394,7 +394,7 @@"set_availbility_description": "Set schedules for the times you want to be booked.","share_a_link_or_embed": "Share a link or embed","share_a_link_or_embed_description": "Share your {{appName}} link or embed on your site.",- "availability_settings": "Availability Settings",+ "availability_settings": "Availability settings","continue_without_calendar": "Continue without calendar","continue_with": "Continue with {{appName}}","connect_your_calendar": "Connect your calendar",@@ -451,15 +451,15 @@"booking_submitted_recurring": "Your recurring meeting has been submitted","booking_confirmed": "Your booking has been confirmed","booking_confirmed_recurring": "Your recurring meeting has been confirmed",- "warning_recurring_event_payment": "Payments are not supported with Recurring Events yet",+ "warning_recurring_event_payment": "Payments are not supported with recurring events yet","warning_payment_recurring_event": "Recurring events are not supported with Payments yet","enter_new_password": "Enter the new password you'd like for your account.",- "reset_password": "Reset Password",+ "reset_password": "Reset password","change_your_password": "Change your password","show_password": "Show password","hide_password": "Hide password",- "try_again": "Try Again",- "request_is_expired": "That Request is Expired.",+ "try_again": "Try again",+ "request_is_expired": "That request is expired.","reset_instructions": "Enter the email address associated with your account and we will send you a link to reset your password.","request_is_expired_instructions": "That request is expired. Go back and enter the email associated with your account and we will send you another link to reset your password.","whoops": "Whoops",@@ -512,7 +512,7 @@"booking_already_accepted_rejected": "This booking was already accepted or rejected","go_back_home": "Go back home","or_go_back_home": "Or go back home",- "no_meeting_found": "No Meeting Found",+ "no_meeting_found": "No meeting found","no_meeting_found_description": "This meeting does not exist. Contact the meeting owner for an updated link.","no_status_bookings_yet": "No {{status}} bookings","no_status_bookings_yet_description": "You have no {{status}} bookings. {{description}}",@@ -543,6 +543,7 @@"your_day_starts_at": "Your day starts at","your_day_ends_at": "Your day ends at","launch_troubleshooter": "Launch troubleshooter",+ "launch_troubleshooter_description": "Diagnose availability issues with the troubleshooter","troubleshoot_availability": "Troubleshoot your availability to explore why your times are showing as they are.","change_available_times": "Change available times","change_your_available_times": "Change your available times",@@ -560,14 +561,14 @@"dynamic_booking": "Dynamic group links","allow_seo_indexing": "Allow search engines to access your public content","seo_indexing": "Allow search engine indexing",- "allow_browser_notifications": "Allow Browser Notifications",+ "allow_browser_notifications": "Allow browser notifications","you_have_denied_notifications": "You have denied notifications. Reset permission in browser settings to enable.",- "disable_browser_notifications": "Disable Browser Notifications",- "browser_notifications_turned_on": "Browser Notifications turned on",- "browser_notifications_turned_off": "Browser Notifications turned off",- "browser_notifications_denied": "Browser Notifications denied",+ "disable_browser_notifications": "Disable browser notifications",+ "browser_notifications_turned_on": "Browser notifications turned on",+ "browser_notifications_turned_off": "Browser notifications turned off",+ "browser_notifications_denied": "Browser notifications denied","please_allow_notifications": "Please allow notifications from the prompt",- "push_notifications": "Push Notifications",+ "push_notifications": "Push notifications","push_notifications_description": "Receive push notifications when booker submits instant meeting booking.","browser_notifications_not_supported": "Your browser does not support Push Notifications. If you are Brave user then enable `Use Google services for push messaging` Option on brave://settings/?search=push+messaging","email": "Email",@@ -575,30 +576,30 @@"full_name": "Full name","browse_api_documentation": "Browse our API documentation","leverage_our_api": "Leverage our API for full control and customizability.",- "create_webhook": "Create Webhook",- "instant_meeting": "Instant Meeting Created",- "booking_cancelled": "Booking Canceled",- "booking_rescheduled": "Booking Rescheduled",- "recording_ready": "Recording Download Link Ready",- "recording_transcription_generated": "Transcript Generated",- "booking_created": "Booking Created",- "booking_rejected": "Booking Rejected",- "booking_requested": "Booking Requested",- "booking_payment_initiated": "Booking Payment Initiated",- "meeting_ended": "Meeting Ended",- "form_submitted": "Form Submitted",+ "create_webhook": "Create webhook",+ "instant_meeting": "Instant meeting created",+ "booking_cancelled": "Booking canceled",+ "booking_rescheduled": "Booking rescheduled",+ "recording_ready": "Recording download link ready",+ "recording_transcription_generated": "Transcript generated",+ "booking_created": "Booking created",+ "booking_rejected": "Booking rejected",+ "booking_requested": "Booking requested",+ "booking_payment_initiated": "Booking payment initiated",+ "meeting_ended": "Meeting ended",+ "form_submitted": "Form submitted","form_submitted_no_event": "Form submitted, no event booked",- "booking_paid": "Booking Paid",- "ooo_created": "Out of Office Created",- "booking_no_show_updated": "Booking No-Show Updated",- "delegation_credential_error": "Delegation Credential Error",- "event_triggers": "Event Triggers",+ "booking_paid": "Booking paid",+ "ooo_created": "Out of office created",+ "booking_no_show_updated": "Booking no-show updated",+ "delegation_credential_error": "Delegation credential error",+ "event_triggers": "Event triggers","subscriber_url": "Subscriber URL","create_new_webhook": "Create a new webhook","webhooks": "Webhooks",- "team_webhooks": "Team Webhooks",+ "team_webhooks": "Team webhooks","create_new_webhook_to_account": "Create a new webhook to your account",- "new_webhook": "New Webhook",+ "new_webhook": "New webhook","receive_cal_meeting_data": "Receive {{appName}} meeting data at a specified URL, in real-time, when an event is scheduled or canceled.","receive_cal_event_meeting_data": "Receive {{appName}} meeting data at a specified URL, in real-time, when this event is scheduled or canceled.","responsive_fullscreen_iframe": "Responsive full screen iframe",@@ -630,8 +631,8 @@"code_is_incorrect": "Code is incorrect.","add_time_availability": "Add new time slot","add_an_extra_layer_of_security": "Add an extra layer of security to your account in case your password is stolen.",- "2fa": "Two-Factor Authentication",- "2fa_disabled": "Two-Factor authentication can only be enabled for email and password authentication",+ "2fa": "Two-factor authentication",+ "2fa_disabled": "Two-factor authentication can only be enabled for email and password authentication","enable_2fa": "Enable two-factor authentication","disable_2fa": "Disable two-factor authentication","disable_2fa_recommendation": "If you need to disable 2FA, we recommend re-enabling it as soon as possible.",@@ -649,11 +650,11 @@"something_doesnt_look_right": "Something doesn't look right?","please_try_again": "Please try again.","super_secure_new_password": "Your super secure new password",- "new_password": "New Password",+ "new_password": "New password","your_old_password": "Your old password",- "current_password": "Current Password",- "change_password": "Change Password",- "change_secret": "Change Secret",+ "current_password": "Current password",+ "change_password": "Change password",+ "change_secret": "Change secret","new_password_matches_old_password": "New password matches your old password. Please choose a different password.","forgotten_secret_description": "If you have lost or forgotten this secret, you can change it, but be aware that all integrations using this secret will need to be updated","current_incorrect_password": "Current password is incorrect",@@ -718,10 +719,10 @@"address": "Address","enter_address": "Enter address","in_person_attendee_address": "In Person (Attendee Address)",- "somewhere_else": "Somewhere Else",+ "somewhere_else": "Somewhere else","custom_attendee_location": "Custom attendee location",- "continue_as_guest": "Continue as Guest",- "join_as_guest": "Join as Guest",+ "continue_as_guest": "Continue as guest",+ "join_as_guest": "Join as guest","ideal_for_one_time_calls": "Ideal for one-time calls","hosts_must_use_login": "Hosts must login to cal.com and then join this meeting","invalid_guest_email": "We don't recognize this email address for this meeting. Double-check you're using the same email that received the invitation.",@@ -737,20 +738,20 @@"in_person_meeting": "In-person meeting","in_person": "In Person (Organizer Address)","link_meeting": "Link meeting",- "phone_number": "Phone Number",- "attendee_phone_number": "Attendee Phone Number",- "organizer_phone_number": "Organizer Phone Number",+ "phone_number": "Phone number",+ "attendee_phone_number": "Attendee phone number",+ "organizer_phone_number": "Organizer phone number","enter_phone_number": "Enter phone number","reschedule": "Reschedule","reschedule_this": "Reschedule instead","book_a_team_member": "Book a team member instead","or": "OR","go_back": "Go back",- "email_or_username": "Email or Username",+ "email_or_username": "Email or username","send_invite_email": "Send an invite email","role": "Role",- "edit_role": "Edit Role",- "view_role": "View Role",+ "edit_role": "Edit role",+ "view_role": "View role","edit_team": "Edit team","editing_user": "Editing user","editing_org": "Editing organization",@@ -762,17 +763,17 @@"profile": "Profile","my_team_url": "My team URL","my_teams": "My teams",- "team_name": "Team Name",+ "team_name": "Team name","your_team_name": "Your team name","team_updated_successfully": "Team updated successfully","your_team_updated_successfully": "Your team has been updated successfully.",- "your_org_updated_successfully": "Your Org has been updated successfully.",+ "your_org_updated_successfully": "Your organization has been updated successfully.","error_copying_to_clipboard": "Error copying to clipboard","about": "About","team_description": "A few sentences about your team. This will appear on your team's url page.","organization_id": "Organization ID","organization_id_copied": "Organization ID copied.",- "org_description": "A few sentences about your organization. This will appear on your organization's url page.",+ "org_description": "A few sentences about your organization. This will appear on your organization's page.","team_id": "Team ID","team_id_copied": "Team ID copied.","members": "Members",@@ -788,7 +789,7 @@"lets_create_first_administrator_user": "Let's create the first administrator user.","admin_user_created": "Administrator user setup","admin_user_created_description": "You have already created an administrator user. You can now log in to your account.",- "new_member": "New Member",+ "new_member": "New member","invite": "Invite","add_team_members": "Add team members","add_org_members": "Add members",@@ -802,8 +803,8 @@"change_member_role": "Change team member role","disable_cal_branding": "Disable {{appName}} branding","disable_cal_branding_description": "Hide all {{appName}} branding from your public pages.",- "hide_book_a_team_member": "Hide Book a Team Member Button",- "hide_book_a_team_member_description": "Hide Book a Team Member Button from your public pages.",+ "hide_book_a_team_member": "Hide book a team member button",+ "hide_book_a_team_member_description": "Hide book a team member button from your public pages.","danger_zone": "Danger zone","account_deletion_cannot_be_undone": "Be careful. Account deletion cannot be undone.","team_deletion_cannot_be_undone": "Be careful. Team deletion cannot be undone.",@@ -819,14 +820,14 @@"continue": "Continue","confirm": "Confirm","confirm_all": "Confirm all",- "disband_team": "Disband Team",+ "disband_team": "Disband team","disband_team_confirmation_message": "Are you sure you want to disband this team? Anyone who you've shared this team link with will no longer be able to book using it.",- "disband_org": "Disband Organization",+ "disband_org": "Disband organization","disband_org_confirmation_message": "Are you sure you want to disband this Org? All teams and members will be deleted.","remove_member_confirmation_message": "Are you sure you want to remove this member from the team?",- "confirm_disband_team": "Yes, disband team",- "confirm_remove_member": "Yes, remove member",- "confirm_subscription_cancellation": "Yes, cancel subscription",+ "confirm_disband_team": "Disband team",+ "confirm_remove_member": "Remove member",+ "confirm_subscription_cancellation": "Cancel subscription","cancel_subscription": "Cancel subscription","cancel_subscription_description": "Cancelling your subscription will permanently deactivate your current plan. This action cannot be undone.","remove_member": "Remove member",@@ -834,7 +835,7 @@"no_teams": "You don't have any teams yet.","no_teams_description": "Teams allow others to book events shared between your coworkers.","submit": "Submit",- "confirm_remove_attribute": "Yes, remove attribute",+ "confirm_remove_attribute": "Remove attribute","remove_attribute": "Remove attribute","remove_attribute_confirmation_message": "Are you sure you want to remove the attribute '{{name}}'? All users currently assigned to it will be unassigned.","delete": "Delete",@@ -849,7 +850,7 @@"share_event": "Would you mind booking my cal or send me your link?","copy_link_team": "Copy link to team","leave_team": "Leave team",- "confirm_leave_team": "Yes, leave team",+ "confirm_leave_team": "Leave team","leave_team_confirmation_message": "Are you sure you want to leave this team? You will no longer be able to book using it.","user_from_team": "{{user}} from {{team}}","preview": "Preview",@@ -859,9 +860,9 @@"link_shared": "Link shared!","title": "Title","description": "Description",- "apps_status": "Apps Status",+ "apps_status": "Apps status","quick_video_meeting": "A quick video meeting.",- "scheduling_type": "Scheduling Type",+ "scheduling_type": "Scheduling type","preview_team": "Preview team","collective": "Collective","collective_description": "Schedule meetings when all selected team members are available.",@@ -875,19 +876,19 @@"minutes": "Minutes","use_cal_ai_to_make_call_description": "Use Cal.ai to get an AI powered phone number or make calls to guests.","termination_uri": "Termination URI",- "sip_trunk_username": "SIP Trunk User Name",- "sip_trunk_password": "SIP Trunk Password",+ "sip_trunk_username": "SIP trunk user name",+ "sip_trunk_password": "SIP trunk password","nickname": "Nickname",- "delete_phone_number": "Delete Phone Number",+ "delete_phone_number": "Delete phone number","workflow_validation_failed": "Workflow validation failed","workflow_validation_empty_fields": "One or more workflow steps have empty message content","workflow_validation_unverified_contacts": "One or more phone numbers or email addresses are not verified",- "supercharge_your_workflows_with_cal_ai": "Supercharge your Workflows with Cal.ai",+ "supercharge_your_workflows_with_cal_ai": "Supercharge your workflows with Cal.ai","supercharge_your_workflows_with_cal_ai_description": "Lifelike AI agents that book meetings, send reminders, and follow up with your customers.","phone_number_imported_successfully": "Phone number imported and linked to agent successfully","phone_number_deleted_successfully": "Phone number deleted successfully","delete_phone_number_confirmation": "Are you sure you want to delete this phone number? This action cannot be undone.",- "yes_delete_phone_number": "Yes, delete phone number",+ "yes_delete_phone_number": "Delete phone number","phone_number_info_tooltip": "The number you are trying to import must be in E.164 format (+country code followed by the number, with no spaces or special characters), e.g. +1234567890","termination_uri_info_tooltip": "The termination URI to uniquely identify your elastic SIP trunk. This is used for outbound calls. For Twilio elastic SIP trunks it always ends with .pstn.twilio.com.","sip_trunk_username_info_tooltip": "The username used to authenticate the SIP trunk.",@@ -903,39 +904,39 @@"general_prompt_description": "This prompt defines the agent's role and primary objectives","prompt": "Prompt","call_to": "Call to",- "make_test_call_to_verify_configuration": "Make Test Call to Verify Configuration",- "initial_message": "Initial Message",+ "make_test_call_to_verify_configuration": "Make test call to verify configuration",+ "initial_message": "Initial message","initial_message_description": "The first message the agent will say when starting a call","having_trouble_importing": "Having trouble importing?","learn": "Learn","learn_how_to_get_your_terminator": "Learn how to get your Termination URI and SIP trunk credentials","phone_number_subscription_cancelled_successfully": "Phone number subscription canceled successfully","updating": "Updating",- "round_robin": "Round Robin",+ "round_robin": "Round robin","hi_how_are_you_doing": "Hi, how are you doing?","round_robin_description": "Cycle meetings between multiple team members.",- "managed_event": "Managed Event",+ "managed_event": "Managed event","username_placeholder": "username","managed_event_description": "Create & distribute event types in bulk to team members","managed": "Managed","managed_event_url_clarification": "\"username\" will be filled by the username of the members assigned","assign_to": "Assign to","enter_phone_number_to_test_call": "Enter phone number to test call",- "make_test_call": "Make Test Call",+ "make_test_call": "Make test call","create_new_workflow_agent": "Create new workflow cal.ai voice agent","create_new_workflow_agent_description": "Create a new workflow cal.ai voice agent to automate your workflows","phone_number_for_ai_call": "Phone number (for our agent to call)","buy_a_phone_number_or_import_one_you_already_have": "Buy a phone number or import one you already have on twilio",- "test_agent": "Test Agent",- "test_web_call": "Test Web Call",- "phone_numbers": "Phone Numbers",+ "test_agent": "Test agent",+ "test_web_call": "Test web call",+ "phone_numbers": "Phone numbers","unsubscribe": "Unsubscribe",- "delete_workflow_step": "Delete Workflow Step",- "unsubscribe_phone_number": "Unsubscribe Phone Number",+ "delete_workflow_step": "Delete workflow step",+ "unsubscribe_phone_number": "Unsubscribe phone number","buy_a_new_number": "Buy a new number","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",+ "supported_call_destinations": "Supported call destinations","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",@@ -943,27 +944,27 @@"are_you_sure_you_want_to_delete_workflow_step": "Are you sure you want to delete this workflow step?","do_you_still_want_to_unsubscribe": "Do you still want to unsubscribe the phone number from this agent?","the_action_will_disconnect_phone_number": "This action will disconnect the phone number from the agent. The agent will not be able to make calls until a new phone number is connected.",- "cal_ai_phone_numbers": "Phone Numbers",- "connect_phone_number": "Connect Phone Number",- "cal_ai_phone_numbers_description": "Manage your Phone Numbers",- "import_number": "Import Number",+ "cal_ai_phone_numbers": "Phone numbers",+ "connect_phone_number": "Connect phone number",+ "cal_ai_phone_numbers_description": "Manage your phone numbers",+ "import_number": "Import number","this_action_will_also": "This action will also:",- "import_phone_number": "Import Phone Number",- "active_subscription": "Active Subscription",+ "import_phone_number": "Import phone number",+ "active_subscription": "Active subscription","cancel_your_phone_number_subscription": "Cancel your phone number subscription","delete_associated_phone_number": "Delete the associated phone number","unauthorized_create_workflow": "You are not authorized to create this workflow","import_phone_number_description": "Import your Twilio phone number to use with Phone","phone_number_cost": "${{price}}/month",- "buy_new_number": "Buy New Number",+ "buy_new_number": "Buy new number","buy_number_cost_x_per_month": "Buying a phone number costs ${{priceInDollars}} per month. You will be charged monthly for each active phone number.","area_code_optional": "Area Code (Optional)","no_phone_numbers": "No phone numbers","phone_number_purchased_successfully": "Phone number purchased successfully",- "cancel_phone_number_subscription": "Cancel Phone Number Subscription",- "yes_cancel_subscription": "Yes, Cancel Subscription",+ "cancel_phone_number_subscription": "Cancel phone number subscription",+ "yes_cancel_subscription": "Cancel subscription","cancel_phone_number_subscription_confirmation": "Are you sure you want to cancel this phone number subscription? This action cannot be undone and you will lose access to this phone number.",- "add_members": "Add members...",+ "add_members": "Add members","add_members_no_ellipsis": "Add members","no_assigned_members": "No assigned members","assigned_to": "Assigned to",@@ -975,15 +976,15 @@"unlocked_fields_member_description": "Unlocked by team admin","url": "URL","hidden": "Hidden",- "readonly": "Readonly",+ "readonly": "Read only","one_time_link": "One-time link","plan_description": "You're currently on the {{plan}} plan.","plan_upgrade_invitation": "Upgrade your account to the PRO plan to unlock all of the features we have to offer.","plan_upgrade": "You need to upgrade your plan to have more than one active event type.","plan_upgrade_teams": "You need to upgrade your plan to create a team.","plan_upgrade_instructions": "You can <1>upgrade here</1>.",- "event_types_page_title": "Event Types",- "event_types_page_subtitle": "Create events to share for people to book on your calendar.",+ "event_types_page_title": "Event types",+ "event_types_page_subtitle": "Configure different events for people to book on your calendar.","new": "New","new_event_type_btn": "New event type","new_event_type_heading": "Create your first event type",@@ -996,12 +997,12 @@"event_type_deleted_successfully": "Event type deleted successfully","hours": "Hours","people": "People",- "your_email": "Your Email",- "change_avatar": "Change Avatar",- "upload_avatar": "Upload Avatar",+ "your_email": "Your email",+ "change_avatar": "Change avatar",+ "upload_avatar": "Upload avatar","language": "Language","timezone": "Timezone",- "first_day_of_week": "First Day of Week",+ "first_day_of_week": "First day of week","repeats_up_to_one": "Repeats up to {{count}} time","repeats_up_to_other": "Repeats up to {{count}} times","every_for_freq": "Every {{freq}} for",@@ -1018,19 +1019,19 @@"yearly_other": "years","plus_more": "{{count}} more","max": "Max",- "single_theme": "Single Theme",- "brand_color": "Brand Color",- "light_brand_color": "Brand Color (Light Theme)",- "dark_brand_color": "Brand Color (Dark Theme)",- "light_event_type_color": "Event Type Color (Light Theme)",- "dark_event_type_color": "Event Type Color (Dark Theme)",+ "single_theme": "Single theme",+ "brand_color": "Brand color",+ "light_brand_color": "Brand color (light theme)",+ "dark_brand_color": "Brand color (dark theme)",+ "light_event_type_color": "Event type color (light theme)",+ "dark_event_type_color": "Event type color (dark theme)","file_not_named": "File is not named [idOrSlug]/[user]","create_team": "Create team","name": "Name",- "nameless_team": "Nameless Team",- "oauth_clients": "OAuth Clients",+ "nameless_team": "Nameless team",+ "oauth_clients": "OAuth clients","oauth_clients_description": "Manage OAuth clients for your organization",- "create_oauth_client": "Create OAuth Client",+ "create_oauth_client": "Create OAuth client","create_oauth_client_description": "Create a new OAuth client for third-party integrations","oauth_client_deletion_message": "OAuth client deleted successfully","create_new_team_description": "Create a new team to collaborate with users.",@@ -1039,8 +1040,8 @@"booking_cancel_redirect_uri": "URL of the page where your users can cancel their booking","booking_reschedule_redirect_uri": "URL of the page where your users can reschedule their booking","booking_conflict_error": "This slot is no longer available. Please return to the previous page and select another time.",- "open_invitations": "Open Invitations",- "new_team": "New Team",+ "open_invitations": "Open invitations",+ "new_team": "New team","create_first_team_and_invite_others": "Create your first team and invite other users to work together.","create_team_to_get_started": "Create a team to get started","teams": "Teams",@@ -1082,17 +1083,17 @@"error": "Error","at_least_characters_one": "Please enter at least one character","at_least_characters_other": "Please enter at least {{count}} characters",- "team_logo": "Team Logo",+ "team_logo": "Team logo","add_location": "Add a location","attendees": "Attendees","add_attendees": "Add attendees","show_advanced_settings": "Show advanced settings","hide_advanced_settings": "Hide advanced settings",- "event_name": "Event Name",+ "event_name": "Event name","event_name_in_calendar": "Calendar event name","event_name_tooltip": "The name that will appear in calendars","meeting_with_user": "{Event type title} between {Organiser} & {Scheduler}",- "additional_inputs": "Additional Inputs",+ "additional_inputs": "Additional inputs","additional_input_description": "Require scheduler to input additional inputs prior the booking is confirmed","label": "Label","placeholder": "Placeholder",@@ -1102,35 +1103,35 @@"reconnect_calendar_to_use": "Please note that you may need to disconnect and then reconnect your 'Add to Calendar' account to use this feature.","type": "Type","edit": "Edit",- "add_input": "Add an Input",+ "add_input": "Add an input","disable_notes": "Hide notes in calendar","disable_notes_description": "For privacy reasons, additional inputs and notes will be hidden in the calendar entry. They will still be sent to your email. <0>Learn more</0>","requires_confirmation_description": "The booking needs to be manually confirmed before it is pushed to your calendar and a confirmation is sent. <0>Learn more</0>","requires_confirmation_will_block_slot_description": "Unconfirmed bookings still block calendar slots.",- "recurring_event": "Recurring Event",+ "recurring_event": "Recurring event","recurring_event_description": "People can subscribe for recurring events. <0>Learn more</0>",- "connect_and_join": "Connect and Join",+ "connect_and_join": "Connect and join","cannot_be_used_with_paid_event_types": "It cannot be used with paid event types","warning_payment_instant_meeting_event": "Instant Meetings are not supported with recurring events and payment apps yet","warning_instant_meeting_experimental": "Experimental: Instant Meeting Events are currently experimental.","starting": "Starting",- "disable_guests": "Disable Guests",+ "disable_guests": "Disable guests","disable_autofill_on_booking_page": "Disable autofill on booking pages","disable_autofill_on_booking_page_description": "Prevent booking forms from being automatically filled with URL parameters or session-based prefill for all users in this organization","disable_guests_description": "Disable adding additional guests while booking.","private_link": "Generate private link",- "enable_private_url": "Enable Private URL",+ "enable_private_url": "Enable private URL","private_link_label": "Private link","private_link_hint": "Your private link will regenerate after each use","copy_private_link": "Copy private link","copy_private_link_to_event": "Copy private link to event","private_link_description": "Generate a private URL to share without exposing your {{appName}} username",- "multiple_private_links_title": "Private Links",+ "multiple_private_links_title": "Private links","multiple_private_links_description": "Generate private URLs without exposing the username, with configurable expiry and usage limits. <0>Learn more</0>","add_a_multiple_private_link": "Add new link","multiple_private_link_copied": "Private link copied","invitees_can_schedule": "Invitees can schedule",- "date_range": "Date Range",+ "date_range": "Date range","calendar_days": "calendar days","business_days": "business days","set_address_place": "Set an address or place",@@ -1144,7 +1145,7 @@"cal_provide_jitsi_meeting_url": "We will generate a Jitsi Meet URL for you.","cal_provide_huddle01_meeting_url": "{{appName}} will provide a Huddle01 video meeting URL.","cal_provide_teams_meeting_url": "{{appName}} will provide a MS Teams meeting URL. NOTE: MUST HAVE A WORK OR SCHOOL ACCOUNT",- "require_payment": "Require Payment",+ "require_payment": "Require payment","you_need_to_add_a_name": "You need to add a name","commission_per_transaction": "commission per transaction","event_type_updated_successfully_description": "Your event type has been updated successfully.",@@ -1155,12 +1156,12 @@"within_date_range": "Within a date range","indefinitely_into_future": "Indefinitely into the future","add_new_custom_input_field": "Add new custom input field",- "quick_chat": "Quick Chat",+ "quick_chat": "Quick chat","add_new_team_event_type": "Add a new team event type","add_new_event_type": "Add a new event type","new_event_type_to_book_description": "Set up event types to offer different types of meetings.","length": "Length",- "minimum_booking_notice": "Minimum Notice",+ "minimum_booking_notice": "Minimum notice","offset_toggle": "Offset start times","offset_toggle_description": "Offset timeslots shown to bookers by a specified number of minutes","offset_start": "Offset by",@@ -1172,9 +1173,9 @@"delete_event_type_description": "Anyone who you've shared this link with will no longer be able to book using it.","delete_managed_event_type_description_1": "Members assigned to this event type will also have their event types deleted.","delete_managed_event_type_description_2": "Anyone who they've shared their link with will no longer be able to book using it.",- "confirm_delete_event_type": "Yes, delete",+ "confirm_delete_event_type": "Delete event type","delete_account": "Delete account",- "confirm_delete_account": "Yes, delete account",+ "confirm_delete_account": "Delete account","delete_account_confirmation_message": "Anyone who you've shared your account link with will no longer be able to book using it and any preferences you have saved will be lost.","integrations": "Integrations","apps": "Apps",@@ -1186,11 +1187,11 @@"connect_your_video": "Connect your video conferencing app","settings": "Settings","event_type_moved_successfully": "Event type has been moved successfully",- "next_step_text": "Next Step",+ "next_step_text": "Next step","next_step": "Skip step","prev_step": "Prev step","install": "Install",- "start_paid_trial": "Start free Trial",+ "start_paid_trial": "Start free trial","installed": "Installed","active_install_one": "{{count}} active install","active_install_other": "{{count}} active installs",@@ -1238,17 +1239,17 @@"import_from": "Import from","access_token": "Access token","visit_roadmap": "Roadmap",- "featured_categories": "Featured Categories",- "feature_flags": "Feature Flags",+ "featured_categories": "Featured categories",+ "feature_flags": "Feature flags","admin_flags_description": "Here you can toggle your Cal.com instance features.","feature_assigned_successfully": "Feature assigned successfully","feature_unassigned_successfully": "Feature unassigned successfully",- "popular_categories": "Popular Categories",- "number_apps_one": "{{count}} App",- "number_apps_other": "{{count}} Apps",- "trending_apps": "Trending Apps",- "most_popular": "Most Popular",- "installed_apps": "Installed Apps",+ "popular_categories": "Popular categories",+ "number_apps_one": "{{count}} app",+ "number_apps_other": "{{count}} apps",+ "trending_apps": "Trending apps",+ "most_popular": "Most popular",+ "installed_apps": "Installed apps","free_to_use_apps": "Free","no_category_apps": "No {{category}} apps","all_apps": "All apps",@@ -1270,41 +1271,41 @@"installed_app_crm_description": "Configure which CRM apps to use for keeping track of who you've met with","analytics": "Analytics","empty_installed_apps_headline": "No apps installed",- "empty_installed_apps_description": "Apps enable you to enhance your workflow and improve your scheduling life significantly.",- "empty_installed_apps_button": "Browse App Store",+ "empty_installed_apps_description": "Connect other tools you use to Cal.com. Apps help you automate scheduling and reduce manual work.",+ "empty_installed_apps_button": "Browse app store","manage_your_connected_apps": "Manage your installed apps or change settings",- "browse_apps": "Browse Apps",+ "browse_apps": "Browse apps","features": "Features","permissions": "Permissions",- "terms_and_privacy": "Terms and Privacy",+ "terms_and_privacy": "Terms and privacy","published_by": "Published by {{author}}","subscribe": "Subscribe","buy": "Buy",- "install_app": "Install App",+ "install_app": "Install app","categories": "Categories","pricing": "Pricing","learn_more": "Learn more","try_now": "Try now",- "privacy_policy": "Privacy Policy",- "terms_of_service": "Terms of Service",+ "privacy_policy": "Privacy policy",+ "terms_of_service": "Terms of service","remove": "Remove","add": "Add","installed_other": "{{count}} installed",- "verify_wallet": "Verify Wallet",+ "verify_wallet": "Verify wallet","create_events_on": "Create events on","enterprise_license": "This is a commercial feature","enterprise_license_locally": "You can test this feature locally but not on production.","enterprise_license_sales": "To purchase a commercial license, please reach out to our sales team. If a license key is already in place, please contact [email protected] for help.",- "missing_license": "Missing License",- "next_steps": "Next Steps",+ "missing_license": "Missing license",+ "next_steps": "Next steps","acquire_commercial_license": "Acquire a commercial license","the_infrastructure_plan": "The infrastructure plan is usage-based and has startup-friendly discounts.","prisma_studio_tip": "Create an account via Prisma Studio","prisma_studio_tip_description": "Learn how to set up your first user",- "contact_sales": "Contact Sales",+ "contact_sales": "Contact sales","error_404": "Error 404","default": "Default",- "set_to_default": "Set as Default",+ "set_to_default": "Set as default","new_schedule_btn": "New schedule","add_new_schedule": "Add a new schedule","add_new_calendar": "Add a new calendar",@@ -1315,7 +1316,7 @@"availability_updated_successfully": "{{scheduleName}} schedule updated successfully","bulk_updated_schedule_successfully": "Bulk updated selected event types with default schedule","schedule_deleted_successfully": "Schedule deleted successfully",- "default_schedule_name": "Working Hours",+ "default_schedule_name": "Working hours","new_schedule_heading": "Create an availability schedule","no_schedules_created_yet": "You haven't created any availability schedules yet. Create one to get started.","create_availability_schedule": "Create availability schedule",@@ -1323,8 +1324,8 @@"requires_ownership_of_a_token": "Requires ownership of a token belonging to the following address:","example_name": "John Doe","time_format": "Time format",- "12_hour": "12 hour",- "24_hour": "24 hour",+ "12_hour": "12-hour",+ "24_hour": "24-hour","12_hour_short": "12h","24_hour_short": "24h","redirect_success_booking": "Redirect on booking ",@@ -1367,17 +1368,17 @@"enabled_after_update": "Enabled after update","enabled_after_update_description": "The private link will work after saving","confirm_delete_api_key": "Revoke this API key",- "disable_rescheduling": "Disable Rescheduling",+ "disable_rescheduling": "Disable rescheduling","description_disable_rescheduling": "Guests and Organizer can no longer reschedule the event with calendar invite or email. <0>Learn more</0>",- "minimum_reschedule_notice": "Minimum Reschedule Notice",+ "minimum_reschedule_notice": "Minimum reschedule notice","minimum_reschedule_notice_description": "Prevent rescheduling within this many minutes before the event starts. Leave empty to allow rescheduling at any time.","when_less_than_minutes_before_meeting": "When less than <0></0> minutes before meeting","reschedule_disabled_minimum_notice": "Rescheduling is disabled within the minimum notice period before the event","rescheduling_is_disabled": "Rescheduling is disabled for this event","allow_rescheduling_cancelled_bookings": "Allow booking through reschedule link","description_allow_rescheduling_cancelled_bookings": "When enabled, users will be able to create a new booking when trying to reschedule a cancelled booking",- "disable_cancelling": "Disable Cancelling",- "description_disable_cancelling": "Guests and Organizer can no longer cancel the event with calendar invite or email. <0>Learn more</0>",+ "disable_cancelling": "Disable cancelling",+ "description_disable_cancelling": "Guests and organizer can no longer cancel the event with calendar invite or email. <0>Learn more</0>","revoke_api_key": "Revoke API key","api_key_copied": "API key copied!","api_key_expires_on": "The API key will expire on",@@ -1400,7 +1401,7 @@"confirmation_page_gif": "Add a GIF to your confirmation page","search": "Search","impersonate": "Impersonate",- "user_impersonation_heading": "User Impersonation",+ "user_impersonation_heading": "User impersonation","user_impersonation_description": "Allows our support team to temporarily sign in as you to help us quickly resolve any issues you report to us.","team_impersonation_description": "Allows your team Owners/Admins to temporarily sign in as you.","cal_signup_description": "Free for individuals. Team plans for collaborative features.",@@ -1421,16 +1422,16 @@"new_guests_added": "Added - New guests added to your event","location_changed_event_type_subject": "Location Changed: {{eventType}} with {{name}} at {{date}}","guests_added_event_type_subject": "Guests Added: {{eventType}} with {{name}} at {{date}}",- "current_location": "Current Location",- "new_location": "New Location",+ "current_location": "Current location",+ "new_location": "New location","session": "Session","session_description": "Control your account session","session_timeout_after": "Timeout session after","session_timeout": "Session timeout","session_timeout_description": "Invalidate your session after a certain amount of time.","no_location": "No location defined",- "set_location": "Set Location",- "update_location": "Update Location",+ "set_location": "Set location",+ "update_location": "Update location","location_updated": "Location updated","location_update_failed": "Location update failed","guests_added": "Guests added",@@ -1440,7 +1441,7 @@"url_validation_error": "That doesn't look like a URL","place_where_cal_widget_appear": "Place this code in your HTML where you want your {{appName}} widget to appear.","create_update_react_component": "Create or update an existing React component as shown below.",- "copy_code": "Copy Code",+ "copy_code": "Copy code","code_copied": "Code copied!","how_you_want_add_cal_site": "How do you want to add {{appName}} to your site?","choose_ways_put_cal_site": "Choose one of the following ways to put {{appName}} on your site.",@@ -1479,12 +1480,12 @@"find_gif_spice_confirmation": "Find GIF to spice up your confirmation page","share_feedback": "Share feedback","resources": "Resources",- "support_documentation": "Support Documentation",- "developer_documentation": "Developer Documentation",+ "support_documentation": "Support documentation",+ "developer_documentation": "Developer documentation","get_in_touch": "Get in touch",- "contact_support": "Contact Support",- "premium_support": "Premium Support",- "community_support": "Community Support",+ "contact_support": "Contact support",+ "premium_support": "Premium support",+ "community_support": "Community support","feedback": "Feedback","submitted_feedback": "Thank you for your feedback!","feedback_error": "Error sending feedback",@@ -1529,7 +1530,7 @@"whatsapp_number_action": "send WhatsApp message to a specific number","whatsapp_attendee_action": "send WhatsApp message to attendee","workflows": "Workflows",- "new_workflow_btn": "New Workflow",+ "new_workflow_btn": "New workflow","how_would_you_like_to_start": "How would you like to start?","add_new_workflow": "Add a new workflow","reschedule_event_trigger": "when event is rescheduled",@@ -1541,8 +1542,8 @@"custom_workflow": "Custom workflow","workflow_created_successfully": "{{workflowName}} created successfully","delete_workflow_description": "Are you sure you want to delete this workflow?",- "delete_workflow": "Delete Workflow",- "confirm_delete_workflow": "Yes, delete workflow",+ "delete_workflow": "Delete workflow",+ "confirm_delete_workflow": "Delete workflow","workflow_deleted_successfully": "Workflow deleted successfully","how_long_before": "How long before event starts?","day_timeUnit": "days",@@ -1565,8 +1566,8 @@"go_to_stripe_billing": "Go to billing","stripe_description": "Require payment for bookings (0.5% + €0.10 commission per transaction)","trial_expired": "Your trial has expired",- "remove_app": "Remove App",- "yes_remove_app": "Yes, remove app",+ "remove_app": "Remove app",+ "yes_remove_app": "Remove app","are_you_sure_you_want_to_remove_this_app": "Are you sure you want to remove this app?","app_removed_successfully": "App removed successfully","error_removing_app": "Error removing app",@@ -1601,7 +1602,7 @@"add_action": "Add action","set_whereby_link": "Set Whereby link","invalid_whereby_link": "Please enter a valid Whereby Link",- "set_around_link": "Set Around.Co link",+ "set_around_link": "Set Around.co link","invalid_around_link": "Please enter a valid Around Link","set_riverside_link": "Set Riverside link","invalid_riverside_link": "Please enter a valid Riverside Link",@@ -1674,8 +1675,8 @@"current_username": "Current username","example_1": "Example 1","example_2": "Example 2",- "booking_question_identifier": "Booking Question Identifier",- "form_field_identifier": "Form Field Identifier",+ "booking_question_identifier": "Booking question identifier",+ "form_field_identifier": "Form field identifier","company_size": "Company size","what_help_needed": "What do you need help with?","variable_format": "Variable format",@@ -1734,7 +1735,7 @@"finish_and_start": "Finish setup and get started","user_has_no_bio": "This user has not added a bio yet.","bio": "Bio",- "delete_account_modal_title": "Delete Account",+ "delete_account_modal_title": "Delete account","confirm_delete_account_modal": "Are you sure you want to delete your {{appName}} account?","delete_my_account": "Delete my account","start_of_week": "Start of week",@@ -1752,12 +1753,12 @@"pro": "Pro","removes_cal_branding": "Removes any {{appName}} related brandings, i.e. 'Powered by {{appName}}.'","instant_meeting_with_title": "Instant Meeting with {{name}}",- "profile_picture": "Profile Picture",+ "profile_picture": "Profile picture","upload": "Upload","add_profile_photo": "Add profile photo",- "it_appears_you_are_using_company_email": "Looks like you're on a work email",- "explore_organizational_plan_description": "Organize events across your team and make sure every meeting lands with the right person.",- "token_address": "Token Address",+ "it_appears_you_are_using_company_email": "It looks like you're on a work email",+ "explore_organizational_plan_description": "Organize events across your team and make sure every meeting lands with the right person.",+ "token_address": "Token address","blockchain": "Blockchain","old_password": "Old password","secure_password": "Your new super secure password",@@ -1772,13 +1773,13 @@"my_account": "My account","general": "General","calendars": "Calendars",- "2fa_auth": "Two factor auth",+ "2fa_auth": "Two factor authentication","invoices": "Invoices","embeds": "Embeds","impersonation": "Impersonation","impersonation_description": "Settings to manage user impersonation",- "recent_impersonations": "Recent Impersonations",- "quick_impersonate": "Quick Impersonate",+ "recent_impersonations": "Recent impersonations",+ "quick_impersonate": "Quick impersonate","no_recent_impersonations": "No recent impersonations","users": "Users","user": "User",@@ -1789,9 +1790,9 @@"calendars_description": "Configure how your event types interact with your calendars","appearance_description": "Manage settings for your booking appearance","conferencing_description": "Add your favourite video conferencing apps for your meetings",- "add_conferencing_app": "Add Conferencing App",+ "add_conferencing_app": "Add conferencing app","password_description": "Manage settings for your account passwords",- "set_up_two_factor_authentication": "Set up your Two-factor authentication",+ "set_up_two_factor_authentication": "Set up your two-factor authentication","we_just_need_basic_info": "We just need some basic info to get your profile setup.","skip": "Skip","do_this_later": "Do this later",@@ -1828,7 +1829,7 @@"event_date_info": "The event date","event_duration_info": "The event duration","event_time_info": "The event start time",- "event_type_not_found": "EventType not Found",+ "event_type_not_found": "Event type not found","number_to_call_variable": "Number to call","number_to_call_info": "The phone number of the user you are calling","location_variable": "Location",@@ -1841,13 +1842,13 @@"workflow_turned_on_successfully": "{{workflowName}} workflow turned {{offOn}} successfully","download_responses": "Download responses","download_responses_description": "Download all responses to your form in CSV format.",- "view_responses": "View Responses",+ "view_responses": "View responses","download": "Download","downloading": "Downloading",- "download_recording": "Download Recording",+ "download_recording": "Download recording","transcription_enabled": "Transcriptions are enabled now","transcription_stopped": "Transcriptions are stopped now",- "download_transcript": "Download Transcript",+ "download_transcript": "Download transcript","transcript": "Transcript","recording_from_your_recent_call": "A recording from your recent call on {{appName}} is ready for download","transcript_from_previous_call": "Transcript from your recent call on {{appName}} is ready to download. Links are valid only for 1 Hour",@@ -1855,8 +1856,8 @@"link_valid_for_12_hrs": "Note: The download link is valid only for 12 hours. You can generate new download link by following instructions <1>here</1>.","link_valid_for_12_hrs_description": "Note: The download link is only valid for 12 hours. You can generate new download link by following the instructions","create_your_first_form": "Create your first form",- "create_your_first_form_description": "With Routing Forms you can ask qualifying questions and route to the correct person or event type.",- "create_your_first_webhook": "Create your first Webhook",+ "create_your_first_form_description": "With routing forms you can ask qualifying questions and route to the correct person or event type.",+ "create_your_first_webhook": "Create your first webhook","create_your_first_webhook_description": "With Webhooks you can receive meeting data in real-time when something happens in {{appName}}.","for_a_maximum_of": "For a maximum of","event_one": "event",@@ -1882,11 +1883,11 @@"follow_up_with_no_shows_description": "30m after event ends","remind_attendees_to_bring_id": "Remind attendees to bring ID","remind_attendees_to_bring_id_description": "1 day before event starts",- "email_to_remind_booking": "Email Reminder",+ "email_to_remind_booking": "Email reminder","email_to_remind_booking_description": "1 hour before event starts",- "custom_sms_reminder": "Custom SMS Reminder",+ "custom_sms_reminder": "Custom SMS reminder","custom_sms_reminder_description": "When event is scheduled",- "custom_email_reminder": "Custom Email Reminder",+ "custom_email_reminder": "Custom email reminder","custom_email_reminder_description": "Event is rescheduled to host","count_managed_to_limit": "Include booking counts from managed event types","welcome_to_cal_header": "Welcome to {{appName}}!",@@ -1895,20 +1896,20 @@"problem_saving_user_profile": "There was a problem saving your data. Please try again or reach out to customer support.","purchase_missing_seats": "Purchase missing seats","slot_length": "Slot length",- "booking_appearance": "Booking Appearance",+ "booking_appearance": "Booking appearance","appearance_team_description": "Manage settings for your team's booking appearance","appearance_org_description": "Manage settings for your organization's booking appearance","only_owner_change": "Only the owner of this team can make changes to the team's booking ","team_disable_cal_branding_description": "Removes any {{appName}} related brandings, i.e. 'Powered by {{appName}}'","invited_by_team": "{{teamName}} has invited you to join their team as a {{role}}","token_invalid_expired": "Token is either invalid or expired.",- "view_booking": "View Booking",+ "view_booking": "View booking","exchange_add": "Connect to Microsoft Exchange","exchange_authentication": "Authentication method","exchange_authentication_standard": "Basic authentication","exchange_authentication_ntlm": "NTLM authentication","exchange_compression": "GZip compression",- "exchange_version": "Exchange Version",+ "exchange_version": "Exchange version","exchange_version_2007_SP1": "2007 SP1","exchange_version_2010": "2010","exchange_version_2010_SP1": "2010 SP1",@@ -1938,8 +1939,8 @@"add_webhook_description": "Receive meeting data in real-time when something happens in {{appName}}","triggers_when": "Triggers when","test_webhook": "Please ping test before creating.",- "enable_webhook": "Enable Webhook",- "add_webhook": "Add Webhook",+ "enable_webhook": "Enable webhook",+ "add_webhook": "Add webhook","webhook_edited_successfully": "Webhook saved","api_keys_description": "Generate API keys for accessing your own account","new_api_key": "New API key",@@ -1956,8 +1957,8 @@"password_reset_leading": "If you don't receive an email soon, check that the email address you entered is correct, check your spam folder or reach out to support if the issue persists.","password_updated": "Password updated!","pending_payment": "Pending payment",- "pending_invites": "Pending Invites",- "pending_organization_invites": "Pending Organization Invites",+ "pending_invites": "Pending invites",+ "pending_organization_invites": "Pending organization invites","not_on_cal": "Not on {{appName}}","no_calendar_installed": "No calendar installed","no_calendar_installed_description": "You have not yet connected any of your calendars",@@ -1976,7 +1977,7 @@"booker_upcoming_limit": "Limit number of upcoming bookings per booker","booker_booking_limit_description": "Limit the number of active bookings a booker can make for this event type. <0>Learn more</0>","recurring_event_doesnt_support_booker_booking_limit": "Recurring events don't support booker booking limit",- "add_limit": "Add Limit",+ "add_limit": "Add limit","team_name_required": "Team name required","show_attendees": "Share attendee information between guests","show_available_seats_count": "Show the number of available seats",@@ -2010,8 +2011,8 @@"couldnt_update_timezone": "We couldn't update the timezone","updated_timezone_to": "Updated timezone to {{formattedCurrentTz}}","update_timezone": "Update timezone",- "update_timezone_question": "Update Timezone?",- "update_timezone_description": "It seems like your local timezone has changed to {{formattedCurrentTz}}. It's very important to have the correct timezone to prevent bookings at undesired times. Do you want to update it?",+ "update_timezone_question": "Want to update your timezone?",+ "update_timezone_description": "It seems that your computer's timezone has changed to {{formattedCurrentTz}}. It's very important to have the correct timezone to prevent bookings at the wrong time. Do you want us to update it?","dont_update": "Don't update","require_additional_notes": "Require additional notes","require_additional_notes_description": "Require additional notes to be filled out when booking",@@ -2026,7 +2027,7 @@"how_long_after_hosts_no_show": "How long after hosts don't show up on cal video meeting?","how_long_after_guests_no_show": "How long after guests don't show up on cal video meeting?","how_long_after_user_no_show_minutes": "How long after the users don't show up on cal video meeting?",- "no_available_slots": "No Available slots",+ "no_available_slots": "No available slots","time_available": "Time available","cant_find_the_right_conferencing_app_visit_our_app_store": "Can't find the right conferencing app? Visit our <0>App Store</0>.","install_new_calendar_app": "Install new calendar app",@@ -2036,18 +2037,18 @@"dont_have_permission": "You don't have permission to access this resource.","saml_configuration_placeholder": "Please paste the SAML metadata from your Identity Provider here","saml_email_required": "Please enter an email so we can find your SAML Identity Provider",- "saml_sp_title": "Service Provider Details",+ "saml_sp_title": "Service provider details","saml_sp_description": "Your Identity Provider (IdP) will ask you for the following details to complete the SAML application configuration.","saml_sp_acs_url": "ACS URL","saml_sp_entity_id": "SP Entity ID","saml_sp_acs_url_copied": "ACS URL copied!","saml_sp_entity_id_copied": "SP Entity ID copied!",- "add_calendar": "Add Calendar",+ "add_calendar": "Add calendar","limit_future_bookings": "Limit future bookings","limit_future_bookings_description": "Limit how far in the future this event can be booked. <0>Learn more</0>","no_event_types": "No event types setup","no_event_types_description": "{{name}} has not setup any event types for you to book.",- "billing_frequency": "Billing Frequency",+ "billing_frequency": "Billing frequency","monthly": "Monthly","yearly": "Yearly","checkout": "Checkout",@@ -2084,18 +2085,18 @@"reason": "Reason","sender_id": "Sender ID","sender_id_error_message": "Only letters, numbers and spaces allowed (max. 11 characters)",- "test_routing_form": "Test Routing Form",- "test_preview": "Test Preview",+ "test_routing_form": "Test routing form",+ "test_preview": "Test preview","route_to": "Route to","test_preview_description": "Test your routing form without submitting any data",- "test_routing": "Test Routing",+ "test_routing": "Test routing","payment_app_disabled": "An admin has disabled a payment app","edit_event_type": "Edit event type","only_admin_can_see_members_of_org": "This Organization is private, and only the organization's admin or owner can view its members.","only_admin_can_manage_sso_org": "Only the organization's admin or owner can manage SSO settings","only_admin_can_manage_directory_sync": "Only the organization's admin or owner can manage directory sync settings","only_admin_can_manage_oauth_clients": "Only the organization's admin or owner can manage OAuth clients",- "collective_scheduling": "Collective Scheduling",+ "collective_scheduling": "Collective scheduling","make_it_easy_to_book": "Make it easy to book your team when everyone is available.","find_the_best_person": "Find the best person available and cycle through your team.","fixed_round_robin": "Fixed round robin",@@ -2120,19 +2121,19 @@"app_disabled_subject": "{{appName}} has been disabled","navigate_installed_apps": "Go to installed apps","disabled_calendar": "If you have another calendar installed new bookings will be added to it. If not then connect a new calendar so you do not miss any new bookings.",- "enable_apps": "Enable Apps",+ "enable_apps": "Enable apps","enable_apps_description": "Enable apps that users can integrate with {{appName}}",- "purchase_license": "Purchase a License",+ "purchase_license": "Purchase a license","already_have_account": "Already have an account?","already_have_key": "I already have a key:","already_have_key_suggestion": "Please copy your existing CALCOM_LICENSE_KEY environment variable here.",- "create_license_key": "Create License Key",+ "create_license_key": "Create license key","app_is_enabled": "{{appName}} is enabled","app_is_disabled": "{{appName}} is disabled","keys_have_been_saved": "Keys have been saved",- "disable_app": "Disable App",+ "disable_app": "Disable app","disable_app_description": "Disabling this app could cause problems with how your users interact with Cal",- "edit_keys": "Edit Keys",+ "edit_keys": "Edit keys","feature": "Feature","playground": "Playground","admin_playground_description": "Admin playground for testing out new features and functionalities.",@@ -2141,27 +2142,27 @@"admin_users_add_description": "Here you can add a new user.","admin_users_edit_description": "Here you can edit a current user.","admin_orgs_edit_description": "Here you can edit an organization.",- "admin_oAuth_description": "Add new OAuth Clients",+ "admin_oAuth_description": "Add new OAuth clients","admin_lockedSMS_description": "Lock or unlock SMS sending for users","no_available_apps": "There are no available apps","no_available_apps_description": "Please ensure there are apps in your deployment under 'packages/app-store'",- "no_apps": "There are no apps enabled in this instance of Cal",+ "no_apps": "There are no apps enabled in this instance of Cal.com","no_apps_configured": "No app has been configured yet","enable_in_settings": "You can enable apps in the settings","please_contact_admin": "Please contact your admin","apps_settings": "Apps settings","fill_this_field": "Please fill in this field","options": "Options",- "enter_option": "Enter Option {{index}}",+ "enter_option": "Enter option {{index}}","add_an_option": "Add an option","location_already_exists": "This location already exists. Please select a new location","radio": "Radio","google_meet_warning": "In order to use Google Meet, you must set your destination calendar to a Google Calendar","individual": "Individual",- "all_bookings_filter_label": "All Bookings",- "all_users_filter_label": "All Users",- "all_event_types_filter_label": "All Event Types",- "your_bookings_filter_label": "Your Bookings",+ "all_bookings_filter_label": "All bookings",+ "all_users_filter_label": "All users",+ "all_event_types_filter_label": "All event types",+ "your_bookings_filter_label": "Your bookings","meeting_url_variable": "Meeting url","meeting_url_info": "The event meeting conference url","date_overrides": "Date overrides",@@ -2174,9 +2175,9 @@"date_overrides_unavailable": "Unavailable all day","date_overrides_mark_all_day_unavailable_one": "Mark unavailable (All day)","date_overrides_mark_all_day_unavailable_other": "Mark unavailable on selected dates",- "date_overrides_update_btn": "Update Override",+ "date_overrides_update_btn": "Update override","date_successfully_added": "Date override added successfully",- "date_overrides_save_btn": "Save Override",+ "date_overrides_save_btn": "Save override","event_type_duplicate_copy_text": "{{slug}}-copy","set_as_default": "Set as default","hide_eventtype_details": "Hide event type details",@@ -2200,15 +2201,15 @@"change_password_admin": "Change your password to gain admin access","username_already_taken": "Username is already taken","assignment": "Assignment",- "fixed_hosts": "Fixed Hosts",+ "fixed_hosts": "Fixed hosts","add_fixed_hosts": "Add fixed hosts",- "round_robin_hosts": "Round-Robin Hosts",+ "round_robin_hosts": "Round-robin hosts","minimum_round_robin_hosts_count": "Number of hosts required to attend","hosts": "Hosts","upgrade_to_enable_feature": "You need to create a team to enable this feature. Click here to create a team.","orgs_upgrade_to_enable_feature": "You need to upgrade to our enterprise plan to enable this feature.",- "new_attendee": "New Attendee",- "awaiting_approval": "Awaiting Approval",+ "new_attendee": "New attendee",+ "awaiting_approval": "Awaiting approval","requires_google_calendar": "This app requires a Google Calendar connection","event_type_requires_google_calendar": "The \"Add to calendar\" for this event type needs to be a Google Calendar for Meet to work. Connect it <0>here</0>.","connected_google_calendar": "You have connected a Google Calendar account.",@@ -2227,16 +2228,16 @@"choose_a_license": "Choose a license","choose_license_description": "Cal.com comes with an accessible and free AGPLv3 license which has limitations. We are onboarding Enterprise customers for the commercial license which you can inquire about by contacting sales below.","license": "License",- "agplv3_license": "AGPLv3 License",+ "agplv3_license": "AGPLv3 license","no_need_to_keep_your_code_open_source": "No need to keep your code open source","repackage_rebrand_resell": "Repackage, rebrand and resell easily","a_vast_suite_of_enterprise_features": "A vast suite of enterprise features","free_license_fee": "$0.00/month",- "forever_open_and_free": "Forever Open & Free",+ "forever_open_and_free": "Forever open & free","required_to_keep_your_code_open_source": "Required to keep your code open source","cannot_repackage_and_resell": "Cannot repackage, rebrand and resell easily","no_enterprise_features": "No enterprise features",- "step_enterprise_license": "Enterprise License",+ "step_enterprise_license": "Enterprise license","step_enterprise_license_description": "Everything for a commercial use case with private hosting, repackaging, rebranding and reselling and access exclusive enterprise components.","setup": "Setup","setup_description": "Setup Cal.com instance",@@ -2246,24 +2247,24 @@"sso_configuration_description_orgs": "Configure SAML/OIDC SSO and allow organization members to login using an Identity Provider","sso_oidc_heading": "SSO with OIDC","sso_oidc_description": "Configure OIDC SSO with Identity Provider of your choice.",- "sso_oidc_configuration_title": "OIDC Configuration",+ "sso_oidc_configuration_title": "OIDC configuration","sso_oidc_configuration_description": "Configure OIDC connection to your identity provider. You can find the required information in your identity provider.","sso_oidc_callback_copied": "Callback URL copied","sso_saml_heading": "SSO with SAML","sso_saml_description": "Configure SAML SSO with Identity Provider of your choice.",- "sso_saml_configuration_title": "SAML Configuration",+ "sso_saml_configuration_title": "SAML configuration","sso_saml_configuration_description": "Configure SAML connection to your identity provider. You can find the required information in your identity provider.","sso_saml_acsurl_copied": "ACS URL copied","sso_saml_entityid_copied": "Entity ID copied","sso_connection_created_successfully": "{{connectionType}} configuration created successfully","sso_connection_deleted_successfully": "{{connectionType}} configuration deleted successfully","delete_sso_configuration": "Delete {{connectionType}} configuration",- "delete_sso_configuration_confirmation": "Yes, delete {{connectionType}} configuration",+ "delete_sso_configuration_confirmation": "Delete {{connectionType}} configuration","delete_sso_configuration_confirmation_description": "Are you sure you want to delete the {{connectionType}} configuration? Your team members who use {{connectionType}} login will no longer be able to access Cal.com.","organizer_timezone": "Organizer timezone",- "email_user_cta": "View Invitation",- "accept_invite": "Accept Invite",- "join_now": "Join Now",+ "email_user_cta": "View invitation",+ "accept_invite": "Accept invite",+ "join_now": "Join now","successfully_joined": "Successfully joined","email_no_user_invite_heading_subteam": "You've been invited to join a team of {{parentTeamName}} organization","email_no_user_invite_heading_org": "You've been invited to join a {{appName}} organization",@@ -2323,32 +2324,33 @@"show_on_booking_page": "Show on booking page","visit_cancelled_booking": "You can visit the canceled booking page","get_started_zapier_templates": "Get started with Zapier templates",- "standard_templates": "Standard Templates",- "cal_ai_templates": "Cal.ai Templates",+ "standard_templates": "Standard templates",+ "cal_ai_templates": "Cal.ai templates","team_is_unpublished": "{{team}} is unpublished","org_is_unpublished_description": "This organization link is currently not available. Please contact the organization owner or ask them to publish it.","team_is_unpublished_description": "This team link is currently not available. Please contact the team owner or ask them to publish it.","team_member": "Team member",- "a_routing_form": "A Routing Form",- "form_description_placeholder": "Form Description",+ "a_routing_form": "A routing form",+ "form_description_placeholder": "Form description","keep_me_connected_with_form": "Keep me connected with the form","fields_in_form_duplicated": "Any changes made to the router or fields of the form being duplicated will be reflected in the duplicate. However, deleting a field will not remove it from the duplicate.","form_deleted": "Form deleted","delete_form": "Are you sure you want to delete this form?",- "delete_form_action": "Yes, delete Form",+ "delete_form_action": "Delete form","delete_form_confirmation": "Anyone who you've shared the link with will no longer be able to access it.","delete_form_confirmation_2": "All associated responses will be deleted.","typeform_redirect_url_copied": "Redirect URL copied! You can go and set the URL in your own form.","modifications_in_fields_warning": "Modifications in fields and routes of following forms will be reflected in this form.",- "connected_forms": "Connected Forms",+ "connected_forms": "Connected forms","form_modifications_warning": "Following forms would be affected when you modify fields or routes here.","responses_collection_waiting_description": "Wait for some time for responses to be collected. You can go and submit the form yourself as well.","this_is_what_your_users_would_see": "This is what your users would see","identifies_name_field": "Identifies field by this name.",- "identifier_url_parameter": "Identifier (URL Parameter, i.e.: &what-is-your-name=john-doe)",+ "identifier_url_parameter": "Identifier",+ "identifier_url_parameter_hint": "Used for URL parameters, like &name=john","add_1_option_per_line": "Add 1 option per line","select_a_router": "Select a router",- "add_a_new_route": "Add a new Route",+ "add_a_new_route": "Add a new route","make_informed_decisions": "Make informed decisions with Insights","make_informed_decisions_description": "Our Insights dashboard surfaces all activity across your team and shows you trends that enable better team scheduling and decision making.","view_bookings_across": "View bookings across all members",@@ -2384,14 +2386,14 @@"event_end_time_info": "The event end time","cancel_url_variable": "Cancel URL","cancel_url_info": "The URL to cancel the booking",- "cancel_reason_variable": "Cancellation Reason",+ "cancel_reason_variable": "Cancellation reason","cancel_reason_info": "The reason for canceling the booking","reschedule_url_variable": "Reschedule URL","reschedule_url_info": "The URL to reschedule the booking",- "reschedule_reason_variable": "Reschedule Reason",+ "reschedule_reason_variable": "Reschedule reason","reschedule_reason_info": "The reason for rescheduling the booking","invalid_event_name_variables": "{{item}} is an invalid variable in your event name",- "select_all": "Select All",+ "select_all": "Select all","default_conferencing_bulk_title": "Bulk update existing event types","members_default_schedule": "Member's default schedule","set_by_admin": "Set by team admin",@@ -2424,7 +2426,7 @@"managed_event_dialog_information_one": "<strong>{{names}}</strong> is already using the <strong>/{{slug}}</strong> url.","managed_event_dialog_information_other": "<strong>{{names}}</strong> are already using the <strong>/{{slug}}</strong> url.","managed_event_dialog_clarification": "If you choose to replace it, we will notify them. Go back and remove them if you don't want to overwrite it.",- "review_event_type": "Review Event Type",+ "review_event_type": "Review event type","looking_for_more_analytics": "Looking for more analytics?","looking_for_more_insights": "Looking for more Insights?","filters": "Filters",@@ -2434,31 +2436,31 @@"add_rule": "Add rule","add_rule_group": "Add rule group","remove_filters": "Clear all filters",- "email_verified": "Email Verified",- "select_user": "Select User",- "select_event_type": "Select Event Type",- "select_date_range": "Select Date Range",- "popular_events": "Popular Events",+ "email_verified": "Email verified",+ "select_user": "Select user",+ "select_event_type": "Select event type",+ "select_date_range": "Select date range",+ "popular_events": "Popular events","no_event_types_found": "No event types found",- "average_event_duration": "Average Event Duration",- "bookings_by_hour": "Bookings by Hour",- "most_booked_members": "Most Booked",- "least_booked_members": "Least Booked",- "most_bookings_scheduled": "Most Bookings Scheduled",- "least_bookings_scheduled": "Least Bookings Scheduled",- "most_bookings_completed": "Most Bookings Completed",- "least_bookings_completed": "Least Bookings Completed",- "events_created": "Events Created",- "events_completed": "Events Completed",- "events_cancelled": "Events Cancelled",- "events_rescheduled": "Events Rescheduled",+ "average_event_duration": "Average event duration",+ "bookings_by_hour": "Bookings by hour",+ "most_booked_members": "Most booked",+ "least_booked_members": "Least booked",+ "most_bookings_scheduled": "Most bookings scheduled",+ "least_bookings_scheduled": "Least bookings scheduled",+ "most_bookings_completed": "Most bookings completed",+ "least_bookings_completed": "Least bookings completed",+ "events_created": "Events created",+ "events_completed": "Events completed",+ "events_cancelled": "Events cancelled",+ "events_rescheduled": "Events rescheduled","events": "Events","performance": "Performance","from_last_period": "from last period","from_to_date_period": "From: {{startDate}} To: {{endDate}}","redirect_url_warning": "Adding a redirect will disable the success page. Make sure to mention \"Booking Confirmed\" on your custom success page.",- "event_trends": "Event Trends",- "clear_filters": "Clear Filters",+ "event_trends": "Event trends",+ "clear_filters": "Clear filters","clear": "Clear","hold": "Hold","on_booking_option": "Collect payment on booking",@@ -2467,7 +2469,7 @@"charge_card": "Charge card","card_charged": "Card charged","no_show_fee_amount": "{{amount, currency}} no-show fee",- "no_show_fee": "No-show Fee",+ "no_show_fee": "No-show fee","submit_card": "Submit card","submit_payment_information": "Submit payment information","meeting_awaiting_payment_method": "Your meeting is awaiting a payment method",@@ -2482,11 +2484,11 @@"amount_must_convert_to_at_least": "Minimum payment amount is $0.50 USD. Please increase your payment amount.","could_not_charge_card": "Could not charge card for payment.","insights": "Insights",- "routing_forms": "Routing Forms",+ "routing_forms": "Routing forms","insights_no_data_found_for_filter": "No data found for the selected filter or selected dates.",- "no_show_hosts_over_time": "No-Show Hosts Over Time",- "csat_over_time": "CSAT Over Time",- "no_show_hosts": "No-Show Hosts",+ "no_show_hosts_over_time": "No-show hosts over time",+ "csat_over_time": "CSAT over time",+ "no_show_hosts": "No-show hosts","csat": "CSAT","acknowledge_booking_no_show_fee": "I acknowledge that if I do not attend this event that a {{amount, currency}} no show fee will be applied to my card.","days": "days",@@ -2501,7 +2503,7 @@"edit_invite_link": "Edit link settings","invite_link_copied": "Invite link copied","invite_link_deleted": "Invite link deleted",- "api_key_deleted": "API Key deleted",+ "api_key_deleted": "API key deleted","delete_api_key_warning": "This will permanently delete the API key. Any applications using this key will immediately lose access to your account. This action cannot be undone.","invite_link_updated": "Invite link settings saved","link_expires_after": "Links set to expire after...",@@ -2520,7 +2522,7 @@"error_collecting_card": "Error collecting card","image_size_limit_exceed": "Uploaded image shouldn't exceed 5mb size limit","unauthorized_workflow_error_message": "{{errorCode}}: You are not authorized to enable or disable this workflow",- "inline_embed": "Inline Embed",+ "inline_embed": "Inline embed","load_inline_content": "Loads your event type directly inline with your other website content.","floating_pop_up_button": "Floating pop-up button","floating_button_trigger_modal": "Puts a floating button on your site that triggers a modal with your event type.",@@ -2578,7 +2580,7 @@"invite_organization_admins_description": "Invite others to join your organization. You can add members later.","set_a_password": "Set a password","set_a_password_description": "This will create a new user account with your organization email and this password.",- "organization_logo": "Organization Logo",+ "organization_logo": "Organization logo","organization_about_description": "A few sentences about your organization. This will appear on your organization public profile page.","ill_do_this_later": "I'll do this later","verify_your_email": "Verify your email",@@ -2621,20 +2623,20 @@"insights_team_filter": "Team: {{teamName}}","insights_user_filter": "User: {{userName}}","insights_subtitle": "View booking insights across your events",- "call_history": "Call History",+ "call_history": "Call history","call_history_subtitle": "View call history across your Cal.ai calls","location_options": "{{locationCount}} location options",- "channel_type": "Channel Type",- "end_reason": "End Reason",- "session_status": "Session Status",- "user_sentiment": "User Sentiment",+ "channel_type": "Channel type",+ "end_reason": "End reason",+ "session_status": "Session status",+ "user_sentiment": "User sentiment","time_header": "Time","from_header": "From",- "custom_plan": "Custom Plan",- "email_embed": "Email Embed",- "add_times_to_your_email": "Select a few available times and embed them in your Email",- "select_time": "Select Time",- "select_date": "Select Date",+ "custom_plan": "Custom plan",+ "email_embed": "Email embed",+ "add_times_to_your_email": "Select a few available times and embed them in your email",+ "select_time": "Select time",+ "select_date": "Select date","only_show_if_parameter_set": "Only show if a parameter is set","add_parameter": "Add parameter","connecting_you_to_someone": "We are connecting you to someone from {{orgName}}.",@@ -2678,9 +2680,9 @@"description_requires_booker_email_verification": "To ensure booker's email verification before scheduling events","requires_confirmation_mandatory": "Text messages can only be sent to attendees when event type requires confirmation.","organizations": "Organizations",- "upload_cal_video_logo": "Upload Cal Video Logo",- "update_cal_video_logo": "Update Cal Video Logo",- "upload_banner": "Upload Banner",+ "upload_cal_video_logo": "Upload Cal Video logo",+ "update_cal_video_logo": "Update Cal Video logo",+ "upload_banner": "Upload banner","cal_video_logo_upload_instruction": "To ensure your logo is visible against Cal video's dark background, please upload a light-colored image in PNG or SVG format to maintain transparency.","org_admin_other_teams": "Other teams","org_admin_other_teams_description": "Here you can see teams inside your organization that you are not part of. You can add yourself to them if needed.",@@ -2691,21 +2693,21 @@"attendee_last_name_variable": "Attendee last name","attendee_first_name_info": "The person booking's first name","attendee_last_name_info": "The person booking's last name",- "your_monthly_digest": "Your Monthly Digest",- "member_name": "Member Name",- "most_popular_events": "Most Popular Events",+ "your_monthly_digest": "Your monthly digest",+ "member_name": "Member name",+ "most_popular_events": "Most popular events","summary_of_events_for_your_team_for_the_last_30_days": "Here's your summary of popular events for your team {{teamName}} for the last 30 days","me": "Me",- "meeting_unavailable": "Meeting Unavailable",+ "meeting_unavailable": "Meeting unavailable","monthly_digest_email": "Monthly digest email","monthly_digest_email_for_teams": "Monthly digest email for teams","verify_team_tooltip": "Verify your team to enable sending messages to attendees","member_removed": "Member removed",- "my_availability": "My Availability",- "team_availability": "Team Availability",+ "my_availability": "My availability",+ "team_availability": "Team availability","instant_meeting_availability": "Instant meeting availability",- "backup_code": "Backup Code",- "backup_codes": "Backup Codes",+ "backup_code": "Backup code",+ "backup_codes": "Backup codes","backup_code_instructions": "Each backup code can be used exactly once to grant access without your authenticator.","backup_codes_copied": "Backup codes copied!","incorrect_backup_code": "Backup code is incorrect.",@@ -2716,15 +2718,15 @@"admin_org_notification_email_title": "An organization requires DNS setup","admin_org_notification_email_body_part1": "An organization with slug \"{{orgSlug}}\" was created.<br /><br />Please be sure to configure your DNS registry to point the subdomain corresponding to the new organization to where the main app is running. Otherwise the organization will not work.<br /><br />Here are just the very basic options to configure a subdomain to point to their app so it loads the organization profile page.<br /><br />You can do it either with the A Record:","admin_org_notification_email_body_part2": "Or the CNAME record:",- "admin_org_notification_email_body_part3": "Once you configure the subdomain, please mark the DNS configuration as done in Organizations Admin Settings.",- "admin_org_notification_email_cta": "Go to Organizations Admin Settings",+ "admin_org_notification_email_body_part3": "Once you configure the subdomain, please mark the DNS configuration as done in organizations admin settings.",+ "admin_org_notification_email_cta": "Go to organizations admin settings","org_has_been_processed": "Org has been processed","org_error_processing": "There has been an error processing this organization","orgs_page_description": "A list of all organizations. Accepting an organization will allow all users with that email domain to sign up WITHOUT email verification.","unverified": "Unverified","verified": "Verified",- "dns_missing": "DNS Missing",- "dns_configured": "DNS Configured",+ "dns_missing": "DNS missing",+ "dns_configured": "DNS configured","mark_dns_configured": "Mark as DNS configured","value": "Value","your_organization_updated_sucessfully": "Your organization updated successfully",@@ -2743,26 +2745,26 @@"scheduling_for_your_team": "Workflow automation","scheduling_for_your_team_description": "Schedule for your team with collective and round-robin scheduling","no_members_found": "No members found",- "directory_sync": "Directory Sync",- "directory_name": "Directory Name",- "directory_provider": "Directory Provider",+ "directory_sync": "Directory sync",+ "directory_name": "Directory name",+ "directory_provider": "Directory provider","directory_scim_url": "SCIM Base URL","directory_scim_token": "SCIM Bearer Token","directory_scim_url_copied": "SCIM Base URL copied","directory_scim_token_copied": "SCIM Bearer Token copied","directory_sync_info_description": "Your Identity Provider will ask for the following information to configure SCIM. Follow the instructions to finish the setup.",- "directory_sync_configure": "Configure Directory Sync",+ "directory_sync_configure": "Configure directory sync","directory_sync_configure_description": "Choose an identity provider to configure directory for your team.","directory_sync_title": "Configure an identity provider to get started with SCIM.","directory_sync_created": "Directory sync connection created.","directory_sync_description": "Provision and de-provision users with your directory provider.","directory_sync_deleted": "Directory sync connection deleted.",- "directory_sync_delete_connection": "Delete Connection",- "directory_sync_delete_title": "Delete Directory Sync Connection",+ "directory_sync_delete_connection": "Delete connection",+ "directory_sync_delete_title": "Delete directory sync connection","directory_sync_delete_description": "Are you sure you want to delete this directory sync connection?","directory_sync_delete_confirmation": "This action cannot be undone. This will permanently delete the directory sync connection.","event_setup_length_error": "Event Setup: The duration must be at least 1 minute.",- "availability_schedules": "Availability Schedules",+ "availability_schedules": "Availability schedules","unauthorized": "Unauthorized","access_cal_account": "{{clientName}} would like access to your {{appName}} account","select_account_team": "Select account or team",@@ -2779,14 +2781,14 @@"allow": "Allow","view_only_edit_availability_not_onboarded": "This user has not completed onboarding. You will not be able to set their availability until they have completed onboarding.","view_only_edit_availability": "You are viewing this user's availability. You can only edit your own availability.",- "you_can_override_calendar_in_advanced_tab": "You can override this on a per-event basis in Advanced settings in each event type.",+ "you_can_override_calendar_in_advanced_tab": "You can override this on a per-event basis in the advanced settings in each event type.","edit_users_availability": "Edit user's availability: {{username}}","resend_invitation": "Resend invitation","invitation_resent": "The invitation was resent.","saml_sso": "SAML","add_client": "Add client","copy_client_secret_info": "After copying the secret you won't be able to view it anymore",- "add_new_client": "Add new Client",+ "add_new_client": "Add new client","add_new_user": "Add new user","this_app_is_not_setup_already": "This app has not been setup yet","as_csv": "as CSV",@@ -2805,24 +2807,24 @@"description_lock_timezone_toggle_on_booking_page": "To lock the timezone on booking page, useful for in-person events. <0>Learn more</0>","event_setup_multiple_payment_apps_error": "You can only have one payment app enabled per event type.","number_in_international_format": "Please enter number in international format.",- "install_calendar": "Install Calendar",- "branded_subdomain": "Branded Subdomain",+ "install_calendar": "Install calendar",+ "branded_subdomain": "Branded subdomain","branded_subdomain_description": "Get your own branded subdomain, such as acme.cal.com",- "org_insights": "Organization-wide Insights",+ "org_insights": "Organization-wide insights","org_insights_description": "Understand how your entire organization is spending time",- "extensive_whitelabeling": "Extensive Whitelabeling",+ "extensive_whitelabeling": "Extensive whitelabeling","extensive_whitelabeling_description": "Customize your scheduling experience with your own logo, colors, and more",- "unlimited_teams": "Unlimited Teams",+ "unlimited_teams": "Unlimited teams","verify_email": "Verify email","proceed_with_cancellation_description": "Please enter the email address used for this booking to proceed with cancellation","proceed_with_cancellation_error": "Email doesn't match the booking email","unlimited_teams_description": "Add as many subteams as you need to your organization",- "unified_billing": "Unified Billing",- "advanced_managed_events": "Advanced Managed Event Types",+ "unified_billing": "Unified billing",+ "advanced_managed_events": "Advanced managed event types","advanced_managed_events_description": "Add a single credit card to pay for all your team's subscriptions","enterprise": "Enterprise",- "enterprise_description": "Upgrade to Enterprise to create your Organization",- "create_your_org": "Create your Organization",+ "enterprise_description": "Upgrade to Enterprise to create your organization",+ "create_your_org": "Create your organization","create_org": "Create organization","create_your_org_description": "Upgrade to Organizations and receive a subdomain, unified billing, Insights, extensive whitelabeling and more","create_your_enterprise_description": "Upgrade to Enterprise and get access to Active Directory Sync, SCIM Automatic User provisioning, Cal.ai Voice Agents, Admin APIs and more!",@@ -2838,16 +2840,16 @@"troubleshooter_tooltip": "Open the troubleshooter and figure out what is wrong with your schedule","need_help": "Need help?","troubleshooter": "Troubleshooter",- "number_to_call": "Number to Call",- "guest_name": "Guest Name",- "guest_email": "Guest Email",- "guest_company": "Guest Company",+ "number_to_call": "Number to call",+ "guest_name": "Guest name",+ "guest_email": "Guest email",+ "guest_company": "Guest company","please_install_a_calendar": "Please install a calendar",- "instant_tab_title": "Instant Booking",+ "instant_tab_title": "Instant booking","instant_event_tab_description": "Let people book immediately","uprade_to_create_instant_bookings": "Upgrade to Enterprise and let guests join an instant call that attendees can jump straight into. This is only for team event types","dont_want_to_wait": "Don't want to wait?",- "meeting_started": "Meeting Started",+ "meeting_started": "Meeting started","pay_and_book": "Pay to book","cal_ai_event_tab_description": "Let AI Agents book you","booking_not_found_error": "Could not find booking",@@ -2870,18 +2872,18 @@"booking_redirect_infinite_not_allowed": "There is already a booking redirect from that user to you.","success_entry_created": "Successfully created a new entry","booking_redirect_email_subject": "Booking redirect notification",- "booking_redirect_email_title": "Booking Redirect Notification",+ "booking_redirect_email_title": "Booking redirect notification","booking_redirect_email_description": "You have received a booking redirection from {{eventOwner}} so their profile links will be redirect to yours for the time interval {{dates}}.","booking_redirect_updated_email_subject": "Booking redirect edit notification",- "booking_redirect_updated_email_title": "Booking Redirect Edit Notification",+ "booking_redirect_updated_email_title": "Booking redirect edit notification","booking_redirect_updated_email_description": "Your booking redirection from {{eventOwner}} for the time interval {{oldDates}} has been udpated. New time interval for the redirection is {{dates}}.","booking_redirect_cancelled_email_subject": "Booking redirect cancel notification",- "booking_redirect_cancelled_email_title": "Booking Redirect Cancel Notification",+ "booking_redirect_cancelled_email_title": "Booking redirect cancel notification","booking_redirect_cancelled_email_description": "Your booking redirection from {{eventOwner}}, for time interval {{dates}} has been canceled.","success_accept_booking_redirect": "You have accepted this booking redirect request.","success_reject_booking_redirect": "You have rejected this booking redirect request.","copy_link_booking_redirect_request": "Copy link to share request",- "booking_redirect_request_title": "Booking Redirect Request",+ "booking_redirect_request_title": "Booking redirect request","select_team_member": "Select team member","going_away_title": "Going away? Simply mark your profile link as unavailable for a period of time.","redirect_team_enabled": "Provide a link to a team member when OOO",@@ -2889,7 +2891,7 @@"out_of_office_unavailable_list": "Out of office unavailability list","success_deleted_entry_out_of_office": "Successfully deleted entry","success_edited_entry_out_of_office": "Successfully edited entry",- "temporarily_out_of_office": "Temporarily Out-Of-Office?",+ "temporarily_out_of_office": "Temporarily out-of-office?","add_a_redirect": "Add a redirect","create_entry": "Create entry","time_range": "Time range",@@ -2905,9 +2907,9 @@"high": "high","Highest": "highest","send_booker_to": "Send Booker to",- "set_priority": "Set Priority",- "set_weight": "Set Weight",- "enable_weights": "Enable Weights",+ "set_priority": "Set priority",+ "set_weight": "Set weight",+ "enable_weights": "Enable weights","priority_for_user": "Priority for {{userName}}","weights_description": "Weights determine how meetings are distributed among hosts. <0>Learn more</0>","weight_for_user": "Weight for {{userName}}",@@ -2928,14 +2930,14 @@"unmark_as_no_show": "Unmark no-show","account_unlinked_success": "Account unlinked successfully","account_unlinked_error": "There was an error unlinking the account",- "travel_schedule": "Travel Schedule",+ "travel_schedule": "Travel schedule","travel_schedule_description": "Plan your trip ahead to keep your existing schedule in a different timezone and prevent being booked at midnight.","schedule_timezone_change": "Schedule timezone change","date": "Date","enter_the_general_prompt_for_the_agent": "Enter the general prompt for the agent","overlaps_with_existing_schedule": "This overlaps with an existing schedule. Please select a different date.","org_admin_no_slots|heading": "No availability found for {{name}}",- "org_admin_no_slots|content": "Hello Organization Admins,<br /><br />Please note: It has been brought to our attention that {{username}} has not had any availability when a user has visited {{username}}/{{slug}}<br /><br />There's a few reasons why this could be happening<br />The user does not have any calendars connected<br />Their schedules attached to this event are not enabled<br /> <br />We recommend checking their availability to resolve this.",+ "org_admin_no_slots|content": "Hello organization admins,<br /><br />Please note: It has been brought to our attention that {{username}} has not had any availability when a user has visited {{username}}/{{slug}}<br /><br />There's a few reasons why this could be happening<br />The user does not have any calendars connected<br />Their schedules attached to this event are not enabled<br /> <br />We recommend checking their availability to resolve this.","org_admin_no_slots|cta": "Open users availability","organization_no_slots_notification_switch_title": "Get notifications when your team has no availability","organization_no_slots_notification_switch_description": "Admins will get email notifications when a user tries to book a team member and is faced with 'No availability'. We trigger this email after two occurrences and remind you every 7 days per user. ",@@ -2966,18 +2968,18 @@"privacy_and_security": "Privacy & Security","team_will_be_under_org": "New teams will be under your organization","add_group_name": "Add group name",- "group_name": "Group Name",+ "group_name": "Group name","routers": "Routers","primary": "Primary","make_primary": "Make primary",- "add_email": "Add Email",- "add_emails": "Add Emails",+ "add_email": "Add email",+ "add_emails": "Add emails","add_email_description": "Add an email address to replace your primary or to use as an alternative email on your event types.","confirm_email": "Confirm your email","confirming_your_booking_sms": "$t(hey_there) {{name}}, confirming your booking on {{date}}.","scheduler_first_name": "The first name of the person booking","scheduler_last_name": "The last name of the person booking",- "scheduler_name": "Scheduler Name",+ "scheduler_name": "Scheduler name","organizer_first_name": "Your first name","confirm_email_description": "We sent an email to <strong>{{email}}</strong>. Click the link in the email to verify this address.","send_event_details_to": "Send event details to",@@ -2994,7 +2996,7 @@"org_auto_join_description": "New members are added after they verify their email.","add_to_event_type": "Add to event type","create_account_password": "Create account password",- "create_account_with_saml": "Create Account with SAML",+ "create_account_with_saml": "Create account with SAML","error_creating_account_password": "Failed to create account password","cannot_create_account_password_cal_provider": "Cannot create account password for cal accounts","cannot_create_account_password_already_existing": "Cannot create account password for already created ones",@@ -3002,15 +3004,15 @@"disconnect_account": "Disconnect connected account","disconnect_account_hint": "Disconnecting your connected account will change the way you log in. You will only be able to login to your account using email + password","cookie_consent_checkbox": "I agree to the privacy policy and cookie usage",- "make_a_call": "Make a Call",+ "make_a_call": "Make a call","skip_rr_assignment_label": "Skip round robin assignment if contact exists in Salesforce","skip_rr_description": "URL must contain the contacts email as a parameter ex. ?email=contactEmail",- "select_account_header": "Select Account",+ "select_account_header": "Select account","select_account_description": "Install {{appName}} on your personal account or on a team account.",- "select_event_types_header": "Select Event Types",+ "select_event_types_header": "Select event types","select_event_types_description": "On which event type do you want to install {{appName}}?","configure_app_header": "Configure {{appName}}",- "configure_app_description": "Finalise the App setup. You can change these settings later.",+ "configure_app_description": "Finalise the app setup. You can change these settings later.","already_installed": "already installed","ooo_reasons_unspecified": "Unspecified","ooo_reasons_vacation": "Vacation",@@ -3036,30 +3038,30 @@"review": "Review","reviewed": "Reviewed","unreviewed": "Unreviewed",- "rating_url_variable": "Rating url",+ "rating_url_variable": "Rating URL","rating_url_info": "The URL for Rating Feedback Form",- "no_show_url_variable": "No Show url",- "no_show_url_info": "The URL for No Show Feedback",+ "no_show_url_variable": "No Show URL",+ "no_show_url_info": "The URL for no show feedback","no_support_needed": "No Support Needed?",- "hide_support": "Hide Support",- "event_ratings": "Average Ratings",+ "hide_support": "Hide support",+ "event_ratings": "Average ratings","event_no_show": "No-Show (Host)","event_no_show_guest": "No-Show (Guest)",- "recent_ratings": "Recent Ratings",+ "recent_ratings": "Recent ratings","no_ratings": "No ratings submitted","no_ratings_description": "Add a workflow with 'Rating' to collect ratings after meetings",- "most_no_show_host": "Most No-Show",- "highest_rated": "Highest Rated",- "lowest_rated": "Lowest Rated",+ "most_no_show_host": "Most no-show",+ "highest_rated": "Highest rated",+ "lowest_rated": "Lowest rated","highest_rated_members": "Members with highest rated meetings","lowest_rated_members": "Members with lowest rated meetings",- "csat_score": "CSAT Score",+ "csat_score": "CSAT score","lockedSMS": "Locked SMS","leave_without_assigning_anyone": "Leave without assigning anyone?","leave_without_adding_attendees": "Are you sure want to leave this event without adding attendees?","no_availability_shown_to_bookers": "If you don't assign anyone for this event, there will be no availability shown to bookers.",- "go_back_and_assign": "Go back and Assign",- "leave_without_assigning": "Leave without Assigning",+ "go_back_and_assign": "Go back and assign",+ "leave_without_assigning": "Leave without assigning","signing_up_terms": "By proceeding, you agree to our <0>Terms</0> and <1>Privacy Policy</1>.","proceeding_agreement": "By proceeding, you agree to our","terms": "Terms",@@ -3079,7 +3081,7 @@"team_settings_description": "Manage settings for you team","no_show_updated": "No-show status updated for attendees","email_copied": "Email copied",- "phone_number_copied": "Phone Number Copied",+ "phone_number_copied": "Phone number copied","USER_PENDING_MEMBER_OF_THE_ORG": "User is a pending member of the organization","USER_ALREADY_INVITED_OR_MEMBER": "User is already invited or a member","USER_MEMBER_OF_OTHER_ORGANIZATION": "User is member of an organization that this team is not a part of.",@@ -3088,7 +3090,7 @@"reassign_to_another_rr_host": "Reassign booking to another available round robin host","reassign_booking": "Reassign booking","reassign_to_another_user": "Reassign booking to another available team member",- "auto_reassign": "Auto Reassign",+ "auto_reassign": "Auto reassign","auto_reassign_description": "Automatically reassign to another available team member","specific_team_member": "Specific Team Member","specific_team_member_description": "Manually reassign to a specific team member",@@ -3164,8 +3166,8 @@"disable_all_emails_to_hosts": "Disable standard emails to hosts related to this event type","type_confirm_to_continue": "Type confirm to continue","disable_email": "Disable email",- "grant_admin_api": "Grant Admin API Access",- "revoke_admin_api": "Revoke Admin API Access",+ "grant_admin_api": "Grant admin API access",+ "revoke_admin_api": "Revoke admin API access","add_calendar_label": "Add {{calendar}} Calendar","apple_connect_atom_label": "Connect Apple Calendar","apple_connect_atom_already_connected_label": "Connected Apple Calendar",@@ -3185,7 +3187,7 @@"reschedule_with_same_round_robin_host_title": "Reschedule with same Round-Robin host","reschedule_with_same_round_robin_host_description": "Rescheduled events will be assigned to the same host as initially scheduled","disable_input_if_prefilled": "Disable input if the URL identifier is prefilled",- "booking_limits": "Booking Limits",+ "booking_limits": "Booking limits","booking_limits_team_description": "Booking limits for team members across all team event types","limit_team_booking_frequency_description": "Limit how many times members can be booked across all team event types","booking_limits_updated_successfully": "Booking limits updated successfully",@@ -3203,10 +3205,10 @@"month_to_date": "Month to date","year_to_date": "Year to date","custom_range": "Custom range",- "refund_policy": "Refund Policy",+ "refund_policy": "Refund policy","always": "Always","never": "Never",- "payment_option": "Payment Option",+ "payment_option": "Payment option","if_cancelled": "If cancelled","before": "before","show_all_columns": "Show all columns",@@ -3270,18 +3272,18 @@"confirm_reassign_available": "Host available","reassign_unavailable_team_member_description": "Are you sure you want to reassign this booking to an unavailable host?","reassign_available_team_member_description": "Are you sure you want to reassign this booking?",- "yes_reassign": "Yes, reassign",+ "yes_reassign": "Reassign","filter_by_attributes": "Filter by attributes","reassign_reason": "Reason for reassigning","field_type_change_suggestion": "Changing the field type may cause data loss. Please create a new field instead.","reassigned_by": "Reassigned by","row": "row","rows": "rows",- "attendee_timezone_variable": "Attendee Timezone",- "event_start_time_in_attendee_timezone_variable": "Event Start Time In Attendee Timezone",- "event_start_time_in_attendee_timezone_info": "Event Start Time In Attendee Timezone",- "event_end_time_in_attendee_timezone_info": "Event End Time In Attendee Timezone",- "event_end_time_in_attendee_timezone_variable": "Event End Time In Attendee Timezone",+ "attendee_timezone_variable": "Attendee timezone",+ "event_start_time_in_attendee_timezone_variable": "Event start time in attendee timezone",+ "event_start_time_in_attendee_timezone_info": "Event start time in attendee timezone",+ "event_end_time_in_attendee_timezone_info": "Event end time in attendee timezone",+ "event_end_time_in_attendee_timezone_variable": "Event end time in attendee timezone","salesforce_create_event_on_contact": "Create event on contact, if it exists. Else fallback to lead","salesforce_owner_name_to_change": "Owner name to change","no_filter_set": "No filter set",@@ -3298,34 +3300,34 @@"booking_created_date": "Booking created date","booking_reassigned_to_host": "Booking reassigned to {{host}}","no_contact_owner": "No contact owner",- "routing_forms_created": "Routing Forms Created",+ "routing_forms_created": "Routing forms created","routing_forms_total_responses": "Total Responses",- "routing_forms_total_responses_without_booking": "Total Responses Without Booking",- "routing_forms_total_responses_with_booking": "Total Responses With Booking",- "routing_form_insights": "No Bookings",+ "routing_forms_total_responses_without_booking": "Total responses without booking",+ "routing_forms_total_responses_with_booking": "Total responses with booking",+ "routing_form_insights": "No bookings","routing_form_insights_form_name_header": "Form Name","routing_form_insights_booking_status_header": "Booking",- "routing_form_insights_response_no_booking": "No Booking",+ "routing_form_insights_response_no_booking": "No booking","routing_form_insights_booked_by": "Booked by","routing_form_insights_created_at": "Created at",- "routing_form_insights_booking_status": "Booking Status",- "routing_form_insights_booking_at": "Booking At",- "routing_form_insights_submitted_at": "Submitted At",+ "routing_form_insights_booking_status": "Booking status",+ "routing_form_insights_booking_at": "Booking at",+ "routing_form_insights_submitted_at": "Submitted at","copy_redirect_url": "Copy Redirect URL",- "redirect_url_on_exit": "Redirect URL on Exit",- "total_bookings_per_period": "Total Bookings per period",+ "redirect_url_on_exit": "Redirect URL on exit",+ "total_bookings_per_period": "Total bookings per period","routed_to_per_period": "Routed to per period","per_day": "Per day","per_week": "Per week","per_month": "Per month",- "routing_form_insights_assignment_reason": "Assignment Reason",- "access_denied": "Access Denied",+ "routing_form_insights_assignment_reason": "Assignment reason",+ "access_denied": "Access denied","salesforce_route_to_owner": "Contact owner will be the Round Robin host if available","salesforce_add_attendees_as": "Add new attendees as","salesforce_do_not_route_to_owner": "Contact owner will not be forced (can still be host if it matches the attributes and Round Robin criteria)","salesforce_route_to_custom_lookup_field": "Route to a user that matches a lookup field on an account",- "salesforce_option": "Salesforce Option",- "lookup_field_name": "Lookup Field Name",+ "salesforce_option": "Salesforce option",+ "lookup_field_name": "Lookup field name","salesforce_if_free_email_domain_skip_owner_check": "If attendee has a free email domain, skip the ownership check and round robin as normal","filter_operator_is": "Is","filter_operator_is_not": "Is not",@@ -3347,7 +3349,7 @@"rr_distribution_method_availability_description": "Allows bookers to book meetings whenever a host is available. Use this to maximize the number of potential meetings booked and when the even distribution of meetings across hosts is less important.","rr_distribution_method_balanced_title": "Load balancing","rr_distribution_method_balanced_description": "We will monitor how many bookings have been made with each host and compare this with others, disabling some hosts that are too far ahead so bookings are evenly distributed.",- "edit_team_member_weights": "Edit Weights",+ "edit_team_member_weights": "Edit weights","weights_updated_successfully": "Weights updated successfully","require_confirmation_for_free_email": "Only require confirmation for free email providers (Ex. @gmail.com, @outlook.com)","exclude_emails_that_contain": "Exclude emails that contain",@@ -3358,11 +3360,11 @@"search_options": "Search options","disable_org_url_label": "Disable public organization profile and redirect","disable_org_url_description": "Redirects {{orgSlug}}.cal.com to {{destination}}",- "single_select": "Single Select",- "multi_select": "Multi Select",- "calendar_conflict_settings": "Calendar Conflict Settings",+ "single_select": "Single select",+ "multi_select": "Multi select",+ "calendar_conflict_settings": "Calendar conflict settings","select_calendars_conflict_check": "Select which calendars to check for conflicts",- "group_meeting": "Group Meeting",+ "group_meeting": "Group meeting","are_you_sure_you_want_to_remove_this_app_from": "Are you sure you want to remove this app from","disconnect_app_from": "Disconnect app from","salesforce_ignore_guests": "Do not create new records for guests added to the booking",@@ -3372,7 +3374,7 @@"lock_attribute_for_assignment": "Lock for assignment","lock_attribute_for_assignment_description": "Locking would only allow assignments from Directory Sync","attribute_edited_successfully": "Attribute edited successfully",- "group_options": "Group Options",+ "group_options": "Group options","group_options_description": "When a group option is assigned to a user, they behave as if all options within that group are assigned to them.","new_group_option": "New group option","attribute_weight_enabled": "Weights enabled",@@ -3383,14 +3385,14 @@"allow_rescheduling_past_events_description": "Enabling this option allows for past events to be rescheduled. <0>Learn more</0>","rerouted": "Rerouted","salesforce_assigned": "Salesforce assignment",- "router_position": "Router Position",+ "router_position": "Router position","show_matching_hosts": "Show matching hosts","no_active_queues": "No active queues for this input","weight": "Weight","calibration": "Calibration","shortfall": "Shortfall","routing_form": "Routing Form",- "no_routing_forms": "No Routing Forms created yet.",+ "no_routing_forms": "No routing forms created yet.","empty_routing_forms_description": "Create routing forms to select projects to view their routing positions","go_back_and_save": "Go back and save","save_changes": "Save changes",@@ -3409,22 +3411,22 @@"use_attribute_weights": "Use Attribute weights","if_enabled_ignore_event_type_weights": "If enabled, all weights set within the event type will be ignored","attribute_for_weights": "Attribute for weights",- "managed_users": "Managed Users",+ "managed_users": "Managed users","managed_users_description": "See all the managed users created by your OAuth client","can_you_tell_me_about": "Can you tell me about ","use_ai_to_answer_your_questions": "Use AI to answer your questions","error_fetching_answer": "Error while fetching answer ","k_bar_ai_error": "An unexpected error occured. Please try again later",- "select_oAuth_client": "Select Oauth Client",+ "select_oAuth_client": "Select OAuth client","on_every_instance": "On every instance","delegation_credential_feature_not_enabled": "Delegation credential feature is not enabled for your organization","internal_booking_note": "Internal Note","internal_note_cancellation_reason": "Reason shared with customer (optional)","internal_booking_note_description": "This note will be visible to only members of your team",- "internal_note_presets": "Internal Cancelation Notes Presets",+ "internal_note_presets": "Internal cancellation notes presets","internal_note_presets_description": "Create presets for internal notes that can be applied to bookings","internal_note_presets_updated_successfully": "Internal note presets updated successfully",- "add_preset": "Add Preset",+ "add_preset": "Add preset","authorize": "Authorize","next": "Next","hide": "Hide",@@ -3434,7 +3436,7 @@"asc": "Asc","desc": "Desc","verify_email_change": "Verify email change",- "buy_credits": "Buy Credits",+ "buy_credits": "Buy credits","credits": "Credits","credits_used": "Credits used","total_credits_remaining": "Total remaining",@@ -3470,7 +3472,7 @@"onboarding_not_found": "Onboarding not found","onboarding_already_complete": "Onboarding already complete","onboarding_already_complete_description": "This onboarding has already been completed. You can view your organization in settings.",- "resume_onboarding": "Resume Onboarding",+ "resume_onboarding": "Resume onboarding","resume_onboarding_description": "Continue with your organization onboarding process","payment_successful": "Payment successful!","handover_onboarding_page_title": "Handover onboarding",@@ -3487,7 +3489,7 @@"my_ooo": "My OOO","team_ooo": "Team OOO","out_of_office_team_description": "Manage your teams OOO.",- "create_ooo_dialog_team_title": "Create Out of Office",+ "create_ooo_dialog_team_title": "Create an out of office","create_ooo_dialog_team_subtitle": "Create an OOO for a team member","edit_ooo_dialog_team_subtitle": "Edit an OOO for a team member","ooo_team_empty_title": "Create OOO for your team",@@ -3501,14 +3503,14 @@"inactive_team_plan": "Inactive team plan","inactive_team_plan_description": "Your team plan is inactive. Check your subcription or reach out to customer support","limited_access_trial_mode": "Limited access during trial. Feature available after trial ends.",- "referral_program": "Referral Program",+ "referral_program": "Referral program","referral_text": "Refer and earn","dub_disabled_error_message": "You need a Dub API Key and Program Id to use this page.","uid": "UID","link": "Link","rows_per_page": "rows per page","pagination_status": "{{currentRange}} of {{totalItems}}",- "tip_username_plus": "Tip: You can add a '+' between usernames: cal.com/anna+brian to make a dynamic group meeting",+ "tip_username_plus": "Tip: You can add a '+' between usernames (e.g. cal.com/anna+brian) to meet with multiple people","user_has_no_team_yet": "You don't have a team yet","no_team_members": "You don't have team members yet","recurring_event_doesnt_support_seats": "Recurring event doesn't support seats feature. Make it non-recurring to enable seats.",@@ -3518,9 +3520,9 @@"segment": "Segment","saved_filters": "Saved filters","rename": "Rename",- "rename_segment": "Rename Segment",- "delete_segment": "Delete Segment",- "duplicate_segment": "Duplicate Segment",+ "rename_segment": "Rename segment",+ "delete_segment": "Delete segment",+ "duplicate_segment": "Duplicate segment","delete_segment_confirmation": "Are you sure you want to delete this segment? This action cannot be undone.","filter_segment_updated": "Filter segment updated","error_updating_filter_segment": "Error updating filter segment",@@ -3539,16 +3541,16 @@"select_team": "Select team","please_select_team": "Please select a team","personal": "Personal",- "hide_team_profile_link": "Hide Team Profile Link",+ "hide_team_profile_link": "Hide team profile link","hide_team_profile_link_description": "Hide the team profile link on booking pages","display": "Display","could_not_find_slug_to_publish_org": "Could not find slug to publish the organization","picklist": "Picklist",- "most_cancelled_bookings": "Most Cancelled",- "interface_language": "Interface Language",+ "most_cancelled_bookings": "Most cancelled",+ "interface_language": "Interface language","interface_language_description": "Set your preferred language for the booking interface","visitors_browser_language": "Visitor's browser language",- "name_or_email": "Name or Email",+ "name_or_email": "Name or email","salesforce_round_robin_skip_fallback_to_lead_owner": "If no contact is found, fallback to lead owner if it exists","credit_purchase_failed": "Credit purchase failed. Please try again or contact support.","minimum_of_credits_required": "Minimum of 50 credits required",@@ -3556,10 +3558,10 @@"enable_delegation_credential_description": "Grant Cal.com automatic access to the calendars of all organization members by enabling delegation credential.","disable_delegation_credential": "Disable Delegation Credential","disable_delegation_credential_description": "Once delegation credential is disabled, organization members who haven't connected their calendars will need to do so manually.",- "last_active": "Last Active",- "member_since": "Member Since",- "last_updated": "Last Updated",- "completed_onboarding": "Completed Onboarding",+ "last_active": "Last active",+ "member_since": "Member since",+ "last_updated": "Last updated",+ "completed_onboarding": "Completed onboarding","salesforce_on_cancel_write_to_event": "On cancelled booking, write to event record instead of deleting event","salesforce_on_every_cancellation": "On every cancellation","report_issue": "Report issue",@@ -3574,14 +3576,14 @@"error_accessing_webhooks": "Error while trying to access webhooks.","webhook_update_failed": "Failed to update webhook.","webhook_create_failed": "Failed to create webhook.",- "invalid_link": "Invalid Link",+ "invalid_link": "Invalid link","currently_subscribed_to_plan": "You are currently subscribed to {{planFirstLetter}}{{planRest}} plan","user_team": "User/Team","client_id_copied": "Client ID copied!","client_secret_copied": "Client secret copied!","maintenance_message": "The Cal.com team are performing scheduled maintenance. If you have any questions, please contact support.","your_payment_failed": "Your payment failed",- "check_your_inbox": "Check your Inbox",+ "check_your_inbox": "Check your inbox","account_created_premium_not_reserved": "Your account has been created, but your premium has not been reserved.","email_sent_with_activation_link": "We have sent an email to {{email}} with a link to activate your account.","activate_account_to_purchase_username": "Once you activate your account you will be able to try purchase your premium username again or select a different one.",@@ -3592,12 +3594,12 @@"verification_email_sent": "Verification email sent","select_all_members": "Select all members","select_all_members_tooltip": "Selecting all members will add all future team members when they are added to the team.",- "form_settings": "Form Settings",+ "form_settings": "Form settings","remove_whitelist_status": "Remove whitelist status","whitelist_user_workflows": "Whitelist user workflows","user_workflows_whitelisted": "User workflows whitelisted","user_workflows_unwhitelisted": "User workflows unwhitelisted",- "date_and_time": "Date & Time",+ "date_and_time": "Date & time","email_reminder_upcoming_event_notice": "This is a reminder about your upcoming event.","event_upper_case": "Event","scheduling_by": "Scheduling by",@@ -3621,7 +3623,7 @@"sms_workflow_consent": "By entering your phone number you consent to receive SMS messages for this event. SMS rates may apply.","routing_preview_more_info_found_insights": "More info can be found in <0>Routing Insights</0>","results": "Results",- "view_form": "View Form",+ "view_form": "View form","sms_opt_out_message": "Text STOP to opt-out of SMS messages","team_credits_low_warning": "Your team {{teamName}} is running low on credits","user_credits_low_warning": "You are running low on credits",@@ -3646,13 +3648,13 @@"additional_credits": "Additional credits","routing_form_next_in_queue": "{{count}} next in queue","routing_form_select_members_to_email": "Send email responses to",- "routing_incomplete_booking_tab": "Incomplete Bookings",+ "routing_incomplete_booking_tab": "Incomplete bookings","include_no_show_in_rr_calculation": "Include no show bookings in round robin calculations",- "recent_no_show_guests": "Recent No-Show Guests",+ "recent_no_show_guests": "Recent no-show guests","recent_no_show_guests_tooltip": "Shows bookings where all attendees were no-shows, not partial no-shows","matching": "Matching",- "event_redirect": "Event Redirect",- "reset_form": "Reset Form",+ "event_redirect": "Event redirect",+ "reset_form": "Reset form","rr_settings_successfully_updated": "Round Robin settings successfully updated","distribution_basis_weighted_rr": "Distribution basis for weighted Round Robin","timestamp_basis_description": "Determines which event timestamp is used as the basis for weighted round robin distribution.",@@ -3661,9 +3663,9 @@"available_credits": "Available credits","create_role": "Create role","roles": "Roles",- "roles_and_permissions": "Roles & Permissions",+ "roles_and_permissions": "Roles & permissions","roles_and_permissions_description": "Manage roles and permissions for your organization",- "learn_more_permissions": "Learn more about how Permissions work",+ "learn_more_permissions": "Learn more about how permissions work","role_name": "Role name","role_name_required": "Role name is required","role_name_placeholder": "e.g. Sales Team, Support Staff",@@ -3677,31 +3679,31 @@"none": "None","read_only": "Read only","pbac_desc_all_actions_all_resources": "All actions on all resources",- "pbac_resource_all": "All Resources",- "pbac_resource_event_type": "Event Types",+ "pbac_resource_all": "All resources",+ "pbac_resource_event_type": "Event types","pbac_resource_team": "Teams","pbac_resource_organization": "Organization","pbac_resource_booking": "Bookings","pbac_resource_insights": "Insights","pbac_resource_role": "Roles",- "pbac_resource_routing_form": "Routing Forms",+ "pbac_resource_routing_form": "Routing forms","pbac_resource_workflow": "Workflows",- "pbac_action_all": "All Actions",+ "pbac_action_all": "All actions","pbac_action_create": "Create","pbac_action_read": "View","pbac_action_update": "Edit","pbac_action_delete": "Delete","pbac_action_manage": "Manage","pbac_action_invite": "Invite",- "pbac_action_remove": "Remove",- "pbac_action_change_member_role": "Change Member Role",- "pbac_action_list_members": "List Members",- "pbac_action_manage_billing": "Manage Billing",- "pbac_action_read_team_bookings": "View Team Bookings",- "pbac_action_read_org_bookings": "View Organization Bookings",- "pbac_action_read_recordings": "View Recordings",+ "pbac_action_remove": "Remove",+ "pbac_action_change_member_role": "Change member role",+ "pbac_action_list_members": "List members",+ "pbac_action_manage_billing": "Manage billing",+ "pbac_action_read_team_bookings": "View team bookings",+ "pbac_action_read_org_bookings": "View organization bookings",+ "pbac_action_read_recordings": "View recordings","pbac_action_impersonate": "Impersonate",- "pbac_action_edit_users": "Edit Users",+ "pbac_action_edit_users": "Edit users","role_created_successfully": "Role created successfully","role_updated_successfully": "Role updated successfully","delete_role": "Delete role",@@ -3726,7 +3728,7 @@"pbac_desc_delete_workflows": "Remove workflows from the system","pbac_resource_webhook": "Webhook","pbac_resource_availability": "Availability",- "pbac_resource_out_of_office": "Out of Office",+ "pbac_resource_out_of_office": "Out of office","pbac_resource_blocklist": "Blocklist","pbac_desc_create_webhooks": "Create webhooks","pbac_desc_view_webhooks": "View webhooks",@@ -3807,7 +3809,7 @@"no_members_affected_by_disabling_delegation_credential": "No members affected by disabling delegation credential","download_expense_log": "Download Expense Log","error_downloading_expense_log": "Error downloading expense log",- "require_booker_email_verification": "Prevent Impersonation on Bookings",+ "require_booker_email_verification": "Prevent impersonation on bookings","require_booker_email_verification_description": "When enabled, anyone trying to book events using your email address must verify they own it via a one time code or be logged in to prevent impersonation","reschedule_last_booking_offer": "Offer to reschedule the last booking to the new time slot","booker_upcoming_limit_reached": "You've reached the limit of {{count}} upcoming bookings for this event type",@@ -3818,28 +3820,28 @@"restriction_schedule_not_found_error": "Restriction schedule not found","converted_image_size_limit_exceed": "Image size limit exceeded, please use a smaller image preferably in JPEG format","add_group": "Add Group",- "routing_funnel": "Routing Funnel",- "routing_funnel_total_submissions": "Total Submissions",- "routing_funnel_successful_routings": "Successful Routings",- "routing_funnel_accepted_bookings": "Accepted Bookings",+ "routing_funnel": "Routing funnel",+ "routing_funnel_total_submissions": "Total submissions",+ "routing_funnel_successful_routings": "Successful routings",+ "routing_funnel_accepted_bookings": "Accepted bookings","license_key": "License key","license_selection_title": "Choose your license","license_selection_description": "Select how you want to license your Cal.com deployment",- "agplv3_license_description": "Use Cal.com under the AGPLv3 open source license",- "enter_license_key": "Enter License Key",+ "agplv3_license_description": "Use Cal.com under the AGPLv3 open source license",+ "enter_license_key": "Enter license key","enter_your_license_key": "Access to all enterprise features","enter_existing_license": "Starting at $15/user per month",- "enter_license_key_description": "Access to all enterprise features",+ "enter_license_key_description": "Access to all enterprise features","license_key_placeholder": "Enter your license key",- "save_license_key": "Save License Key",+ "save_license_key": "Save license key","signature_token_optional": "Signature token (optional)","signature_token_description": "Signature token is used to verify the license key is yours when incrementing usage based billing. You can find it in your purchase confirmation email. If you are on a legacy license, you can leave this blank.","need_a_license": "Need a license?","license_key_required": "License key is required","invalid_license_key": "Invalid license key","license_validation_failed": "Failed to validate license key",- "attachments_optional": "Attachments Optional",- "send_message": "Send Message",+ "attachments_optional": "Attachments optional",+ "send_message": "Send message","describe_the_issue": "Describe the issue","file_size_limit_exceed": "File size exceeds limit","invalid_file_type": "Invalid file type",@@ -3851,16 +3853,16 @@"timezone_mismatch_tooltip": "You are viewing the report based on your profile timezone ({{userTimezone}}), while your browser is set to timezone ({{browserTimezone}})","show_optimized_slots": "Optimized slots","show_optimized_slots_description": "Arrange time slots to optimize availability. <0>Learn more</0>",- "failed_bookings_by_field": "Failed Bookings By Field",+ "failed_bookings_by_field": "Failed bookings by field","failed_bookings": "Failed bookings","event_type_no_hosts": "No hosts are assigned to event type",- "cache_status": "Cache Status",+ "cache_status": "Cache status","cache_last_updated": "Last updated: {{timestamp}}","delete_cached_data": "Delete cached data","cache_deleted_successfully": "Cache deleted successfully","error_deleting_cache": "Error deleting cache","confirm_delete_cache": "Are you sure you want to delete the cached data? This action cannot be undone.",- "yes_delete_cache": "Yes, delete cache",+ "yes_delete_cache": "Delete cache","remainder_of_maximum_uses_left_plural": "{{remainder}} of {{maximum}} uses left","remainder_of_maximum_use_left_singular": "{{remainder}} of {{maximum}} use left","expires_on_date": "Expires on {{date}}, end of day",@@ -3870,7 +3872,7 @@"number_of_uses": "Number of uses","expires_on": "Expires on","max_usage_count": "Maximum number of uses",- "link_settings": "Link Settings",+ "link_settings": "Link settings","link_expired_on_date": "This link expired on {{date}}, end of day","usage_limit_reached": "Usage limit reached","usage_count_error": "Maximum usage count must be greater than current usage count",@@ -3883,7 +3885,7 @@"webhook_trigger_event": "The name of the trigger event (e.g., BOOKING_CREATED, BOOKING_CANCELLED)","webhook_created_at": "The time of the webhook","webhook_type": "The event type slug",- "set_up_agent": "Set up Agent",+ "set_up_agent": "Set up agent","webhook_title": "The event type name","webhook_start_time": "The event's start time","webhook_end_time": "The event's end time",@@ -3903,14 +3905,14 @@"webhook_attendee_email": "Email of the first attendee","webhook_attendee_timezone": "Timezone of the first attendee","webhook_attendee_locale": "Locale of the first attendee",- "webhook_version": "Webhook Version",+ "webhook_version": "Webhook version","webhook_version_docs": "View payload documentation for version {{version}}","webhook_team_name": "Name of the team booked","webhook_team_members": "Members of the team booked","webhook_video_call_url": "Video call URL for the meeting","webhook_hide_variables": "Hide variables","webhook_show_variable": "Show available variables",- "webhook_event_and_booking": "Event and Booking",+ "webhook_event_and_booking": "Event and booking","webhook_people": "People","webhook_teams": "Teams","webhook_metadata": "Metadata",@@ -3922,32 +3924,32 @@"visit": "Visit","location_custom_label_input_label": "Custom label on booking page","meeting_link": "Meeting link",- "session_outcome": "Session Outcome",- "call_created": "Call Created",+ "session_outcome": "Session outcome",+ "call_created": "Call created","voicemail": "Voicemail",- "my_bookings": "My Bookings",+ "my_bookings": "My bookings","phone": "Phone","free": "Free",- "user_email": "User Email",- "user_name": "User Name",- "expand_panel": "Expand Panel",- "collapse_panel": "Collapse Panel",+ "user_email": "User email",+ "user_name": "User name",+ "expand_panel": "Expand panel",+ "collapse_panel": "Collapse panel","email_verification_required": "Email verification is required for this event type","invalid_verification_code": "Invalid verification code provided","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.",- "message_sent": "Message Sent",+ "message_sent": "Message sent","support_message_sent_description": "Thank you for contacting us. We'll get back to you as soon as possible.","search_variables": "Search variables","support_message_placeholder": "Please describe the issue you're facing, e.g. 'Busy slots are marked available', ..., etc.","send_another_message": "Send another message","sending": "Sending","no_variables_found": "No variables found",- "credits_required": "Credits Required",+ "credits_required": "Credits required","web_call_credits_info": "Web calls consume credits. Make sure you have enough credits to start a call.","web_call_no_credits": "Web calls require credits. You have 0 credits remaining.",- "purchase_credits": "Purchase Credits",+ "purchase_credits": "Purchase credits","credits_required_tooltip": "This action requires credits to proceed","api_key_name_too_long": "Name must not exceed {{max}} characters","auto_charge_for_last_minute_cancellation": "Auto charge no-show fee for last minute cancellations",@@ -3958,14 +3960,14 @@"booking_time_option_description": "When the booking is scheduled (start to end)","created_at_option": "Created at","created_at_option_description": "When the booking was originally created",- "call_details": "Call Details",+ "call_details": "Call details","call_id": "Call ID",- "call_information": "Call Information",+ "call_information": "Call information","sentiment": "Sentiment",- "disconnect_reason": "Disconnect Reason",- "call_summary": "Call Summary",+ "disconnect_reason": "Disconnect reason",+ "call_summary": "Call summary","transcription": "Transcription",- "event_details": "Event Details",+ "event_details": "Event details","agent": "Agent","no_transcript_available": "No transcript available","testing_sms_workflow_info_message": "When testing this workflow, be aware that SMS need to be scheduled at least 15 minutes in advance",@@ -3974,35 +3976,35 @@"cal_ai_template_title": "Cal.ai template","cal_ai_template_description": "AI agents that book meetings, send reminders, and follow up!","voice": "Voice",- "select_voice": "Select Voice",+ "select_voice": "Select voice","select_voice_for_agent": "Select a voice for your agent","choose_a_voice_for_your_agent": "Choose a voice for your agent","trait": "Trait","voice_id": "Voice ID",- "use_voice": "Use Voice",- "current_voice": "Current Voice",+ "use_voice": "Use voice",+ "current_voice": "Current voice","setup_incoming_agent": "Set up incoming agent","setup_incoming_agent_description": "Configure an AI agent to handle incoming calls on your phone number","connect_a_phone_number_first": "Connect a Phone Number first","setup_agent_for_incoming_calls": "Set up Agent for incoming calls","configure_agent_to_handle_incoming_calls": "Configure agent to handle incoming calls",- "incoming_calls": "Incoming Calls",- "outgoing_calls": "Outgoing Calls",+ "incoming_calls": "Incoming calls",+ "outgoing_calls": "Outgoing calls","booking_fields_email_and_phone_both_hidden": "Both Email and Attendee Phone Number cannot be hidden","booking_fields_email_or_phone_required": "At least Email or Attendee Phone Number must be a required field","booking_fields_phone_required_when_email_hidden": "Attendee Phone Number must be required when Email is hidden","booking_fields_email_required_when_phone_hidden": "Email must be required when Attendee Phone Number is hidden","inbound_agent_setup_success": "Inbound agent setup successful","inbound_agent_configured": "Inbound agent configured",- "setup_inbound_agent": "Set up Inbound Agent",+ "setup_inbound_agent": "Set up inbound agent","please_select_event_type_first": "Please select an event type first",- "edit_configuration": "Edit Configuration",+ "edit_configuration": "Edit configuration","select_event_type_for_inbound_calls": "Inbound calls can book only one event type. Select the event type where meetings will be scheduled when callers reach your agent.","select_event_type_for_outbound_calls": "Select the event type that should be used to schedule meetings.","setup_inbound_agent_for_incoming_calls": "Set up inbound agent for incoming calls","no_event_types_available_for_test_call": "No event types available for a test call",- "create_block_entry": "Create Block Entry",- "blocklist_entry_details": "Blocklist Entry Details",+ "create_block_entry": "Create block entry",+ "blocklist_entry_details": "Blocklist entry details","blocklist_entry_not_found": "Blocklist entry not found","blocklist_entry_created": "Blocklist entry created successfully","blocklist_entry_deleted": "Blocklist entry deleted successfully",@@ -4011,21 +4013,21 @@"remove_value_from_blocklist": "Remove {{value}} from blocklist?","remove_value_from_blocklist_description": "The action is irreversible","delete_blocklist_entry_confirmation": "Are you sure you want to remove \"{{value}}\" from the blocklist? This action cannot be undone.",- "created_by": "Created By",- "blocked_by": "Blocked By",+ "created_by": "Created by",+ "blocked_by": "Blocked by","by": "By","added": "added","no_description_provided": "No description provided",- "organization_blocklist": "Organization Blocklist",+ "organization_blocklist": "Organization blocklist","manage_blocked_emails_and_domains": "Manage blocked emails and domains for your organization",- "guest_notifications": "Guest Notifications",+ "guest_notifications": "Guest notifications","guest_notifications_description": "Manage guest booking emails across all event types in your organization",- "guest_booking_email_notifications": "Guest Booking Email Notifications",+ "guest_booking_email_notifications": "Guest booking email notifications","guest_booking_email_notifications_description": "Manage which booking emails are sent to guests across all event types in your organization","disable_guest_emails_warning": "These settings control important booking emails to keep your guests updated. They apply to all event types in your organization. If you disable emails, we recommend setting up org-wide workflows instead.","disable_all_booking_emails_to_guests": "Disable all booking emails to guests",- "disable_all": "Disable All",- "enable_all": "Enable All",+ "disable_all": "Disable all",+ "enable_all": "Enable all","disable_all_booking_emails_to_guests_description": "When enabled, guests will not receive any booking-related emails. This does not affect Workflow emails.","disable_all_guest_booking_emails_confirm_title": "Are you sure you want to disable all booking emails?","disable_all_guest_booking_emails_confirm_description": "This will prevent guests from receiving important booking updates across all event types in your organization. We recommend setting up custom org-wide workflow.",@@ -4033,7 +4035,7 @@"enable_all_guest_booking_emails_confirm_description": "This will allow guests to receive all booking-related email notifications across all event types in your organization.","disable_individual_guest_email_confirm_title": "Are you sure you want to disable {{emailType}} emails?","disable_individual_guest_email_confirm_description": "This will prevent guests from receiving {{emailType}} emails across all event types in your organization. We recommend setting up a custom org-wide Workflow for this.",- "email_type": "Email Type",+ "email_type": "Email type","guest_confirmation_email_description": "Email sent when booking is created","guest_cancellation_email_description": "Email sent when booking is cancelled","guest_rescheduled_email_description": "Email sent when booking is rescheduled",@@ -4044,24 +4046,24 @@"attendee_reschedule_request_email_description": "Email sent when organizer requests attendee to reschedule","attendee_location_change_email_description": "Email sent when meeting location is updated","attendee_new_event_email_description": "Email sent to existing attendees when new guests are added",- "host_reassignment": "Host Reassignment",- "awaiting_payment": "Awaiting Payment",- "reschedule_request": "Reschedule Request",- "location_change": "Location Change",- "guest_added": "Guest Added",+ "host_reassignment": "Host reassignment",+ "awaiting_payment": "Awaiting payment",+ "reschedule_request": "Reschedule request",+ "location_change": "Location change",+ "guest_added": "Guest added","invalid_domain_format": "Invalid domain format. Example: example.com","invalid_email_address": "Invalid email address. Example: [email protected]","reason_for_adding_to_blocklist": "Reason for adding to blocklist","what_would_you_like_to_block": "What would you like to block?",- "domain_name": "Domain Name",+ "domain_name": "Domain name","blocked": "Blocked",- "reported_by": "Reported By",+ "reported_by": "Reported by","no_pending_reports": "No pending reports","spam": "Spam",- "dont_know_person": "Don't Know Person",+ "dont_know_person": "Don't know person","booking_report_dismissed": "Booking report dismissed",- "add_to_blocklist": "Add to Blocklist",- "booker_email": "Booker Email",+ "add_to_blocklist": "Add to blocklist",+ "booker_email": "Booker email","email_slash_domain": "Email/Domain","related_booking": "Related booking","dont_block": "Don't block",@@ -4069,13 +4071,13 @@"block_all_from_domain": "All from this domain","review_report": "Review report","block": "Block",- "system_blocklist": "System Blocklist",+ "system_blocklist": "System blocklist","system_blocklist_description": "Manage blocked emails and domains for all bookings on the platform","system_blocklist_entry_created": "System blocklist entry created successfully","system_blocklist_entry_deleted": "System blocklist entry deleted successfully",- "blocked_by_system_admin": "Blocked By (System Admin)",- "add_to_system_blocklist": "Add to System Blocklist",- "remove_from_system_blocklist": "Remove from System Blocklist",+ "blocked_by_system_admin": "Blocked by (System Admin)",+ "add_to_system_blocklist": "Add to system blocklist",+ "remove_from_system_blocklist": "Remove from system blocklist","add_people_to_system_blocklist": "Block emails and domains platform-wide for all users and teams","remove_value_from_system_blocklist": "Remove {{value}} from system blocklist?","remove_value_from_system_blocklist_description": "This will unblock the entry platform-wide for all users and teams. This action is irreversible.",@@ -4086,7 +4088,7 @@"system_wide_blocklist_warning_description": "This entry will block bookings for All users and teams on the platform.","source": "Source","manual": "Manual",- "free_domain_policy": "Free Domain Policy",+ "free_domain_policy": "Free domain policy","automatic": "Automatic","scope": "Scope","bulk_delete": "Delete",@@ -4103,9 +4105,9 @@"onboarding_org_details_subtitle": "Customize your booking pages with your Organization's name and bio","onboarding_org_bio_label": "Organization bio","onboarding_org_bio_placeholder": "Acme helps thousands of companies expand globally with unmatched speed and flexibility.",- "onboarding_org_teams_title": "Add your Organization's teams",+ "onboarding_org_teams_title": "Add your organization's teams","onboarding_org_teams_subtitle": "Start scheduling together by adding your teams",- "onboarding_org_brand_title": "Add your Organization's brand",+ "onboarding_org_brand_title": "Add your organization's brand","onboarding_org_brand_subtitle": "Customize your booking pages with your logo and a custom banner","onboarding_primary_color_label": "Primary color","onboarding_banner_label": "Banner",@@ -4144,28 +4146,28 @@"view_next_week": "View next week","invite_teammates": "Invite Teammates","invite_team_members": "Invite team members",- "organization_brand": "Organization Brand",- "organization_details": "Organization Details",- "organization_teams": "Organization Teams",- "personal_profile": "Personal Profile",- "personal_settings": "Personal Settings",+ "organization_brand": "Organization brand",+ "organization_details": "Organization details",+ "organization_teams": "Organization teams",+ "personal_profile": "Personal profile",+ "personal_settings": "Personal settings","customize_team_brand": "Customize your team brand",- "team_brand": "Team Brand",+ "team_brand": "Team brand","team_brand_subtitle": "Customize your team's branding with a logo and color",- "team_details": "Team Details",- "team_invite": "Team Invite",+ "team_details": "Team details",+ "team_invite": "Team invite","slots": "Slots","slots_taken": "{{takenSeats}}/{{totalSeats}} slots taken","team_invite_subtitle": "Invite team members to collaborate and schedule together","team_onboarding_details_subtitle": "Add your team's name and create a unique URL for your team","no_available_users_found_input": "No available users found","repeats_num_times": "Repeats {{count}} times",- "view_booking_details": "View Booking Details",+ "view_booking_details": "View booking details","cannot_delete_event_type": "This event type cannot be deleted","delete_event_type_confirmation": "Are you sure you want to delete this event type?","error_loading_event_types": "Error loading event types","recurring_booking_description": "Recurring {{frequency}} event with {{count}} occurrences",- "team_bio": "Team Bio",+ "team_bio": "Team bio","team_bio_placeholder": "Tell us about your team...","onboarding_invite_subtitle": "Connect your Google workspace, invite via email, upload a CSV file or copy the invite link and share it with your teammates to add them to your Team.","upload_csv_subtitle": "Upload a CSV file with team member emails to bulk invite",@@ -4191,7 +4193,7 @@"onboarding_browser_view_in_person_description": "Meet in person","onboarding_browser_view_ask_question": "Ask a question","onboarding_browser_view_ask_question_description": "Ask a question",- "onboarding_browser_view_default_bio": "Add your bio here...",+ "onboarding_browser_view_default_bio": "Add your bio here","onboarding_select_plan": "Select plan","onboarding_continue_prompt_title": "Continue onboarding?","onboarding_continue_prompt_description": "Would you like to carry on with onboarding for {{entityName}} or start over?",@@ -4208,7 +4210,7 @@"upgrade_team_to_orgs_with_price": "Upgrade your team to get access to this and much more for $37 per month/user.","attribute_based_routing": "Attribute-based routing","compliance_check": "SOC2, HIPAA, ISO 27001 compliance check",- "and_more_features": "and more features...",+ "and_more_features": "and more features","view": "View","booking_response": "Booking Response","list_view": "List view",@@ -4233,9 +4235,9 @@"booking_count_other": "{{count}} bookings","and_more_holidays_with_conflicts_one": "... and {{count}} more holiday with conflicts","and_more_holidays_with_conflicts_other": "... and {{count}} more holidays with conflicts",- "assignment_reason": "Assignment Reason",+ "assignment_reason": "Assignment reason","saved": "Saved",- "booking_history": "Booking History",+ "booking_history": "Booking history","booking_history_description": "View the history of actions performed on this booking","booking_audit_action": {"created": "Created",@@ -4243,19 +4245,19 @@"rescheduled": "Rescheduled {{oldDate}} -> <0>{{newDate}}</0>","rescheduled_from": "Rescheduled <0>{{oldDate}}</0> -> {{newDate}}","accepted": "Accepted",- "reschedule_requested": "Reschedule Requested",- "attendee_added": "Attendee Added",- "host_no_show_updated": "Host No-Show Updated",+ "reschedule_requested": "Reschedule requested",+ "attendee_added": "Attendee added",+ "host_no_show_updated": "Host no-show updated","rejected": "Rejected",- "attendee_removed": "Attendee Removed",+ "attendee_removed": "Attendee removed","reassignment": "Reassignment","booking_reassigned_to_host": "Booking reassigned to {{host}}",- "location_changed": "Location Changed",+ "location_changed": "Location changed","location_changed_from_to": "Location changed from {{fromLocation}} to {{toLocation}}",- "attendee_no_show_updated": "Attendee No-Show Updated",- "type": "Assignment Type",- "assignmentType_manual": "Manual Assignment",- "assignmentType_roundRobin": "Round Robin Assignment",+ "attendee_no_show_updated": "Attendee no-show updated",+ "type": "Assignment type",+ "assignmentType_manual": "Manual assignment",+ "assignmentType_roundRobin": "Round robin assignment","actor_impersonated_by": "Impersonator","source": "Source"},diff --git a/packages/app-store/routing-forms/components/_components/EmptyState.tsx b/packages/app-store/routing-forms/components/_components/EmptyState.tsxindex 2ac17627a5f..f4272561a64 100644--- a/packages/app-store/routing-forms/components/_components/EmptyState.tsx+++ b/packages/app-store/routing-forms/components/_components/EmptyState.tsx@@ -23,7 +23,7 @@ export const EmptyState = ({buttonDataTestId,}: EmptyStateProps) => {return (- <div className="border-sublte bg-cal-muted flex flex-col items-center gap-6 rounded-xl border p-11">+ <div className="border-subtle bg-cal-muted flex flex-col items-center gap-6 rounded-xl border p-11"><div className="mb-3 grid">{/* Icon card - Top */}<div className="bg-default border-subtle z-30 col-start-1 col-end-1 row-start-1 row-end-1 h-10 w-10 transform rounded-md border shadow-sm">@@ -47,7 +47,9 @@ export const EmptyState = ({/></div><div className="w-full">- <h1 className="text-emphasis line-clamp-1 text-center text-lg font-semibold">{header}</h1>+ <h1 className="text-emphasis line-clamp-1 text-center text-lg font-semibold">+ {header}+ </h1><p className="mt-2 line-clamp-1 text-center text-sm leading-normal transition-all duration-200 ease-in-out hover:line-clamp-none">{text}</p>@@ -56,7 +58,8 @@ export const EmptyState = ({data-testid={buttonDataTestId}StartIcon={buttonStartIcon}onClick={buttonOnClick}- className={buttonClassName}>+ className={buttonClassName}+ >{buttonText}</Button></div>diff --git a/packages/app-store/routing-forms/lib/FieldTypes.ts b/packages/app-store/routing-forms/lib/FieldTypes.tsindex a7b9e6276fc..456f77617cc 100644--- a/packages/app-store/routing-forms/lib/FieldTypes.ts+++ b/packages/app-store/routing-forms/lib/FieldTypes.ts@@ -22,7 +22,7 @@ export const isValidRoutingFormFieldType = (type: string): type is RoutingFormFiexport const FieldTypes = [{- label: "Short Text",+ label: "Short text",value: RoutingFormFieldType.TEXT,},{@@ -30,15 +30,15 @@ export const FieldTypes = [value: RoutingFormFieldType.NUMBER,},{- label: "Long Text",+ label: "Long text",value: RoutingFormFieldType.TEXTAREA,},{- label: "Single Selection",+ label: "Single-choice selection",value: RoutingFormFieldType.SINGLE_SELECT,},{- label: "Multiple Selection",+ label: "Multiple choice selection",value: RoutingFormFieldType.MULTI_SELECT,},{diff --git a/packages/app-store/routing-forms/lib/RoutingPages.ts b/packages/app-store/routing-forms/lib/RoutingPages.tsindex e735b652442..a28d1c9ee6b 100644--- a/packages/app-store/routing-forms/lib/RoutingPages.ts+++ b/packages/app-store/routing-forms/lib/RoutingPages.ts@@ -3,15 +3,15 @@ import { RouteActionType } from "../zod";export const RoutingPages: { label: string; value: NonNullable<LocalRoute["action"]>["type"] }[] = [{- label: "Custom Page",+ label: "Custom page",value: RouteActionType.CustomPageMessage,},{- label: "External Redirect",+ label: "External redirect",value: RouteActionType.ExternalRedirectUrl,},{- label: "Event Redirect",+ label: "Event redirect",value: RouteActionType.EventTypeRedirectUrl,},];diff --git a/packages/app-store/routing-forms/playwright/tests/basic.e2e.ts b/packages/app-store/routing-forms/playwright/tests/basic.e2e.tsindex 33cb1e5806e..a145190977b 100644--- a/packages/app-store/routing-forms/playwright/tests/basic.e2e.ts+++ b/packages/app-store/routing-forms/playwright/tests/basic.e2e.ts@@ -271,11 +271,11 @@ test.describe("Routing Forms", () => {label: "Test Field",});const queryString =- "firstField=456&Test-Field-Number=456&Test-Field-Single-Selection=456&Test-Field-Multiple-Selection=456&Test-Field-Multiple-Selection=789&Test-Field-Phone=456&[email protected]";+ "firstField=456&Test-Field-Number=456&Test-Field-Single-choice-selection=456&Test-Field-Multiple-choice-selection=456&Test-Field-Multiple-choice-selection=789&Test-Field-Phone=456&[email protected]";await gotoRoutingLink({ page, queryString });- await page.fill('[data-testid="form-field-Test-Field-Long-Text"]', "manual-fill");+ await page.fill('[data-testid="form-field-Test-Field-Long-text"]', "manual-fill");await expect(page.locator('[data-testid="form-field-firstField"]')).toHaveValue("456");await expect(page.locator('[data-testid="form-field-Test-Field-Number"]')).toHaveValue("456");@@ -301,9 +301,9 @@ test.describe("Routing Forms", () => {// All other params come from prefill URLexpect(url.searchParams.get("Test-Field-Number")).toBe("456");- expect(url.searchParams.get("Test-Field-Long-Text")).toBe("manual-fill");- expect(url.searchParams.get("Test-Field-Multiple-Selection")).toBe("456");- expect(url.searchParams.getAll("Test-Field-Multiple-Selection")).toMatchObject(["456", "789"]);+ expect(url.searchParams.get("Test-Field-Long-text")).toBe("manual-fill");+ expect(url.searchParams.get("Test-Field-Multiple-choice-selection")).toBe("456");+ expect(url.searchParams.getAll("Test-Field-Multiple-choice-selection")).toMatchObject(["456", "789"]);expect(url.searchParams.get("Test-Field-Phone")).toBe("456");expect(url.searchParams.get("Test-Field-Email")).toBe("[email protected]");});@@ -1060,7 +1060,7 @@ async function addAllTypesOfFieldsAndSaveForm(const { optionsInUi: fieldTypesList } = await verifySelectOptions({ selector: ".data-testid-field-type", nth: 0 },- ["Email", "Long Text", "Multiple Selection", "Number", "Phone", "Single Selection", "Short Text"],+ ["Email", "Long text", "Multiple choice selection", "Number", "Phone", "Single-choice selection", "Short text"],page);@@ -1083,7 +1083,7 @@ async function addAllTypesOfFieldsAndSaveForm(identifier = "firstField";}- if (fieldTypeLabel === "Multiple Selection" || fieldTypeLabel === "Single Selection") {+ if (fieldTypeLabel === "Multiple choice selection" || fieldTypeLabel === "Single-choice selection") {await page.fill(`[data-testid="fields.${nth}.options.0-input"]`, "123");await page.fill(`[data-testid="fields.${nth}.options.1-input"]`, "456");await page.fill(`[data-testid="fields.${nth}.options.2-input"]`, "789");diff --git a/packages/app-store/routing-forms/playwright/tests/testUtils.ts b/packages/app-store/routing-forms/playwright/tests/testUtils.tsindex 3c08e49194d..6ffbfd57231 100644--- a/packages/app-store/routing-forms/playwright/tests/testUtils.ts+++ b/packages/app-store/routing-forms/playwright/tests/testUtils.ts@@ -46,7 +46,7 @@ export async function addOneFieldAndDescriptionAndSaveForm(// Verify all Options of SelectBoxconst { optionsInUi: types } = await verifySelectOptions({ selector: ".data-testid-field-type", nth: 0 },- ["Email", "Long Text", "Multiple Selection", "Number", "Phone", "Single Selection", "Short Text"],+ ["Email", "Long text", "Multiple choice selection", "Number", "Phone", "Single-choice selection", "Short text"],page);diff --git a/packages/trpc/server/routers/viewer/organizations/listMembers.handler.ts b/packages/trpc/server/routers/viewer/organizations/listMembers.handler.tsindex d8087488f9c..47228976773 100644--- a/packages/trpc/server/routers/viewer/organizations/listMembers.handler.ts+++ b/packages/trpc/server/routers/viewer/organizations/listMembers.handler.ts@@ -243,6 +243,7 @@ export const listMembersHandler = async ({ ctx, input }: GetOptions) => {select: {id: true,username: true,+ name: true,profiles: {select: {organizationId: true,@@ -313,6 +314,7 @@ export const listMembersHandler = async ({ ctx, input }: GetOptions) => {return {id: user.id,username: user.profiles[0]?.username || user.username,+ name: user.name,email: user.email,timeZone: user.timeZone,role: membership.role,diff --git a/packages/ui/components/dialog/ConfirmationDialogContent.tsx b/packages/ui/components/dialog/ConfirmationDialogContent.tsxindex 218174938ff..0656d42837a 100644--- a/packages/ui/components/dialog/ConfirmationDialogContent.tsx+++ b/packages/ui/components/dialog/ConfirmationDialogContent.tsx@@ -20,7 +20,9 @@ export type ConfirmationDialogContentProps = {variety?: "danger" | "warning" | "success";} & ConfirmBtnType;-export function ConfirmationDialogContent(props: PropsWithChildren<ConfirmationDialogContentProps>) {+export function ConfirmationDialogContent(+ props: PropsWithChildren<ConfirmationDialogContentProps>+) {return (<DialogContent type="creation"><ConfirmationContent {...props} />@@ -28,7 +30,9 @@ export function ConfirmationDialogContent(props: PropsWithChildren<ConfirmationD);}-export const ConfirmationContent = (props: PropsWithChildren<ConfirmationDialogContentProps>) => {+export const ConfirmationContent = (+ props: PropsWithChildren<ConfirmationDialogContentProps>+) => {const { t } = useLocale();const {title,@@ -49,7 +53,10 @@ export const ConfirmationContent = (props: PropsWithChildren<ConfirmationDialogC<div className="mt-0.5 ltr:mr-3">{variety === "danger" && (<div className="bg-error mx-auto rounded-full p-2 text-center">- <Icon name="circle-alert" className="h-5 w-5 text-red-600 dark:text-red-100" />+ <Icon+ name="circle-alert"+ className="h-5 w-5 text-red-600 dark:text-red-100"+ /></div>)}{variety === "warning" && (@@ -65,7 +72,7 @@ export const ConfirmationContent = (props: PropsWithChildren<ConfirmationDialogC</div>)}<div className="w-full">- <DialogPrimitive.Title className="font-cal text-emphasis mt-2 text-xl">+ <DialogPrimitive.Title className="font-cal text-emphasis mt-1 text-xl">{title}</DialogPrimitive.Title><DialogPrimitive.Description asChild>@@ -81,7 +88,8 @@ export const ConfirmationContent = (props: PropsWithChildren<ConfirmationDialogCcolor="primary"loading={isPending}onClick={(e) => onConfirm && onConfirm(e)}- data-testid="dialog-confirmation">+ data-testid="dialog-confirmation"+ >{isPending ? loadingText : confirmBtnText}</DialogClose>)}diff --git a/packages/ui/components/form/inputs/TextField.tsx b/packages/ui/components/form/inputs/TextField.tsxindex 25b91c0f95c..088a8e89f04 100644--- a/packages/ui/components/form/inputs/TextField.tsx+++ b/packages/ui/components/form/inputs/TextField.tsx@@ -61,7 +61,11 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(function Input(<input{...props}ref={ref}- className={classNames(inputStyles({ size }), isFullWidth && "w-full", className)}+ className={classNames(+ inputStyles({ size }),+ isFullWidth && "w-full",+ className+ )}/>);});@@ -87,161 +91,189 @@ const Addon = ({onClick={onClickAddon && onClickAddon}className={classNames("flex shrink-0 items-center justify-center whitespace-nowrap",- onClickAddon && "pointer-events-auto cursor-pointer disabled:hover:cursor-not-allowed",+ onClickAddon &&+ "pointer-events-auto cursor-pointer disabled:hover:cursor-not-allowed",className- )}>+ )}+ ><spanclassName={classNames("text-sm font-medium leading-none",error ? "text-error" : "text-muted peer-disabled:opacity-50"- )}>+ )}+ >{children}</span></div>);-export const InputField = forwardRef<HTMLInputElement, InputFieldProps>(function InputField(props, ref) {- const id = useId();- const { t: _t, isLocaleReady, i18n } = useLocale();- const t = props.t || _t;- const name = props.name || "";- const {- label = t(name),- labelProps,- labelClassName,- disabled,- LockedIcon,- placeholder = isLocaleReady && i18n.exists(`${name}_placeholder`) ? t(`${name}_placeholder`) : "",- className,- addOnLeading,- addOnSuffix,- addOnClassname,- inputIsFullWidth,- hint,- type,- hintErrors,- labelSrOnly,- noLabel,- containerClassName,- readOnly,- showAsteriskIndicator,- onClickAddon,-- t: __t,- dataTestid,- size,- ...passThrough- } = props;-- const [inputValue, setInputValue] = useState<string>("");-- const handleFocusInput = (e: React.MouseEvent<HTMLDivElement>) => {- e.currentTarget.parentElement?.querySelector("input")?.focus();- };+export const InputField = forwardRef<HTMLInputElement, InputFieldProps>(+ function InputField(props, ref) {+ const id = useId();+ const { t: _t, isLocaleReady, i18n } = useLocale();+ const t = props.t || _t;+ const name = props.name || "";+ const {+ label = t(name),+ labelProps,+ labelClassName,+ disabled,+ LockedIcon,+ placeholder = isLocaleReady && i18n.exists(`${name}_placeholder`)+ ? t(`${name}_placeholder`)+ : "",+ className,+ addOnLeading,+ addOnSuffix,+ addOnClassname,+ inputIsFullWidth,+ hint,+ type,+ hintErrors,+ labelSrOnly,+ noLabel,+ containerClassName,+ readOnly,+ showAsteriskIndicator,+ onClickAddon,- return (- <div className={classNames(containerClassName)}>- {!!name && !noLabel && (- <Label- htmlFor={id}- {...labelProps}- className={classNames(labelClassName, labelSrOnly && "sr-only", props.error && "text-error")}>- {label}- {showAsteriskIndicator && !readOnly && passThrough.required ? (- <span className="text-default ml-1 font-medium">*</span>- ) : null}- {LockedIcon}- </Label>- )}- {addOnLeading || addOnSuffix ? (- <div- dir="ltr"- className={classNames(- inputStyles({ size }),- "group relative mb-1 flex min-w-0 items-center gap-1",- "focus-within:shadow-outline-gray-focused focus-within:border-emphasis",- "[&:has(:disabled)]:bg-subtle [&:has(:disabled)]:hover:border-default [&:has(:disabled)]:cursor-not-allowed",- inputIsFullWidth && "w-full"- )}>- {addOnLeading && (- <Addon- size={size ?? "md"}- position="start"- className={classNames(addOnClassname)}- onClickAddon={handleFocusInput}>- {addOnLeading}- </Addon>- )}- <input- data-testid={dataTestid ? `${dataTestid}-input` : "input-field"}+ t: __t,+ dataTestid,+ size,+ ...passThrough+ } = props;++ const [inputValue, setInputValue] = useState<string>("");++ const handleFocusInput = (e: React.MouseEvent<HTMLDivElement>) => {+ e.currentTarget.parentElement?.querySelector("input")?.focus();+ };++ return (+ <div className={classNames(containerClassName)}>+ {!!name && !noLabel && (+ <Label+ htmlFor={id}+ {...labelProps}+ className={classNames(+ labelClassName,+ labelSrOnly && "sr-only",+ props.error && "text-error"+ )}+ >+ {label}+ {showAsteriskIndicator && !readOnly && passThrough.required ? (+ <span className="text-default ml-1 font-medium">*</span>+ ) : null}+ {LockedIcon}+ </Label>+ )}+ {addOnLeading || addOnSuffix ? (+ <div+ dir="ltr"+ className={classNames(+ inputStyles({ size }),+ "group relative mb-1 flex min-w-0 items-center gap-1",+ "focus-within:shadow-outline-gray-focused focus-within:border-emphasis",+ "[&:has(:disabled)]:bg-subtle [&:has(:disabled)]:hover:border-default [&:has(:disabled)]:cursor-not-allowed",+ inputIsFullWidth && "w-full"+ )}+ >+ {addOnLeading && (+ <Addon+ size={size ?? "md"}+ position="start"+ className={classNames(addOnClassname)}+ onClickAddon={handleFocusInput}+ >+ {addOnLeading}+ </Addon>+ )}+ <input+ data-testid={dataTestid ? `${dataTestid}-input` : "input-field"}+ id={id}+ type={type}+ placeholder={placeholder}+ className={classNames(+ "w-full min-w-0 truncate border-0 bg-transparent focus:outline-none focus:ring-0",+ "text-default rounded-lg text-sm font-medium leading-none",+ "placeholder:text-muted disabled:cursor-not-allowed disabled:bg-transparent",+ addOnLeading && "rounded-none pl-0.5 pr-0",+ addOnSuffix && "pl-0",+ className+ )}+ {...passThrough}+ {...(type == "search" && {+ onChange: (e) => {+ setInputValue(e.target.value);+ props.onChange?.(e);+ },+ value: inputValue,+ })}+ disabled={readOnly || disabled}+ ref={ref}+ />+ {addOnSuffix && (+ <Addon+ size={size ?? "md"}+ position="end"+ onClickAddon={(e) => {+ handleFocusInput(e);+ onClickAddon?.(e);+ }}+ className={classNames(addOnClassname)}+ >+ {addOnSuffix}+ </Addon>+ )}+ {type === "search" && inputValue?.toString().length > 0 && (+ <Icon+ name="x"+ className="text-subtle absolute top-2.5 h-4 w-4 cursor-pointer ltr:right-2 rtl:left-2"+ onClick={(e) => {+ setInputValue("");+ props.onChange?.(+ e as unknown as React.ChangeEvent<HTMLInputElement>+ );+ }}+ />+ )}+ </div>+ ) : (+ <Inputid={id}type={type}placeholder={placeholder}+ size={size}className={classNames(- "w-full min-w-0 truncate border-0 bg-transparent focus:outline-none focus:ring-0",+ "w-full min-w-0 truncate focus:outline-none focus:ring-0","text-default rounded-lg text-sm font-medium leading-none",- "placeholder:text-muted disabled:cursor-not-allowed disabled:bg-transparent",+ "placeholder:text-muted disabled:cursor-not-allowed",addOnLeading && "rounded-none pl-0.5 pr-0",addOnSuffix && !addOnLeading && "pl-0.5",className)}{...passThrough}- {...(type == "search" && {- onChange: (e) => {- setInputValue(e.target.value);- props.onChange?.(e);- },- value: inputValue,- })}- disabled={readOnly || disabled}+ readOnly={readOnly}ref={ref}+ isFullWidth={inputIsFullWidth}+ disabled={readOnly || disabled}/>- {addOnSuffix && (- <Addon- size={size ?? "md"}- position="end"- onClickAddon={(e) => {- handleFocusInput(e);- onClickAddon?.(e);- }}- className={classNames(addOnClassname)}>- {addOnSuffix}- </Addon>- )}- {type === "search" && inputValue?.toString().length > 0 && (- <Icon- name="x"- className="text-subtle absolute top-2.5 h-4 w-4 cursor-pointer ltr:right-2 rtl:left-2"- onClick={(e) => {- setInputValue("");- props.onChange?.(e as unknown as React.ChangeEvent<HTMLInputElement>);- }}- />- )}- </div>- ) : (- <Input- id={id}- type={type}- placeholder={placeholder}- size={size}- className={classNames(- className,- "disabled:bg-subtle disabled:hover:border-subtle disabled:cursor-not-allowed"- )}- {...passThrough}- readOnly={readOnly}- ref={ref}- isFullWidth={inputIsFullWidth}- disabled={readOnly || disabled}- />- )}- <HintsOrErrors hintErrors={hintErrors} fieldName={name} t={t} />- {hint && <div className="text-default mt-2 flex items-center text-sm">{hint}</div>}- </div>- );-});+ )}+ <HintsOrErrors hintErrors={hintErrors} fieldName={name} t={t} />+ {hint && (+ <div className="text-muted mt-2 flex items-center text-sm">+ <Icon name="info" className="text-muted h-4 w-4 mr-1" />+ {hint}+ </div>+ )}+ </div>+ );+ }+);-export const TextField = forwardRef<HTMLInputElement, InputFieldProps>(function TextField(props, ref) {- return <InputField ref={ref} {...props} />;-});+export const TextField = forwardRef<HTMLInputElement, InputFieldProps>(+ function TextField(props, ref) {+ return <InputField ref={ref} {...props} />;+ }+);