The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix custom report charts colors (#37595)
Jordi Enric9a8086998190
diff --git a/apps/studio/components/interfaces/Reports/ReportBlock/ChartBlock.tsx b/apps/studio/components/interfaces/Reports/ReportBlock/ChartBlock.tsxindex 6d68515115e..b8bf0c518bb 100644--- a/apps/studio/components/interfaces/Reports/ReportBlock/ChartBlock.tsx+++ b/apps/studio/components/interfaces/Reports/ReportBlock/ChartBlock.tsx@@ -126,19 +126,19 @@ export const ChartBlock = ({const getCellColor = (attribute: string, value: number) => {const threshold = METRIC_THRESHOLDS[attribute as keyof typeof METRIC_THRESHOLDS]- if (!threshold) return 'var(--chart-1)'+ if (!threshold) return 'hsl(var(--chart-1))'if (threshold.check === 'gt') {return value >= threshold.danger- ? 'var(--chart-destructive)'+ ? 'hsl(var(--chart-destructive))': value >= threshold.warning- ? 'var(--chart-warning)'- : 'var(--chart-1)'+ ? 'hsl(var(--chart-warning))'+ : 'hsl(var(--chart-1))'} else {return value <= threshold.danger- ? 'var(--chart-destructive)'+ ? 'hsl(var(--chart-destructive))': value <= threshold.warning- ? 'var(--chart-warning)'- : 'var(--chart-1)'+ ? 'hsl(var(--chart-warning))'+ : 'hsl(var(--chart-1))'}}@@ -286,7 +286,7 @@ export const ChartBlock = ({/>}/>- <Line dataKey={metricLabel} stroke="var(--chart-1)" radius={4} />+ <Line dataKey={metricLabel} stroke="hsl(var(--chart-1))" radius={4} /></LineChart>)}</ChartContainer>