Commit Graph

15 Commits

Author SHA1 Message Date
dilgenfritz c40ed278e0 Major project reorganization: Move docs and scripts to dedicated directories
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.
2025-11-18 22:42:32 -06:00
dilgenfritz 1c129de6f6 REMOVED: Complete AI task generation system program-wide
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
2025-11-08 18:13:32 -06:00
dilgenfritz 52cd3329f1 Clean up debugging logs and fix Quick Play image sizing
- Remove excessive debugging logs from desktop-file-manager.js and porn-cinema.html
- Keep essential logging while reducing console noise
- Fix Quick Play task image sizing by removing manual dimension calculations
- Let CSS handle image scaling with object-fit: contain for proper aspect ratio
- Clear previous inline dimensions to prevent CSS conflicts
- Images should now properly fit within container boundaries
2025-11-03 19:04:09 -06:00
dilgenfritz b7cfc25f33 Fix directory persistence by preventing conflicts between file manager instances
- Porn Cinema now tries to reuse main window's file manager instance instead of creating new one
- Prevent saving directories when there are access errors to avoid clearing valid directories
- Skip unnecessary refresh calls when reusing existing file manager
- Add better error tracking without removing directories from storage
- Should maintain directory persistence between main library and porn cinema
2025-11-03 17:23:00 -06:00
dilgenfritz 04c5a496ae Add enhanced debugging for directory persistence investigation
- Added detailed error logging in refreshAllDirectories with full directory paths
- Keep inaccessible directories in list instead of removing them
- Enhanced porn-cinema.html to show actual directory data from storage
- Log directory refresh process step by step to identify where directories disappear
- Should reveal why linked directories become 0 after refresh
2025-11-03 17:18:17 -06:00
dilgenfritz 8bf1f6fe4b Add debugging for video directory persistence issue
- Added logging to saveLinkedDirectories to show when data is saved
- Added detailed logging to loadLinkedDirectories showing raw data and directory details
- Added localStorage inspection in porn cinema initialization
- Added final state logging after directory refresh
- Should help identify why linked directories become unlinked between library and porn cinema
2025-11-03 16:17:47 -06:00
dilgenfritz 33b6647a76 Debug Cinema Player Issues - Fix Pause Button & Add Autoplay Debugging 2025-10-31 20:19:53 -05:00
dilgenfritz c25eb3ecd4 Implement Comprehensive Player Statistics System
PLAYER STATS TRACKING:
-  Real-time watch time tracking with precise play/pause detection
-  Comprehensive viewing metrics (videos watched, completed, skipped)
-  Session analytics (count, length, longest session, binge detection)
-  Engagement stats (playlists created, videos added to playlists)
-  Achievement-style metrics (days active, streaks, completion rates)
-  Advanced analytics (per-video play counts and watch times)

STATS INFRASTRUCTURE:
- Created PlayerStats class with persistent localStorage storage
- Integrated stats tracking into BaseVideoPlayer event system
- Override play/pause/end events in PornCinema for data collection
- Daily stats tracking with automatic streak calculation
- Export/import functionality for data backup and analysis

STATS DASHBOARD:
- Professional stats visualization page (player-stats.html)
- Beautiful card-based layout with formatted metrics
- Advanced statistics section with detailed breakdowns
- Export stats as JSON and reset functionality
- Responsive design matching application theme

NAVIGATION INTEGRATION:
- Added ' Player Stats' button to main navigation screen
- Positioned strategically after Porn Cinema in main actions
- Proper event handling with navigation to stats dashboard
- Consistent styling with other management buttons

COMPREHENSIVE METRICS:
- Total watch time with precise millisecond tracking
- Video completion analysis (90%+ complete vs <10% skipped)
- Playlist creation and video addition tracking
- Session management with automatic start/end detection
- Most watched video identification and play count tracking
- Daily activity patterns and consecutive day streaks

The system now provides rich, engaging statistics that track user
engagement patterns and create a sense of progression and achievement.
2025-10-31 15:58:57 -05:00
dilgenfritz b360e4d68d Implement Playlist Creation in Video Library
PLAYLIST CREATION FEATURES:
-  Multi-selection system with visual checkboxes and green highlighting
-  Select mode toggle ( Select /  Exit Select) for batch operations
-  Dynamic playlist creation button with selection counter
-  Professional creation modal with video preview and removal options
-  Two creation modes: Create Playlist & Create & Switch to Playlist

VIDEO LIBRARY ENHANCEMENTS:
- Added playlist management controls to library header
- Implemented multi-selection state tracking with Set-based storage
- Enhanced video cards/items with selection checkboxes and styling
- Smart playlist naming with auto-increment (My Playlist 1, 2, etc.)
- Duplicate name handling with user confirmation for overwrites

UI/UX IMPROVEMENTS:
- Professional playlist creation modal with responsive design
- Visual selection indicators (green borders, checkboxes)
- Real-time button text updates based on selection count
- Individual video removal in creation dialog
- Consistent styling with existing cinema theme

