Skip to content

Commit 878a366

Browse files
author
DavidQ
committed
Reduce games workspace boot tech debt by introducing shared workspaceGameBoot module and replacing per-page duplicate guard+hydrator scripts across all launchable game index pages (batch-49 PASS).
1 parent ef09e18 commit 878a366

14 files changed

Lines changed: 58 additions & 66 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Samples2Tools batch 49 summary
2+
Generated: 2026-04-24T22:51:33.575Z
3+
Purpose: remove duplicated workspace game boot wiring across launchable game pages.
4+
5+
Completed this batch:
6+
- Added shared workspaceGameBoot module to compose launch guard and runtime hydrator
7+
- Replaced per-page duplicate guard/hydrator imports with single boot import on all launchable games
8+
- Confirmed no launchable game page still imports guard/hydrator directly
9+
10+
Primary validation artifact:
11+
- docs/dev/reports/samples2tools_batch_49_validation.txt (PASS)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Samples2Tools batch 49 validation
2+
Generated: 2026-04-24T22:51:33.575Z
3+
Scope: reduce game-page boot duplication by consolidating guard+hydrator into shared workspace boot module.
4+
5+
- [PASS] All launchable game pages use unified workspace boot module only :: launchable=11, issues=0
6+
- [PASS] workspaceGameBoot composes guard then hydrator :: games/shared/workspaceGameBoot.js
7+
8+
Checks: 2
9+
Failures: 0
10+
Result: PASS

games/AITargetDummy/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@
1212
<link rel="stylesheet" href="/src/engine/ui/baseLayout.css" />
1313
<link rel="stylesheet" href="../../src/engine/theme/main.css" />
1414
<script type="module">
15-
import { enforceWorkspaceGameLaunch } from "/games/shared/workspaceGameLaunchGuard.js";
16-
enforceWorkspaceGameLaunch("AITargetDummy");
17-
</script>
18-
<script type="module">
19-
import { hydrateWorkspaceGameRuntime } from "/games/shared/workspaceGameRuntimeHydrator.js";
20-
hydrateWorkspaceGameRuntime("AITargetDummy");
15+
import { bootWorkspaceGame } from "/games/shared/workspaceGameBoot.js";
16+
bootWorkspaceGame("AITargetDummy");
2117
</script>
2218

2319
</head>

games/Asteroids/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@
1313
<link rel="stylesheet" href="/games/shared/styles/vectorBattleFont.css" />
1414
<link rel="stylesheet" href="../../src/engine/theme/main.css" />
1515
<script type="module">
16-
import { enforceWorkspaceGameLaunch } from "/games/shared/workspaceGameLaunchGuard.js";
17-
enforceWorkspaceGameLaunch("Asteroids");
18-
</script>
19-
<script type="module">
20-
import { hydrateWorkspaceGameRuntime } from "/games/shared/workspaceGameRuntimeHydrator.js";
21-
hydrateWorkspaceGameRuntime("Asteroids");
16+
import { bootWorkspaceGame } from "/games/shared/workspaceGameBoot.js";
17+
bootWorkspaceGame("Asteroids");
2218
</script>
2319

2420
</head>

games/GravityWell/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@
1212
<link rel="stylesheet" href="/src/engine/ui/baseLayout.css" />
1313
<link rel="stylesheet" href="../../src/engine/theme/main.css" />
1414
<script type="module">
15-
import { enforceWorkspaceGameLaunch } from "/games/shared/workspaceGameLaunchGuard.js";
16-
enforceWorkspaceGameLaunch("GravityWell");
17-
</script>
18-
<script type="module">
19-
import { hydrateWorkspaceGameRuntime } from "/games/shared/workspaceGameRuntimeHydrator.js";
20-
hydrateWorkspaceGameRuntime("GravityWell");
15+
import { bootWorkspaceGame } from "/games/shared/workspaceGameBoot.js";
16+
bootWorkspaceGame("GravityWell");
2117
</script>
2218

2319
</head>

