add funnels

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-24 07:22:39 +01:00
parent 9c92803c4c
commit 15388882be
34 changed files with 916 additions and 131 deletions

View File

@@ -6,7 +6,7 @@ import AnimateHeight from 'react-animate-height';
import type { IChartInput } from '@mixan/validation';
import { Chart } from '../report/chart';
import { ChartSwitch } from '../report/chart';
import { Widget, WidgetBody, WidgetHead } from '../Widget';
import { useOverviewOptions } from './useOverviewOptions';
@@ -61,7 +61,7 @@ export function OverviewLiveHistogram({
<AnimateHeight duration={500} height={liveHistogram ? 'auto' : 0}>
<WidgetBody>
<Chart {...report} />
<ChartSwitch {...report} />
</WidgetBody>
</AnimateHeight>
</Widget>

View File

@@ -1,6 +1,6 @@
'use client';
import { Chart } from '@/components/report/chart';
import { ChartSwitch } from '@/components/report/chart';
import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';
import { cn } from '@/utils/cn';
@@ -178,7 +178,7 @@ export default function OverviewTopDevices({
</WidgetButtons>
</WidgetHead>
<WidgetBody>
<Chart
<ChartSwitch
hideID
{...widget.chart}
previous={false}

View File

@@ -1,6 +1,6 @@
'use client';
import { Chart } from '@/components/report/chart';
import { ChartSwitch } from '@/components/report/chart';
import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';
import { cn } from '@/utils/cn';
@@ -74,7 +74,7 @@ export default function OverviewTopEvents({
</WidgetButtons>
</WidgetHead>
<WidgetBody>
<Chart hideID {...widget.chart} previous={false} />
<ChartSwitch hideID {...widget.chart} previous={false} />
</WidgetBody>
</Widget>
</>

View File

@@ -1,6 +1,6 @@
'use client';
import { Chart } from '@/components/report/chart';
import { ChartSwitch } from '@/components/report/chart';
import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';
import { cn } from '@/utils/cn';
@@ -148,7 +148,7 @@ export default function OverviewTopGeo({ projectId }: OverviewTopGeoProps) {
</WidgetButtons>
</WidgetHead>
<WidgetBody>
<Chart
<ChartSwitch
hideID
{...widget.chart}
previous={false}

View File

@@ -1,6 +1,6 @@
'use client';
import { Chart } from '@/components/report/chart';
import { ChartSwitch } from '@/components/report/chart';
import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';
import { cn } from '@/utils/cn';
@@ -120,7 +120,7 @@ export default function OverviewTopPages({ projectId }: OverviewTopPagesProps) {
</WidgetButtons>
</WidgetHead>
<WidgetBody>
<Chart
<ChartSwitch
hideID
{...widget.chart}
previous={false}

View File

@@ -1,6 +1,6 @@
'use client';
import { Chart } from '@/components/report/chart';
import { ChartSwitch } from '@/components/report/chart';
import { useEventQueryFilters } from '@/hooks/useEventQueryFilters';
import { cn } from '@/utils/cn';
@@ -262,7 +262,7 @@ export default function OverviewTopSources({
</WidgetButtons>
</WidgetHead>
<WidgetBody>
<Chart
<ChartSwitch
hideID
{...widget.chart}
previous={false}