Add Onchain Voting Demo - New Base Mini App#99
Open
AdekunleBamz wants to merge 1 commit intobase:masterfrom
Open
Add Onchain Voting Demo - New Base Mini App#99AdekunleBamz wants to merge 1 commit intobase:masterfrom
AdekunleBamz wants to merge 1 commit intobase:masterfrom
Conversation
- Create comprehensive onchain voting demo showcasing governance features - Implement proposal creation with validation and user-friendly forms - Build interactive voting interface with Yes/No/Abstain options - Add real-time vote counting and visual result bars - Include proposal lifecycle management (Active/Passed/Failed/Executed) - Design responsive UI with dark theme matching Base ecosystem - Add voting statistics dashboard showing key metrics - Implement local storage persistence for demo functionality - Create tabbed interface for Active/All proposal views - Add comprehensive TypeScript interfaces and error handling - Style with modern CSS modules and gradient themes - Include detailed README with setup and usage instructions Features: - Proposal submission with title and description validation - Interactive voting with vote change capability - Visual vote result bars with percentage calculations - Proposal status tracking with time-based voting periods - User vote tracking and display - Mobile-responsive design for Mini App compatibility - Form validation with character limits and required fields - Modal-based proposal creation interface - Statistics display (total proposals, active, votes, passed) This demo demonstrates key Base ecosystem concepts: - Decentralized governance patterns - Mini App user experience design - Onchain state management - Interactive voting mechanics - Real-time result visualization - Mobile-first responsive design Provides educational value for developers learning Base Mini Apps and onchain governance implementation.
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.
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.