feat: cal.ai enterprise phone calls (#14100)

* added empty layout

* init

* yarn lock due to package changes

* added retell ai to .env

* removed ton of glue code

* nit

* Discard changes to package.json

* Upgrades lucide-react

* minor UI fixes

* nit

* nit

* feat: save progress

* feat: v1

* fix: type error

* feat: change schema

* fix: type error and testr

* chore: update agent

* chore: change default prompt

* feat: feedback and improvements

* fix: type error

* fix: type error

* hidden for now while in trial

* added i18n and removed some comments

* feat: add cal api key

* fix: type error

---------

Co-authored-by: Omar López <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-03-28 13:59:01 +00:00
1 parent eec76ecfe2
commit 1025238eee
42 files changed
+724 -59

No files matched your search

+15 -6
View File
@@ -79,6 +79,7 @@ import {
Tooltip,
useCalcomTheme,
} from "@calcom/ui";
import type { LucideIcon } from "@calcom/ui/components/icon";
import {
ArrowLeft,
ArrowRight,
@@ -100,6 +101,7 @@ import {
Settings,
User as UserIcon,
Users,
Sparkles,
Zap,
Check,
} from "@calcom/ui/components/icon";
@@ -504,7 +506,7 @@ function UserDropdown({ small }: UserDropdownProps) {
<DropdownMenuItem>
<DropdownItem
type="button"
StartIcon={(props) => (
StartIcon={(props: { className?: string }) => (
<UserIcon className={classNames("text-default", props.className)} aria-hidden="true" />
)}
href="/settings/my-account/profile">
@@ -514,7 +516,7 @@ function UserDropdown({ small }: UserDropdownProps) {
<DropdownMenuItem>
<DropdownItem
type="button"
StartIcon={(props) => (
StartIcon={(props: { className?: string }) => (
<Settings className={classNames("text-default", props.className)} aria-hidden="true" />
)}
href="/settings/my-account/general">
@@ -524,7 +526,7 @@ function UserDropdown({ small }: UserDropdownProps) {
<DropdownMenuItem>
<DropdownItem
type="button"
StartIcon={(props) => (
StartIcon={(props: { className?: string }) => (
<Moon className={classNames("text-default", props.className)} aria-hidden="true" />
)}
href="/settings/my-account/out-of-office">
@@ -549,7 +551,9 @@ function UserDropdown({ small }: UserDropdownProps) {
<DropdownMenuItem>
<DropdownItem
type="button"
StartIcon={(props) => <HelpCircle aria-hidden="true" {...props} />}
StartIcon={(props: { className?: string }) => (
<HelpCircle aria-hidden="true" {...props} />
)}
onClick={() => setHelpOpen(true)}>
{t("help")}
</DropdownItem>
@@ -565,7 +569,7 @@ function UserDropdown({ small }: UserDropdownProps) {
<DropdownMenuItem>
<DropdownItem
type="button"
StartIcon={(props) => <LogOut aria-hidden="true" {...props} />}
StartIcon={(props: { className?: string }) => <LogOut aria-hidden="true" {...props} />}
onClick={() => signOut({ callbackUrl: "/auth/logout" })}>
{t("sign_out")}
</DropdownItem>
@@ -585,7 +589,7 @@ export type NavigationItemType = {
onClick?: React.MouseEventHandler<HTMLAnchorElement | HTMLButtonElement>;
target?: HTMLAnchorElement["target"];
badge?: React.ReactNode;
icon?: SVGComponent;
icon?: SVGComponent | LucideIcon;
child?: NavigationItemType[];
pro?: true;
onlyMobile?: boolean;
@@ -670,6 +674,11 @@ const navigation: NavigationItemType[] = [
icon: FileText,
isCurrent: ({ pathname }) => pathname?.startsWith("/apps/routing-forms/") ?? false,
},
{
name: "Cal.ai",
href: "/ai",
icon: Sparkles,
},
{
name: "workflows",
href: "/workflows",