feat(governance): color-coded proposal type chips#297
Merged
Conversation
The proposal meta row showed the governance action type as plain uppercase
text ("TREASURY WITHDRAWALS"), visually indistinguishable from the other meta
fields and hard to scan in a long list.
Add a GovernanceTypeChip that renders each Conway action type as a color-coded
outline Badge with an icon:
- treasury_withdrawals amber Coins
- info_action blue FileText
- parameter_change purple Settings2
- hard_fork_initiation orange GitBranch
- no_confidence red XCircle
- new_constitution teal FileText
- new/update_committee indigo Users
- unknown slate Hash (Title-Cased fallback label)
Used in both the mobile and desktop meta rows (single shared component, no
view drift). Purely presentational — no data or vote-flow changes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
# Conflicts: # src/components/pages/wallet/governance/proposals.tsx
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.
The proposal meta row rendered the governance action type as plain uppercase text (
TREASURY WITHDRAWALS) — visually identical to the Authors/Status fields and hard to scan down a list.Change
A single shared
GovernanceTypeChiprenders each Conway action type as a color-coded outlineBadge+ icon, used in both the mobile and desktop meta rows (no view drift):treasury_withdrawalsinfo_actionparameter_changehard_fork_initiationno_confidencenew_constitutionnew_committee/update_committeePurely presentational — no data fetching, vote flow, or other logic touched. Unknown/future types fall back to a slate chip with a Title-Cased label rather than breaking.
Verify
tscclean.Follow-up (deferred): a lazy, treasury-only "Ask ₳…" badge from the
/withdrawalsendpoint on card expand.🤖 Generated with Claude Code