- Create migration AddLastLoginToUsers to add last_login column
- Revert UserModel to use last_login column in queries
- Proper solution: add missing column instead of removing from code
- Fix getAllForAdmin method to not select last_login column
- Fix findForAdmin method to not select last_login column
- Users table doesn't have last_login column
- Fix storage permissions to use 'www' user instead of 'www-data'
- Fix UserModel getAllForAdmin query to avoid placeholders in LIMIT/OFFSET
- Update deploy script to use correct user permissions
- Clean up test files
- Fix storage permissions to use 'www' user instead of 'www-data'
- Fix UserModel getAllForAdmin query to avoid placeholders in LIMIT/OFFSET
- Import missing modules: Advertising, Dashboard, Analytics
- Update deploy script to copy files to public directory
- Copy complete Users module from CRM_Project
- Fix syntax error in UserController.php (trailing whitespace)
- Add admin users management functionality
- Include user profiles, roles, and permissions
- Add API endpoints for user management
- Add complete redirectsList() function with API integration
- Include analytics_slug support in JavaScript
- Fix missing function that was causing page to not load
- Add proper error handling and loading states
- Add conditional check to show warning if analytics_slug is missing
- Improve error handling for missing analytics data
- Add visual feedback for debugging
- Add analytics public URL input with copy button in redirect view
- Fix deleteCreativeByRedirectId to handle missing creatives gracefully
- Add copyAnalyticsUrl JavaScript function with visual feedback
- Improve error handling in redirect deletion process
- Add analytics_slug column to redirects table
- Generate unique analytics slugs using CUID2
- Update PublicCampaignsController to use analytics_slug
- Update views to use analytics_slug in analytics links
- Add migration and population scripts
- Improve security by separating public redirect and analytics URLs
- Add PublicCampaignsController for public campaign analytics
- Add public routes for /public/analytics/{slug} and /api/campaigns/{slug}
- Add public campaign analytics view with charts and KPIs
- Support for campaign sharing via custom slugs
- Real-time analytics with ApexCharts integration
- Added comprehensive documentation in docs/ folder
- Created MONEYFLIX_CLIENT_CONFIGURATION.md with complete client config
- Added DEPLOY_SCRIPTS_DOCUMENTATION.md with all deploy scripts
- Created docs/README.md as master documentation index
- Copied deploy scripts from CRM (deploy-moneyflix.sh, deploy-moneyflix-php.sh)
- Updated main README with complete documentation structure
- Added MoneyFlix-specific branding and module configurations
- Included troubleshooting guides and quick reference commands
This provides complete isolation with:
- All CRM-specific MoneyFlix configurations
- Complete deploy script documentation
- Client-specific branding and theme settings
- Module configuration and features
- Comprehensive troubleshooting guides
- Master documentation index for easy navigation
- Added nodejs-redirector/README.md with complete Node.js documentation
- Added crm/README.md with CRM code reference documentation
- Created deploy-moneyflix.sh for complete system deployment
- Added moneyflix.config for centralized configuration
- Updated main README with new documentation structure
- Enhanced sync-from-crm.sh for better organization
- Added comprehensive troubleshooting and monitoring guides
This provides complete isolation from the main CRM project with:
- Dedicated documentation for each component
- Independent deployment scripts
- Centralized configuration management
- Complete troubleshooting guides
- Self-contained development environment
- Created dedicated nodejs-redirector/ folder for Node.js application
- Moved all Node.js files to nodejs-redirector/ directory
- Kept CRM PHP code in crm/ folder for clear separation
- Updated README_MONEYFLIX.md with new organized structure
- Updated sync-from-crm.sh script to work with new structure
- Improved project organization for better maintainability
This provides clear separation between:
- Node.js redirector application (nodejs-redirector/)
- CRM PHP code reference (crm/)
- Project documentation and scripts (root level)
- Created separate MoneyFlix project directory
- Copied Node.js redirector from production server
- Added CRM PHP code (Redirects module, Core classes, Config, Routes, Views)
- Created comprehensive documentation (README_MONEYFLIX.md)
- Added sync script to keep CRM code updated (sync-from-crm.sh)
- Configured .gitignore for Node.js and PHP
- Set up proper project structure for multi-client isolation
This separates MoneyFlix from the main CRM to avoid confusion
between different client systems and provides a dedicated
environment for MoneyFlix-specific development and maintenance.