undef-engine
2025-11-13
Establish MVP foundation with testing, React frontend, and provide-foundation integration
115 files · 26,728+ · 1,212-
React frontend with WebSocket real-time communication
10 files changed
App.tsxMain React application entry pointGameBoard.tsxCore game board componentLobby.tsxGame lobby componentRoomList.tsxRoom browsing componentButton.tsxReusable button componentCard.tsxCard display componentInput.tsxForm input componentuseWebSocket.tsWebSocket hook for real-time server communicationgameStore.tsZustand state management storegame.tsTypeScript game type definitions
- Created React + TypeScript frontend with Vite, Tailwind CSS, and Vitest
instantiate
architectural
4 files
App.tsxvite.config.tstailwind.config.jsvitest.config.ts
- Added components for game board, lobby, room list, buttons, cards, and inputs
instantiate
behavioral
6 files
GameBoard.tsxLobby.tsxRoomList.tsxButton.tsxCard.tsxInput.tsx
- Implemented WebSocket hook for real-time server communication
instantiate
behavioral
1 file
useWebSocket.ts
- Added game store with Zustand for state management
instantiate
internal
1 file
gameStore.ts
Comprehensive testing infrastructure
9 files changed
card_swapping.featureBDD feature for card swappingdeck_management.featureBDD feature for deck managementgame_flow.featureBDD feature for game flowroom_management.featureBDD feature for room managementwebsocket_communication.featureBDD feature for WebSocket communicationcommon_steps.pyShared BDD step implementationstest_game_logic_comprehensive.pyComprehensive game logic teststest_models_comprehensive.pyComprehensive model teststest_complete_game_flow.pyFull game flow integration tests
- Added comprehensive BDD/behave tests covering card swapping, deck management, game flow, room management, and WebSocket communication
qualify
behavioral
5 files
card_swapping.featuredeck_management.featuregame_flow.featureroom_management.featurewebsocket_communication.feature
- Created pytest fixtures and integration tests for server endpoints, edge cases, and realistic gameplay
qualify
internal
4 files
conftest.pytest_server_endpoints.pytest_edge_cases.pytest_realistic_gameplay.py
- Created E2E tests with Playwright for basic, game flow, multi-client, and diagnostic scenarios
qualify
internal
4 files
basic.spec.tsgame-flow.spec.tsmulti-client.spec.tsdiagnostic.spec.ts
Production infrastructure with provide-foundation
7 files changed
foundation.pyProvide-foundation integration for logging, metrics, and resiliencedefaults.pyServer default configuration valuesconfig.pyServer configuration modulegame_handlers_player.pyPlayer action handlers split from maingame_handlers_therapist.pyTherapist game mode handlersgame_utils.pyShared game utility functionsroutes.pyHTTP route definitions
- Integrated provide-foundation for logging, metrics, and resilience
baseline
behavioral
2 files
foundation.pypyproject.toml
- Created defaults.py and config.py using provide.foundation patterns
baseline
internal
2 files
defaults.pyconfig.py
Game logic fixes and documentation
4 files changed
game_logic.pyFixed game flow and answer card mechanicsmvp-roadmap.mdMVP roadmap and production readiness plantesting-guide.mdTesting guide documentationARCHITECTURE.mdArchitecture documentation with logging improvements