Skip to content

Commit aeaaf8d

Browse files
author
DavidQ
committed
Restore Asteroids Debug Mode link (?debug=1).
Scoped fix. No changes to other samples.
1 parent 0b31263 commit aeaaf8d

4 files changed

Lines changed: 35 additions & 23 deletions

File tree

docs/dev/codex_commands.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
MODEL: GPT-5.4-codex
2-
REASONING: high
1+
MODEL: GPT-5.3-codex
2+
REASONING: low
33

44
COMMAND:
5-
Create BUILD_PR_STYLE_05_COLLAPSIBLE_SYSTEM
6-
7-
Tasks:
8-
1. Implement `.is-collapsible` system in theme CSS
9-
2. Add structure:
10-
- .is-collapsible
11-
- .is-collapsible__summary
12-
- .is-collapsible__content
13-
- .is-collapsible--collapsed
14-
3. Replace `hideme` usage in main index pages
15-
4. Apply collapsible behavior to header intro/title areas
16-
5. Use CSS-first approach (details/summary or similar)
17-
6. Add minimal JS only if necessary
18-
19-
Output:
20-
<project folder>/tmp/BUILD_PR_STYLE_05_COLLAPSIBLE_SYSTEM.zip
5+
Restore Debug Mode link for Asteroids sample only using:
6+
'/games/Asteroids/index.html?debug=1'
7+
Do not modify other samples or introduce global link behavior.

docs/dev/commit_comment.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
Add shared .is-collapsible system and replace hideme usage.
2-
3-
Enable collapsible header/intro sections for better vertical space usage.
4-
5-
PR: BUILD_PR_STYLE_05_COLLAPSIBLE_SYSTEM
1+
Restore Asteroids Debug Mode link (?debug=1).
2+
Scoped fix. No changes to other samples.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# BUILD_PR — Restore Asteroids Debug Link
2+
3+
## Purpose
4+
Restore the missing Debug Mode link for Asteroids sample only.
5+
6+
## Scope
7+
- Target: Asteroids (Debug Showcase)
8+
- Add Debug link under preview (or equivalent link group)
9+
10+
## Expected Links
11+
- Play: /games/Asteroids/index.html
12+
- Debug Mode: /games/Asteroids/index.html?debug=1
13+
14+
## Rules
15+
- Only Asteroids sample modified
16+
- No new global patterns
17+
- No metadata restructuring
18+
- No UI/layout changes
19+
20+
## Validation
21+
- Asteroids shows both Play and Debug links
22+
- Debug link includes ?debug=1
23+
- No duplicate links
24+
- No impact to other samples

games/index.render.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,16 @@ function renderCard(row, instanceKey = "main") {
181181

182182
const classText = row.classValues.length > 0 ? row.classValues.map((value) => value.split("/").at(-1) || value).join(", ") : "none";
183183
const tagText = row.tags.length > 0 ? row.tags.join(", ") : "none";
184+
const asteroidDebugLink = row.id === "Asteroids"
185+
? '<p><a class="game-title-link" href="/games/Asteroids/index.html?debug=1">Debug Mode</a></p>'
186+
: "";
184187

185188
article.innerHTML = `
186189
${titleHtml}
187190
<div class="game-badges">${badges}</div>
188191
${previewHtml}
189192
<p>${escapeHtml(row.description)}</p>
193+
${asteroidDebugLink}
190194
<p>Classes: ${escapeHtml(classText)}</p>
191195
<p>Tags: ${escapeHtml(tagText)}</p>
192196
${row.requiresService ? '<p class="game-service-note">Requires background service.</p>' : ""}

0 commit comments

Comments
 (0)