Promote Game Info and Player Info to nav-tab destinations - #1098
Conversation
Adds them as declarative entries in a new useGameNavItems hook (extracted from GameDetailLayout) alongside Map/Orders/Chat, so they appear in the bottom nav and desktop icon sidebar instead of only being reachable via the game dropdown menu. Selecting Map on desktop now collapses the content column so GameMap fills the remaining space. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UxmTChkYBshN1yeZa2EHhi
PR ReviewI traced the back-navigation behavior change in No correctness bugs found — 0 blocking, 0 suggestion inline comments. |
|
Warning WIP limit exceeded. There are now 10 open pull requests — the project target is 5 or fewer. Please close or merge an existing PR before continuing with this one. |
✅ Deploy Preview for diplicity-variant-creator canceled.
|




Summary
GameDetailLayoutinto a newuseGameNavItemshook (with tests) so it's shared and independently testable.GameMapfills the remaining space, since the map would otherwise be shown twice.GameDropdownMenu'sonNavigateToGameInfo/onNavigateToPlayerInfoprops are now optional and the dropdown no longer shows those entries from the two in-game screens (MapScreen,OrdersScreen) since they're reachable from the nav directly. The Home-screen dropdown (pre-phase games) is unaffected.Test plan
npx tsc -b --noEmit— cleannpm run lint— cleannpx vitest run src/hooks/useGameNavItems.test.tsx— 9/9 passingnpx vitest run src/components/GameDropdownMenu.test.tsx— 5/5 passing (unaffected)Screenshots
Desktop — before (
/tmp/shots/before-desktop-orders.png): sidebar only has Map and Chat icons.Desktop — after (
/tmp/shots/after-desktop-orders.png): sidebar gains Game Info and Player Info icons.Desktop — after, Map focused (
/tmp/shots/after-desktop-map-focused.png): selecting Map collapses the content column so the map fills the screen.Mobile — before (
/tmp/shots/before-mobile-orders.png): bottom nav has 3 tabs (Map, Orders, Chat).Mobile — after (
/tmp/shots/after-mobile-orders.png): bottom nav has 5 tabs (Map, Orders, Chat, Game Info, Player Info).🤖 Generated with Claude Code
https://claude.ai/code/session_01UxmTChkYBshN1yeZa2EHhi