Skip to content

[UI/UX Design] Design a dashboard KPI tile with sparkline, trend arrow, and period picker #309

Description

@thlpkee20-wq

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions