refactor Property components to be resused for both session/event data. Implement session-data screens + filtering. Remove all event-data specific compoenents/queries

This commit is contained in:
Francis Cao committed 2026-04-29 13:11:03 -07:00
1 parent 9da332c489
commit 680a1ca1a2
71 files changed
+2814 -958

No files matched your search

+28 -1
View File
@@ -30,13 +30,15 @@ export interface Auth {
};
}
export interface EventPropertyFilter {
export interface PropertyFilter {
propertyName: string;
dataType: number;
operator: Operator;
value: string;
}
export type EventPropertyFilter = PropertyFilter;
export interface Filter {
name: string;
operator: Operator;
@@ -79,6 +81,31 @@ export interface EventDataNumericStats {
min: number;
}
export interface SessionDataPivotRow {
sessionId: string;
distinctId: string;
createdAt: string | Date;
propertyKeys: string[];
propertyValues: string[];
}
export interface PropertyCardinalityBucket {
label: string;
count: number;
}
export interface PropertyLeaderboardRow {
label: string;
activity: number;
sessions: number;
visits: number;
views: number;
events: number;
totaltime: number;
newSessions: number;
returningSessions: number;
}
export interface QueryOptions {
joinSession?: boolean;
columns?: Record<string, string>;