This commit is contained in:
史悦
2025-12-16 08:57:19 +08:00
parent b8d081bd8a
commit dafb706202
46 changed files with 2610 additions and 0 deletions

11
tasks/task_012.txt Normal file
View File

@@ -0,0 +1,11 @@
# Task ID: 12
# Title: Room Management Frontend (UI for Create, Join, Match)
# Status: pending
# Dependencies: 3, 10, 11
# Priority: high
# Description: Develop the client-side UI for room management, allowing users to create private rooms, enter room codes to join, and initiate quick matchmaking.
# Details:
Create 'Create Room' modal/page with options for password, AI difficulty, round time. Implement 'Join Room' input field for room code. Implement a 'Quick Match' button. Display room lists/states. Use WebSocket to send room actions and receive updates. Show loading/waiting states during matching.
# Test Strategy:
Test creating a room and verify room code display. Test joining a room with the correct code. Test quick matchmaking flow. Verify error messages for invalid room codes or full rooms. Ensure UI updates correctly with WebSocket messages.