Skip to content

Commit 63309bf

Browse files
committed
Update colors
1 parent 28711f6 commit 63309bf

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

dashboard/ai-analytics/src/app/components/CostPredictionModal.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ interface DateAggregatedData {
5454
}
5555

5656
// Add default colors constant at the top level
57-
const defaultColors = ['#27F795', '#3CCC70', '#40A25F', '#34836E', '#2B6D5C'];
57+
const defaultColors = [
58+
'#27F795', // 100% opacity
59+
'#27F795CC', // 80% opacity
60+
'#27F79599', // 60% opacity
61+
'#27F79566', // 40% opacity
62+
'#27F79533' // 20% opacity
63+
];
5864

5965
export default function CostPredictionModal({
6066
isOpen,

dashboard/ai-analytics/src/app/components/SparkChart.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ import {
1010
import CustomTooltip from './CustomTooltip';
1111

1212
// Default colors for all categories
13-
const defaultColors = ['#27F795', '#3CCC70', '#40A25F', '#34836E', '#2B6D5C'];
13+
const defaultColors = [
14+
'#27F795', // 100% opacity
15+
'#27F795CC', // 80% opacity
16+
'#27F79599', // 60% opacity
17+
'#27F79566', // 40% opacity
18+
'#27F79533' // 20% opacity
19+
];
1420

1521
type ChartType = 'area' | 'line' | 'bar' | 'stacked-bar' | 'stacked-area';
1622

dashboard/ai-analytics/src/app/components/TimeseriesChart.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ export default function TimeseriesChart({ data, filters, onFiltersChange }: Time
5757
const models = [...new Set(data.data.map(d => d.category))];
5858

5959
// Default colors for unknown models
60-
const defaultColors = ['#27F795', '#3CCC70', '#40A25F', '#34836E', '#2B6D5C'];
60+
const defaultColors = [
61+
'#27F795', // 100% opacity
62+
'#27F795CC', // 80% opacity
63+
'#27F79599', // 60% opacity
64+
'#27F79566', // 40% opacity
65+
'#27F79533' // 20% opacity
66+
];
6167

6268
// Use the same approach for all tabs - just use default colors in sequence
6369
const transformedData = dates.map(date => {

dashboard/ai-analytics/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ module.exports = {
118118
/^(fill-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|100|200|300|400|500|600|700|800|900|950))$/,
119119
},
120120
// Add custom colors to safelist using flatMap
121-
...['#27F795', '#3CCC70', '#40A25F', '#34836E', '#2B6D5C'].flatMap((customColor) => [
121+
...['#27F795', '#27F795CC', '#27F79599', '#27F79566', '#27F79533'].flatMap((customColor) => [
122122
`bg-[${customColor}]`,
123123
`border-[${customColor}]`,
124124
`hover:bg-[${customColor}]`,

tinybird/endpoints/llm_usage.pipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ SQL >
5454
category,
5555
{% end %}
5656
date
57-
order by date ASC
57+
order by total_cost desc
5858

5959
TYPE endpoint

0 commit comments

Comments
 (0)