forked from calcom/cal.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: stats on /insights/routing (calcom#18985)
* fix: replace filter implementation on /insights/routing * remove unused functions * fix type error * refactor: extract insights parameters * remove FiltersProvider
- Loading branch information
1 parent
195e645
commit fdc8e08
Showing
16 changed files
with
357 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
"use client"; | ||
|
||
import { DataTableProvider } from "@calcom/features/data-table"; | ||
import { | ||
FailedBookingsByField, | ||
RoutingFormResponsesTable, | ||
FailedBookingsByField, | ||
RoutedToPerPeriod, | ||
} from "@calcom/features/insights/components"; | ||
import { FiltersProvider } from "@calcom/features/insights/context/FiltersProvider"; | ||
import { InsightsOrgTeamsProvider } from "@calcom/features/insights/context/InsightsOrgTeamsProvider"; | ||
import { useLocale } from "@calcom/lib/hooks/useLocale"; | ||
|
||
export default function InsightsRoutingFormResponsesPage() { | ||
const { t } = useLocale(); | ||
|
||
return ( | ||
<FiltersProvider> | ||
<div className="mb-4 space-y-4"> | ||
<RoutingFormResponsesTable /> | ||
<DataTableProvider> | ||
<InsightsOrgTeamsProvider> | ||
<div className="mb-4 space-y-4"> | ||
<RoutingFormResponsesTable /> | ||
|
||
<RoutedToPerPeriod /> | ||
<RoutedToPerPeriod /> | ||
|
||
<FailedBookingsByField /> | ||
<FailedBookingsByField /> | ||
|
||
<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> | ||
</FiltersProvider> | ||
<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> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.