five-on-it / apps/client/src/ui/nav
apps/client/src/ui/nav
Where a game page sits, without React: its breadcrumbs from the main menu down and its Back, which always goes to the page's logical parent (never the browser's history, so a page opened from a link still has its way home):
| From | Back goes to |
|---|---|
| the page of games | the main menu |
| a list of it (Your games…) | the page of games |
| a game's page | the page of games |
| a lobby | its game (opened from it, &from=game), else Play together |
| Play together, the profile, the leaderboard | the page of games |
| the creation page | the main menu (one creation: the creation page) |
| the studio | its creation (&job=), else Your games |
| the admins' page | the main menu |
PageHeader.tsx draws it; the pages tell it what they learn (a game's title, a lobby's game) through TrailKnown. Every page reaches the main menu in a few Backs, which the navigation crawl (tests/e2e/specs/platform/navigation.spec.ts) walks.