Commit Graph

130 Commits

Author SHA1 Message Date
3d7dd7212b fix: add type assertion for PRIZE_CONFIG access in historique page
Add type assertion to handle prize types that may not exist in PRIZE_CONFIG.
This is the same fix applied to app/client/page.tsx to prevent TypeScript
compilation errors when accessing PRIZE_CONFIG with dynamic prize types
(PHYSICAL, DISCOUNT, GRAND_PRIZE).

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 01:02:34 +01:00
00f5d432dc fix: remove all snake_case property accesses in modal section
Remove invalid snake_case property accesses in the ticket details modal:
- selectedTicket.user_name → selectedTicket.user (with firstName/lastName)
- selectedTicket.user_email → selectedTicket.user?.email
- selectedTicket.user_phone → selectedTicket.user?.phone
- selectedTicket.prize_name → selectedTicket.prize?.name
- selectedTicket.prize_value → selectedTicket.prize?.value
- selectedTicket.played_at → selectedTicket.playedAt

All properties now match the Ticket type definition.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 00:58:56 +01:00
ecdfb826be fix: use correct Ticket type properties in verification page
Fix property access to match the Ticket type definition:
- ticket.user_name → ticket.user?.firstName + lastName
- ticket.user_email → ticket.user?.email
- ticket.prize_name → ticket.prize?.name
- ticket.played_at → ticket.playedAt

The Ticket type uses camelCase and nested objects (user, prize),
not snake_case flat properties.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 00:52:12 +01:00
7f04ae5eca fix: add type annotation to badges object in verification page
Add Record<string, React.ReactElement> type to badges object to allow
dynamic string indexing in app/employe/verification/page.tsx.

This matches the fix already applied to page-new.tsx and resolves the
TypeScript compilation error.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 00:47:45 +01:00
a40eb7b5d1 fix: add type annotation to badges object in getStatusBadge
Add Record<string, React.ReactElement> type to badges object to allow
dynamic string indexing. This fixes TypeScript error where status string
parameter cannot be used to index the badges object.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 00:42:31 +01:00
279556cb72 fix: use correct action values for validateTicket function
Change validateTicket action parameters from lowercase "validate"/"reject"
to uppercase "APPROVE"/"REJECT" to match the function signature.

The employeeService.validateTicket function expects action type of
'APPROVE' | 'REJECT', not 'validate' | 'reject'.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 00:38:53 +01:00
84d42132ad fix: remove invalid lowercase employee role comparisons
Remove invalid comparisons against lowercase 'employee' role that don't exist
in the User type. The role type only includes uppercase 'EMPLOYEE'.

Fixed in:
- app/employe/dashboard/page.tsx (lines 42, 117)
- app/employe/layout.tsx (lines 28, 48)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 00:34:50 +01:00
f168f24072 fix: add type assertion for PRIZE_CONFIG access in client page
Add type assertion to handle prize types that may not exist in PRIZE_CONFIG
(PHYSICAL, DISCOUNT, GRAND_PRIZE). This prevents TypeScript compilation errors
when accessing the PRIZE_CONFIG object with dynamic prize types.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 00:29:52 +01:00
e422f13bed fix: remove invalid role comparisons in admin page
Remove lowercase 'admin' role checks that don't exist in the User type.
The role type is 'CLIENT' | 'EMPLOYEE' | 'ADMIN', so comparing against
lowercase 'admin' causes TypeScript compilation errors.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 00:25:05 +01:00
ce575653f7 fix: add type annotation to PieChart label in marketing-data page 2025-11-18 00:19:33 +01:00
389bfb1794 fix: remove second invalid role comparison in admin layout 2025-11-18 00:15:28 +01:00
278643c117 fix: remove invalid role comparison in admin layout 2025-11-18 00:11:59 +01:00
eee2e27ca5 fix: correct TypeScript error in page.tsx PieChart label 2025-11-18 00:08:02 +01:00
e867cbd402 fix: correct TypeScript error in PieChart label prop 2025-11-18 00:01:59 +01:00
870e8630a1 fix: correct syntax error in page.tsx and add privacy/terms pages for OAuth compliance 2025-11-17 23:56:34 +01:00
3ff0f8ccac Merge branches 'dev' and 'dev' of https://gitea.wk-archi-o24a-15m-g3.fr/wkadmin/the-tip-top-frontend into dev 2025-11-17 23:43:46 +01:00
2f7abde4ea dev 2025-11-17 23:38:02 +01:00
b547b01ffd test 1: change homepage title to verify project setup 2025-11-10 20:56:41 +01:00
d696dade89 test 1: change homepage title to verify project setup 2025-11-10 17:45:39 +01:00
ed75871a28 Fix Jenkinsfile syntax (clean comments) 2025-11-04 18:57:07 +01:00
f104643847 Fix Jenkinsfile: force recreate + health check 2025-10-31 01:08:16 +01:00
28416fe27b Fix Jenkinsfile: force recreate + health check 2025-10-31 00:57:21 +01:00
58483dfbc5 Fix Jenkinsfile: force recreate + health check 2025-10-31 00:56:42 +01:00
246f154793 Fix Jenkinsfile: force recreate + health check 2025-10-30 21:17:36 +01:00
2160d56a12 Fix Jenkinsfile: force recreate + health check 2025-10-30 21:13:25 +01:00
ed7aca1eb5 flatten backend folder 2025-10-30 20:09:30 +01:00
8e871804d3 flatten backend folder 2025-10-30 16:20:38 +01:00
598b8e4e1a flatten backend folder 2025-10-30 16:17:59 +01:00
0800dfd365 Initial commit du frontend The Tip Top 2025-10-30 11:11:59 +00:00
8be1c840da feat: initial Next.js frontend 2025-10-28 22:48:49 +00:00