Skip to content

Commit d690161

Browse files
committed
Move GameFoundryStudio company pages to root with Theme V2 - PR_26152_035-root-company-pages-migration
1 parent f7569a3 commit d690161

7 files changed

Lines changed: 76 additions & 0 deletions

File tree

GameFoundryStudio/assets/js/gamefoundry-partials.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
rating: "admin/ratings.html"
7171
};
7272

73+
const rootPageRoutes = new Set(["about", "vision", "mission", "roadmap", "release-notes"]);
74+
7375
const partials = {
7476
"header-nav": "assets/partials/header-nav.html",
7577
footer: "assets/partials/footer.html"
@@ -88,6 +90,14 @@
8890
}
8991

9092
function routeHref(routeName) {
93+
if (rootPageRoutes.has(routeName)) {
94+
const parts = window.location.pathname.split("/").filter(Boolean);
95+
const studioIndex = parts.lastIndexOf("GameFoundryStudio");
96+
if (studioIndex >= 0) {
97+
return "../".repeat(parts.length - studioIndex) + routeMap[routeName];
98+
}
99+
return "../" + routeMap[routeName];
100+
}
91101
return rootPrefix() + (routeMap[routeName] || routeName || "index.html");
92102
}
93103

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<head>
55
<meta charset="utf-8">
6+
<base href="GameFoundryStudio/">
67
<meta name="viewport" content="width=device-width, initial-scale=1">
78
<title>About - Game Foundry Studio</title>
89
<meta name="description" content="Game Foundry Studio is a no-code, config-driven path from game design documents to manifests and open-web games.">
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# PR_26152_035 Root Company Pages Migration Validation
2+
3+
## Scope
4+
5+
- Migrated approved Company pages to the repository root:
6+
- `/about.html`
7+
- `/vision.html`
8+
- `/mission.html`
9+
- `/roadmap.html`
10+
- `/release-notes.html`
11+
- Removed the old `GameFoundryStudio/` copies of those pages.
12+
- Updated shared partial routing so Company links resolve to the root page locations.
13+
- Did not migrate Admin, Account, Tools, Games, or Samples.
14+
- Did not change any CSS files.
15+
16+
## Changed Files
17+
18+
- `about.html` added
19+
- `vision.html` added
20+
- `mission.html` added
21+
- `roadmap.html` added
22+
- `release-notes.html` added
23+
- `GameFoundryStudio/about.html` removed
24+
- `GameFoundryStudio/vision.html` removed
25+
- `GameFoundryStudio/mission.html` removed
26+
- `GameFoundryStudio/roadmap.html` removed
27+
- `GameFoundryStudio/release-notes.html` removed
28+
- `GameFoundryStudio/assets/js/gamefoundry-partials.js` updated for root Company route handling
29+
30+
## Validation Commands
31+
32+
- PASS: `node --check GameFoundryStudio/assets/js/gamefoundry-partials.js`
33+
- PASS: `rg -n --pcre2 "<script(?![^>]*\bsrc=)|<style|\son[a-z]+\s*=" index.html about.html vision.html mission.html roadmap.html release-notes.html`
34+
- No inline script blocks, style blocks, or inline event handlers found.
35+
- PASS: `rg -n "base href" about.html vision.html mission.html roadmap.html release-notes.html index.html`
36+
- Root index and root Company pages contain `<base href="GameFoundryStudio/">`.
37+
- PASS: `rg -n "assets/css/theme/v2/theme\.css|assets/js/gamefoundry-partials\.js|data-partial=\"header-nav\"|data-partial=\"footer\"" index.html about.html vision.html mission.html roadmap.html release-notes.html`
38+
- Root Company pages load Theme V2 CSS and shared partial JS.
39+
- PASS: `git status --short -- GameFoundryStudio/assets/css/theme/v2`
40+
- No Theme V2 CSS files changed.
41+
- PASS: `git status --short -- index.html about.html vision.html mission.html roadmap.html release-notes.html GameFoundryStudio/about.html GameFoundryStudio/vision.html GameFoundryStudio/mission.html GameFoundryStudio/roadmap.html GameFoundryStudio/release-notes.html GameFoundryStudio/assets/js/gamefoundry-partials.js GameFoundryStudio/assets/css/theme/v2`
42+
- Scoped status shows the expected root page additions, old in-folder page deletions, and partial router update.
43+
44+
## Link Validation
45+
46+
- Root index uses `GameFoundryStudio/assets/js/gamefoundry-partials.js` through the existing base URL.
47+
- `gamefoundry-partials.js` now treats these routes as root page routes:
48+
- `about`
49+
- `vision`
50+
- `mission`
51+
- `roadmap`
52+
- `release-notes`
53+
- The rendered root index header/footer Company links therefore resolve out of `GameFoundryStudio/` and open the new root Company pages.
54+
55+
## Skipped
56+
57+
- Repo-wide tests were not run by request.
58+
- Tests outside affected root/GameFoundryStudio paths were not run by request.
59+
- Full samples smoke test was not run by request.
60+
- `git diff` / `git diff --stat` were attempted for exact review artifacts but were intermittently blocked by the Windows sandbox before git could start:
61+
- `windows sandbox: spawn setup refresh`
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<head>
55
<meta charset="utf-8">
6+
<base href="GameFoundryStudio/">
67
<meta name="viewport" content="width=device-width, initial-scale=1">
78
<title>Mission - Game Foundry Studio</title>
89
<meta name="description" content="Game Foundry Studio mission: help anyone create open-web games through no-code configuration and manifests.">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<head>
55
<meta charset="utf-8">
6+
<base href="GameFoundryStudio/">
67
<meta name="viewport" content="width=device-width, initial-scale=1">
78
<title>Release Notes - Game Foundry Studio</title>
89
<meta name="description" content="Platform status, milestone progression and release notes for the no-code Game Foundry Studio engine direction.">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<head>
55
<meta charset="utf-8">
6+
<base href="GameFoundryStudio/">
67
<meta name="viewport" content="width=device-width, initial-scale=1">
78
<title>Roadmap - Game Foundry Studio</title>
89
<meta name="description" content="Game Foundry Studio roadmap for Build, Play, Share and no-code manifest-driven game creation.">
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
<head>
55
<meta charset="utf-8">
6+
<base href="GameFoundryStudio/">
67
<meta name="viewport" content="width=device-width, initial-scale=1">
78
<title>Vision - Game Foundry Studio</title>
89
<meta name="description" content="The Game Foundry Studio vision for Build, Play and Share as a no-code open-web game platform.">

0 commit comments

Comments
 (0)