feat(belo): add analysis page with historical stats, chart, and date range picker

This commit is contained in:
Jose Selesan
2026-06-04 09:48:20 -03:00
parent bd53b26f29
commit 8b8a4670cb
9 changed files with 340 additions and 5 deletions

View File

@@ -17,9 +17,10 @@ import {
GaugeValueText,
} from "@/components/ui/gauge";
import { useQuotes, useQuoteHistory, useDailyMinMax, useDailyQuotes, useFetchQuotes } from "@/lib/queries";
import { Link } from "@tanstack/react-router";
import { RelativeTime } from "@/lib/time";
import { cn } from "@/lib/utils";
import { RefreshCw } from "lucide-react";
import { BarChart3, RefreshCw } from "lucide-react";
const priceFormatter = new Intl.NumberFormat("es-AR", {
minimumFractionDigits: 2,
@@ -228,6 +229,13 @@ export function BeloPage() {
Últ. actualización: <RelativeTime date={belo.timeStamp} />
</span>
)}
<Link
to="/quotes/belo/analysis"
className="inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors"
>
<BarChart3 className="h-4 w-4" />
Análisis
</Link>
<button
type="button"
disabled={isFetching}