How lucashsu95/custom-training works
Main System Components
a) Core Application Layer:
• User Interface (React Components)
• State Management (Provider Components)
• Data Storage (IndexedDB)
• Question Processing Engine
b) Feature Modules:
• Training Module
• Question Management Module
• Settings Module
┌─ Presentation Layer ─────────────────────────┐
• UI Components (src/components) │
• Pages (src/pages) │
• Business Logic Layer ──────────────────────┤
• Question Processing (src/classes) │
• Providers (src/provider) │
• Hooks (src/hooks) │
• Data Layer ──────────────────────────────┤
• IndexedDB Storage │
• JSON Assets │
• ┘
Component Relationships to Highlight
• User Interface → Question Provider
• Question Provider → IndexedDB Storage
• Training Components → Question Processing
• File Uploader → JSON Assets
Special Features to Emphasize
Create dedicated sections for:
• Question Types (Multiple Choice, Fill in Blank, Matching, Vocabulary)
• Training Modes (Auto Training, Direct Practice)
• Progress Tracking System
• Theme Management
Technical Details
Annotations for:
• React + Vite Framework
• Shadcn/UI Components
• TailwindCSS Styling
• IndexedDB for Local Storage
Data Flow Patterns
Flows:
• Question Upload → Storage → Training
• User Input → Question Processing → Score Calculation
• Settings → Training Configuration
Key Architectural Patterns
Highlight:
• Component-based Architecture
• Provider Pattern for State Management
• Hook-based Logic Separation
• Factory Pattern for Question Types
This system design should emphasize:
The training algorithm implementation
Keep the focus on how the components interact to deliver the core functionality of question management and training features.