Description
Design a reusable skeleton set (rows, cards, chart placeholders) shown while offering-list, distribution-list, and reports-list data loads, replacing the current spinner-only pattern.
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/Skeleton.tsx, src/pages/InvestorDiscovery.tsx, src/pages/DistributionDashboard.tsx
Suggested execution
- Fork the repo and create a branch
git checkout -b uiux/loading-skeletons
- Implement changes
- Skeleton variants: row, card, chart
- Motion respecting prefers-reduced-motion
- Guidance for when to show skeleton vs empty state
- Validate accessibility and responsive assumptions
Test and commit
- Run checks
npm run lint and component/visual tests
- Cover edge cases
- very fast responses (avoid flash), long delays (>2s), RTL shimmer direction
- Include screenshots/before-after and accessibility (axe) notes
Example commit message
design: data-loading skeleton set
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Description
Design a reusable skeleton set (rows, cards, chart placeholders) shown while offering-list, distribution-list, and reports-list data loads, replacing the current spinner-only pattern.
Requirements and context
src/components/Skeleton.tsx,src/pages/InvestorDiscovery.tsx,src/pages/DistributionDashboard.tsxSuggested execution
git checkout -b uiux/loading-skeletonsTest and commit
npm run lintand component/visual testsExample commit message
design: data-loading skeleton setGuidelines