feat: add status badge components#208
Merged
gabito1451 merged 3 commits intoGalactiGuild:mainfrom Mar 31, 2026
Merged
Conversation
- Create Badge component with dynamic color mapping - Support multiple status variants (open, in-progress, completed, expired, etc.) - Add three size variants (sm, md, lg) - Include dark mode support for all variants - Export Badge from UI components index - Add Badge types to shared types Co-authored-by: Qwen-Coder <[email protected]>
|
@legend4tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
Author
|
@gabito1451 pls merge |
Contributor
|
@legend4tech please resolve conflicts |
Contributor
Author
|
@gabito1451 pls merge resolved |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request: Add Status Badge Component
Summary
Creates a reusable
Badgecomponent for displaying status indicators with dynamic color mapping and dark mode support.Purpose
Provides a consistent way to display status badges throughout the application (e.g., bounty status, proposal status, governance states).
Changes
New Files
frontend/src/components/ui/Badge.tsx- Main Badge componentModified Files
frontend/src/components/ui/index.ts- Exports Badge componentfrontend/src/types/ui.ts- Adds Badge type definitionsFeatures
open,in-progress,completed,expired,draft,active,passed,rejected,executed,defaultsm,md,lg<span>element with proper props forwardingColor Mapping
open,passedin-progress,activecompletedrejectedexecutedexpired,draftdefaultUsage
Closes #88