6 Commits

Author SHA1 Message Date
Z. Cliffe Schreuders
92330b04dc Enhance flag handling and XML integration for standalone mode
- Updated `GamesController` to support XML flag hints for standalone mode, improving backward compatibility with legacy flag input.
- Introduced `parse_flag_hints_xml` method in `Mission` model to extract flags from XML content.
- Enhanced `Game` model to incorporate `flags_by_vm` from player state for better flag management.
- Modified `new.html.erb` to update UI for flag hints input, replacing the previous comma-separated flags format.
- Improved `FlagStationMinigame` to display accepted VM flags and handle flag submissions more effectively.
- Adjusted scenario JSON to include flag stations with VM-specific flag handling.
2025-11-29 20:57:39 +00:00
Z. Cliffe Schreuders
3a64ffe8f1 Finalize implementation plan for VM and CTF Flag Integration following Review 4
- Updated last modified date and added new review document reference.
- Added policy methods for `GamePolicy#submit_flag?` and `MissionPolicy#create_game?`.
- Fixed authorization in `games#create` to use `:create_game?` and removed redundant `VmSet` authorization.
- Clarified loading of `hacktivity-cable.js` with CSP nonce.
- Included fallback for non-Hacktivity mode in VM set validation.
- Documented minor amendments and verification checklist for implementation readiness.
2025-11-28 15:00:13 +00:00
Z. Cliffe Schreuders
0c25124967 feat: Update VM console integration to use ActionCable for async file delivery 2025-11-28 14:23:39 +00:00
Z. Cliffe Schreuders
752fb2c4f9 Implement Review 3 updates for VM and CTF Flag Integration
- Added detailed review documentation for Hacktivity compatibility.
- Addressed critical issue: implemented missing `games#create` action in GamesController.
- Updated `MissionsController#show` to handle VM-required missions differently.
- Clarified deployment order for migration to remove unique index.
- Added recommendations for strong parameters in `games#create`.
- Documented necessary changes for flag submission and VM set display.
- Verified compatibility of model structures and updated flag submission logic.
2025-11-28 14:00:27 +00:00
Z. Cliffe Schreuders
dd720130c7 update plans 2025-11-27 23:44:51 +00:00
Z. Cliffe Schreuders
a3690b6a68 Implementation plan for VMs 2025-11-27 23:28:44 +00:00