diff --git a/ui/src/components/DailyStatsChart.tsx b/ui/src/components/DailyStatsChart.tsx index 4beb756..5f9f473 100644 --- a/ui/src/components/DailyStatsChart.tsx +++ b/ui/src/components/DailyStatsChart.tsx @@ -30,8 +30,12 @@ export default function DailyStatsChart(props: Props) { - - + + - + {formatTime(props.endTimeSec)}
diff --git a/ui/src/components/ProcessedTasksChart.tsx b/ui/src/components/ProcessedTasksChart.tsx index 9031e07..1c5090a 100644 --- a/ui/src/components/ProcessedTasksChart.tsx +++ b/ui/src/components/ProcessedTasksChart.tsx @@ -27,8 +27,8 @@ function ProcessedTasksChart(props: Props) { - - + + x.metric.queue); return ( @@ -72,8 +75,12 @@ function QueueMetricsChart(props: Props) { } type="number" scale="time" + stroke={theme.palette.text.secondary} + /> + - { return new Date(timestamp * 1000).toLocaleTimeString(); diff --git a/ui/src/components/QueueSizeChart.tsx b/ui/src/components/QueueSizeChart.tsx index 171a8c9..ce005fd 100644 --- a/ui/src/components/QueueSizeChart.tsx +++ b/ui/src/components/QueueSizeChart.tsx @@ -10,6 +10,7 @@ import { ResponsiveContainer, } from "recharts"; import { useHistory } from "react-router-dom"; +import { useTheme } from "@material-ui/core/styles"; import { queueDetailsPath } from "../paths"; interface Props { @@ -27,6 +28,7 @@ interface TaskBreakdown { } function QueueSizeChart(props: Props) { + const theme = useTheme(); const handleClick = (params: { activeLabel?: string } | null) => { const allQueues = props.data.map((b) => b.queue); if ( @@ -47,8 +49,8 @@ function QueueSizeChart(props: Props) { style={{ cursor: "pointer" }} > - - + + diff --git a/ui/src/views/MetricsView.tsx b/ui/src/views/MetricsView.tsx index dc2caaa..e5d6eff 100644 --- a/ui/src/views/MetricsView.tsx +++ b/ui/src/views/MetricsView.tsx @@ -246,7 +246,7 @@ function ChartRow(props: ChartRowProps) { return ( <>
- {props.title} + {props.title} {props.metrics.status === "error" && (