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:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user