Description
Design a reusable KPI tile — value, sparkline, trend arrow with delta, and a small period picker (7d/30d/QTD/YTD) — used across investor, issuer, and admin dashboards.
Requirements and context
- Must be accessible (WCAG 2.1 AA), responsive, and documented in the design system
- Should be consistent with existing patterns and easy to review
- Relevant code:
src/components/KpiTile.tsx, src/pages/StartupDashboard.tsx
Suggested execution
- Fork the repo and create a branch
git checkout -b uiux/kpi-tile
- Implement changes
- Tile anatomy with tokenized spacing
- Sparkline color rules (positive/negative/flat)
- Period-picker keyboard model
- Validate accessibility and responsive assumptions
Test and commit
- Run checks
npm run lint and component/visual tests
- Cover edge cases
- zero-data period, negative delta, very long value string
- Include screenshots/before-after and accessibility (axe) notes
Example commit message
design: KPI tile with sparkline
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Description
Design a reusable KPI tile — value, sparkline, trend arrow with delta, and a small period picker (7d/30d/QTD/YTD) — used across investor, issuer, and admin dashboards.
Requirements and context
src/components/KpiTile.tsx,src/pages/StartupDashboard.tsxSuggested execution
git checkout -b uiux/kpi-tileTest and commit
npm run lintand component/visual testsExample commit message
design: KPI tile with sparklineGuidelines