Commit Graph

5 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
4ab63ad068 feat: add global ticket stats to getAllTickets endpoint
Returns pending, claimed, rejected counts for all tickets

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 19:35:25 +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
86ccc3ef4f feat: add getUserById endpoint for admin user details
Added GET /api/admin/users/:id endpoint to retrieve detailed user
information including contact info, personal data, and ticket statistics.
This enables the admin interface to display comprehensive user details
when clicking the "Détails" button.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 15:07:28 +01:00
25c7a0b304 dev 2025-11-17 23:47:54 +01:00