Add edit purchase feature (date, amount, price)

Backend: PUT /purchases/{id} endpoint accepts updated amount_eur,
price_eur, and created_at. Frontend: inline edit row in PurchaseList
with date picker and number inputs, Save/Cancel actions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jonathan
2026-03-23 22:24:27 +01:00
parent a2dad16f21
commit ff7ba51e84
3 changed files with 95 additions and 7 deletions
@@ -93,7 +93,7 @@ export default function Dashboard() {
<PortfolioChart purchases={purchases} stats={stats} />
<AddPurchase onAdded={fetchData} />
<PurchaseList purchases={purchases} onDeleted={fetchData} />
<PurchaseList purchases={purchases} onChanged={fetchData} />
</div>
);
}