Description
Design a chip that surfaces the viewer's role on the current offering (Issuer / Admin / Investor / Read-only), letting people instantly understand what actions they can take.
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/pages/OfferingDetail.tsx, src/components/RoleChip.tsx
Suggested execution
- Fork the repo and create a branch
git checkout -b uiux/your-role-chip
- Implement changes
- Chip variants per role, color-coded from the palette
- Tooltip explaining role and typical actions
- Placement rules relative to page header
- Validate accessibility and responsive assumptions
Test and commit
- Run checks
npm run lint and component/visual tests
- Cover edge cases
- viewer with multiple roles, viewer with no role, admin-impersonation state
- Include screenshots/before-after and accessibility (axe) notes
Example commit message
design: role chip on offering page
Guidelines
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 96 hours
Description
Design a chip that surfaces the viewer's role on the current offering (Issuer / Admin / Investor / Read-only), letting people instantly understand what actions they can take.
Requirements and context
src/pages/OfferingDetail.tsx,src/components/RoleChip.tsxSuggested execution
git checkout -b uiux/your-role-chipTest and commit
npm run lintand component/visual testsExample commit message
design: role chip on offering pageGuidelines