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 |
|
Barni
|
94943d4988
|
Handlenavigate
|
2025-10-26 17:46:21 +01:00 |
|
magdo
|
630283e922
|
Merge branch 'main' of https://git.mdnd-it.cc/Donat/SerpentRace into barni
|
2025-10-24 20:01:32 +02:00 |
|
Barni
|
0ed75beb3f
|
navbar meg fooldal navigációk illetve companies -> contacts
|
2025-10-24 19:55:37 +02:00 |
|
magdo
|
a5f38f791d
|
To The Top
|
2025-10-24 19:37:13 +02:00 |
|
Barni
|
d16d481d86
|
Navbar,landing, meg a többi frontend javítás
|
2025-10-22 15:15:20 +02: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 |
|
mategergely33
|
a5dd9003c1
|
userflow_fix
|
2025-10-15 15:13:53 +02:00 |
|
Walke
|
19c762fe67
|
[#56] Landing Pagehttps://project.mdnd-it.cc/work_packages/56
|
2025-07-07 10:11:41 +02:00 |
|