Commit Graph

9 Commits

Author SHA1 Message Date
magdo 6b3446e9b6 final POC 2025-11-24 23:28:57 +01:00
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
Donat 7371900fc3 Merge pull request 'telos nezet landing, home, navbar, footer' (#98) from ujgege into main
Reviewed-on: #98
2025-11-14 00:39:00 +00:00
mategergely33 322059ace0 telos nezet landin, home, navbar, footer 2025-11-13 18:54:06 +01:00
zsola03 2b1217192c csatlakozas-mukodesdemodemodemo 2025-11-06 19:56:14 +01:00
Walke 237378c208 guessName+Fixes 2025-10-21 15:08:28 +02:00
Walke 27fc028bad navbarban jol le vannak kezelve a redirect es letre lett hozva egy hook amivel automatikusan berakja a usernamet es ha meg nem akkor redirectel 2025-10-15 19:08:31 +02:00
Walke 76fa204ae8 redirect fix 2025-10-15 18:39:43 +02:00
Walke 19c762fe67 [#56] Landing Pagehttps://project.mdnd-it.cc/work_packages/56 2025-07-07 10:11:41 +02:00