feat(analysis): add monthly variation table with inflation comparison

- New backend endpoint GET /api/quotes/monthly-last
- MonthlyVariationTable component with BELO/Blue/Oficial % changes
- Inflation data from ArgentinaDatos API with 24h cache
- Visual indicators: green if beats inflation, red if below
- Responsive: cards on mobile, table on desktop
This commit is contained in:
Jose Selesan
2026-08-27 10:13:56 -03:00
parent a6e95f0c05
commit 66ab56b46a
6 changed files with 389 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import {
} from "recharts";
import { DatePicker } from "@/components/ui/date-picker";
import { useDailyQuotes, useHistoricalMinMax, useQuotes } from "@/lib/queries";
import { MonthlyVariationTable } from "./components/MonthlyVariationTable";
const CURRENCIES = ["BELO", "BLUE", "BNA"] as const;
@@ -576,6 +577,13 @@ export function AnalysisPage({ currency }: { currency: string }) {
</>
)}
</div>
<div className="rounded-lg border p-4">
<h2 className="text-sm font-medium mb-4">
Variación mensual vs. inflación
</h2>
<MonthlyVariationTable />
</div>
</div>
);
}