Frontend: lobby browser + create/join lobby #39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Players need a way to find, create, and join game lobbies.
Files to create
apps/web/src/routes/multiplayer.tsx— main multiplayer page.apps/web/src/components/multiplayer/LobbyBrowser.tsx— public lobby list.apps/web/src/components/multiplayer/CreateLobby.tsx— form: game mode, public/private.apps/web/src/components/multiplayer/JoinByCode.tsx— code input for private lobbies.Behavior
GET /api/v1/lobbies./api/v1/lobbies, navigate to lobby view./api/v1/lobbies/:code/join, navigate to lobby view.Acceptance criteria
Notes
Use TanStack Query for fetching. API URL from
import.meta.env.VITE_API_URL.credentials: 'include'on all fetches. Game mode names from@lila/sharedconstants.