From a2142d5ebc55cbfee399e6815c104091a6d7caf7 Mon Sep 17 00:00:00 2001 From: Techulus Agent <291950465+techulus-agent@users.noreply.github.com> Date: Wed, 1 Jul 2026 12:52:04 +1000 Subject: [PATCH 1/6] Add metrics chart skeleton loading Amp-Thread-ID: https://ampcode.com/threads/T-019f1b94-0656-77c9-8427-9831fdf69651 Co-authored-by: Amp --- .../metrics/metrics-history-charts.tsx | 40 ++++++++++++------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/web/components/metrics/metrics-history-charts.tsx b/web/components/metrics/metrics-history-charts.tsx index 811a4cd1..837f8028 100644 --- a/web/components/metrics/metrics-history-charts.tsx +++ b/web/components/metrics/metrics-history-charts.tsx @@ -25,7 +25,7 @@ import { NativeSelect, NativeSelectOption, } from "@/components/ui/native-select"; -import { Spinner } from "@/components/ui/spinner"; +import { Skeleton } from "@/components/ui/skeleton"; import { fetcher } from "@/lib/fetcher"; import { METRIC_RANGE_KEYS, type MetricRange } from "@/lib/metric-ranges"; import type { @@ -178,12 +178,7 @@ export function MetricsHistoryCharts({ description="The metrics API could not be reached. Current health data may still be available." /> ) : isLoading ? ( - + ) : !hasData ? (