GitG0r0 6d25a499b2 feat: Centralized navigation system with HandleNavigate hook
BREAKING CHANGE: Replaced all direct useNavigate() usage with HandleNavigate hook

## Summary
- Complete frontend navigation refactoring
- Centralized route management with routes.js
- Converted 18+ components to use HandleNavigate
- Enhanced navigation with 20+ type-safe functions

## New Files
- src/utils/routes.js - Central route constants and helpers
- Documentations/FRONTEND_CODING_GUIDELINES.md - Frontend best practices (300+ lines)
- Documentations/NAVIGATION_REFACTORING_REPORT.md - Detailed refactoring report (400+ lines)

## Modified Components (18+)
### Pages
- Home.jsx, LoginForm.jsx, RegisterForm.jsx
- ResetPassword.jsx, VerifyEmailPage.jsx
- DeckCreator.jsx, Card_display.jsx
- Lobby.jsx, GameTest.jsx, ChooseDeck.jsx, PlayerSetup.jsx
- Landingpage.jsx

### Components
- Userdetails.jsx, DeckInfoPopUp.jsx
- PlayMenu.jsx, LandingPage.jsx, DeckManager.jsx

### Hooks
- useRequireAuth.jsx

### Core
- App.jsx - Route constants integration
- HandleNavigate.jsx - Enhanced with 20+ navigation functions

## Key Improvements
 Type-safe navigation (goDeckDetails(id) vs navigate('/deck/'+id))
 Automatic scroll management
 Centralized state passing
 Single source of truth for routes
 Backwards compatibility aliases
 Zero compile errors
 Production ready

## Validation
- useNavigate: Only in HandleNavigate.jsx
- navigate() calls: 0 direct usage
- Compile errors: 0
- Documentation: Complete
2025-11-17 09:07:05 +01:00
2025-11-07 20:00:24 +01:00
2025-11-10 19:20:36 +01:00
fix
2025-10-23 21:16:04 +02:00
2025-10-22 22:03:50 +02:00
fix
2025-10-23 21:16:04 +02:00
2025-08-23 00:05:18 +02:00

SerpentRace

  • Frontend: React (Vite)
  • Backend: Node.js (Express.js)

Development Commands

# Windows
.\docker-manage.bat dev:watch

# Linux/Mac  
./docker-manage.sh dev:watch

Automatically syncs file changes and rebuilds containers when needed.

Traditional Start

# Windows
.\docker-manage.bat dev:start

# Linux/Mac
./docker-manage.sh dev:start

Documentation

S
Description
No description provided
Readme 3.1 GiB
Languages
TypeScript 61.8%
JavaScript 31.1%
HTML 3.2%
Batchfile 1.5%
PLpgSQL 1.3%
Other 1.1%