- Import color-variables.css and themeManager.js
- Add theme toggle switcher to academy header
- Replace header gradient, borders, and title colors with CSS variables
- Update all button styles (btn, btn-secondary, btn-warning)
- Replace training mode cards, status bars, and controls with theme variables
- Update training task styling, complete buttons, and start button
- Replace library status and blue accent colors
- Training Academy now fully theme-aware across all UI elements
Documentation Organization:
- Move all documentation (except main README.md) to docs/ directory
- Create docs/README.md as navigation index for all documentation
- Update file structure references in main README.md
Script Organization:
- Move all scripts to scripts/ directory (setup.bat, setup.sh, Start-webgame.bat, etc.)
- Update script references in documentation
- Update distribution scripts to use new paths
Hypno Gallery Implementation:
- Implement recursive image directory scanning in main process
- Add readImageDirectoryRecursive IPC handler for proper Node.js fs access
- Clean up complex fallback code in hypno-gallery.html
- Create comprehensive HYPNO-GALLERY-README.md documentation
File Structure Improvements:
- Clean root directory with only essential application files
- Organized subdirectories: src/, docs/, scripts/, images/, audio/, assets/
- Professional project structure for better maintainability
This reorganization improves project navigation, separates concerns properly,
and provides a solid foundation for future development.
- Implement canvas-based video compositing for task overlays
- Task information now burned directly into webcam recordings
- Show actual task content instead of generic descriptions
- Remove screen overlay in favor of webcam-embedded overlay
- Auto-enable task overlay for all webcam recordings
- Add real-time task text, type, and timer display on recordings
- Enhance training session documentation and review capabilities
- Add VoiceManager integration with cross-platform voice selection
- Implement TTS controls with toggle, stop, and status display
- Add voice narration for task instructions and scenario stories
- Integrate TTS guidance for focus sessions with progress announcements
- Add TTS feedback for task completion and mode selections
- Include smart text cleaning and queue system for seamless speech
- Reorganize documentation files into archive folder
- Update player stats and webcam manager for better integration
DELETED FILES:
- src/features/tasks/aiTaskManager.js (entire AI task generation system)
UPDATED FILES:
- index.html: Removed AI Tasks tab from annoyance management, simplified to Import/Export only
- src/core/game.js: Removed aiTaskManager initialization, event handlers, and all AI task methods
- training-academy.html: Removed aiTaskManager.js script import
- src/README.md: Removed aiTaskManager.js documentation
- docs/ANNOYANCE_SETTINGS_DOCUMENTATION.md: Removed AI Tasks section, updated description
- Start-webgame.bat: Removed Ollama service startup commands
- src/styles/styles.css: Removed all AI Tasks tab styling (150+ lines)
VERIFICATION:
- No remaining references to aiTaskManager, AITaskManager, ollama, or Ollama in JavaScript files
- Annoyance management now only contains Import/Export functionality
- All AI task event handlers and UI elements removed
- Documentation updated to reflect removal
- Startup script no longer attempts to start Ollama service
RESULT: Clean codebase with AI task generation completely removed as requested
ADDED: Photo deletion functionality
- Added delete button () to each photo in library gallery
- Appears on hover with smooth opacity transition
- Positioned in top-right corner of photo container
FUNCTIONALITY: Complete delete workflow
- deletePhoto() function removes photos from localStorage
- Confirmation dialog shows photo type and date
- Automatic gallery refresh after deletion
- Support for both All Photos and Dress Up galleries
- Proper index handling for filtered galleries
STYLING: Professional delete button design
- Red circular button with trash icon
- Hover effects with scale animation and shadow
- Semi-transparent background for visibility
- Positioned with absolute positioning in photo-actions container
SAFETY: User confirmation and error handling
- Confirmation dialog prevents accidental deletion
- Index validation to prevent errors
- Success flash message after deletion
- Console logging for debugging
RESULT: Users can now delete unwanted photos
- Hover over any photo to reveal delete button
- Click for confirmation dialog with photo details
- Gallery automatically updates after deletion
- Works for all photo categories in library
ADDED: Complete video control panel matching quick-play
- Added collapsible video control panel positioned in top-right corner
- Implemented rewind/forward 10s, skip, play/pause functionality
- Added volume control with slider and visual percentage display
- Included video progress bar with time display
ADDED: Playlist selection dropdown
- Added Source dropdown with Random Videos and Playlist options
- Integrated playlist selection change handler
- Matches quick-play interface for consistency
IMPROVED: Button styling and spacing
- Optimized button padding and font size for better fit
- Reduced gap between buttons for cleaner layout
- Added proper CSS for playlist dropdown with hover effects
FIXED: Video info display
- Fixed 'No video loaded' issue by properly calling updateVideoInfo()
- Added metadata loading handlers for initial and subsequent videos
- Enhanced video switching to update info immediately
RESULT: Training academy now has identical video controls to quick-play
- Fixed positioning with proper z-index and floating panel
- Fully functional collapse/expand with smooth transitions
- Current video name displays correctly
- All control buttons fit properly in the panel
FIXED: Video library thumbnail spacing issues
- Identified multiple conflicting video gallery systems in index.html
- Applied proper CSS fixes to #lib-video-gallery (gap: 4px, height: 240px)
- Resolved CSS conflicts between unified-video-gallery and lib-video-gallery
- Enhanced video info display visibility and styling
- Successfully created compact layout with visible video titles
CREATED: Comprehensive media library cleanup plan
- Documented 3 duplicate video library systems requiring consolidation
- Identified duplicate image and audio gallery systems
- Created phased cleanup approach in docs/MEDIA_LIBRARY_CLEANUP_PLAN.md
- Estimated ~1,150 lines of duplicate code to be removed
- Preserved all functionality while simplifying architecture
RESULT: Working video library with proper spacing and video info display
- lib-video-gallery confirmed as primary system to keep
- All other video gallery systems marked for removal
- Next: Execute cleanup phases to eliminate duplicates
- Fixed completion behavior to return to mode selection instead of cycling through tasks
- Added explicit training-academy mode handling to load proper scenario data
- Prevented default focus-hold tasks (edge-focus-training, etc.) from being loaded
- Added task filtering to block unwanted default tasks
- Enhanced gameData protection with getter/setter to prevent task replacement
- Improved error handling to return to mode selection on invalid scenarios
- Training academy now properly loads scenario adventures with full interactive data
- Fixed scenario-training-regimen loading to include proper step data
- Fixed mirror task timer display to show actual duration (not hardcoded 60s)
- Added working progress bar with real-time countdown
- Disabled complete button until timer expires - prevents early completion
- Complete button shows countdown and enables only when timer finished
- Changed close mirror button to trigger immediate game over instead of confirmation
- Added condescending but professional game over dialog for training abandonment
- Fixed WebcamManager syntax errors that prevented proper initialization
- Enhanced training academy button styling for professional appearance
- Improved timer synchronization between training academy and webcam interfaces