Skip to content

Assignment#130

Open
DarshanVijaykumar wants to merge 13 commits into
everest-engineering:mainfrom
DarshanVijaykumar:assignment
Open

Assignment#130
DarshanVijaykumar wants to merge 13 commits into
everest-engineering:mainfrom
DarshanVijaykumar:assignment

Conversation

@DarshanVijaykumar

@DarshanVijaykumar DarshanVijaykumar commented Jun 11, 2026

Copy link
Copy Markdown

Summary

Contributor

DarshanVijaykumar and others added 13 commits June 10, 2026 11:58
Add hostId to Room and RoomSnapshot models. createRoom sets hostId to
the creator's participant id. toRoomSnapshot exposes hostId. Add
startRoom() service with host-only and minimum-player guards.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tighten playerName validation on both schemas to trim + min(1). Add
startRoomSchema. Add frontend guards in CreateRoomPage and JoinRoomPage
that block submission when name or code is empty/whitespace-only.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Poll GET /rooms/:code every 2s; stop polling on unmount. Navigate to
/game when status becomes active. Show host badge next to the host
participant. Fix API base URL default (remove /bug suffix). Add
startRoom to api and startGame to RoomStore.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add POST /rooms/:code/start endpoint. Returns 403 if caller is not the
host and 409 if fewer than 2 participants are present. Transitions room
status to active on success.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add unit tests for startRoom: success path, not-host rejection (403),
insufficient players (409), and room-not-found (404). Also verify
createRoom sets hostId to the creator's participant id.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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