Skip to content

Latest commit

 

History

History
466 lines (403 loc) · 12.1 KB

File metadata and controls

466 lines (403 loc) · 12.1 KB

ECOSCENE Development Plan

Version: 1.0
Date: July 2025
Focus: UI Development with Dummy Data

Overview

This document outlines the development plan for building the ECOSCENE platform's user interface with dummy data. The initial focus is on creating a fully functional UI that demonstrates all platform features before implementing backend functionality.

Development Approach

Technology Stack

  • Framework: React with TypeScript
  • UI Library: Material-UI (MUI) or Ant Design
  • State Management: Redux Toolkit + RTK Query
  • Styling: Styled Components / Emotion
  • Build Tool: Vite
  • Mock Data: JSON Server / MSW (Mock Service Worker)
  • Routing: React Router v6
  • Forms: React Hook Form + Yup validation
  • Charts: Recharts for data visualization
  • Maps: Mapbox GL JS for geospatial features

Project Structure

ecoscene/
├── src/
│   ├── components/       # Reusable UI components
│   ├── features/        # Feature-based modules
│   ├── layouts/         # Page layouts
│   ├── pages/          # Route pages
│   ├── services/       # API services (mocked)
│   ├── store/          # Redux store configuration
│   ├── styles/         # Global styles and theme
│   ├── types/          # TypeScript type definitions
│   ├── utils/          # Utility functions
│   └── mocks/          # Mock data and handlers
├── public/             # Static assets
├── docs/              # Documentation
└── tests/             # Test files

Phase 1: Foundation (Week 1-2)

1.1 Project Setup

  • Initialize React project with Vite
  • Configure TypeScript
  • Set up ESLint and Prettier
  • Configure Git hooks with Husky
  • Set up component development with Storybook
  • Configure testing environment (Jest + React Testing Library)

1.2 Design System & Theme

  • Define color palette (regenerative greens, earth tones)
  • Create typography scale
  • Design spacing system
  • Create base component library:
    • Button variants
    • Input fields
    • Cards
    • Modals
    • Navigation components
    • Icons library
  • Implement responsive breakpoints
  • Create dark/light theme switcher

1.3 Mock Data Infrastructure

  • Set up JSON Server for REST API mocking
  • Create mock data generators
  • Define data models:
    • Users (with personality profiles)
    • Posts (social content)
    • Products (conscious commerce)
    • Guilds (communities)
    • Courses (educational content)
    • Transactions (currency system)
  • Implement MSW for intercepting API calls

1.4 Core Layouts

  • Main application shell
  • Navigation sidebar
  • Top header with user menu
  • Mobile-responsive drawer
  • Footer component
  • Loading states
  • Error boundaries

Phase 2: Authentication & User Profiles (Week 3-4)

2.1 Authentication Flow

  • Login page design
  • Registration wizard:
    • Basic information
    • Values assessment (Gene Keys, Enneagram)
    • Interest selection
    • Profile photo upload
  • Password reset flow
  • Two-factor authentication UI
  • Social login buttons

2.2 User Profile Pages

  • Profile overview with stats
  • Edit profile interface
  • Values & personality display:
    • Gene Keys integration
    • Human Design chart
    • Enneagram type
  • Achievement badges
  • Connection lists (followers/following)
  • Activity timeline
  • Privacy settings

2.3 User Discovery

  • People search with filters
  • Suggested connections based on values
  • "Handshakes, High-fives, Hugs" matching UI
  • Connection request management

Phase 3: Social Media Features (Week 5-6)

3.1 Feed & Timeline

  • Main feed with infinite scroll
  • Post types:
    • Text posts
    • Image galleries
    • Video posts
    • Event announcements
    • Project updates
  • Feed filters (by guild, topic, location)
  • Trending topics sidebar
  • Real-time updates indicator

