import type { DashboardFilters } from './types' export const TIME_GRANULARITY_STORAGE_KEY = 'data_export_default_time' export const DEFAULT_TIME_GRANULARITY = 'hour' as const export const MAX_CHART_TREND_POINTS = 7 export const TIME_RANGE_BY_GRANULARITY = { hour: 1, day: 7, week: 30, } as const export const TIME_GRANULARITY_OPTIONS = [ { label: 'Hour', value: 'hour' }, { label: 'Day', value: 'day' }, { label: 'Week', value: 'week' }, ] as const export const TIME_RANGE_PRESETS = [ { label: '1 Day', days: 1 }, { label: '7 Days', days: 7 }, { label: '14 Days', days: 14 }, { label: '29 Days', days: 29 }, ] as const export const EMPTY_DASHBOARD_FILTERS: DashboardFilters = { start_timestamp: undefined, end_timestamp: undefined, time_granularity: 'hour', username: '', }