Scheduling infrastructure for absolutely everyone.
added auto animate to installed apps, fixed container size (#6046)
Peer Richelsen6fae01d45ade
diff --git a/apps/web/components/apps/IntegrationListItem.tsx b/apps/web/components/apps/IntegrationListItem.tsxindex fff73dd3437..22d0753c6b4 100644--- a/apps/web/components/apps/IntegrationListItem.tsx+++ b/apps/web/components/apps/IntegrationListItem.tsx@@ -44,7 +44,7 @@ function IntegrationListItem(props: {expanded={!!props.children}className={classNames(props.separate ? "rounded-md" : "first:rounded-t-md last:rounded-b-md",- "my-0 flex-col border transition-colors duration-500 ",+ "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")}>diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.jsonindex b9bdbeefe3b..b224a4618e2 100644--- a/apps/web/public/static/locales/en/common.json+++ b/apps/web/public/static/locales/en/common.json@@ -793,7 +793,7 @@"no_category_apps_description_analytics": "Add an analytics app for your booking pages","no_category_apps_description_automation": "Add an automation app to use","no_category_apps_description_other": "Add any other type of app to do all sorts of things",- "installed_app_calendar_description": "Set the calendar(s) to check for conflicts to prevent double bookings.",+ "installed_app_calendar_description": "Set the calendars to check for conflicts to prevent double bookings.","installed_app_conferencing_description": "Add your favourite video conferencing apps for your meetings","installed_app_payment_description": "Configure which payment processing services to use when charging your clients.","installed_app_analytics_description": "Configure which analytics apps to use for your booking pages",diff --git a/packages/app-store/_components/AppCategoryNavigation.tsx b/packages/app-store/_components/AppCategoryNavigation.tsxindex ce3f183218b..feee9845775 100644--- a/packages/app-store/_components/AppCategoryNavigation.tsx+++ b/packages/app-store/_components/AppCategoryNavigation.tsx@@ -1,3 +1,4 @@+import { useAutoAnimate } from "@formkit/auto-animate/react";import { useMemo } from "react";import { classNames } from "@calcom/lib";@@ -17,16 +18,19 @@ const AppCategoryNavigation = ({className?: string;}) => {const appCategories = useMemo(() => getAppCategories(baseURL), [baseURL]);+ const [animationRef] = useAutoAnimate<HTMLDivElement>();return (<div className={classNames("flex flex-col p-2 md:p-0 xl:flex-row", className)}><div className="hidden xl:block"><VerticalTabs tabs={appCategories} sticky linkProps={{ shallow: true }} /></div>- <div className="block overflow-x-scroll xl:hidden">+ <div className="mb-4 block overflow-x-scroll xl:hidden"><HorizontalTabs tabs={appCategories} linkProps={{ shallow: true }} /></div>- <main className={containerClassname}>{children}</main>+ <main className={containerClassname} ref={animationRef}>+ {children}+ </main></div>);};diff --git a/packages/ui/v2/core/layouts/InstalledAppsLayout.tsx b/packages/ui/v2/core/layouts/InstalledAppsLayout.tsxindex 6981e1a48a8..13fbced1bce 100644--- a/packages/ui/v2/core/layouts/InstalledAppsLayout.tsx+++ b/packages/ui/v2/core/layouts/InstalledAppsLayout.tsx@@ -54,9 +54,12 @@ export default function InstalledAppsLayout({if (query.data?.items.length === 0) {actualTabs = tabs.filter((tab) => tab.name !== InstalledAppVariants.payment);}+return (<Shell {...rest}>- <AppCategoryNavigation baseURL="/apps/installed" containerClassname="w-full xl:mx-5 xl:w-4/5 xl:pr-5">+ <AppCategoryNavigation+ baseURL="/apps/installed"+ containerClassname="w-full xl:mx-5 xl:w-4/5 xl:max-w-2xl xl:pr-5">{children}</AppCategoryNavigation></Shell>