Add Onchain Voting Demo - New Base Mini App #99
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.
This PR adds a comprehensive onchain voting demo to the Base demos collection, showcasing governance and democratic decision-making features in Base Mini Apps.
Changes Made:
New Demo:
mini-apps/onchain-voting-demo/Demo Features:
Core Functionality:
User Experience:
Technical Implementation:
Architecture:
Components Created:
VotingStats: Dashboard showing key voting metricsProposalCard: Individual proposal display with voting interfaceCreateProposalForm: Modal form for proposal submissionKey Files:
app/page.tsx- Main voting interface and state managementapp/components/- Reusable React componentsREADME.md- Comprehensive setup and usage documentationpackage.json- Updated with voting demo metadataEducational Value:
For Developers:
For Users:
Integration Ready:
Extensible Design:
Future Enhancements:
Files Modified:
README.md- Added new demo to available demos tablemini-apps/onchain-voting-demo/- New complete demo directoryDemo Structure:
Testing Instructions:
Impact:
For Base Ecosystem:
For Coinbase Developer Platform:
This comprehensive demo significantly expands the Base demos collection by introducing governance and voting functionality, providing developers with a complete, production-ready example of democratic onchain systems while educating users about decentralized decision-making.