diff --git a/apps/web/modules/insights/insights-view.tsx b/apps/web/modules/insights/insights-view.tsx
index 9f3e939ce7..379400f08c 100644
--- a/apps/web/modules/insights/insights-view.tsx
+++ b/apps/web/modules/insights/insights-view.tsx
@@ -71,22 +71,22 @@ function InsightsPageContent() {
{t("insights_no_data_found_for_filter")}
@@ -53,6 +50,6 @@ export const AverageEventDurationChart = () => { valueFormatter={valueFormatter} /> )} - + ); }; diff --git a/packages/features/insights/components/BookingKPICards.tsx b/packages/features/insights/components/BookingKPICards.tsx index fa111acdf7..7d5030a1f3 100644 --- a/packages/features/insights/components/BookingKPICards.tsx +++ b/packages/features/insights/components/BookingKPICards.tsx @@ -1,11 +1,10 @@ -import { Grid } from "@tremor/react"; - import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc"; -import { SkeletonText, SkeletonContainer } from "@calcom/ui/components/skeleton"; +import classNames from "@calcom/ui/classNames"; +import { SkeletonText } from "@calcom/ui/components/skeleton"; import { useInsightsParameters } from "../hooks/useInsightsParameters"; -import { CardInsights } from "./Card"; +import { ChartCard } from "./ChartCard"; import { KPICard } from "./KPICard"; export const BookingKPICards = () => { @@ -30,17 +29,9 @@ export const BookingKPICards = () => { } ); - const categories: { + const eventCategories: { title: string; - index: - | "created" - | "completed" - | "rescheduled" - | "cancelled" - | "no_show" - | "rating" - | "csat" - | "no_show_guest"; + index: "created" | "completed" | "rescheduled" | "cancelled"; }[] = [ { title: t("events_created"), @@ -58,6 +49,12 @@ export const BookingKPICards = () => { title: t("events_cancelled"), index: "cancelled", }, + ]; + + const performanceCategories: { + title: string; + index: "rating" | "no_show" | "no_show_guest" | "csat"; + }[] = [ { title: t("event_ratings"), index: "rating", @@ -77,41 +74,112 @@ export const BookingKPICards = () => { ]; if (isPending) { - return{item.eventTypeName}
+{t("insights_no_data_found_for_filter")}
No members found
+No data found
+