Commit Graph

10 Commits

Author SHA1 Message Date
a9035357ec feat: add active/inactive clients count to statistics API
- Add activeClients and inactiveClients to /api/admin/statistics response
- Count clients with is_active = TRUE/FALSE

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 11:49:35 +01:00
62388bd92d fix: add is_active column to users schema and migrations
- Add is_active column to schema.sql for new deployments
- Add migration in auto-init-db.js for existing databases

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 00:51:19 +01:00
dfe2dfa7ed feat: add automatic database initialization on startup
- Create auto-init-db.js script that checks and initializes database
- Creates tables from schema.sql if not exist
- Creates default admin and employee accounts
- Generates 500,000 tickets with proper distribution
- Applies migrations for newsletter and email campaigns
- Runs automatically when backend starts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 23:47:42 +01:00
9d836eeaac feat: add user archiving (soft delete) with is_active field
- Add is_active column migration for users table
- Update user.controller.js to support isActive in profile updates
- Update admin.controller.js to support isActive filtering and updates
- Add migration script for is_active column

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 14:26:20 +01:00
33668e5a64 fix: resolve all ESLint warnings and update dependencies
- Remove unused variables and imports across codebase
- Use empty catch blocks where error object not needed
- Remove unused fs, path imports from apply-grand-prize-migration.js
- Remove unused OAuth2Client from oauth.controller.js
- Update dependencies to latest patch versions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 10:49:45 +01:00
4759ce99e7 feat: add newsletter subscription feature
- Add newsletter database table migration
- Create newsletter controller with subscribe/unsubscribe endpoints
- Add newsletter routes and validation
- Implement newsletter service with email validation
- Add setup documentation and migration scripts
- Include test page for newsletter functionality

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 00:07:44 +01:00
51d8b0cc36 fix: resolve ESLint errors and Jest configuration
- Remove extensionsToTreatAsEsm from jest.config.js (not needed with type:module)
- Add Jest globals to ESLint config (describe, it, expect, etc.)
- Fix unnecessary escape characters in debug-token-403.js
- Change no-useless-escape from error to warning
2025-11-18 16:49:19 +01:00
25c7a0b304 dev 2025-11-17 23:47:54 +01:00
720b307d7e Initial commit du frontend The Tip Top 2025-10-30 11:11:05 +00:00
c1793f6383 flatten backend folder 2025-10-28 00:31:47 +01:00