games/Pacman/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@
1212
<link rel="stylesheet" href="/src/engine/ui/baseLayout.css" />
1313
<link rel="stylesheet" href="../../src/engine/theme/main.css" />
1414
<script type="module">
15-
import { enforceWorkspaceGameLaunch } from "/games/shared/workspaceGameLaunchGuard.js";
16-
enforceWorkspaceGameLaunch("Pacman");
17-
</script>
18-
<script type="module">
19-
import { hydrateWorkspaceGameRuntime } from "/games/shared/workspaceGameRuntimeHydrator.js";
20-
hydrateWorkspaceGameRuntime("Pacman");
15+
import { bootWorkspaceGame } from "/games/shared/workspaceGameBoot.js";
16+
bootWorkspaceGame("Pacman");
2117
</script>
2218

2319
</head>

games/SolarSystem/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@
1212
<link rel="stylesheet" href="/src/engine/ui/baseLayout.css" />
1313
<link rel="stylesheet" href="../../src/engine/theme/main.css" />
1414
<script type="module">
15-
import { enforceWorkspaceGameLaunch } from "/games/shared/workspaceGameLaunchGuard.js";
16-
enforceWorkspaceGameLaunch("SolarSystem");
17-
</script>
18-
<script type="module">
19-
import { hydrateWorkspaceGameRuntime } from "/games/shared/workspaceGameRuntimeHydrator.js";
20-
hydrateWorkspaceGameRuntime("SolarSystem");
15+
import { bootWorkspaceGame } from "/games/shared/workspaceGameBoot.js";
16+
bootWorkspaceGame("SolarSystem");
2117
</script>
2218

2319
</head>

games/SpaceDuel/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@
1212
<link rel="stylesheet" href="/src/engine/ui/baseLayout.css" />
1313
<link rel="stylesheet" href="../../src/engine/theme/main.css" />
1414
<script type="module">
15-
import { enforceWorkspaceGameLaunch } from "/games/shared/workspaceGameLaunchGuard.js";
16-
enforceWorkspaceGameLaunch("SpaceDuel");
17-
</script>
18-
<script type="module">
19-
import { hydrateWorkspaceGameRuntime } from "/games/shared/workspaceGameRuntimeHydrator.js";
20-
hydrateWorkspaceGameRuntime("SpaceDuel");
15+
import { bootWorkspaceGame } from "/games/shared/workspaceGameBoot.js";
16+
bootWorkspaceGame("SpaceDuel");
2117
</script>
2218

2319
</head>

games/SpaceInvaders/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@
1212
<link rel="stylesheet" href="/src/engine/ui/baseLayout.css" />
1313
<link rel="stylesheet" href="../../src/engine/theme/main.css" />
1414
<script type="module">
15-
import { enforceWorkspaceGameLaunch } from "/games/shared/workspaceGameLaunchGuard.js";
16-
enforceWorkspaceGameLaunch("SpaceInvaders");
17-
</script>
18-
<script type="module">
19-
import { hydrateWorkspaceGameRuntime } from "/games/shared/workspaceGameRuntimeHydrator.js";
20-
hydrateWorkspaceGameRuntime("SpaceInvaders");
15+
import { bootWorkspaceGame } from "/games/shared/workspaceGameBoot.js";
16+
bootWorkspaceGame("SpaceInvaders");
2117
</script>
2218

2319
</head>

games/bouncing-ball/index.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@
1212
<link rel="stylesheet" href="/src/engine/ui/baseLayout.css" />
1313
<link rel="stylesheet" href="../../src/engine/theme/main.css" />
1414
<script type="module">
15-
import { enforceWorkspaceGameLaunch } from "/games/shared/workspaceGameLaunchGuard.js";
16-
enforceWorkspaceGameLaunch("Bouncing-ball");
17-
</script>
18-
<script type="module">
19-
import { hydrateWorkspaceGameRuntime } from "/games/shared/workspaceGameRuntimeHydrator.js";
20-
hydrateWorkspaceGameRuntime("Bouncing-ball");
15+
import { bootWorkspaceGame } from "/games/shared/workspaceGameBoot.js";
16+
bootWorkspaceGame("Bouncing-ball");
2117
</script>
2218

2319
</head>

0 commit comments

Comments
 (0)