Skip to content

Gaime#2

Open
dc74089 wants to merge 55 commits intomainfrom
gaime
Open

Gaime#2
dc74089 wants to merge 55 commits intomainfrom
gaime

Conversation

@dc74089
Copy link
Copy Markdown
Owner

@dc74089 dc74089 commented Sep 24, 2025

No description provided.

dc74089 and others added 16 commits September 16, 2025 10:31
…dependencies and fix `Question` model primary key.
- Added `used` field to the Question model.
- Implemented question selection, rendering, and tracking in admin view.
- Updated game and TV handlers to handle and display questions dynamically.
- Created partial templates for text and image-based questions.
- Enhanced `scripts.py` with random question intro generator.
- Implemented "review" and "scores" states in game logic.
- Added admin controls for triggering review and scores views.
- Enhanced TV handlers to handle and display new game states.
- Refactored question rendering into reusable `_question_html` function.
- Created partial template for leaderboard display.
- Expanded `scripts.py` with random AI explanation generators.
- Updated AI tools with leaderboard summarization support.
…improvements

- Introduced `init_client` event for client connection handling with welcome message.
- Added `shatter_groups` event for group reset functionality.
- Enhanced leaderboard display to format scores with two decimal places.
- Integrated AI-based leaderboard summary with speech generation in TV handler.
- Adjusted leaderboard limit to top 5 players and refined game display templates.
- Updated admin controls to include "Twist Time" button for group shattering.
…improvements

- Introduced `init_client` event for client connection handling with welcome message.
- Added `shatter_groups` event for group reset functionality.
- Enhanced leaderboard display to format scores with two decimal places.
- Integrated AI-based leaderboard summary with speech generation in TV handler.
- Adjusted leaderboard limit to top 5 players and refined game display templates.
- Updated admin controls to include "Twist Time" button for group shattering.
- Introduced `team_name` and `get_team` events for managing and displaying player team assignments.
- Added new templates `screen_player_teamname.html`, `screen_tv_twist.html`, and `screen_player_wait.html` for dynamic UI updates.
- Enhanced `shatter_groups` and related handlers to support the twist feature with new speech script.
- Updated client-side logic to manage player IDs and handle team trigger events.
- Refined admin and TV handlers for smooth integration of team and twist functionality.
- Introduced `screen_player_question.html` for player question display.
- Added logic to handle player answers with `submit` function in client-side script.
- Extended server-side handlers to process answers, update scores, and emit new question screen.
- Refactored imports and added `_add_to_score` for score management.
…ag for game availability

- Added `@staff_member_required` decorator to protect `tv`, `admin`, and `players` views.
- Introduced `gaime.tools.context.context_processor` for handling `gaime_available` feature flag.
- Updated navbar to conditionally display "G(ai)me Show" link based on feature flag state.
- Enhanced `screen_player_select.html` UI with new header and layout adjustments.
- Added `_mark_all_unused` function to reset the `used` status of all questions.
- Updated admin handler to invoke `_mark_all_unused` during game state reset.
- Added a subtitle "No MacBooks needed" to `screen_tv_title.html`.
- Added `X-Forwarded-Proto` and `X-Forwarded-For` headers to improve proxy handling in nginx.
- Added `SECURE_PROXY_SSL_HEADER` for secure proxy communication.
- Enabled `USE_X_FORWARDED_HOST` for handling forwarded host headers.
- Introduced `aipd.html` template for a new AI in Assessment resource page.
- Added URL path `aipd` and corresponding view to render the page.
- Included multiple domain-specific formative assessment examples within the template.
- Replaced placeholder link in `aipd.html` with a Canva design link for today's slides.
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