16 Commits
Author SHA1 Message Date
jessy-david-dev 08f67ee4f5 fix(multi): prevent host pruning and increase timeout to 90s
- Exempt host from inactivity pruning to prevent room corruption
- Increase player timeout from 45s to 90s for slower connections
- Reduce heartbeat interval from 20s to 15s for better coverage
- Refresh all players' lastSeen on nextRound/resetGame to avoid immediate pruning
2026-04-17 15:35:13 +02:00
jessy-david-dev 2e2d22fc39 fix(multi): add periodic heartbeat every 20s to prevent players being pruned in lobby 2026-04-17 15:20:42 +02:00
jessy-david-dev 50d8814eb6 fix(multi): add missing timer dependency to navigate callback 2026-04-15 19:33:00 +02:00
jessy-david-dev 6ba0df304f feat(lobby): allow up to 100 players per room 2026-04-15 19:26:50 +02:00
jessy-david-dev afe1dfd2d7 refactor(sse): improve error handling and connection cleanup 2026-04-14 16:32:32 +02:00
jessy-david-dev 90b14919c5 feat(multiplayer): replace polling with server-sent events and redis pub/sub 2026-04-14 16:00:09 +02:00
jessy-david-dev 2a3dd6be56 fix: sync totalRounds changes to server, filter geographic admin articles, validate user exists before saving game 2026-04-13 15:42:00 +02:00
jessy-david-dev 169f71c67d fix(multi): sync game mode changes to server in lobby 2026-04-12 23:59:40 +02:00
jessy-david-dev b1fcbbdb04 feat(multi): add configurable time limit per round with countdown display 2026-04-11 22:41:40 +02:00
jessy-david-dev 54c4400393 feat(multi): add go back button with extra click penalty 2026-04-11 22:30:47 +02:00
jessy-david-dev d268905f2d style: apply prettier formatting across codebase 2026-04-11 22:25:34 +02:00
jessy-david-dev 1153f574a4 fix(multi): prevent player kick on slow load and background tab throttling 2026-04-11 22:12:39 +02:00
jessy-david-dev ede083f881 fix(multi): restrict search and game settings to room host only 2026-04-11 22:02:06 +02:00
jessy-david-dev 0401cdffe6 feat(multi): add game mode selection and surrender button for all_finish mode 2026-04-11 21:58:35 +02:00
jessy-david-dev e9f39c572d feat(game): add configurable rounds per room 2026-04-11 13:47:05 +02:00
jessy-david-dev dc09658fdb feat: add user accounts, authentication, and game history with Prisma 7
- Implement user registration and login with NextAuth v5 (email/password, JWT)
- Add authentication modal in UI with login/register tabs
- Create user profile screen showing game statistics and history
- Integrate Prisma 7 ORM with SQLite database for data persistence
- Store game results (mode, path, clicks, time) in database
- Auto-save completed games only when user is authenticated
- Separate business logic into reusable hooks (useSoloGame, useMultiGame)
- Organize UI into composable screen components (HomeScreen, SoloScreen, ProfileScreen, etc)
- Add session persistence across F5 refresh for solo and multiplayer
- Style auth modal, account button, and profile stats dashboard
2026-04-10 15:43:07 +02:00