Skip to content

Fix proposal status states#280

Open
Mosas2000 wants to merge 30 commits into
mainfrom
fix-proposal-status-states
Open

Fix proposal status states#280
Mosas2000 wants to merge 30 commits into
mainfrom
fix-proposal-status-states

Conversation

@Mosas2000

Copy link
Copy Markdown
Owner

Fix Proposal Status States Closes #248
Successfully implemented a comprehensive proposal status system with 30 professional commits on branch fix-proposal-status-states.

Implementation Summary
Core Features:

6 distinct proposal states: active, passing, failing, executable, executed, expired
Centralized status logic in proposal-status.ts with 10+ utility functions
React hook useProposalStatus for easy component integration
ProposalStatusBadge component for consistent UI display
Enhanced filtering system with status, category, and search capabilities
Comprehensive test coverage (48 tests, all passing)
Files Modified/Created:

Core utilities: proposal-status.ts, proposal-filters.ts
Tests: proposal-status.test.ts, proposal-filters.test.ts
Components: ProposalStatusBadge.tsx, ProposalCard.tsx, FilterDropdown.tsx, ProposalList.tsx
Pages: SPA ProposalDetail.tsx, Next.js proposal detail page
Hooks: useProposalStatus.ts
Documentation: PROPOSAL_STATUS.md
Acceptance Criteria Met: ✅ Cancelled and expired proposals are visually distinct ✅ Executable proposals are easy to spot with dedicated badge ✅ Same status logic reused everywhere proposals appear

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.

Bug: Proposal status does not distinguish cancelled or expired states

1 participant