UI Concept & Design¶
User Experience Overview¶
The BioCoursesGenerator interface follows a clean, intuitive workflow that guides users through the curriculum processing pipeline with minimal steps while providing clear progress feedback and control options.
Main Dashboard¶
Layout Structure¶
┌─────────────────────────────────────────────────────────────┐
│ Header: BioCoursesGenerator [🇷🇴 EN] │
├─────────────────────────────────────────────────────────────┤
│ Navigation: [Încărcare] [Procesare] [Istoric] [Setări] │
├─────────────────────────────────────────────────────────────┤
│ Main Content Area │
├─────────────────────────────────────────────────────────────┤
│ Status Bar: Indicatori progres și mesaje │
└─────────────────────────────────────────────────────────────┘
Step-by-Step User Flow¶
1. Upload Phase¶
┌─────────────────────────────────────────────────────────────┐
│ 📁 Document Upload │
│ │
│ Drag & drop your scanned curriculum here │
│ ────── or ───── │
│ [Choose File] button │
│ │
│ Supported formats: PDF, JPG, PNG │
│ Maximum size: 50MB │
│ │
│ [Start Processing] button │
└─────────────────────────────────────────────────────────────┘
2. OCR Preview (Nice-to-Have Feature)¶
┌─────────────────────────────────────────────────────────────┐
│ 🔍 OCR Text Preview │
│ │
│ [Editable Text Area] │
│ ←───────────────────────────────────────────────── │
│ │Extracted text from your document... │ │
│ │You can edit, correct, or remove text here before │ │
│ │processing with the LLM. │ │
│ ←───────────────────────────────────────────────── │
│ │
│ [Back] [Edit Complete → LLM Processing] │
└─────────────────────────────────────────────────────────────┘
3. Processing Status¶
┌─────────────────────────────────────────────────────────────┐
│ ⚙️ Processing Status │
│ │
│ Step 1: OCR Extraction [████████████████████████] 100% │
│ Step 2: LLM Content Structuring [████████████░░░░░░] 60% │
│ Step 3: PDF Generation [░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% │
│ │
│ Current Action: Generating course structure... │
│ Estimated time remaining: 3 minutes │
│ │
│ [Cancel] button │
└─────────────────────────────────────────────────────────────┘
4. TOC Editing Interface (Future Implementation)¶
┌─────────────────────────────────────────────────────────────┐
│ ✏️ Table of Contents Editor │
│ │
│ [Tree Structure View] │
│ ├─ 1. Introduction to Nursing Care │
│ │ └─ Edit │ Delete │ Add Subchapter │
│ │ └─ Prompt: Generate overview content... │
│ ├─ 2. Patient Assessment │
│ └─ + Add New Chapter │
│ │
│ [Save Changes] [Generate PDF] [Export TOC] │
└─────────────────────────────────────────────────────────────┘
5. Results & Download¶
┌─────────────────────────────────────────────────────────────┐
│ ✅ Processing Complete │
│ │
│ Course book generated successfully! │
│ │
│ 📄 Generated Book: Nursing Fundamentals Course │
│ 📊 Pages: 45 | File Size: 2.3MB | Language: Romanian │
│ │
│ [📥 Download PDF] button │
│ [🔄 Start Over] button │
└─────────────────────────────────────────────────────────────┘
Interface Components¶
File Upload Widget¶
- Drag & Drop Zone: Visual feedback for valid/invalid files
- File Browser: Filter for supported formats
- Preview: Thumbnail generation for images
- Validation: Real-time size and format checking
Progress Indicators¶
- Step-by-Step Progress: Visual representation of pipeline stages
- Time Estimates: Based on file size and complexity
- Status Messages: Clear descriptions of current operations
- Cancel Ability: User can abort long-running processes
Text Editor (OCR Preview)¶
- Syntax Highlighting: Reserved for curriculum structure keywords
- Find & Replace: Quick corrections for common OCR errors
- Word Count: Content volume tracking
- Auto-save: Prevent data loss during editing
TOC Manipulation¶
- Tree View: Hierarchical representation of course structure
- Inline Editing: Click-to-edit titles and prompts
- Drag & Drop: Reorganize sections and chapters
- Add/Remove Controls: Context menus for each item
Results Display¶
- Metadata Summary: Book title, page count, generation time
- Preview Options: Thumbnail or excerpt view
- Download Options: Direct download or shareable link
- History Integration: Save previous generations
Visual Design Principles¶
Color Scheme¶
- Primary: #4A90E2 (Streamlit blue)
- Secondary: #50C878 (Success green)
- Warning: #FFA500 (Orange)
- Error: #FF6B6B (Red)
- Neutral: #F8F9FA (Light gray)
Typography¶
- Main Font: Inter or Roboto (modern, readable)
- Headers: Bold, increased line-height
- Body Text: Regular, with appropriate contrast ratios
- Code Blocks: Monospace font for technical content
Icons & Symbols¶
- 📁 File/folder operations
- 🔍 Search and preview
- ⚙️ Processing actions
- ✅ Success states
- ❌ Error states
- ↻ Loading/progress
Responsive Design¶
Desktop Layout (>1024px)¶
- Three-column layout with sidebar navigation
- Full processing panels with detailed controls
- Inline text editor with full feature set
Tablet Layout (768-1024px)¶
- Condensed two-column layout
- Simplified control panels
- Compact tree editor
Mobile Layout (<768px)¶
- Single-column stacked layout
- Progressive disclosure for complex features
- Touch-optimized controls (larger buttons)
User Accessibility¶
Keyboard Navigation¶
- Tab order through all interactive elements
- Keyboard shortcuts for common actions
- Focus indicators and visual feedback
Screen Reader Support¶
- Semantic HTML structure with ARIA labels
- Alternative text for images and icons
- Progress announcements and status updates
User Guidance¶
- Tooltip explanations for technical terms
- Help sections with usage examples
- Error messages with actionable suggestions
Error States & Handling¶
File Validation Errors¶
- Red border and error message for invalid files
- Detailed explanation of requirements
- Recovery actions (re-select file, compress, etc.)
Processing Failures¶
- Clear error categorization (OCR, API, storage)
- Suggested remediation steps
- Contact information for technical support
Network Issues¶
- Offline detection and messaging
- Retry mechanisms with progress tracking
- Automatic resumption of interrupted processes
Performance Considerations¶
Loading States¶
- Skeleton screens for content areas
- Progressive loading for large documents
- Background processing indicators
Memory Management¶
- Chunked loading for large files
- Automatic cleanup of preview data
- Session storage for temporary edits