From 0bc44c36db8e33e500d9525385bf0d5261a19bef Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Tue, 17 Oct 2023 16:03:12 +0100 Subject: [PATCH] feat: added example messages to cal ai post-install (#11944) * added example messages to cal ai post-install * Revert yarn.lock changes * added search plceholder to app store --- apps/web/pages/apps/index.tsx | 2 + packages/app-store/apps.browser.generated.tsx | 1 + packages/app-store/cal-ai/components/.gitkeep | 0 .../components/AppSettingsInterface.tsx | 73 +++++++++++++++++++ 4 files changed, 76 insertions(+) delete mode 100644 packages/app-store/cal-ai/components/.gitkeep create mode 100644 packages/app-store/cal-ai/components/AppSettingsInterface.tsx diff --git a/apps/web/pages/apps/index.tsx b/apps/web/pages/apps/index.tsx index c5e7c03fba..679957c923 100644 --- a/apps/web/pages/apps/index.tsx +++ b/apps/web/pages/apps/index.tsx @@ -45,6 +45,7 @@ function AppsSearch({ onChange: ChangeEventHandler; className?: string; }) { + const { t } = useLocale(); return ( ); } diff --git a/packages/app-store/apps.browser.generated.tsx b/packages/app-store/apps.browser.generated.tsx index e8d108c257..f00630685d 100644 --- a/packages/app-store/apps.browser.generated.tsx +++ b/packages/app-store/apps.browser.generated.tsx @@ -11,6 +11,7 @@ export const InstallAppButtonMap = { vital: dynamic(() => import("./vital/components/InstallAppButton")), }; export const AppSettingsComponentsMap = { + "cal-ai": dynamic(() => import("./cal-ai/components/AppSettingsInterface")), "general-app-settings": dynamic(() => import("./templates/general-app-settings/components/AppSettingsInterface") ), diff --git a/packages/app-store/cal-ai/components/.gitkeep b/packages/app-store/cal-ai/components/.gitkeep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/app-store/cal-ai/components/AppSettingsInterface.tsx b/packages/app-store/cal-ai/components/AppSettingsInterface.tsx new file mode 100644 index 0000000000..8c40985f6e --- /dev/null +++ b/packages/app-store/cal-ai/components/AppSettingsInterface.tsx @@ -0,0 +1,73 @@ +import { useSession } from "next-auth/react"; + +export function MailLink({ subject, body }: { subject: string; body?: string }) { + const { data } = useSession(); + + return ( + + {subject ? subject : body} + + ); +} +export default function AppSettings() { + return ( + <> +
+

Example questions:

+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+

Or, any of that in a thread:

+
    +
  • + What meetings do I have this week? +
      +
    • Meeting 1, Meeting 2
    • +
    +
  • +
  • Cancel that first meeting
  • +
+

Or, doing multiple things:

+
    +
  • + +
  • +
+
+ + ); +}