Skip to content

feat: Add StatusBadge component for group status#114

Open
seraphim941 wants to merge 1 commit intosorosave-protocol:mainfrom
seraphim941:feature/status-badge
Open

feat: Add StatusBadge component for group status#114
seraphim941 wants to merge 1 commit intosorosave-protocol:mainfrom
seraphim941:feature/status-badge

Conversation

@seraphim941
Copy link

Summary

Added a reusable StatusBadge component for displaying group status with icons and colors.

Changes

  • Created src/components/StatusBadge.tsx - New reusable badge component with icons for each status type
  • Updated src/components/GroupCard.tsx - Now uses StatusBadge instead of inline status styling
  • Updated src/app/groups/[id]/page.tsx - Added StatusBadge in the group info panel

Features

  • Color mapping: Forming (blue), Active (green), Completed (gray), Paused (yellow), Disputed (red)
  • Pill-shaped badge with icons
  • Accessible with aria-label
  • Both icon and text display options

Acceptance Criteria (from #73)

✅ Color mapping implemented
✅ Pill-shaped badge with icon
✅ Used in GroupCard and group detail page
✅ Accessible with aria-label

Closes #73

- Created reusable StatusBadge component with icons for each status
- Updated GroupCard to use StatusBadge component
- Updated group detail page to show StatusBadge in info panel
- Supports Forming (blue), Active (green), Completed (gray), Paused (yellow), Disputed (red)

Closes sorosave-protocol#73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add status badge component for group status

1 participant