What: Improve the RewardHistory component with filtering, date range, and export functionality.
Why: The current RewardHistory shows a flat list. Users need to filter by date, course, or status, and export their reward history for tax purposes.
Scope: Add date range filter, course filter, status filter (claimed/pending/failed). Add export to CSV button. Add summary stats (total earned, total claimed, pending).
Acceptance criteria:
- Filters narrow the list
- Export downloads CSV file
- Summary shows totals
- Filters are combinable
Technical context: src/components/rewards/reward-history.tsx — existing RewardHistory. src/lib/hooks/use-rewards.ts — rewards hook.
What: Improve the RewardHistory component with filtering, date range, and export functionality.
Why: The current RewardHistory shows a flat list. Users need to filter by date, course, or status, and export their reward history for tax purposes.
Scope: Add date range filter, course filter, status filter (claimed/pending/failed). Add export to CSV button. Add summary stats (total earned, total claimed, pending).
Acceptance criteria:
Technical context:
src/components/rewards/reward-history.tsx— existing RewardHistory.src/lib/hooks/use-rewards.ts— rewards hook.