Commit Graph

12 Commits

Author SHA1 Message Date
5b57d941b9 fix: update dependencies to resolve security vulnerabilities
- Upgrade next from 14.2.4 to 14.2.33 (fixes critical CVEs)
- Upgrade nodemailer from 7.0.10 to 7.0.11 (fixes DoS vulnerability)
- Upgrade eslint-config-next to 14.2.33

Remaining 3 high vulnerabilities are in glob CLI tool (dev-only,
not exploitable in web context) and require Next.js 15 migration.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-06 16:51:50 +01:00
9013551659 feat: add reCAPTCHA, reset-password, sort tickets, update dates
- Add reCAPTCHA v2 to registration form
- Add reset-password page for password recovery
- Fix forgot-password to call real API
- Sort employee pending tickets (most recent first)
- Update contest dates (validation: Dec 1-31, recovery: Dec 1 - Jan 31)
- Update draw date to Feb 1, 2026
- Improve GamePeriod and GrandPrize components design

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 16:35:19 +01:00
a31999a037 test: add unit tests for utils/helpers.ts with 87% coverage
- Install Jest and testing dependencies
- Configure Jest with coverage reporting (lcov for SonarQube)
- Add comprehensive tests for all helper functions
- Update package.json test script to run with coverage

Test coverage:
- 42 tests passing
- 87.87% line coverage on helpers.ts
- 84.78% statement coverage

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 13:50:13 +01:00
86d90c8f3e feat: add Prometheus metrics endpoint
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 15:17:56 +01:00
7febb137e9 feat: add SonarQube integration, cookie consent, and authentication improvements
- Add SonarQube configuration for code quality analysis
  - sonar-project.properties with TypeScript/Next.js settings
  - .sonarignore to exclude build artifacts and dependencies
  - npm run sonar script
  - Jenkins pipeline stages for SonarQube analysis and quality gate

- Implement cookie consent banner
  - New CookieConsent component with matching site colors
  - localStorage persistence for user choice
  - Accept/Reject buttons with proper styling
  - Link to cookies policy page

- Add strict authentication protection for game page
  - Redirect unauthenticated users to login from /jeux
  - Clean up redundant auth checks and UI elements
  - Preserve redirect parameter for post-login navigation

- Implement smart navigation with auth-aware redirects
  - "Jouer maintenant" button redirects based on auth status
  - "Participer au jeu" footer link with conditional routing
  - Authenticated users go to /jeux, others to /register

- UI improvements and cleanup
  - Remove "Voir les lots" button from homepage
  - Remove "Gestion des cookies" from footer
  - Remove "À propos" from footer navigation
  - Consistent design across components

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 01:23:50 +01:00
7ed5cc83b0 fix: downgrade ESLint to v8 for Next.js compatibility
- Downgrade ESLint from v9 to v8.57.0 (required by eslint-config-next)
- Replace eslint.config.js with .eslintrc.json
- Remove incompatible ESLint plugins
- Use standard Next.js ESLint configuration

This resolves the peer dependency conflict where eslint-config-next
requires ESLint 7 or 8, not 9.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 15:49:11 +01:00
e136ee685f fix: improve CI/CD quality checks and fix ESLint configuration
Frontend fixes:
- Add eslint-config-next package to devDependencies
- Update Jenkinsfile to block deployments on failed lint/tests
- Add proper error handling for quality checks

This ensures that the deployment only proceeds when all quality
checks pass successfully, preventing broken code from being deployed.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-18 15:38:12 +01:00
2f7abde4ea dev 2025-11-17 23:38:02 +01:00
a2e8df4850 Fix Jenkinsfile syntax (clean comments) 2025-11-04 18:50:01 +01:00
567de6d11e Fix Jenkinsfile syntax (clean comments) 2025-11-04 18:43:48 +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