Skip to content

Consolidate live games + logs into one Games page#95

Open
b006n97 wants to merge 1 commit into
pr-11-polishfrom
pr-7-games
Open

Consolidate live games + logs into one Games page#95
b006n97 wants to merge 1 commit into
pr-11-polishfrom
pr-7-games

Conversation

@b006n97

@b006n97 b006n97 commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Merge the separate LiveGames and GameLogs views into a single /games page:

  • Games.tsx composes LiveGamesSection + GameLogsSection under shared GameSectionHeader.
  • LiveGames.tsx / GameLogs.tsx refactored to export those sections and share GameSummaryCard -> GameSummaryBody, with placement.ts (new) as the shared place-color/label source and Utils.formatRelativeTime for "5m ago" stamps.
  • App.tsx: /games/current/{jp,hk} collapse to /games/current; /games now renders Games. (Record-game /games/create routing is migrated in the next PR.)

placement.ts is added here as an additive shared helper; the record-game flow picks it up in the following PR. Record-game code is untouched and still compiles against the existing constants.

Merge the separate LiveGames and GameLogs views into a single /games page:
- Games.tsx composes LiveGamesSection + GameLogsSection under shared
  GameSectionHeader.
- LiveGames.tsx / GameLogs.tsx refactored to export those sections and share
  GameSummaryCard -> GameSummaryBody, with placement.ts (new) as the shared
  place-color/label source and Utils.formatRelativeTime for "5m ago" stamps.
- App.tsx: /games/current/{jp,hk} collapse to /games/current; /games now
  renders Games. (Record-game /games/create routing is migrated in the next PR.)

placement.ts is added here as an additive shared helper; the record-game flow
picks it up in the following PR. Record-game code is untouched and still
compiles against the existing constants.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant