mirror of
https://github.com/supabase/supabase.git
synced 2026-05-12 13:19:37 +08:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
23 lines
874 B
TypeScript
23 lines
874 B
TypeScript
import { CHART_COLORS } from '@/components/ui/Charts/Charts.constants'
|
|
|
|
export const CHART_TABS = [
|
|
{ id: 'query_latency', label: 'Query latency' },
|
|
{ id: 'rows_read', label: 'Rows read' },
|
|
{ id: 'calls', label: 'Calls' },
|
|
{ id: 'cache_hits', label: 'Cache hits' },
|
|
]
|
|
|
|
export const LEGEND_ITEMS: Record<string, { label: string; color: string; dataKey: string }[]> = {
|
|
query_latency: [
|
|
{ label: 'P50', color: 'hsl(var(--chart-4))', dataKey: 'p50' },
|
|
{ label: 'P95', color: CHART_COLORS.GREEN_1, dataKey: 'p95' },
|
|
],
|
|
rows_read: [{ label: 'Rows Read', color: CHART_COLORS.GREEN_1, dataKey: 'rows_read' }],
|
|
calls: [{ label: 'Calls', color: CHART_COLORS.GREEN_1, dataKey: 'calls' }],
|
|
cache_hits: [{ label: 'Cache Hits', color: '#10B981', dataKey: 'cache_hits' }],
|
|
}
|
|
|
|
export const CHART_TYPE = 'linear'
|
|
|
|
export const SEL_COLOR = 'hsl(var(--chart-blue))'
|