feat(budget): add month-over-month comparison to summary cards

Each summary card (Einnahmen, Ausgaben, Saldo) now shows a trend line
comparing the current month to the previous one. The previous month's
summary is fetched in parallel via the existing /budget/summary endpoint,
so there is no extra round-trip latency. Positive deltas render in green
(▲), negative in red (▼), unchanged in neutral grey (—).

Closes BL-02.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ulas
2026-03-30 22:54:04 +02:00
parent ca377e8441
commit 26d3d12a22
4 changed files with 55 additions and 12 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ Das Datenmodell speichert `recurrence_rule` (iCal RRULE) für Kalender-Events. D
### BL-02 — Budget: Monatsvergleich (aktuell vs. Vormonat)
**Status:** Offen
**Status:** Erledigt (v0.3.0)
**Aufwand:** S (12 Tage)
SPEC: „Monatsvergleich (aktuell vs. Vormonat)". Derzeit zeigt die Budget-Seite nur den aktuellen Monat. Es fehlen API-Endpunkt und UI-Komponente für den Vergleich.