Scheduling infrastructure for absolutely everyone.
renamed cal.com call to cal.com video, added og image (#1852)
Peer Richelsen504461498364
diff --git a/apps/web/lib/integrations/Daily/DailyVideoApiAdapter.ts b/apps/web/lib/integrations/Daily/DailyVideoApiAdapter.tsindex c1d912c3702..5d3d408b05f 100644--- a/apps/web/lib/integrations/Daily/DailyVideoApiAdapter.ts+++ b/apps/web/lib/integrations/Daily/DailyVideoApiAdapter.ts@@ -96,7 +96,7 @@ const DailyVideoApiAdapter = (credential: Credential): VideoApiAdapter => {type: "daily_video",id: dailyEvent.name,password: "",- url: BASE_URL + "/call/" + event.uid,+ url: BASE_URL + "/video/" + event.uid,});}diff --git a/apps/web/pages/call/[uid].tsx b/apps/web/pages/video/[uid].tsxsimilarity index 85%rename from apps/web/pages/call/[uid].tsxrename to apps/web/pages/video/[uid].tsxindex 12437430ae6..2c7319ebd7c 100644--- a/apps/web/pages/call/[uid].tsx+++ b/apps/web/pages/video/[uid].tsx@@ -6,14 +6,14 @@ import Link from "next/link";import { useRouter } from "next/router";import React, { useEffect } from "react";+import { useLocale } from "@lib/hooks/useLocale";import prisma from "@lib/prisma";import { inferSSRProps } from "@lib/types/inferSSRProps";-import { HeadSeo } from "@components/seo/head-seo";-export type JoinCallPageProps = inferSSRProps<typeof getServerSideProps>;export default function JoinCall(props: JoinCallPageProps) {+ const { t } = useLocale();const session = props.session;const router = useRouter();@@ -34,15 +34,15 @@ export default function JoinCall(props: JoinCallPageProps) {useEffect(() => {if (emptyBooking) {- router.push("/call/no-meeting-found");+ router.push("/video/no-meeting-found");}if (isUpcoming) {- router.push(`/call/meeting-not-started/${props.booking?.uid}`);+ router.push(`/video/meeting-not-started/${props.booking?.uid}`);}if (isPast) {- router.push(`/call/meeting-ended/${props.booking?.uid}`);+ router.push(`/video/meeting-ended/${props.booking?.uid}`);}});@@ -108,12 +108,20 @@ export default function JoinCall(props: JoinCallPageProps) {return (<>- <HeadSeo title="Video Conference" description="Join the video call" /><Head>- <meta property="og:type" content="website" />+ <title>Cal.com Video</title>+ <meta name="title" content="Cal.com Video" />+ <meta name="description" content={t("quick_video_meeting")} /><meta property="og:image" content="https://cal.com/video-og-image.png" />- <meta property="twitter:card" content="summary_large_image" />+ <meta property="og:type" content="website" />+ <meta property="og:url" content="https://cal.com/video" />+ <meta property="og:title" content="Cal.com Video" />+ <meta property="og:description" content={t("quick_video_meeting")} /><meta property="twitter:image" content="https://cal.com/video-og-image.png" />+ <meta property="twitter:card" content="summary_large_image" />+ <meta property="twitter:url" content="https://cal.com/video" />+ <meta property="twitter:title" content="Cal.com Video" />+ <meta property="twitter:description" content={t("quick_video_meeting")} /></Head><div style={{ zIndex: 2, position: "relative" }}><Link href="/">diff --git a/apps/web/pages/call/meeting-ended/[uid].tsx b/apps/web/pages/video/meeting-ended/[uid].tsxsimilarity index 98%rename from apps/web/pages/call/meeting-ended/[uid].tsxrename to apps/web/pages/video/meeting-ended/[uid].tsxindex 688f2e7d7cf..410d566dee2 100644--- a/apps/web/pages/call/meeting-ended/[uid].tsx+++ b/apps/web/pages/video/meeting-ended/[uid].tsx@@ -23,7 +23,7 @@ export default function MeetingUnavailable(props: inferSSRProps<typeof getServerconst emptyBooking = props.booking === null;useEffect(() => {if (emptyBooking) {- router.push("/call/no-meeting-found");+ router.push("/video/no-meeting-found");}});if (!emptyBooking) {diff --git a/apps/web/pages/call/meeting-not-started/[uid].tsx b/apps/web/pages/video/meeting-not-started/[uid].tsxsimilarity index 99%rename from apps/web/pages/call/meeting-not-started/[uid].tsxrename to apps/web/pages/video/meeting-not-started/[uid].tsxindex bb81a55da15..36fae4ff508 100644--- a/apps/web/pages/call/meeting-not-started/[uid].tsx+++ b/apps/web/pages/video/meeting-not-started/[uid].tsx@@ -20,7 +20,7 @@ export default function MeetingNotStarted(props: inferSSRProps<typeof getServerSconst emptyBooking = props.booking === null;useEffect(() => {if (emptyBooking) {- router.push("/call/no-meeting-found");+ router.push("/video/no-meeting-found");}});// eslint-disable-next-line @typescript-eslint/no-unused-varsdiff --git a/apps/web/pages/call/no-meeting-found.tsx b/apps/web/pages/video/no-meeting-found.tsxsimilarity index 100%rename from apps/web/pages/call/no-meeting-found.tsxrename to apps/web/pages/video/no-meeting-found.tsx