TECHNICAL IMPLEMENTATION:
- Extended VideoLibrary class with playlist creation methods
- Integration with existing localStorage playlist system
- Cross-feature compatibility with save/load functionality
- Error handling and user feedback notifications
- Keyboard support (Enter to create) and accessibility features

WORKFLOW BENEFITS:
- Bulk playlist creation from selected videos
- Empty playlist creation for manual building
- Immediate playlist switching after creation
- Seamless integration with existing playlist management
- Enhanced user experience for playlist organization

The video library now provides complete playlist creation capabilities,
allowing users to efficiently organize their video collections into custom playlists.
2025-10-31 15:41:27 -05:00
dilgenfritz 77af6076e0 Fix Porn Cinema video loading bug and cleanup debug logs
CRITICAL BUG FIX: Porn Cinema Video Loading
- Fixed destructive data overwrite issue where DesktopFileManager was clearing unified video library
- Added data preservation logic to prevent overwriting existing videos when no directories are linked
- Enhanced VideoLibrary fallback mechanisms for reliable video access across components
- Resolved timing/synchronization issues between main game and Porn Cinema

 CLEANUP & OPTIMIZATION
- Removed excessive debug logging from porn-cinema.html initialization
- Cleaned up console output in desktop-file-manager.js and videoLibrary.js
- Preserved core functionality while improving user experience

 DOCUMENTATION
- Updated ROADMAP.md with completed video loading bug fix milestone
- Added detailed technical implementation notes

This resolves the issue where users had linked video directories in the main game
but videos weren't appearing in the Porn Cinema due to storage conflicts.
2025-10-31 15:01:31 -05:00
dilgenfritz 755b5ec8d6 COMPLETE: Video Player Extraction & Integration
BaseVideoPlayer System:
- Created BaseVideoPlayer class (400+ lines) with full video controls
- Built FocusVideoPlayer extending base for focus interruptions
- Added base-video-player.css for shared styling
- Global exports for browser compatibility

 Integration Complete:
- Updated interactiveTaskManager.js with FocusVideoPlayer + fallback
- Added script loading to index.html in proper order
- Created video-player-test.html - ALL TESTS PASSING

 Architecture Ready:
- Modular, reusable video components
- Consistent styling across game modes
- Foundation prepared for porn cinema refactoring
- Backward compatible with existing focus sessions
2025-10-31 07:27:07 -05:00
dilgenfritz 1e89ee95aa Implement clean porn cinema layout with header and sidebar navigation
- Fix HTML structure: move header inside body tag
- Style header to match mockup: slim purple gradient design
- Create right sidebar with Playlist/Search tabs
- Minimize Video Library section for clean appearance
- Add proper two-column grid layout
- Implement tab switching functionality
- Override conflicting body flex styles for cinema mode
2025-10-30 21:11:57 -05:00
dilgenfritz a2af9ba8f3 Implement working Porn Cinema media player with video library
- Added complete porn cinema media player with dedicated HTML page
- Implemented PornCinema class with video playback, controls, keyboard shortcuts
- Added VideoLibrary class with thumbnail generation and duration display
- Canvas-based thumbnails with aspect ratio support for portrait/landscape videos
- Playlist functionality with save/load, shuffle, auto-advance
- Desktop file manager integration for video file access
- Enhanced MIME type handling with fallback strategies for .mov files
- Professional dark cinema theme with responsive design
- One-handed keyboard controls for playback and navigation
- Quality selection, theater mode, fullscreen support
- Working video playback with proper file:// URL handling for Electron
2025-10-30 20:12:00 -05:00
dilgenfritz c65a58bae9 Fix Porn Cinema desktop file manager integration
- Initialize DesktopFileManager properly in porn-cinema.html
- Add minimal data manager for standalone cinema operation
- Update VideoLibrary to use correct desktop file manager API
- Scan all video directories (background, tasks, rewards, punishments)
- Add fallback to localStorage for stored videos
- Improve empty library display with helpful instructions
- Add gameDataManager dependency for data operations
- Better error handling and user guidance

Fixes:
 Desktop file manager now properly initialized
 Video library loads from all categories
 Graceful fallback when videos not found
 Clear instructions for adding videos
2025-10-30 19:02:43 -05:00
dilgenfritz c524f3bc46 Implement Porn Cinema media player
- Add dedicated porn-cinema.html page with professional media player UI
- Create PornCinema class with full video player functionality
- Implement VideoLibrary class for grid/list video management
- Add comprehensive one-handed keyboard shortcuts
- Support playlist creation, management, and auto-advance
- Include quality selection and theater/fullscreen modes
- Add cinema-specific CSS styling with dark theme
- Integrate with existing video management system
- Add button on home screen to launch cinema mode

Features:
 Separate dedicated page
 Video thumbnails using existing patterns
 Playlist support from start
 Multiple quality options for performance
 One-handed keyboard shortcuts for easy control
 Professional media player controls
 Grid/list library views
 Theater mode and fullscreen support
2025-10-30 16:43:03 -05:00