fix typecheck events -> series

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-11-24 13:17:01 +01:00
parent 7b18544085
commit 548747d826
7 changed files with 42 additions and 28 deletions

View File

@@ -45,8 +45,9 @@ export default function OverviewTopDevices({
projectId,
startDate,
endDate,
events: [
series: [
{
type: 'event',
segment: 'user',
filters,
id: 'A',
@@ -81,8 +82,9 @@ export default function OverviewTopDevices({
projectId,
startDate,
endDate,
events: [
series: [
{
type: 'event',
segment: 'user',
filters,
id: 'A',
@@ -120,8 +122,9 @@ export default function OverviewTopDevices({
projectId,
startDate,
endDate,
events: [
series: [
{
type: 'event',
segment: 'user',
filters,
id: 'A',
@@ -160,8 +163,9 @@ export default function OverviewTopDevices({
projectId,
startDate,
endDate,
events: [
series: [
{
type: 'event',
segment: 'user',
filters,
id: 'A',
@@ -199,8 +203,9 @@ export default function OverviewTopDevices({
projectId,
startDate,
endDate,
events: [
series: [
{
type: 'event',
segment: 'user',
filters,
id: 'A',
@@ -239,8 +244,9 @@ export default function OverviewTopDevices({
projectId,
startDate,
endDate,
events: [
series: [
{
type: 'event',
segment: 'user',
filters,
id: 'A',
@@ -278,8 +284,9 @@ export default function OverviewTopDevices({
projectId,
startDate,
endDate,
events: [
series: [
{
type: 'event',
segment: 'user',
filters,
id: 'A',

View File

@@ -37,8 +37,9 @@ export default function OverviewTopEvents({
projectId,
startDate,
endDate,
events: [
series: [
{
type: 'event',
segment: 'event',
filters: [
...filters,
@@ -78,8 +79,9 @@ export default function OverviewTopEvents({
projectId,
startDate,
endDate,
events: [
series: [
{
type: 'event',
segment: 'event',
filters: [...filters],
id: 'A',
@@ -112,8 +114,9 @@ export default function OverviewTopEvents({
projectId,
startDate,
endDate,
events: [
series: [
{
type: 'event',
segment: 'event',
filters: [
...filters,

View File

@@ -146,8 +146,9 @@ export default function OverviewTopGeo({ projectId }: OverviewTopGeoProps) {
projectId,
startDate,
endDate,
events: [
series: [
{
type: 'event',
segment: 'event',
filters,
id: 'A',

View File

@@ -15,8 +15,9 @@ export const ProfileCharts = memo(
const pageViewsChart: IChartProps = {
projectId,
chartType: 'linear',
events: [
series: [
{
type: 'event',
segment: 'event',
filters: [
{
@@ -48,8 +49,9 @@ export const ProfileCharts = memo(
const eventsChart: IChartProps = {
projectId,
chartType: 'linear',
events: [
series: [
{
type: 'event',
segment: 'event',
filters: [
{

View File

@@ -78,6 +78,7 @@ const VirtualRow = function VirtualRow({
resizingColumnId,
setResizingColumnId,
}: VirtualRowProps) {
console.log('VirtualRow', row.original.id);
const cells = row.getVisibleCells();
return (

View File

@@ -56,8 +56,9 @@ export default function AddNotificationRule({ rule }: Props) {
template: rule?.template ?? '',
config: rule?.config ?? {
type: 'events',
events: [
series: [
{
type: 'event',
name: '',
segment: 'event',
filters: [],

View File

@@ -24,20 +24,18 @@ import { createFileRoute } from '@tanstack/react-router';
import { parseAsInteger, useQueryState } from 'nuqs';
import { memo } from 'react';
export const Route = createFileRoute('/_app/$organizationId/$projectId/pages')(
{
component: Component,
head: () => {
return {
meta: [
{
title: createProjectTitle(PAGE_TITLES.PAGES),
},
],
};
},
export const Route = createFileRoute('/_app/$organizationId/$projectId/pages')({
component: Component,
head: () => {
return {
meta: [
{
title: createProjectTitle(PAGE_TITLES.PAGES),
},
],
};
},
);
});
function Component() {
const { projectId } = Route.useParams();
@@ -220,8 +218,9 @@ const PageCard = memo(
chartType: 'linear',
projectId,
events: [
series: [
{
type: 'event',
id: 'A',
name: 'screen_view',
segment: 'event',