Getting Started
- Fork the repository: https://github.com/JointSave-org/Joint_Save
- Clone your fork:
git clone https://github.com/<your-username>/Joint_Save.git
cd Joint_Save
- Create a new branch:
git checkout -b feat/pool-card-trend-sparkline
Overview
Checked pool-card.tsx and confirmed there's no historical trend visualization at all — just the current balance as a static number. A small sparkline showing the pool's balance trajectory over time would give a much quicker sense of whether a pool is healthy and growing versus stagnant, especially useful on the Explore page when comparing pools.
Requirements
- Periodically snapshot each pool's total balance (a lightweight scheduled job, or piggybacking on an existing activity write) into a new
pool_balance_history table
- Add a small sparkline (a tiny inline SVG or a minimal charting library already available in this project, like
recharts) to pool-card.tsx showing the last 30 days of balance history
- Should degrade gracefully for pools with little or no history (show a flat line or omit the sparkline entirely rather than a broken/empty chart)
- Keep it lightweight — this is a small visual accent on a card, not a full analytics view
Acceptance Criteria
Getting Started
Overview
Checked
pool-card.tsxand confirmed there's no historical trend visualization at all — just the current balance as a static number. A small sparkline showing the pool's balance trajectory over time would give a much quicker sense of whether a pool is healthy and growing versus stagnant, especially useful on the Explore page when comparing pools.Requirements
pool_balance_historytablerecharts) topool-card.tsxshowing the last 30 days of balance historyAcceptance Criteria