Skip to content

fix: initialize games-xblock correctly in preview mode#21

Merged
viv-helix merged 3 commits intomainfrom
fix/TNL2-468
Dec 19, 2025
Merged

fix: initialize games-xblock correctly in preview mode#21
viv-helix merged 3 commits intomainfrom
fix/TNL2-468

Conversation

@viv-helix
Copy link
Contributor

@viv-helix viv-helix commented Dec 16, 2025

Description

This PR addresses multiple issues in the Games XBlock related to preview behavior, multi-XBlock usage, and versioning.

Changes

  1. Fixed preview mode for Games XBlock:

    • Corrected preview behavior for both Matching and Flashcards game types
    • Preview now accurately reflects in-course behavior
  2. Fixed game start issues when multiple Games XBlocks are present:

    • Resolved conflicts that prevented a game from starting when two or more Games XBlocks exist within the same unit
    • Each XBlock now initializes and runs independently as expected
  3. Version bump:

    • Incremented the XBlock version to reflect the fixes and improvements included in this release

Impact

  • Authors can reliably preview Matching and Flashcards games
  • Courses can safely include multiple Games XBlocks in a single unit
  • No breaking changes for existing content

Testing

  • Verified preview mode for both Matching and Flashcards game types
  • Tested multiple Games XBlocks within the same unit to confirm each starts correctly
  • Confirmed version bump is applied and packaged correctly

Jira

Screenshot

preview-mode.mp4

@viv-helix viv-helix changed the title fix: preview mode in gamexblock fix: initialize games-xblock correctly in preview mode Dec 16, 2025
@viv-helix viv-helix force-pushed the fix/TNL2-468 branch 2 times, most recently from a3487e7 to 30d37dd Compare December 16, 2025 13:51
@viv-helix viv-helix merged commit 2e22ebf into main Dec 19, 2025
4 checks passed
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.

3 participants