diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 34dc76d..9f05e5a 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -4,7 +4,6 @@ import { NavLink, Navigate, Route, Routes, useLocation } from "react-router-dom" import { WalkupProvider, useWalkupContext } from "./hooks/useWalkupContext"; import { useSession } from "./hooks/useSession"; import { DashboardPage } from "./pages/DashboardPage"; -import { GamePage } from "./pages/GamePage"; import { LibraryPage } from "./pages/LibraryPage"; import { OperatorPage } from "./pages/OperatorPage"; import { ProfilePage } from "./pages/ProfilePage"; @@ -18,10 +17,8 @@ function getRouteDestinationLabel(pathname: string) { return "your dashboard"; case "/library": return "walkup clips"; - case "/games": - return "game clips"; case "/operator": - return "the operator console"; + return "gameday"; default: return "this page"; } @@ -260,11 +257,8 @@ function ShellLayout() { `nav-link${isActive ? " active" : ""}`}> Walkup Clips - `nav-link${isActive ? " active" : ""}`}> - Games - `nav-link${isActive ? " active" : ""}`}> - Operator + Gameday `nav-link${isActive ? " active" : ""}`}> Profile @@ -281,7 +275,7 @@ function ShellLayout() { } /> } /> } /> - } /> + } /> } /> diff --git a/frontend/src/pages/DashboardPage.tsx b/frontend/src/pages/DashboardPage.tsx index d220272..c311f09 100644 --- a/frontend/src/pages/DashboardPage.tsx +++ b/frontend/src/pages/DashboardPage.tsx @@ -38,7 +38,7 @@ export function DashboardPage() {
-

Next game

+

Next game

{walkup.nextGame ? ( <> {formatGameTitle(walkup.nextGame)} @@ -48,13 +48,6 @@ export function DashboardPage() { -
) : ( @@ -66,22 +59,20 @@ export function DashboardPage() {
-

Other games

+

Upcoming games

{walkup.eventsQuery.isLoading ?
Loading games...
: null} {walkup.games.slice(0, 8).map((game) => ( - +
))} {!walkup.eventsQuery.isLoading && !walkup.games.length ? (
No games were returned for the selected team.
diff --git a/frontend/src/pages/OperatorPage.tsx b/frontend/src/pages/OperatorPage.tsx index 0f4fcd5..240c7eb 100644 --- a/frontend/src/pages/OperatorPage.tsx +++ b/frontend/src/pages/OperatorPage.tsx @@ -193,7 +193,7 @@ export function OperatorPage() { const triggerAssignmentMutation = useMutation({ mutationFn: (assignmentId: number) => { if (!playbackSessionId) { - throw new Error("Start an operator session first"); + throw new Error("Start a gameday session first"); } return api.triggerPlaybackAssignment(selectedGameId, playbackSessionId, assignmentId); }, @@ -202,7 +202,7 @@ export function OperatorPage() { const triggerClipMutation = useMutation({ mutationFn: (clip: AudioClip) => { if (!playbackSessionId) { - throw new Error("Start an operator session first"); + throw new Error("Start a gameday session first"); } return api.triggerPlaybackClip(selectedGameId, playbackSessionId, clip.id, selectedPlayerId); }, @@ -402,7 +402,7 @@ export function OperatorPage() { if (!walkup.isTeamSnap) { return (
-
Reconnect with TeamSnap to run operator mode.
+
Reconnect with TeamSnap to run gameday mode.
); } @@ -412,7 +412,7 @@ export function OperatorPage() { {isPlaybackPlaying && nowPlaying ? (
- Now playing + Now Playing {nowPlaying.title} {nowPlaying.subtitle}
@@ -427,10 +427,10 @@ export function OperatorPage() {
) : null}
-

Operator mode

-

{selectedGame ? formatGameTitle(selectedGame) : "Select a game to operate"}

+

Gameday mode

+

{selectedGame ? formatGameTitle(selectedGame) : "Select a game for gameday"}

- Any player can operate. The player list now follows the event lineup first, then RSVP order, and each expanded + Any player can run gameday. The player list now follows the event lineup first, then RSVP order, and each expanded row shows the current game clips before the player's library clips.

@@ -605,7 +605,7 @@ export function OperatorPage() {

Session

Team: {formatTeamLabel(walkup.selectedTeam)}
Game: {selectedGame ? formatGameDate(selectedGame) : "Select a game"}