diff --git a/apps/api/src/controllers/export.controller.ts b/apps/api/src/controllers/export.controller.ts index ccb9f647..4458840f 100644 --- a/apps/api/src/controllers/export.controller.ts +++ b/apps/api/src/controllers/export.controller.ts @@ -151,9 +151,7 @@ export async function charts( return getChart({ ...query.data, - name: 'export-api', - metric: 'sum', - lineType: 'monotone', chartType: 'linear', + metric: 'sum', }); } diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx index 5214766c..b05e8624 100644 --- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx +++ b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx @@ -4,7 +4,7 @@ import { memo } from 'react'; import { ChartSwitch } from '@/components/report/chart'; import { Widget, WidgetBody, WidgetHead } from '@/components/widget'; -import type { IChartInput } from '@openpanel/validation'; +import type { IChartProps } from '@openpanel/validation'; type Props = { profileId: string; @@ -12,7 +12,7 @@ type Props = { }; const ProfileCharts = ({ profileId, projectId }: Props) => { - const pageViewsChart: IChartInput = { + const pageViewsChart: IChartProps = { projectId, chartType: 'linear', events: [ @@ -45,7 +45,7 @@ const ProfileCharts = ({ profileId, projectId }: Props) => { metric: 'sum', }; - const eventsChart: IChartInput = { + const eventsChart: IChartProps = { projectId, chartType: 'linear', events: [ diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-histogram.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-histogram.tsx index 040736a7..a5009da7 100644 --- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-histogram.tsx +++ b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/realtime/realtime-live-histogram.tsx @@ -9,7 +9,7 @@ import { api } from '@/trpc/client'; import { cn } from '@/utils/cn'; import dynamic from 'next/dynamic'; -import type { IChartInput } from '@openpanel/validation'; +import type { IChartProps } from '@openpanel/validation'; interface RealtimeLiveHistogramProps { projectId: string; @@ -18,20 +18,18 @@ interface RealtimeLiveHistogramProps { export function RealtimeLiveHistogram({ projectId, }: RealtimeLiveHistogramProps) { - const report: IChartInput = { + const report: IChartProps = { projectId, events: [ { segment: 'user', filters: [ { - id: '1', name: 'name', operator: 'is', value: ['screen_view', 'session_start'], }, ], - id: 'A', name: '*', displayName: 'Active users', }, @@ -45,7 +43,7 @@ export function RealtimeLiveHistogram({ lineType: 'monotone', previous: false, }; - const countReport: IChartInput = { + const countReport: IChartProps = { name: '', projectId, events: [ @@ -85,7 +83,7 @@ export function RealtimeLiveHistogram({ {staticArray.map((percent, i) => (
))} diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/edit-organization.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/edit-organization.tsx index 7a8febba..4febcc99 100644 --- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/edit-organization.tsx +++ b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/settings/organization/edit-organization.tsx @@ -42,6 +42,7 @@ export default function EditOrganization({ return (