Scheduling infrastructure for absolutely everyone.
fix: add booking uid and link to insights routing downloads (#20007)
Eunjae Leef8aa2701b677
diff --git a/packages/features/data-table/components/DataTablePagination.tsx b/packages/features/data-table/components/DataTablePagination.tsxindex 592db495094..b3c7df98370 100644--- a/packages/features/data-table/components/DataTablePagination.tsx+++ b/packages/features/data-table/components/DataTablePagination.tsx@@ -8,7 +8,7 @@ import { useDataTable } from "../hooks";interface DataTablePaginationProps<TData> {table: Table<TData>;- totalRowCount: number;+ totalRowCount?: number;paginationMode?: "infinite" | "standard";}@@ -18,6 +18,9 @@ export function DataTablePagination<TData>({paginationMode = "infinite",}: DataTablePaginationProps<TData>) {const { pageIndex, pageSize, setPageIndex, setPageSize } = useDataTable();+ if (!totalRowCount) {+ return null;+ }if (paginationMode === "infinite") {const loadedCount = table.getRowModel().rows.length;diff --git a/packages/features/data-table/components/DataTableWrapper.tsx b/packages/features/data-table/components/DataTableWrapper.tsxindex 4c7a26cff1e..b3662c07c40 100644--- a/packages/features/data-table/components/DataTableWrapper.tsx+++ b/packages/features/data-table/components/DataTableWrapper.tsx@@ -141,15 +141,13 @@ export function DataTableWrapper<TData>({fetchMoreOnBottomReached(e.target as HTMLDivElement): undefined}>- {totalRowCount && (- <div style={{ gridArea: "footer", marginTop: "1rem" }}>- <DataTablePagination<TData>- table={table}- totalRowCount={totalRowCount}- paginationMode={paginationMode}- />- </div>- )}+ <div style={{ gridArea: "footer", marginTop: "1rem" }}>+ <DataTablePagination<TData>+ table={table}+ totalRowCount={totalRowCount}+ paginationMode={paginationMode}+ />+ </div></DataTable>)}</>diff --git a/packages/features/insights/server/routing-events.ts b/packages/features/insights/server/routing-events.tsindex 4f7deb382fb..fd2da314660 100644--- a/packages/features/insights/server/routing-events.ts+++ b/packages/features/insights/server/routing-events.ts@@ -17,6 +17,7 @@ import type {RoutingFormResponsesInput,RoutingFormStatsInput,} from "@calcom/features/insights/server/raw-data.schema";+import { WEBAPP_URL } from "@calcom/lib/constants";import { readonlyPrisma as prisma } from "@calcom/prisma";import { type ResponseValue, ZResponse } from "../lib/types";@@ -408,6 +409,8 @@ class RoutingEventsInsights {}, {} as Record<string, string | undefined>);return {+ "Booking UID": item.bookingUid,+ "Booking Link": item.bookingUid ? `${WEBAPP_URL}/booking/${item.bookingUid}` : "","Response ID": item.id,"Form Name": item.formName,"Submitted At": item.createdAt.toISOString(),