Commit Graph
61 Commits
Author SHA1 Message Date
1sonhador c2fecefa55 refactor: Remove BetZoo and WDMI references, standardize to MoneyFlix
- Replace "BetZoo CRM" with "MoneyFlix" in Advertising module description
- Replace "Betzoo" option with "MoneyFlix" in ErrorMonitoring project filter
- Update GoogleSheetsService to use environment variable for credentials path
- Update CDN config from betzoo.app to moneyflix.com
- Remove WDMI-specific checks in layouts (topbar, sidebar, main, public-blank)
- Update database profile examples from wdmi_importer to moneyflix_importer
- Keep BitReport references (company/product name)
2025-10-30 10:00:46 +00:00
1sonhador 956b0547e8 fix: Resolve PHP syntax errors and deprecation warnings
- Fix syntax error in coming/soon.php (missing closing parenthesis)
- Fix JavaScript syntax errors in coming/soon.php
- Fix nullable parameter deprecation warnings in ErrorLog.php
- Fix nullable parameter deprecation warnings in LandingTemplateModel.php
- All PHP files now pass syntax validation
- No more deprecated parameter warnings
2025-10-28 16:26:34 +00:00
1sonhador 831145b2c4 refactor: Remove ScriptBuilderService from MoneyFlix
- Remove ScriptBuilderService and ScriptBuilderIntegrationService (CRM-specific)
- Update controllers to use GoogleSheetsService instead
- Disable script generation/deployment functionality temporarily
- Fix creative count TODO in AdvertisingController
- Clean up module service registrations
- Restore clean User Views files

ScriptBuilder functionality is specific to the main CRM and not needed for MoneyFlix.
2025-10-28 16:18:30 +00:00
1sonhador 381ac55f6c feat: Add ErrorMonitoring API endpoints and raw_request migration
- Add apiResolveAllErrors endpoint to resolve all open errors at once
- Add apiClearAllErrors endpoint to clear all errors
- Update ErrorLog model with new methods
- Add migration for raw_request column in redirect_stats
- Complete view/click tracking functionality
2025-10-28 15:52:09 +00:00
1sonhador 0283e966a9 MoneyFlix: Add remaining assets and source maps
- Add source maps and license files for compiled assets
- Add debug and test files for development
- Complete Git repository with all necessary files for MoneyFlix project
2025-10-22 18:09:55 +01:00
1sonhador 97eca96f83 MoneyFlix: Add Auth module, fix error monitoring, improve lock screen functionality
- Add complete Auth module with login, logout, lock screen functionality
- Fix 401 error on error monitoring page by adding /error-monitoring/ to public patterns
- Improve lock screen with proper form handling and unlock functionality
- Add RoleModel and role management views
- Add BaseModel for common model functionality
- Update authentication system and middleware
- Add troubleshooting documentation
- Update assets and build tools
2025-10-22 18:09:43 +01:00
1sonhador 10176fd47e feat: Add real user activity tracking system
- Create UserActivitiesTable migration for tracking user activities
- Create UserActivityModel for managing activity data
- Replace mock data in apiGetRecentActivity with real database data
- Remove all mock/fake data from the project
2025-10-15 14:37:59 +01:00
1sonhador c4189cefa7 cleanup: Remove test files
- Remove test_auth.php and test_auth_middleware.php
- These were temporary debugging files
2025-10-15 14:34:15 +01:00
1sonhador f75573768c fix: Allow API key access to UserController::apiGetRecentActivity
- Apply same fix as apiGetUsers to allow API key authentication
- Check if user is logged in and admin, OR if using valid API key
2025-10-15 14:33:41 +01:00
1sonhador 298ed9cf32 fix: Allow API key access to UserController::apiGetUsers
- Check if user is logged in and admin, OR if using valid API key
- This allows API access with Bearer token authentication
- Fixes 'Acesso negado' error for API key requests
2025-10-15 14:33:03 +01:00
1sonhador f88fc2412b fix: Remove requireAuth call from UserController::apiGetUsers
- Remove redundant requireAuth call since apiOrAuth middleware handles authentication
- This was causing 'Authentication required' error even with valid API key
2025-10-15 14:32:28 +01:00
1sonhador c8e92ead2e fix: Use apiOrAuth instead of requireAuth for user API routes
- Change all user API routes to use apiOrAuth middleware
- This allows API access with Bearer token authentication
- Fixes 302 redirects for API endpoints
2025-10-15 14:30:11 +01:00
1sonhador 4656a0877b fix: Add last_login column to users table
- 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
2025-10-15 14:27:23 +01:00
1sonhador 57f9a715c2 fix: Remove non-existent last_login column from UserModel queries
- 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
2025-10-15 14:26:26 +01:00
1sonhador f670e9301a fix: Add missing API routes and methods
- Add recent-activity route to Users module
- Add apiGetRecentActivity method to UserController
- Fix composer autoloader path in index.php
- Install composer dependencies on server
2025-10-15 14:23:57 +01:00
1sonhador 362d2f9488 fix: Correct user permissions and UserModel query
- 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
2025-10-15 14:17:55 +01:00
1sonhador 88a5659fe8 fix: Correct user permissions and UserModel query
- 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
2025-10-15 14:14:00 +01:00
1sonhador 08223585f7 test: Add olamundo.php to verify deploy path 2025-10-15 13:50:04 +01:00
1sonhador 968e7b3451 feat: Import ErrorMonitoring module from old CRM
- Add complete ErrorMonitoring module with controllers, models, services
- Include error dashboard, error detail views, and error import functionality
- Add error monitoring API endpoints and error collection services
- Fix missing error monitoring system for critical error tracking
2025-10-15 13:48:48 +01:00
1sonhador 2cab67b1ab fix: Add missing Auth class and UserModel methods
- Import Auth.php from old CRM to fix authentication
- Add getAllForAdmin, getTotalForAdmin, findForAdmin methods to UserModel
- Fix admin users API endpoints functionality
- Resolve 'Erro ao carregar utilizadores' error
2025-10-15 13:45:44 +01:00
1sonhador 0d76c40980 feat: Import Users module from old CRM
- 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
2025-10-15 13:42:07 +01:00
1sonhador 11d9bf8e4f fix: Add redirectsList JavaScript function to redirects index page
- 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
2025-10-15 13:39:13 +01:00
1sonhador 3f66fcf984 fix: Add analytics_slug to API redirects endpoint
- Include analytics_slug in apiRedirects() query
- Fix missing analytics_slug in Vue.js data
- Ensure analytics links appear in redirects list
2025-10-15 13:33:17 +01:00
1sonhador 490d54f41d fix: Add debug check for analytics_slug in view page
- Add conditional check to show warning if analytics_slug is missing
- Improve error handling for missing analytics data
- Add visual feedback for debugging
2025-10-15 13:30:49 +01:00
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