3.2 Content Creation

  • Rich text post composer
  • Media upload with preview
  • Tagging system (@mentions, #hashtags)
  • Post visibility settings
  • Schedule post interface
  • Draft management

3.3 Engagement Features

  • Like/Appreciate buttons (heart, leaf, sun icons)
  • Comment threads with nesting
  • Share/Amplify functionality
  • Save/Bookmark posts
  • Report content flow
  • Content moderation queue (for admins)

3.4 Groups & Communities

  • Group discovery page
  • Group profile pages
  • Member management
  • Group posts and discussions
  • Group events calendar
  • Group resources section

Phase 4: Conscious Commerce (Week 7-8)

4.1 Marketplace Homepage

  • Featured conscious businesses
  • Category navigation
  • Search with advanced filters:
    • Certifications (B-Corp, Fair Trade)
    • Location/shipping
    • Price range
    • Impact metrics
  • Promotional banners

4.2 Product Listings

  • Product grid/list views
  • Product detail pages:
    • Image galleries
    • Detailed descriptions
    • Impact story
    • Certification badges
    • Reviews and ratings
  • Seller profile integration
  • Related products

4.3 Shopping Experience

  • Shopping cart
  • Wishlist functionality
  • Checkout flow:
    • Address management
    • Payment methods
    • Currency selection (V, Y, traditional)
    • Order review
  • Order history
  • Order tracking

4.4 Vendor Dashboard

  • Product management
  • Order fulfillment
  • Analytics dashboard
  • Customer communications
  • Certification management

Phase 5: Guild System (Week 9-10)

5.1 Guild Discovery

  • Guild directory with categories
  • Guild search and filters
  • Featured guilds
  • Guild recommendations

5.2 Guild Pages

  • Guild profile with mission/values
  • Member roster with roles
  • Guild feed and announcements
  • Resources library
  • Events calendar
  • Guild projects showcase

5.3 Guild Management

  • Create guild wizard
  • Member application review
  • Role management (Member, Voting Member, Manager-Leader)
  • Guild settings and governance
  • Voting/proposal system
  • Guild analytics

5.4 Guild Interactions

  • Guild chat/discussions
  • Task management
  • Resource sharing
  • Collaboration tools
  • Meeting scheduler with Zoom integration

Phase 6: Digital Currency System (Week 11)

6.1 Wallet Dashboard

  • Currency balances (V, Y, Q)
  • Transaction history
  • Currency exchange interface
  • QR code for receiving
  • Send currency flow

6.2 Currency Features

  • V Currency demurrage visualization
  • Y Currency rewards tracking
  • Q Currency equity dashboard
  • Currency analytics and trends
  • Transaction notifications

6.3 Integration Points

  • Commerce checkout with currencies
  • Guild membership payments
  • Course purchases
  • Tipping/gifting interface
  • Currency education tooltips

Phase 7: Learning Hub (Week 12)

7.1 Course Catalog

  • Course discovery page
  • Category browsing
  • Search and filters
  • Featured courses
  • Instructor profiles

7.2 Course Experience

  • Course detail pages
  • Video player interface
  • Course materials download
  • Progress tracking
  • Quiz/assessment UI
  • Certificate generation

7.3 Learning Management

  • My courses dashboard
  • Learning paths
  • Bookmarks and notes
  • Discussion forums
  • Live session scheduling

7.4 Resource Center

  • Article library
  • Downloadable guides
  • Community resources
  • Regenerative practice database

Phase 8: AI & Intelligence Features (Week 13)

8.1 AI Companion (Otto Gaia)

  • Chat interface design
  • Personality and avatar
  • Context-aware suggestions
  • Help and guidance system
  • Voice interaction UI (future)

8.2 Discovery & Matching

  • Smart recommendations dashboard
  • Connection suggestions with reasons
  • Project matching interface
  • Collaboration opportunities
  • Impact visualization maps

8.3 Analytics & Insights

  • Personal impact dashboard
  • Community health metrics
  • Network visualization
  • Achievement tracking
  • Regenerative impact scores

Phase 9: Mobile Optimization (Week 14)

9.1 Responsive Design

  • Mobile navigation patterns
  • Touch-optimized components
  • Gesture support
  • Offline mode indicators
  • Progressive Web App features

9.2 Mobile-Specific Features

  • Bottom navigation bar
  • Swipe interactions
  • Camera integration
  • Location services
  • Push notification UI

Phase 10: Final Integration & Polish (Week 15-16)

10.1 Integration Testing

  • End-to-end user flows
  • Cross-feature integration
  • Performance optimization
  • Accessibility audit
  • Browser compatibility

10.2 Polish & Refinement

  • Animation and transitions
  • Loading states refinement
  • Error handling improvement
  • Help system and tooltips
  • Onboarding flow enhancement

10.3 Documentation

  • Component documentation
  • User guide creation
  • Developer documentation
  • API documentation (for future backend)
  • Deployment guide

Mock Data Examples

User Profile

{
  "id": "user-001",
  "username": "earthkeeper",
  "fullName": "Sarah Chen",
  "email": "sarah@example.com",
  "avatar": "/avatars/sarah.jpg",
  "bio": "Regenerative agriculture advocate and permaculture designer",
  "location": "Portland, OR",
  "values": {
    "geneKeys": [13, 25, 51],
    "humanDesign": "Generator 2/4",
    "enneagram": "Type 1w2"
  },
  "certifications": ["Permaculture Design", "Holistic Management"],
  "guilds": ["Regenerative Farmers", "Urban Gardens", "Seed Savers"],
  "impact": {
    "treesPlanted": 1250,
    "soilRestored": "5 acres",
    "peopleEducated": 300
  },
  "currencies": {
    "V": 1500,
    "Y": 750,
    "Q": 100
  }
}

Post Example

{
  "id": "post-001",
  "author": "user-001",
  "type": "project-update",
  "content": "Excited to share our community garden has produced its first harvest! 🌱",
  "media": ["/images/garden-harvest.jpg"],
  "tags": ["#regenerative", "#communitygarden", "#portland"],
  "guild": "Urban Gardens",
  "reactions": {
    "hearts": 45,
    "leaves": 23,
    "suns": 12
  },
  "comments": 18,
  "timestamp": "2025-07-24T10:30:00Z"
}

Product Example

{
  "id": "product-001",
  "seller": "conscious-foods-coop",
  "name": "Organic Heritage Tomato Seeds",
  "description": "Heirloom varieties preserved for generations",
  "price": {
    "USD": 12.99,
    "V": 15,
    "Y": 10
  },
  "certifications": ["USDA Organic", "Non-GMO", "Fair Trade"],
  "impact": {
    "biodiversityScore": 9.2,
    "carbonFootprint": -2.5,
    "communityBenefit": "Supports 5 local farms"
  },
  "images": ["/products/tomato-seeds.jpg"],
  "category": "Seeds & Plants",
  "inStock": true
}

Development Guidelines

Code Quality Standards

  • TypeScript strict mode enabled
  • 100% component prop typing
  • Comprehensive error handling
  • Accessibility (WCAG 2.1 AA compliance)
  • Performance budgets (Lighthouse scores > 90)

Component Development

  • Atomic design methodology
  • Storybook for all components
  • Unit tests for utilities
  • Integration tests for features
  • E2E tests for critical paths

State Management

  • Redux for global state
  • React Query for server state
  • Context for theme/auth
  • Local state for UI components

Performance Optimization

  • Code splitting by route
  • Lazy loading for images
  • Virtual scrolling for lists
  • Memoization for expensive computations
  • Service worker for caching

Next Steps

  1. Review and approve development plan
  2. Set up development environment
  3. Create initial component library
  4. Begin implementation following the phases
  5. Regular review and adjustment of timeline

Success Metrics

  • All major features have UI implementation
  • Storybook documentation complete
  • Mobile responsive across all devices
  • Performance scores > 90
  • Accessibility compliance achieved
  • Mock data covers all use cases
  • User testing feedback incorporated