Commit Graph
37 Commits
Author SHA1 Message Date
1sonhador 151bac0e20 fix: Add analytics URL copy functionality and fix delete redirect error
- 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
2025-10-15 13:28:07 +01:00
1sonhador 4c08a83707 feat: Add secure analytics slug system
- 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
2025-10-15 13:19:51 +01:00
1sonhador 2ed236542c Remove duplicate MoneyFlix text from header - keep only logo 2025-10-15 01:23:21 +01:00
1sonhador 0ec853d740 Disable Dashboard module routes to fix /dashboard authentication issue 2025-10-15 01:22:22 +01:00
1sonhador fdb41344c6 Remove legacy forms and reports routes - not needed for MoneyFlix 2025-10-15 01:19:51 +01:00
1sonhador 9ea08462ca Protect /dashboard route - redirect to login if not authenticated 2025-10-15 01:15:07 +01:00
1sonhador d7d6ba9391 Add authentication check to root route - redirect to login if not authenticated 2025-10-15 01:13:09 +01:00
1sonhador f088387c5c Fix duplicate MoneyFlix branding in public header 2025-10-15 01:07:31 +01:00
1sonhador d5bb2f7915 Unify visual identity: match public analytics styling with redirects page 2025-10-15 01:06:22 +01:00
1sonhador 25254396ec Fix datepicker: implement flatpickr for custom date range selection 2025-10-15 01:04:17 +01:00
1sonhador ec21dd86f6 Fix CSS compilation: copy public.scss from old CRM project and compile correctly 2025-10-15 01:03:22 +01:00
1sonhador 24459e38ff Fix JavaScript errors: Alpine.js x-for keys, Chart.js canvas reuse, missing CSS file 2025-10-15 01:01:00 +01:00
1sonhador d97c1a1881 Remove unnecessary navbar from public analytics page for better UX 2025-10-15 00:59:44 +01:00
1sonhador ab6d3af44c Fix: Replace fake daily hits data with real database data 2025-10-15 00:58:36 +01:00
1sonhador e6221bc7b1 Improve public analytics dashboard: fix duplicate branding, add daily hits chart, top referrals, better chart legibility 2025-10-15 00:57:04 +01:00
1sonhador 07ad7561be Use relative path instead of namespace for public campaign analytics view 2025-10-15 00:53:56 +01:00
1sonhador cc46dd2fc5 Register pages namespace for public campaign analytics view 2025-10-15 00:53:41 +01:00
1sonhador 0c057b4d61 Fix RedirectStatsModel method calls in PublicCampaignsController 2025-10-15 00:52:00 +01:00
1sonhador fb724db1e6 Create public campaign analytics view based on existing stats structure 2025-10-15 00:45:16 +01:00
1sonhador 8a43750f92 Move public campaign analytics view to correct location 2025-10-15 00:42:50 +01:00
1sonhador f0378409af Fix view path for public campaign analytics 2025-10-15 00:42:34 +01:00
1sonhador bf548ae691 Fix duplicate method declarations in PublicCampaignsController 2025-10-15 00:42:19 +01:00
1sonhador 065b526968 Add public campaign analytics routes to main routes file 2025-10-15 00:41:28 +01:00
1sonhador 50ef227d37 Add test controller for debugging 2025-10-15 00:41:07 +01:00
1sonhador eb713c4057 Fix module configuration with correct client ID 2025-10-15 00:40:53 +01:00
1sonhador b34b0d3ab7 Add module configuration to activate Modules module 2025-10-15 00:40:04 +01:00
1sonhador 6e2753e89a Restore campaign logic adapted for redirects using cuid as slug 2025-10-15 00:38:25 +01:00
1sonhador 32373f5107 Add debug logging to API 2025-10-15 00:35:48 +01:00
1sonhador e3975cc157 Simplify API to always return test data 2025-10-15 00:35:30 +01:00
1sonhador 205ee8ee72 Add fallback redirect data for testing 2025-10-15 00:35:14 +01:00
1sonhador c8c4b8a750 Adapt public analytics to work with redirects instead of campaigns 2025-10-15 00:34:55 +01:00
1sonhador a1cc2252ad Add debug logging to campaign lookup 2025-10-15 00:33:20 +01:00
1sonhador 8542395fbe Add public campaign analytics functionality
- 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
2025-10-15 00:30:00 +01:00
1sonhador 16cfc1f7f0 feat: Add complete MoneyFlix documentation and CRM 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
2025-10-03 12:27:20 +01:00
1sonhador 3a715216c7 feat: Add complete isolation with dedicated documentation and deploy
- 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
2025-10-03 12:17:01 +01:00
1sonhador 5911a6246b refactor: Organize project structure with separate folders
- 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)
2025-10-03 12:13:21 +01:00
1sonhador 9d43854277 feat: Initial MoneyFlix project setup
- 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.
2025-10-03 12:09:41 +01:00