Files
calendar/apps/web/modules/insights/views/insights-routing-view.tsx
Eunjae LeeGitHubDevin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1368ffe55d refactor: move data-table hooks/contexts/provider from features to web modules (#27833)
* refactor: move data-table hooks/contexts/provider from features to web modules

Co-Authored-By: [email protected] <[email protected]>

* fix: update broken useColumnResizing import path in DataTable.tsx

Co-Authored-By: [email protected] <[email protected]>

* fix: update remaining broken import paths for moved hooks

Co-Authored-By: [email protected] <[email protected]>

* docs: update GUIDE.md import paths and file references for moved modules

Co-Authored-By: [email protected] <[email protected]>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-02-13 00:00:40 +09:00

49 lines
1.6 KiB
TypeScript

"use client";
import { usePathname } from "next/navigation";
import { DataTableProvider } from "~/data-table/DataTableProvider";
import { useSegments } from "~/data-table/hooks/useSegments";
import {
RoutingFormResponsesTable,
FailedBookingsByField,
RoutedToPerPeriod,
RoutingFunnel,
} from "@calcom/web/modules/insights/components/routing";
import { InsightsOrgTeamsProvider } from "../components/context/InsightsOrgTeamsProvider";
import { useLocale } from "@calcom/lib/hooks/useLocale";
export default function InsightsRoutingFormResponsesPage({ timeZone }: { timeZone: string }) {
const { t } = useLocale();
const pathname = usePathname();
if (!pathname) return null;
return (
<DataTableProvider tableIdentifier={pathname} useSegments={useSegments} timeZone={timeZone}>
<InsightsOrgTeamsProvider>
<div className="mb-4 stack-y-4">
<RoutingFormResponsesTable />
<RoutingFunnel />
<div className="flex flex-col gap-4 md:flex-row">
<RoutedToPerPeriod />
<FailedBookingsByField />
</div>
<small className="text-default block text-center">
{t("looking_for_more_insights")}{" "}
<a
className="text-blue-500 hover:underline"
href="mailto:[email protected]?subject=Feature%20Request%3A%20More%20Analytics&body=Hey%20Cal.com%20Team%2C%20I%20love%20the%20analytics%20page%20but%20I%20am%20looking%20for%20...">
{" "}
{t("contact_support")}
</a>
</small>
</div>
</InsightsOrgTeamsProvider>
</DataTableProvider>
);
}