gcivil-nyu-org / INET-Monday-Fall2023-Team-5

3 stars 5 forks source link

Implement Moon Sign Interpretation Sharing Feature #291 #294

Closed aya0221 closed 11 months ago

aya0221 commented 11 months ago

This commit introduces the functionality for users to share their personal moon sign interpretations for each moon phase as outlined in user story https://github.com/gcivil-nyu-org/INET-Monday-Fall2023-Team-5/issues/185.

Key changes include:

Update game/models.py to support moon phase message recording and retrieval. Modify game/consumers.py to handle WebSocket communication for moon phase interpretation events. Adjust game/forms.py to include forms for moon sign interpretation submission. Enhance game/templates/game_progress.html to allow users to input and submit their moon phase interpretations dynamically. Refine game/views.py to process the form submissions and update the user profile accordingly. The feature pre-populates existing interpretations for the user and enables immediate reflection of the shared interpretations in the game's reaction system. The logic ensures ambiguity in moon signs is handled, allowing users to select their choice for such instances.

The feature has been thoroughly tested to ensure it meets the acceptance criteria set forth in the user story. Unit tests have been updated to reflect the new functionality, ensuring comprehensive coverage.

All changes are backward compatible and do not disrupt existing game flows. The deployment to the production environment has been prepared and will be monitored for performance and user feedback.