Commit Graph
14 Commits
Author SHA1 Message Date
Xika 988eaebc67 fix(error-hub): re-enable hub ingest via canonical drop-in (BIT-25023)
Paperclip-Issue: BIT-25023
Paperclip-Run: f1482381-ca8c-43d6-889f-effd16f8a314
2026-06-12 11:07:21 +00:00
XikaandPaperclip 7a6f91f7b6 fix(view): respect APP_URL and X-Forwarded-* headers in getBaseUrl()
When the app runs behind a reverse proxy (NPM), SERVER_PORT was 8080
(the backend port) causing asset URLs to include :8080 even though
clients access via HTTPS on port 443.

Priority: if APP_URL is set in the environment, use it directly.
Fallback: honour X-Forwarded-Proto and X-Forwarded-Port headers before
falling back to the raw SERVER vars.

Fixes crm-moneyflix.bitreport.pt asset URLs generating :8080 suffix.

Co-Authored-By: Paperclip <[email protected]>
2026-06-10 18:57:48 +00:00
XikaandCursor a5e2e0623b fix(crm): resolve PathManager root for MoneyFlix standalone clone
findRootPath() fell back to /opt/bitreport when composer.json lives
under crm/ with Modules/, breaking auth layout resolution and /login 500.

Co-authored-by: Cursor <[email protected]>
2026-06-10 17:54:57 +00:00
XikaandCursor 1c67b0744f feat: add MoneyFlix lab smoke stack and fix redirector env loading (BIT-24693)
Lab bootstrap scripts exercise CRM PHP, Node redirector, health endpoints, and
MySQL analytics on 10.10.50.17. Bearer auth is checked before session dev-login;
redirector reads CRM_API_URL at fetch time so dotenv applies correctly.

Paperclip-Task: BIT-24693
Paperclip-Run: 3467cbf0-a91f-4cb0-808a-ccb043de28d3
Co-authored-by: Cursor <[email protected]>
2026-06-08 13:06:03 +00:00
1sonhador c1ddf3548d fix: Corrigir comentários em Português - remover gerúndio incorreto
- Substituir "usando" por "com" ou "através de" onde apropriado
- Corrigir "adicionar à fila para depois" para "adicionar à fila para processamento posterior"
- Melhorar clareza e correção gramatical nos comentários
2025-10-30 10:03:01 +00:00
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 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 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 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 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 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