From b582c352f3443e40a3e76ca2857afc213295408b Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Wed, 20 Nov 2024 14:41:18 +0100 Subject: [PATCH 1/4] added insights badge to event-types --- .../eventtypes/components/EventTypeDescription.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/features/eventtypes/components/EventTypeDescription.tsx b/packages/features/eventtypes/components/EventTypeDescription.tsx index b2ab67ca6f1d66..7e803be1eaa0e3 100644 --- a/packages/features/eventtypes/components/EventTypeDescription.tsx +++ b/packages/features/eventtypes/components/EventTypeDescription.tsx @@ -1,4 +1,5 @@ import type { Prisma } from "@prisma/client"; +import Link from "next/link"; import { useMemo } from "react"; import type { z } from "zod"; @@ -70,6 +71,7 @@ export const EventTypeDescription = ({ )} + {eventType.schedulingType && eventType.schedulingType !== SchedulingType.MANAGED && (
  • @@ -128,6 +130,13 @@ export const EventTypeDescription = ({
  • ) : null} +
  • + + + {t("insights")} + + +
  • From 53ef5c7dfd1f2dfc65dd60d75ab096d1373929c1 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Wed, 20 Nov 2024 14:41:50 +0100 Subject: [PATCH 2/4] added comment --- .../features/eventtypes/components/EventTypeDescription.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/features/eventtypes/components/EventTypeDescription.tsx b/packages/features/eventtypes/components/EventTypeDescription.tsx index 7e803be1eaa0e3..8c0c39786e57bf 100644 --- a/packages/features/eventtypes/components/EventTypeDescription.tsx +++ b/packages/features/eventtypes/components/EventTypeDescription.tsx @@ -133,7 +133,7 @@ export const EventTypeDescription = ({
  • - {t("insights")} + {t("insights")} {/* TODO: Instead of "Insights" lets show the number of bookings */}
  • From 9bf27ece116788fb762c2ad94eb649ae3d3eaff7 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Wed, 20 Nov 2024 14:46:40 +0100 Subject: [PATCH 3/4] added insights to event-types detail --- .../eventtypes/components/EventTypeLayout.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/features/eventtypes/components/EventTypeLayout.tsx b/packages/features/eventtypes/components/EventTypeLayout.tsx index 4b2a69f05f1231..5fa600d760d9e8 100644 --- a/packages/features/eventtypes/components/EventTypeLayout.tsx +++ b/packages/features/eventtypes/components/EventTypeLayout.tsx @@ -189,6 +189,16 @@ function EventTypeSingleLayout({ )} )} + +