Scheduling infrastructure for absolutely everyone.
Add links to Zapier templates in installed apps (#4982)
Carina Wollendorfer6ee9de6dd8e9
diff --git a/apps/web/components/v2/apps/CalendarListContainer.tsx b/apps/web/components/v2/apps/CalendarListContainer.tsxindex 009a22182da..a81d3bbf6ce 100644--- a/apps/web/components/v2/apps/CalendarListContainer.tsx+++ b/apps/web/components/v2/apps/CalendarListContainer.tsx@@ -163,6 +163,7 @@ function ConnectedCalendarsList(props: Props) {title={item.integration.title}logo={item.integration.logo}description={item.primary?.externalId || "No external Id"}+ separate={true}actions={<div className="flex w-32 justify-end"><DisconnectIntegration@@ -173,23 +174,27 @@ function ConnectedCalendarsList(props: Props) {/></div>}>- {!fromOnboarding && (- <>- <p className="px-4 pt-4 text-sm text-neutral-500">{t("toggle_calendars_conflict")}</p>- <ul className="space-y-2 p-4">- {item.calendars.map((cal) => (- <CalendarSwitch- key={cal.externalId}- externalId={cal.externalId}- title={cal.name || "Nameless calendar"}- type={item.integration.type}- defaultSelected={cal.isSelected}- destination={cal.externalId === props.destinationCalendarId}- />- ))}- </ul>- </>- )}+ <div className="border-t border-gray-200">+ {!fromOnboarding && (+ <>+ <p className="px-4 pt-4 text-sm text-neutral-500">+ {t("toggle_calendars_conflict")}+ </p>+ <ul className="space-y-2 p-4">+ {item.calendars.map((cal) => (+ <CalendarSwitch+ key={cal.externalId}+ externalId={cal.externalId}+ title={cal.name || "Nameless calendar"}+ type={item.integration.type}+ defaultSelected={cal.isSelected}+ destination={cal.externalId === props.destinationCalendarId}+ />+ ))}+ </ul>+ </>+ )}+ </div></IntegrationListItem>) : (<Alert@@ -262,7 +267,7 @@ export function CalendarListContainer(props: { heading?: boolean; fromOnboardingactions={<div className="flex flex-col xl:flex-row xl:space-x-5">{!!data.connectedCalendars.length && (- <div className=" flex items-center">+ <div className="flex items-center"><AdditionalCalendarSelector isLoading={mutation.isLoading} /></div>)}diff --git a/apps/web/components/v2/apps/IntegrationListItem.tsx b/apps/web/components/v2/apps/IntegrationListItem.tsxindex d138a282b7e..dc12aef0171 100644--- a/apps/web/components/v2/apps/IntegrationListItem.tsx+++ b/apps/web/components/v2/apps/IntegrationListItem.tsx@@ -16,6 +16,7 @@ function IntegrationListItem(props: {children?: ReactNode;logo: string;destination?: boolean;+ separate?: boolean;}): JSX.Element {const router = useRouter();const { hl } = router.query;@@ -32,7 +33,8 @@ function IntegrationListItem(props: {<ListItemexpanded={!!props.children}className={classNames(- "my-0 flex-col border transition-colors duration-500 first:rounded-t-md last:rounded-b-md",+ props.separate ? "rounded-md" : "first:rounded-t-md last:rounded-b-md",+ "my-0 flex-col border transition-colors duration-500 ",highlight ? "bg-yellow-100" : "")}><div className={classNames("flex w-full flex-1 items-center space-x-2 p-4 rtl:space-x-reverse")}>@@ -45,7 +47,7 @@ function IntegrationListItem(props: {</div><div>{props.actions}</div></div>- {props.children && <div className="w-full border-t border-gray-200">{props.children}</div>}+ {props.children && <div className="w-full">{props.children}</div>}</ListItem>);}diff --git a/apps/web/pages/v2/apps/installed/[category].tsx b/apps/web/pages/v2/apps/installed/[category].tsxindex 88c0c074cba..87ddbbe8b94 100644--- a/apps/web/pages/v2/apps/installed/[category].tsx+++ b/apps/web/pages/v2/apps/installed/[category].tsx@@ -1,8 +1,10 @@import { InferGetServerSidePropsType } from "next";import z from "zod";+import { AppSettings } from "@calcom/app-store/_components/AppSettings";import { InstallAppButton } from "@calcom/app-store/components";import { InstalledAppVariants } from "@calcom/app-store/utils";+import { classNames } from "@calcom/lib";import { useLocale } from "@calcom/lib/hooks/useLocale";import { inferQueryOutput, trpc } from "@calcom/trpc/react";import { App } from "@calcom/types/App";@@ -89,9 +91,15 @@ interface IntegrationsContainerProps {exclude?: (keyof typeof InstalledAppVariants)[];}-const IntegrationsList = ({ data }: { data: inferQueryOutput<"viewer.integrations"> }) => {+interface IntegrationsListProps {+ variant?: IntegrationsContainerProps["variant"];+ data: inferQueryOutput<"viewer.integrations">;+}++const IntegrationsList = ({ data, variant }: IntegrationsListProps) => {+ const separateItems = variant === "automation";return (- <List noBorderTreatment>+ <List className={classNames(separateItems ? "flex flex-col gap-6" : "")} noBorderTreatment>{data.items.map((item) => (<IntegrationListItemname={item.name}@@ -100,8 +108,9 @@ const IntegrationsList = ({ data }: { data: inferQueryOutput<"viewer.integrationtitle={item.title}logo={item.logo}description={item.description}+ separate={separateItems}actions={- <div className="flex w-32 justify-end">+ <div className="flex w-16 justify-end"><ConnectOrDisconnectIntegrationButtoncredentialIds={item.credentialIds}type={item.type}@@ -109,8 +118,9 @@ const IntegrationsList = ({ data }: { data: inferQueryOutput<"viewer.integrationinstalled/></div>- }- />+ }>+ {separateItems && <AppSettings slug={item.slug} />}+ </IntegrationListItem>))}</List>);@@ -153,7 +163,7 @@ const IntegrationsContainer = ({ variant, exclude }: IntegrationsContainerProps)</Button>}/>- <IntegrationsList data={data} />+ <IntegrationsList data={data} variant={variant} /></div>) : (<EmptyScreendiff --git a/packages/app-store/_components/AppSettings.tsx b/packages/app-store/_components/AppSettings.tsxnew file mode 100644index 00000000000..d34fb6cb431--- /dev/null+++ b/packages/app-store/_components/AppSettings.tsx@@ -0,0 +1,11 @@+import dynamic from "next/dynamic";++import { DynamicComponent } from "./DynamicComponent";++export const AppSettingsMap = {+ zapier: dynamic(() => import("../zapier/components/AppSettings")),+};++export const AppSettings = (props: { slug: string }) => {+ return <DynamicComponent<typeof AppSettingsMap> componentMap={AppSettingsMap} {...props} />;+};diff --git a/packages/app-store/n8n/config.json b/packages/app-store/n8n/config.jsonindex 4385e248105..5f929129d7f 100644--- a/packages/app-store/n8n/config.json+++ b/packages/app-store/n8n/config.json@@ -6,7 +6,7 @@"imageSrc": "/api/app-store/n8n/icon.svg","logo": "/api/app-store/n8n/icon.svg","url": "https://cal.com/apps/n8n",- "variant": "other",+ "variant": "automation","categories": ["automation"],"publisher": "Cal.com, Inc.","email": "[email protected]",diff --git a/packages/app-store/zapier/_metadata.ts b/packages/app-store/zapier/_metadata.tsindex 2de419b7376..a67c213f75d 100644--- a/packages/app-store/zapier/_metadata.ts+++ b/packages/app-store/zapier/_metadata.ts@@ -17,7 +17,7 @@ export const metadata = {trending: true,type: "zapier_automation",url: "https://cal.com/apps/zapier",- variant: "other",+ variant: "automation",verified: true,email: "[email protected]",} as AppMeta;diff --git a/packages/app-store/zapier/components/AppSettings.tsx b/packages/app-store/zapier/components/AppSettings.tsxnew file mode 100644index 00000000000..655c98fca83--- /dev/null+++ b/packages/app-store/zapier/components/AppSettings.tsx@@ -0,0 +1,69 @@+import TemplateCard from "./TemplateCard";++export type Template = {+ icon: string;+ app: string;+ text: string;+ link: string;+};++const templates: Template[] = [+ {+ icon: "gmail.svg",+ app: "Gmail",+ text: "Send emails via Gmail for scheduled events",+ link: "https://zapier.com/editor/170116665?attempt_id=6e954288-db41-43e8-8417-4a7b8f1a1166",+ },+ {+ icon: "googleSheets.svg",+ app: "Google Sheets",+ text: "Create Google Sheets rows for scheduled events",+ link: "https://workflows.zapier.com/?attempt_id=a086d136-b084-45bc-a6aa-c9f460b05b7d&template=1082047",+ },+ {+ icon: "salesforce.svg",+ app: "Salesforce",+ text: "Create Salesforce leads from new bookings",+ link: "https://zapier.com/editor/170116721?attempt_id=9f939229-ee89-4391-b9c7-f4645c60dbd4",+ },+ {+ icon: "todoist.svg",+ app: "Todoist",+ text: "Create Todoist tasks for scheduled events",+ link: "https://zapier.com/editor/170116746?attempt_id=d4501c34-c3f2-4e62-b5a2-034fbf39320d",+ },+ {+ icon: "gmail.svg",+ app: "Gmail",+ text: "Send emails via Gmail for rescheduled events",+ link: "https://zapier.com/editor/170116757?attempt_id=40e837b6-93e1-4bff-9cd7-5c8df1b0741e",+ },+ {+ icon: "gmail.svg",+ app: "Gmail",+ text: "Send emails via Gmail for cancelled events",+ link: "https://zapier.com/editor/170116884?attempt_id=e52a2a0a-cea8-4d95-93ca-f010b3aceda1",+ },+ {+ icon: "gmail.svg",+ app: "Gmail",+ text: "Send emails via Gmail after scheduled meetings end",+ link: "https://zapier.com/editor/170116896?attempt_id=28a54a64-e1e4-4a93-b5e9-1258a083581d",+ },+ {+ icon: "googleCalendar.svg",+ app: "Google Calendar",+ text: "Add new bookings to Google Calendar",+ link: "https://zapier.com/editor/170116908?attempt_id=e2b7f20c-8825-42f8-a031-5134a02b7311",+ },+];++export default function AppSettings() {+ return (+ <div className="grid gap-4 border-t border-gray-200 p-4 md:grid-cols-2">+ {templates.map((template, index) => (+ <TemplateCard key={index} template={template} />+ ))}+ </div>+ );+}diff --git a/packages/app-store/zapier/components/TemplateCard.tsx b/packages/app-store/zapier/components/TemplateCard.tsxnew file mode 100644index 00000000000..ffc3ab11f72--- /dev/null+++ b/packages/app-store/zapier/components/TemplateCard.tsx@@ -0,0 +1,35 @@+import { Button } from "@calcom/ui/v2";++import { Template } from "./AppSettings";++export default function TemplateCard({ template }: { template: Template }) {+ return (+ <div className="rounded-md border border-gray-200 p-4 ">+ <div className="flex items-center justify-center">+ <div>+ <div className="mr-4 flex h-12 w-12 items-center justify-center rounded-md border p-1 ">+ <img className="h-8" alt={template.app} src={`/api/app-store/zapier/${template.icon}`} />+ </div>+ </div>+ <div className="mr-4 ">+ <div>+ <p className="truncate text-sm font-medium text-neutral-900">{template.app}</p>+ <p className="mt-[2px] text-xs text-gray-500 ">{template.text}</p>+ </div>+ </div>+ <div className="ml-auto hidden sm:block">+ <Button color="secondary" className="w-[90px] " target="_blank" href={template.link}>+ Use Zap+ </Button>+ </div>+ </div>+ <div className="mt-2 block w-full sm:hidden">+ <div className="float-right">+ <Button color="secondary" className="w-[90px]" target="_blank" href={template.link}>+ Use Zap+ </Button>+ </div>+ </div>+ </div>+ );+}diff --git a/packages/app-store/zapier/package.json b/packages/app-store/zapier/package.jsonindex 0949ab1d050..f4cd5a9d757 100644--- a/packages/app-store/zapier/package.json+++ b/packages/app-store/zapier/package.json@@ -4,7 +4,7 @@"name": "@calcom/zapier","version": "0.0.0","main": "./index.ts",- "description": "Workflow automation for everyone. Use the Cal.com Zapier app to trigger your workflows when a booking was created, rescheduled or cancelled.",+ "description": "Workflow automation for everyone. Use the Cal.com Zapier app to trigger your workflows when a booking is created, rescheduled, or cancelled, or after a meeting ends.","dependencies": {"@calcom/lib": "*","node-schedule": "2.1.0"diff --git a/packages/app-store/zapier/static/gmail.svg b/packages/app-store/zapier/static/gmail.svgnew file mode 100644index 00000000000..99c348ecd89--- /dev/null+++ b/packages/app-store/zapier/static/gmail.svg@@ -0,0 +1,7 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="52 42 88 66">+<path fill="#4285f4" d="M58 108h14V74L52 59v43c0 3.32 2.69 6 6 6"/>+<path fill="#34a853" d="M120 108h14c3.32 0 6-2.69 6-6V59l-20 15"/>+<path fill="#fbbc04" d="M120 48v26l20-15v-8c0-7.42-8.47-11.65-14.4-7.2"/>+<path fill="#ea4335" d="M72 74V48l24 18 24-18v26L96 92"/>+<path fill="#c5221f" d="M52 51v8l20 15V48l-5.6-4.2c-5.94-4.45-14.4-.22-14.4 7.2"/>+</svg>diff --git a/packages/app-store/zapier/static/googleCalendar.svg b/packages/app-store/zapier/static/googleCalendar.svgnew file mode 100644index 00000000000..bd0155bd2d8--- /dev/null+++ b/packages/app-store/zapier/static/googleCalendar.svg@@ -0,0 +1 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="186 38 76 76"><path fill="#fff" d="M244 56h-40v40h40V56z"/><path fill="#EA4335" d="M244 114l18-18h-18v18z"/><path fill="#FBBC04" d="M262 56h-18v40h18V56z"/><path fill="#34A853" d="M244 96h-40v18h40V96z"/><path fill="#188038" d="M186 96v12c0 3.315 2.685 6 6 6h12V96h-18z"/><path fill="#1967D2" d="M262 56V44c0-3.315-2.685-6-6-6h-12v18h18z"/><path fill="#4285F4" d="M244 38h-52c-3.315 0 -6 2.685-6 6v52h18V56h40V38z"/><path fill="#4285F4" d="M212.205 87.03c-1.495-1.01-2.53-2.485-3.095-4.435l3.47-1.43c.315 1.2.865 2.13 1.65 2.79.78.66 1.73.985 2.84.985 1.135 0 2.11-.345 2.925-1.035s1.225-1.57 1.225-2.635c0-1.09-.43-1.98-1.29-2.67-.86-.69-1.94-1.035-3.23-1.035h-2.005V74.13h1.8c1.11 0 2.045-.3 2.805-.9.76-.6 1.14-1.42 1.14-2.465 0 -.93-.34-1.67-1.02-2.225-.68-.555-1.54-.835-2.585-.835-1.02 0 -1.83.27-2.43.815a4.784 4.784 0 0 0 -1.31 2.005l-3.435-1.43c.455-1.29 1.29-2.43 2.515-3.415 1.225-.985 2.79-1.48 4.69-1.48 1.405 0 2.67.27 3.79.815 1.12.545 2 1.3 2.635 2.26.635.965.95 2.045.95 3.245 0 1.225-.295 2.26-.885 3.11-.59.85-1.315 1.5-2.175 1.955v.205a6.605 6.605 0 0 1 2.79 2.175c.725.975 1.09 2.14 1.09 3.5 0 1.36-.345 2.575-1.035 3.64s-1.645 1.905-2.855 2.515c-1.215.61-2.58.92-4.095.92-1.755.005-3.375-.5-4.87-1.51zM233.52 69.81l-3.81 2.755-1.905-2.89 6.835-4.93h2.62V88h-3.74V69.81z"/></svg>diff --git a/packages/app-store/zapier/static/googleSheets.svg b/packages/app-store/zapier/static/googleSheets.svgnew file mode 100644index 00000000000..ba2cbc1f606--- /dev/null+++ b/packages/app-store/zapier/static/googleSheets.svg@@ -0,0 +1,85 @@+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="49px" height="67px" viewBox="0 0 49 67" version="1.1">+ <defs>+ <path d="M29.5833333,0 L4.4375,0 C1.996875,0 0,1.996875 0,4.4375 L0,60.6458333 C0,63.0864583 1.996875,65.0833333 4.4375,65.0833333 L42.8958333,65.0833333 C45.3364583,65.0833333 47.3333333,63.0864583 47.3333333,60.6458333 L47.3333333,17.75 L29.5833333,0 Z" id="path-1"/>+ <path d="M29.5833333,0 L4.4375,0 C1.996875,0 0,1.996875 0,4.4375 L0,60.6458333 C0,63.0864583 1.996875,65.0833333 4.4375,65.0833333 L42.8958333,65.0833333 C45.3364583,65.0833333 47.3333333,63.0864583 47.3333333,60.6458333 L47.3333333,17.75 L29.5833333,0 Z" id="path-3"/>+ <path d="M29.5833333,0 L4.4375,0 C1.996875,0 0,1.996875 0,4.4375 L0,60.6458333 C0,63.0864583 1.996875,65.0833333 4.4375,65.0833333 L42.8958333,65.0833333 C45.3364583,65.0833333 47.3333333,63.0864583 47.3333333,60.6458333 L47.3333333,17.75 L29.5833333,0 Z" id="path-5"/>+ <linearGradient x1="50.0053945%" y1="8.58610612%" x2="50.0053945%" y2="100.013939%" id="linearGradient-7">+ <stop stop-color="#263238" stop-opacity="0.2" offset="0%"/>+ <stop stop-color="#263238" stop-opacity="0.02" offset="100%"/>+ </linearGradient>+ <path d="M29.5833333,0 L4.4375,0 C1.996875,0 0,1.996875 0,4.4375 L0,60.6458333 C0,63.0864583 1.996875,65.0833333 4.4375,65.0833333 L42.8958333,65.0833333 C45.3364583,65.0833333 47.3333333,63.0864583 47.3333333,60.6458333 L47.3333333,17.75 L29.5833333,0 Z" id="path-8"/>+ <path d="M29.5833333,0 L4.4375,0 C1.996875,0 0,1.996875 0,4.4375 L0,60.6458333 C0,63.0864583 1.996875,65.0833333 4.4375,65.0833333 L42.8958333,65.0833333 C45.3364583,65.0833333 47.3333333,63.0864583 47.3333333,60.6458333 L47.3333333,17.75 L29.5833333,0 Z" id="path-10"/>+ <path d="M29.5833333,0 L4.4375,0 C1.996875,0 0,1.996875 0,4.4375 L0,60.6458333 C0,63.0864583 1.996875,65.0833333 4.4375,65.0833333 L42.8958333,65.0833333 C45.3364583,65.0833333 47.3333333,63.0864583 47.3333333,60.6458333 L47.3333333,17.75 L29.5833333,0 Z" id="path-12"/>+ <path d="M29.5833333,0 L4.4375,0 C1.996875,0 0,1.996875 0,4.4375 L0,60.6458333 C0,63.0864583 1.996875,65.0833333 4.4375,65.0833333 L42.8958333,65.0833333 C45.3364583,65.0833333 47.3333333,63.0864583 47.3333333,60.6458333 L47.3333333,17.75 L29.5833333,0 Z" id="path-14"/>+ <radialGradient cx="3.16804688%" cy="2.71744318%" fx="3.16804688%" fy="2.71744318%" r="161.248516%" gradientTransform="translate(0.031680,0.027174),scale(1.000000,0.727273),translate(-0.031680,-0.027174)" id="radialGradient-16">+ <stop stop-color="#FFFFFF" stop-opacity="0.1" offset="0%"/>+ <stop stop-color="#FFFFFF" stop-opacity="0" offset="100%"/>+ </radialGradient>+ </defs>+ <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">+ <g id="Consumer-Apps-Sheets-Large-VD-R8-" transform="translate(-451.000000, -451.000000)">+ <g id="Hero" transform="translate(0.000000, 63.000000)">+ <g id="Personal" transform="translate(277.000000, 299.000000)">+ <g id="Sheets-icon" transform="translate(174.833333, 89.958333)">+ <g id="Group">+ <g id="Clipped">+ <mask id="mask-2" fill="white">+ <use xlink:href="#path-1"/>+ </mask>+ <g id="SVGID_1_"/>+ <path d="M29.5833333,0 L4.4375,0 C1.996875,0 0,1.996875 0,4.4375 L0,60.6458333 C0,63.0864583 1.996875,65.0833333 4.4375,65.0833333 L42.8958333,65.0833333 C45.3364583,65.0833333 47.3333333,63.0864583 47.3333333,60.6458333 L47.3333333,17.75 L36.9791667,10.3541667 L29.5833333,0 Z" id="Path" fill="#0F9D58" fill-rule="nonzero" mask="url(#mask-2)"/>+ </g>+ <g id="Clipped">+ <mask id="mask-4" fill="white">+ <use xlink:href="#path-3"/>+ </mask>+ <g id="SVGID_1_"/>+ <path d="M11.8333333,31.8020833 L11.8333333,53.25 L35.5,53.25 L35.5,31.8020833 L11.8333333,31.8020833 Z M22.1875,50.2916667 L14.7916667,50.2916667 L14.7916667,46.59375 L22.1875,46.59375 L22.1875,50.2916667 Z M22.1875,44.375 L14.7916667,44.375 L14.7916667,40.6770833 L22.1875,40.6770833 L22.1875,44.375 Z M22.1875,38.4583333 L14.7916667,38.4583333 L14.7916667,34.7604167 L22.1875,34.7604167 L22.1875,38.4583333 Z M32.5416667,50.2916667 L25.1458333,50.2916667 L25.1458333,46.59375 L32.5416667,46.59375 L32.5416667,50.2916667 Z M32.5416667,44.375 L25.1458333,44.375 L25.1458333,40.6770833 L32.5416667,40.6770833 L32.5416667,44.375 Z M32.5416667,38.4583333 L25.1458333,38.4583333 L25.1458333,34.7604167 L32.5416667,34.7604167 L32.5416667,38.4583333 Z" id="Shape" fill="#F1F1F1" fill-rule="nonzero" mask="url(#mask-4)"/>+ </g>+ <g id="Clipped">+ <mask id="mask-6" fill="white">+ <use xlink:href="#path-5"/>+ </mask>+ <g id="SVGID_1_"/>+ <polygon id="Path" fill="url(#linearGradient-7)" fill-rule="nonzero" mask="url(#mask-6)" points="30.8813021 16.4520313 47.3333333 32.9003646 47.3333333 17.75"/>+ </g>+ <g id="Clipped">+ <mask id="mask-9" fill="white">+ <use xlink:href="#path-8"/>+ </mask>+ <g id="SVGID_1_"/>+ <g id="Group" mask="url(#mask-9)">+ <g transform="translate(26.625000, -2.958333)">+ <path d="M2.95833333,2.95833333 L2.95833333,16.2708333 C2.95833333,18.7225521 4.94411458,20.7083333 7.39583333,20.7083333 L20.7083333,20.7083333 L2.95833333,2.95833333 Z" id="Path" fill="#87CEAC" fill-rule="nonzero"/>+ </g>+ </g>+ </g>+ <g id="Clipped">+ <mask id="mask-11" fill="white">+ <use xlink:href="#path-10"/>+ </mask>+ <g id="SVGID_1_"/>+ <path d="M4.4375,0 C1.996875,0 0,1.996875 0,4.4375 L0,4.80729167 C0,2.36666667 1.996875,0.369791667 4.4375,0.369791667 L29.5833333,0.369791667 L29.5833333,0 L4.4375,0 Z" id="Path" fill-opacity="0.2" fill="#FFFFFF" fill-rule="nonzero" mask="url(#mask-11)"/>+ </g>+ <g id="Clipped">+ <mask id="mask-13" fill="white">+ <use xlink:href="#path-12"/>+ </mask>+ <g id="SVGID_1_"/>+ <path d="M42.8958333,64.7135417 L4.4375,64.7135417 C1.996875,64.7135417 0,62.7166667 0,60.2760417 L0,60.6458333 C0,63.0864583 1.996875,65.0833333 4.4375,65.0833333 L42.8958333,65.0833333 C45.3364583,65.0833333 47.3333333,63.0864583 47.3333333,60.6458333 L47.3333333,60.2760417 C47.3333333,62.7166667 45.3364583,64.7135417 42.8958333,64.7135417 Z" id="Path" fill-opacity="0.2" fill="#263238" fill-rule="nonzero" mask="url(#mask-13)"/>+ </g>+ <g id="Clipped">+ <mask id="mask-15" fill="white">+ <use xlink:href="#path-14"/>+ </mask>+ <g id="SVGID_1_"/>+ <path d="M34.0208333,17.75 C31.5691146,17.75 29.5833333,15.7642188 29.5833333,13.3125 L29.5833333,13.6822917 C29.5833333,16.1340104 31.5691146,18.1197917 34.0208333,18.1197917 L47.3333333,18.1197917 L47.3333333,17.75 L34.0208333,17.75 Z" id="Path" fill-opacity="0.1" fill="#263238" fill-rule="nonzero" mask="url(#mask-15)"/>+ </g>+ </g>+ <path d="M29.5833333,0 L4.4375,0 C1.996875,0 0,1.996875 0,4.4375 L0,60.6458333 C0,63.0864583 1.996875,65.0833333 4.4375,65.0833333 L42.8958333,65.0833333 C45.3364583,65.0833333 47.3333333,63.0864583 47.3333333,60.6458333 L47.3333333,17.75 L29.5833333,0 Z" id="Path" fill="url(#radialGradient-16)" fill-rule="nonzero"/>+ </g>+ </g>+ </g>+ </g>+ </g>+</svg>diff --git a/packages/app-store/zapier/static/salesforce.svg b/packages/app-store/zapier/static/salesforce.svgnew file mode 100644index 00000000000..2dfe013fb4c--- /dev/null+++ b/packages/app-store/zapier/static/salesforce.svg@@ -0,0 +1,24 @@+<svg xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 273 191">+<title>Salesforce.com logo</title>+<desc>A cloud computing company based in San Francisco, California, United States</desc>+ <metadata>+ <rdf:RDF>+ <cc:Work rdf:about="">+ <dc:format>image/svg+xml</dc:format>+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>+ <dc:title/>+ </cc:Work>+ </rdf:RDF>+ </metadata>+ <defs>+ <path id="a" d="m0.06 0.5h272v190h-272z"/>+ </defs>+ <g fill-rule="evenodd">+ <mask id="b" fill="#fff">+ <use xlink:href="#a"/>+ </mask>+ <path d="m113 21.3c8.78-9.14 21-14.8 34.5-14.8 18 0 33.6 10 42 24.9a58 58 0 0 1 23.7-5.05c32.4 0 58.7 26.5 58.7 59.2s-26.3 59.2-58.7 59.2c-3.96 0-7.82-0.398-11.6-1.15-7.35 13.1-21.4 22-37.4 22a42.7 42.7 0 0 1-18.8-4.32c-7.45 17.5-24.8 29.8-45 29.8-21.1 0-39-13.3-45.9-32a45.1 45.1 0 0 1-9.34 0.972c-25.1 0-45.4-20.6-45.4-45.9 0-17 9.14-31.8 22.7-39.8a52.6 52.6 0 0 1-4.35-21c0-29.2 23.7-52.8 52.9-52.8 17.1 0 32.4 8.15 42 20.8" fill="#00A1E0" mask="url(#b)"/>+ <path d="m39.4 99.3c-0.171 0.446 0.061 0.539 0.116 0.618 0.511 0.37 1.03 0.638 1.55 0.939 2.78 1.47 5.4 1.9 8.14 1.9 5.58 0 9.05-2.97 9.05-7.75v-0.094c0-4.42-3.92-6.03-7.58-7.18l-0.479-0.155c-2.77-0.898-5.16-1.68-5.16-3.5v-0.093c0-1.56 1.4-2.71 3.56-2.71 2.4 0 5.26 0.799 7.09 1.81 0 0 0.542 0.35 0.739-0.173 0.107-0.283 1.04-2.78 1.14-3.06 0.106-0.293-0.08-0.514-0.271-0.628-2.1-1.28-5-2.15-8-2.15l-0.557 2e-3c-5.11 0-8.68 3.09-8.68 7.51v0.095c0 4.66 3.94 6.18 7.62 7.23l0.592 0.184c2.68 0.824 5 1.54 5 3.42v0.094c0 1.73-1.51 3.02-3.93 3.02-0.941 0-3.94-0.016-7.19-2.07-0.393-0.229-0.617-0.394-0.92-0.579-0.16-0.097-0.56-0.272-0.734 0.252l-1.1 3.06m81.7 0c-0.171 0.446 0.061 0.539 0.118 0.618 0.509 0.37 1.03 0.638 1.55 0.939 2.78 1.47 5.4 1.9 8.14 1.9 5.58 0 9.05-2.97 9.05-7.75v-0.094c0-4.42-3.91-6.03-7.58-7.18l-0.479-0.155c-2.77-0.898-5.16-1.68-5.16-3.5v-0.093c0-1.56 1.4-2.71 3.56-2.71 2.4 0 5.25 0.799 7.09 1.81 0 0 0.542 0.35 0.74-0.173 0.106-0.283 1.04-2.78 1.13-3.06 0.107-0.293-0.08-0.514-0.27-0.628-2.1-1.28-5-2.15-8-2.15l-0.558 2e-3c-5.11 0-8.68 3.09-8.68 7.51v0.095c0 4.66 3.94 6.18 7.62 7.23l0.591 0.184c2.69 0.824 5 1.54 5 3.42v0.094c0 1.73-1.51 3.02-3.93 3.02-0.943 0-3.95-0.016-7.19-2.07-0.393-0.229-0.623-0.387-0.921-0.579-0.101-0.064-0.572-0.248-0.733 0.252l-1.1 3.06m55.8-9.36c0 2.7-0.504 4.83-1.49 6.34-0.984 1.49-2.47 2.22-4.54 2.22s-3.55-0.724-4.52-2.21c-0.977-1.5-1.47-3.64-1.47-6.34 0-2.7 0.496-4.82 1.47-6.31 0.968-1.48 2.44-2.19 4.52-2.19s3.56 0.717 4.54 2.19c0.992 1.49 1.49 3.61 1.49 6.31m4.66-5.01c-0.459-1.55-1.17-2.91-2.12-4.05-0.951-1.14-2.15-2.06-3.58-2.72-1.42-0.665-3.1-1-5-1s-3.57 0.337-5 1c-1.42 0.664-2.63 1.58-3.58 2.72-0.948 1.14-1.66 2.5-2.12 4.05-0.455 1.54-0.686 3.22-0.686 5.01 0 1.79 0.231 3.47 0.686 5.01 0.457 1.55 1.17 2.91 2.12 4.05 0.951 1.14 2.16 2.05 3.58 2.7 1.43 0.648 3.11 0.978 5 0.978 1.89 0 3.57-0.33 4.99-0.978 1.42-0.648 2.63-1.56 3.58-2.7 0.949-1.14 1.66-2.5 2.12-4.05 0.454-1.54 0.685-3.22 0.685-5.01 0-1.78-0.231-3.47-0.685-5.01m38.3 12.8c-0.153-0.453-0.595-0.282-0.595-0.282-0.677 0.259-1.4 0.499-2.17 0.619-0.776 0.122-1.64 0.183-2.55 0.183-2.25 0-4.05-0.671-5.33-2-1.29-1.33-2.01-3.47-2-6.37 7e-3 -2.64 0.645-4.62 1.79-6.14 1.13-1.5 2.87-2.28 5.17-2.28 1.92 0 3.39 0.223 4.93 0.705 0 0 0.365 0.159 0.54-0.322 0.409-1.13 0.711-1.94 1.15-3.18 0.124-0.355-0.18-0.505-0.291-0.548-0.604-0.236-2.03-0.623-3.11-0.786-1.01-0.154-2.18-0.234-3.5-0.234-1.96 0-3.7 0.335-5.19 0.999-1.49 0.663-2.75 1.58-3.75 2.72-1 1.14-1.76 2.5-2.27 4.05-0.505 1.54-0.76 3.23-0.76 5.02 0 3.86 1.04 6.99 3.1 9.28 2.06 2.3 5.16 3.46 9.2 3.46 2.39 0 4.84-0.483 6.6-1.18 0 0 0.336-0.162 0.19-0.554l-1.15-3.16m8.15-10.4c0.223-1.5 0.634-2.75 1.28-3.72 0.967-1.48 2.44-2.29 4.51-2.29 2.07 0 3.44 0.814 4.42 2.29 0.65 0.975 0.934 2.27 1.04 3.72l-11.3-2e-3zm15.7-3.3c-0.397-1.49-1.38-3-2.02-3.69-1.02-1.09-2.01-1.86-3-2.28a11.5 11.5 0 0 0-4.52-0.917c-1.97 0-3.76 0.333-5.21 1.01-1.45 0.682-2.67 1.61-3.63 2.77-0.959 1.16-1.68 2.53-2.14 4.1-0.46 1.55-0.692 3.25-0.692 5.03 0 1.82 0.241 3.51 0.715 5.04 0.479 1.54 1.25 2.89 2.29 4.01 1.04 1.13 2.37 2.01 3.97 2.63 1.59 0.615 3.52 0.934 5.73 0.927 4.56-0.015 6.96-1.03 7.94-1.58 0.175-0.098 0.34-0.267 0.134-0.754l-1.03-2.89c-0.158-0.431-0.594-0.275-0.594-0.275-1.13 0.422-2.73 1.18-6.48 1.17-2.45-4e-3 -4.26-0.727-5.4-1.86-1.16-1.16-1.74-2.85-1.83-5.25l15.8 0.012s0.416-4e-3 0.459-0.41c0.017-0.168 0.541-3.24-0.471-6.79zm-142 3.3c0.223-1.5 0.635-2.75 1.28-3.72 0.968-1.48 2.44-2.29 4.51-2.29 2.07 0 3.44 0.814 4.42 2.29 0.649 0.975 0.933 2.27 1.04 3.72l-11.3-2e-3zm15.7-3.3c-0.396-1.49-1.38-3-2.02-3.69-1.02-1.09-2.01-1.86-3-2.28a11.5 11.5 0 0 0-4.52-0.917c-1.97 0-3.76 0.333-5.21 1.01-1.45 0.682-2.67 1.61-3.63 2.77-0.957 1.16-1.68 2.53-2.14 4.1-0.459 1.55-0.69 3.25-0.69 5.03 0 1.82 0.239 3.51 0.716 5.04 0.478 1.54 1.25 2.89 2.28 4.01 1.04 1.13 2.37 2.01 3.97 2.63 1.59 0.615 3.51 0.934 5.73 0.927 4.56-0.015 6.96-1.03 7.94-1.58 0.174-0.098 0.34-0.267 0.133-0.754l-1.03-2.89c-0.159-0.431-0.595-0.275-0.595-0.275-1.13 0.422-2.73 1.18-6.48 1.17-2.44-4e-3 -4.26-0.727-5.4-1.86-1.16-1.16-1.74-2.85-1.83-5.25l15.8 0.012s0.416-4e-3 0.459-0.41c0.017-0.168 0.541-3.24-0.472-6.79zm-49.8 13.6c-0.619-0.494-0.705-0.615-0.91-0.936-0.313-0.483-0.473-1.17-0.473-2.05 0-1.38 0.46-2.38 1.41-3.05-0.01 2e-3 1.36-1.18 4.58-1.14a32 32 0 0 1 4.28 0.365v7.17h2e-3s-2 0.431-4.26 0.567c-3.21 0.193-4.63-0.924-4.62-0.921zm6.28-11.1c-0.64-0.047-1.47-0.07-2.46-0.07-1.35 0-2.66 0.168-3.88 0.498-1.23 0.332-2.34 0.846-3.29 1.53a7.63 7.63 0 0 0-2.29 2.6c-0.559 1.04-0.844 2.26-0.844 3.64 0 1.4 0.243 2.61 0.723 3.6a6.54 6.54 0 0 0 2.06 2.47c0.877 0.638 1.96 1.11 3.21 1.39 1.24 0.283 2.64 0.426 4.18 0.426 1.62 0 3.23-0.136 4.79-0.399a95.1 95.1 0 0 0 3.97-0.772c0.526-0.121 1.11-0.28 1.11-0.28 0.39-0.099 0.36-0.516 0.36-0.516l-9e-3 -14.4c0-3.16-0.844-5.51-2.51-6.96-1.66-1.45-4.09-2.18-7.24-2.18-1.18 0-3.09 0.16-4.23 0.389 0 0-3.44 0.668-4.86 1.78 0 0-0.312 0.192-0.142 0.627l1.12 3c0.139 0.389 0.518 0.256 0.518 0.256s0.119-0.047 0.259-0.13c3.03-1.65 6.87-1.6 6.87-1.6 1.7 0 3.02 0.345 3.9 1.02 0.861 0.661 1.3 1.66 1.3 3.76v0.667c-1.35-0.196-2.6-0.309-2.6-0.309zm127-8.13a0.428 0.428 0 0 0-0.237-0.568c-0.269-0.102-1.61-0.385-2.64-0.449-1.98-0.124-3.08 0.21-4.07 0.654-0.978 0.441-2.06 1.15-2.66 1.97l-2e-3 -1.92c0-0.264-0.187-0.477-0.453-0.477h-4.04c-0.262 0-0.452 0.213-0.452 0.477v23.5a0.48 0.48 0 0 0 0.479 0.479h4.14a0.479 0.479 0 0 0 0.478-0.479v-11.8c0-1.58 0.174-3.15 0.521-4.14 0.342-0.979 0.807-1.76 1.38-2.32a4.79 4.79 0 0 1 1.95-1.17 7.68 7.68 0 0 1 2.12-0.298c0.825 0 1.73 0.212 1.73 0.212 0.304 0.034 0.473-0.152 0.576-0.426 0.271-0.721 1.04-2.88 1.19-3.31" fill="#FFFFFE"/>+ <path d="M162.201 67.548a13.258 13.258 0 0 0-1.559-.37 12.217 12.217 0 0 0-2.144-.166c-2.853 0-5.102.806-6.681 2.398-1.568 1.58-2.635 3.987-3.17 7.154l-.193 1.069h-3.581s-.437-.018-.529.459l-.588 3.28c-.041.314.094.51.514.508h3.486l-3.537 19.743c-.277 1.59-.594 2.898-.945 3.889-.346.978-.684 1.711-1.1 2.243-.403.515-.785.894-1.444 1.115-.544.183-1.17.267-1.856.267-.382 0-.89-.064-1.265-.139-.375-.074-.57-.158-.851-.276 0 0-.409-.156-.57.254-.131.335-1.06 2.89-1.17 3.206-.112.312.045.558.243.629.464.166.809.272 1.441.421.878.207 1.618.22 2.311.22 1.452 0 2.775-.204 3.872-.6 1.104-.399 2.065-1.094 2.915-2.035.919-1.015 1.497-2.078 2.05-3.528.547-1.437 1.013-3.221 1.386-5.3l3.554-20.109h5.196s.438.016.529-.459l.588-3.28c.041-.314-.093-.51-.515-.508h-5.043c.025-.114.254-1.888.833-3.558.247-.713.712-1.288 1.106-1.683a3.273 3.273 0 0 1 1.321-.822 5.48 5.48 0 0 1 1.693-.244c.475 0 .941.057 1.296.131.489.104.679.159.807.197.514.157.583.005.684-.244l1.206-3.312c.124-.356-.178-.506-.29-.55m-70.474 34.117c0 .264-.188.479-.452.479h-4.183c-.265 0-.453-.215-.453-.479V67.997c0-.263.188-.476.453-.476h4.183c.264 0 .452.213.452.476v33.668" fill="#FFFFFE"/>+ </g>+</svg>diff --git a/packages/app-store/zapier/static/todoist.svg b/packages/app-store/zapier/static/todoist.svgnew file mode 100644index 00000000000..9d0c6b7a039--- /dev/null+++ b/packages/app-store/zapier/static/todoist.svg@@ -0,0 +1,8 @@+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="256px" height="256px" viewBox="0 0 256 256" version="1.1" preserveAspectRatio="xMidYMid">+ <g>+ <path d="M224.001997,0 L31.9980026,0 C14.3579381,0.0394964443 0.0614809418,14.336846 0,32 L0,224 C0,241.6 14.3971038,256 31.9980026,256 L224.001997,256 C241.602896,256 256,241.6 256,224 L256,32 C256,14.4 241.602896,0 224.001997,0" fill="#E44332"/>+ <path d="M54.132778,120.802491 C58.5960224,118.196275 154.476075,62.477451 156.667847,61.1862981 C158.859619,59.9110855 158.97917,55.9898065 156.508446,54.5711324 C154.053661,53.1604284 149.391165,50.4824817 147.661658,49.4543415 C145.192242,48.0957707 142.191169,48.132074 139.755339,49.5499825 C138.527947,50.2672896 56.6035026,97.8486625 53.8697654,99.4107981 C50.5781227,101.291737 46.5372925,101.323617 43.2695601,99.4107981 L0,74.0181257 L0,95.6011002 C10.5205046,101.801822 36.7181549,117.200015 43.062338,120.826401 C46.8481256,122.978322 50.4745117,122.930502 54.1407481,120.802491" fill="#FFFFFF"/>+ <path d="M54.132778,161.609296 C58.5960224,159.00308 154.476075,103.284257 156.667847,101.993104 C158.859619,100.717891 158.97917,96.7966121 156.508446,95.377938 C154.053661,93.9672339 149.391165,91.2892873 147.661658,90.2611471 C145.192242,88.9025763 142.191169,88.9388796 139.755339,90.3567881 C138.527947,91.0740952 56.6035026,138.655468 53.8697654,140.217604 C50.5781227,142.098542 46.5372925,142.130423 43.2695601,140.217604 L0,114.824931 L0,136.407906 C10.5205046,142.608627 36.7181549,158.00682 43.062338,161.633206 C46.8481256,163.785128 50.4745117,163.737307 54.1407481,161.609296" fill="#FFFFFF"/>+ <path d="M54.132778,204.966527 C58.5960224,202.360311 154.476075,146.641487 156.667847,145.350335 C158.859619,144.075122 158.97917,140.153843 156.508446,138.735169 C154.053661,137.324465 149.391165,134.646518 147.661658,133.618378 C145.192242,132.259807 142.191169,132.29611 139.755339,133.714019 C138.527947,134.431326 56.6035026,182.012699 53.8697654,183.574835 C50.5781227,185.455773 46.5372925,185.487654 43.2695601,183.574835 L0,158.182162 L0,179.765137 C10.5205046,185.965858 36.7181549,201.364051 43.062338,204.990437 C46.8481256,207.142359 50.4745117,207.094538 54.1407481,204.966527" fill="#FFFFFF"/>+ </g>+</svg>diff --git a/packages/types/App.d.ts b/packages/types/App.d.tsindex 8fed12bcc0a..d326dc5dcd6 100644--- a/packages/types/App.d.ts+++ b/packages/types/App.d.ts@@ -73,7 +73,15 @@ export interface App {*/imageSrc?: string;/** TODO determine if we should use this instead of category */- variant: "calendar" | "payment" | "conferencing" | "video" | "other" | "other_calendar" | "web3";+ variant:+ | "calendar"+ | "payment"+ | "conferencing"+ | "video"+ | "other"+ | "other_calendar"+ | "web3"+ | "automation";/** The slug for the app store public page inside `/apps/[slug] */slug: string;diff --git a/packages/ui/v2/core/Shell.tsx b/packages/ui/v2/core/Shell.tsxindex 66f5c5ddbc3..e2a0c736831 100644--- a/packages/ui/v2/core/Shell.tsx+++ b/packages/ui/v2/core/Shell.tsx@@ -116,7 +116,7 @@ export function ShellSubHeading(props: {</h2>{props.subtitle && <p className="text-sm text-neutral-500 ltr:mr-4">{props.subtitle}</p>}</div>- {props.actions && <div className="flex-shrink-0">{props.actions}</div>}+ {props.actions && <div className="mt-2 flex-shrink-0 sm:mt-0">{props.actions}</div>}</header>);}@@ -657,7 +657,7 @@ const MobileNavigationMoreItem: React.FC<{<a className="flex items-center justify-between p-5 hover:bg-gray-100"><span className="flex items-center font-semibold text-gray-700 ">{item.icon && (- <item.icon className="h-5 w-5 flex-shrink-0 ltr:mr-3 rtl:ml-3" aria-hidden="true" />+ <item.icon className="h-5 w-5 flex-shrink-0 ltr:mr-3 rtl:ml-3" aria-hidden="true" />)}{isLocaleReady ? t(item.name) : <SkeletonText />}</span>@@ -712,13 +712,13 @@ function SideBar() {<buttoncolor="minimal"onClick={() => window.history.back()}- className="desktop-only group flex text-sm font-medium text-neutral-500 hover:text-neutral-900">+ className="desktop-only group flex text-sm font-medium text-neutral-500 hover:text-neutral-900"><Icon.FiArrowLeft className="h-4 w-4 flex-shrink-0 text-neutral-500 group-hover:text-neutral-900" /></button><buttoncolor="minimal"onClick={() => window.history.forward()}- className="desktop-only group flex text-sm font-medium text-neutral-500 hover:text-neutral-900">+ className="desktop-only group flex text-sm font-medium text-neutral-500 hover:text-neutral-900"><Icon.FiArrowRight className="h-4 w-4 flex-shrink-0 text-neutral-500 group-hover:text-neutral-900" /></button><KBarTrigger />@@ -739,7 +739,7 @@ function SideBar() {{isCalcom && <Tips />}{/* Save it for next preview version- <div className="mb-4 hidden lg:block">+ <div className="hidden mb-4 lg:block"><UserV2OptInBanner /></div> */}@@ -781,7 +781,7 @@ export function ShellMain(props: LayoutProps) {{props.HeadingLeftIcon && <div className="ltr:mr-4">{props.HeadingLeftIcon}</div>}<div className="w-full ltr:mr-4 rtl:ml-4 sm:block">{props.heading && (- <h1 className="font-cal mb-1 text-xl font-bold tracking-wide text-black">+ <h1 className="font-cal mb-1 text-xl font-bold tracking-wide text-black">{!isLocaleReady ? <SkeletonText invisible /> : props.heading}</h1>)}diff --git a/packages/ui/v2/core/layouts/InstalledAppsLayout.tsx b/packages/ui/v2/core/layouts/InstalledAppsLayout.tsxindex 7d5399749f4..2cd88bbf909 100644--- a/packages/ui/v2/core/layouts/InstalledAppsLayout.tsx+++ b/packages/ui/v2/core/layouts/InstalledAppsLayout.tsx@@ -27,12 +27,12 @@ const tabs: (VerticalTabItemProps | HorizontalTabItemProps)[] = [icon: Icon.FiCreditCard,},{- name: "Automation",+ name: "automation",href: "/apps/installed/automation",icon: Icon.FiShare2,},{- name: "Analytics",+ name: "analytics",href: "/apps/installed/analytics",icon: Icon.FiBarChart,},