Skip to content

Commit ba5116a

Browse files
committed
Reposition AI tool as Foundry Bot Command Center and remove obsolete tmp baseline folders - PR_26166_124-ai-platform-command-center
1 parent 12242b0 commit ba5116a

15 files changed

Lines changed: 767 additions & 56 deletions

File tree

assets/theme-v2/partials/header-nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<div class="nav-item nav-popout-item" data-toolbox-menu-group>
5252
<a data-toolbox-menu-group-label data-route="toolbox" href="toolbox/index.html" aria-haspopup="true">Create &#9656;</a>
5353
<div class="sub-menu sub-menu--nested" data-toolbox-submenu aria-label="Create tools">
54-
<a data-nav-link data-toolbox-menu-item data-route="ai-assistant" href="toolbox/ai-assistant/index.html">AI Assistant</a>
54+
<a data-nav-link data-toolbox-menu-item data-route="ai-assistant" href="toolbox/ai-assistant/index.html">AI Command Center</a>
5555
<a data-nav-link data-toolbox-menu-item data-route="animations" href="toolbox/animations/index.html">Animations</a>
5656
<a data-nav-link data-toolbox-menu-item data-route="characters" href="toolbox/characters/index.html">Characters</a>
5757
<a data-nav-link data-toolbox-menu-item data-route="objects" href="toolbox/objects/index.html">Objects</a>
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# PR_26166_124-ai-platform-command-center
2+
3+
## Branch Validation
4+
- PASS: `git branch --show-current` returned `main`.
5+
6+
## Summary
7+
- Reworked `toolbox/ai-assistant/index.html` into an AI Command Center wireframe.
8+
- Positioned the page around Learn AI, AI Examples, AI Providers, AI Preferences, and Foundry Bot Help.
9+
- Added creator-facing usage examples for Objects, Events, Worlds, Assets, and Publish.
10+
- Updated active navigation, toolbox metadata, active suggestion strings, and targeted tests from `AI Assistant` to `AI Command Center`.
11+
- Removed requested temporary folders.
12+
13+
## Requirement Checklist
14+
- PASS: Created PR scope as `PR_26166_124-ai-platform-command-center`.
15+
- PASS: Current branch verified as `main` before changes.
16+
- PASS: Removed `tmp/pr121-baseline-for-pr122/`.
17+
- PASS: Removed `tmp/pr122-baseline-for-pr123/`.
18+
- PASS: Removed `tmp/test-results/`.
19+
- PASS: AI page now presents AI Command Center wireframe sections: Learn AI, AI Examples, AI Providers, AI Preferences, Foundry Bot Help.
20+
- PASS: Platform rule documented in creator-facing copy: AI is planned from every creator tool.
21+
- PASS: Platform rule documented in creator-facing copy: AI uses the current tool and current game as context.
22+
- PASS: Platform rule documented in creator-facing copy: creators stay in friendly tool language instead of technical system details.
23+
- PASS: Added AI usage examples for Objects, Events, Worlds, Assets, and Publish.
24+
- PASS: No provider runtime was implemented.
25+
- PASS: No OpenAI integration was added.
26+
- PASS: No database changes were made.
27+
- PASS: No schema changes were made.
28+
- PASS: No inline script, style block, or inline event handler was added.
29+
- PASS: Required review artifacts were produced.
30+
31+
## AI Command Center Evidence
32+
- PASS: `toolbox/ai-assistant/index.html` renders `AI Command Center` as the page heading.
33+
- PASS: Left column includes `Learn AI`, `AI Examples`, `AI Providers`, `AI Preferences`, and `Foundry Bot Help` accordions.
34+
- PASS: Center panel includes Foundry Bot and usage cards for Objects, Events, Worlds, Assets, Publish, and Foundry Bot Help.
35+
- PASS: Right inspector includes Platform Rules, Provider Status, Current Context, and Creator Preferences.
36+
- PASS: Provider copy states no AI provider is connected yet and avoids implementing provider runtime behavior.
37+
38+
## Navigation and Link Evidence
39+
- PASS: Shared Theme V2 header nav link text now shows `AI Command Center` and still targets `toolbox/ai-assistant/index.html`.
40+
- PASS: Local dev-runtime header nav copy matches the shared nav label and target.
41+
- PASS: Static local-reference validation confirmed all AI page local `href` and `src` targets resolve.
42+
- PASS: Playwright probe clicked AI usage links and confirmed the Objects, Events, Worlds, Assets, and Publish pages render.
43+
- PASS: Playwright probe clicked top-level Toolbox navigation from the AI page and confirmed `toolbox/index.html` renders.
44+
45+
## Validation Lane Report
46+
- Impacted lanes: toolbox AI page render, toolbox navigation, toolbox metadata/build-path display, shared tool-contract label, Wave 3 tool fixture label.
47+
- Skipped lanes: full samples smoke, broad engine, broad runtime, DB/Admin lanes.
48+
- Samples decision: SKIP because this PR does not change samples, sample JSON, game runtime, or sample loaders.
49+
- Playwright impacted: Yes, because visible toolbox metadata/navigation strings and runtime JS metadata changed.
50+
- Coverage: PASS/WARN. `docs_build/dev/reports/playwright_v8_coverage_report.txt` was regenerated. The helper also listed a latest-HEAD provider stub path as advisory context; PR124 changed runtime JS entries are `src/dev-runtime/guest-seeds/tool-metadata-inventory.js`, `src/dev-runtime/persistence/tool-repositories/game-journey-mock-repository.js`, and `src/shared/contracts/tools/toolContractsIndex.js`. These server/shared modules are reported as WARN when not collected by browser V8 coverage, per project instructions.
51+
52+
## Commands Run
53+
- PASS: `git branch --show-current`
54+
- PASS: `Test-Path tmp\pr121-baseline-for-pr122; Test-Path tmp\pr122-baseline-for-pr123; Test-Path tmp\test-results` returned `False`, `False`, `False`.
55+
- PASS: `rg --pcre2 -n "<script(?![^>]+src=)|<style\b|\son[a-z]+\s*=" toolbox/ai-assistant/index.html assets/theme-v2/partials/header-nav.html src/dev-runtime/admin/header-nav.local.html -S` returned no matches.
56+
- PASS: `node --check src/dev-runtime/guest-seeds/tool-metadata-inventory.js`
57+
- PASS: `node --check src/dev-runtime/persistence/tool-repositories/game-journey-mock-repository.js`
58+
- PASS: `node --check src/shared/contracts/tools/toolContractsIndex.js`
59+
- PASS: `node --check tests/playwright/tools/ToolboxRoutePages.spec.mjs`
60+
- PASS: `node --check tests/playwright/tools/ToolboxAdminMetadataSsot.spec.mjs`
61+
- PASS: `node --check tests/playwright/tools/RootToolsFutureState.spec.mjs`
62+
- PASS: `node -e "JSON.parse(require('fs').readFileSync('tests/fixtures/project-workspaces/wave-3-tool-migration-scenarios.json','utf8'));"`
63+
- PASS: Static Node validation for AI page text, local refs, nav links, and tmp cleanup.
64+
- PASS: Playwright browser probe for AI Command Center render, usage links, top-level Toolbox navigation, no failed requests, no page errors, no console errors, and V8 coverage output.
65+
- PASS: `npx playwright test tests/playwright/tools/ToolboxRoutePages.spec.mjs tests/playwright/tools/ToolboxAdminMetadataSsot.spec.mjs tests/playwright/tools/RootToolsFutureState.spec.mjs tests/playwright/tools/ToolDisplayModeNavigation.spec.mjs -g "toolbox index shows wireframe and beta tools while Planned remains opt-in|toolbox Build Path status filters support multi-select registry-matched tool rows|Toolbox and Admin Tool Votes share the same DB-backed metadata and planning|root tools surface links current tool pages without old_.* routes|first registry tool renders disabled previous text instead of a broken link" --project=playwright --workers=1 --reporter=list` passed 5/5 tests.
66+
- PASS: `node tests/shared/tools/ToolContractCoverage.test.mjs`
67+
- PASS: `node tests/shared/Wave3ToolContractBaselineValidation.test.mjs`
68+
- PASS: `node tests/shared/tools/AiAssistantToolContract.test.mjs`
69+
- PASS: `git diff --check` completed successfully; Git reported only CRLF working-copy notices.
70+
- PASS: Added-diff scan for `OpenAI`, `Supabase`, `schema`, `database`, `password`, `MEM DB`, `local-mem`, and `login.html` returned no added matches.
71+
- PASS: Changed-file DDL/SQL scan returned no matches.
72+
73+
## Manual Validation Notes
74+
- PASS: The AI page uses existing Theme V2 shell, panels, cards, accordions, buttons, and external scripts only.
75+
- PASS: Creator-facing AI copy avoids JSON, API, DB, and engine concepts.
76+
- PASS: No provider integration, OpenAI integration, DB migration, or schema artifact was introduced.
77+
- PASS: No full samples smoke test was run; it was intentionally skipped as out of scope.
Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,32 @@
1-
src/dev-runtime/auth/provider-contract-stubs.mjs
2-
tests/dev-runtime/SupabaseProviderContractStub.test.mjs
3-
docs_build/dev/reports/pr123-supabase-dev-postgres-stub.md
4-
docs_build/dev/reports/playwright_v8_coverage_report.txt
5-
docs_build/dev/reports/coverage_changed_js_guardrail.txt
6-
docs_build/dev/reports/codex_changed_files.txt
7-
docs_build/dev/reports/codex_review.diff
1+
# git status --short
2+
M assets/theme-v2/partials/header-nav.html
3+
M docs_build/dev/reports/coverage_changed_js_guardrail.txt
4+
M docs_build/dev/reports/playwright_v8_coverage_report.txt
5+
M src/dev-runtime/admin/header-nav.local.html
6+
M src/dev-runtime/guest-seeds/tool-metadata-inventory.js
7+
M src/dev-runtime/persistence/tool-repositories/game-journey-mock-repository.js
8+
M src/shared/contracts/tools/toolContractsIndex.js
9+
M tests/fixtures/project-workspaces/wave-3-tool-migration-scenarios.json
10+
M tests/playwright/tools/RootToolsFutureState.spec.mjs
11+
M tests/playwright/tools/ToolboxAdminMetadataSsot.spec.mjs
12+
M tests/playwright/tools/ToolboxRoutePages.spec.mjs
13+
M toolbox/ai-assistant/index.html
14+
?? docs_build/dev/reports/PR_26166_124-ai-platform-command-center.md
15+
16+
# git ls-files --others --exclude-standard
17+
docs_build/dev/reports/PR_26166_124-ai-platform-command-center.md
18+
19+
# git diff --stat
20+
assets/theme-v2/partials/header-nav.html | 2 +-
21+
.../dev/reports/coverage_changed_js_guardrail.txt | 6 +
22+
.../dev/reports/playwright_v8_coverage_report.txt | 39 ++++---
23+
src/dev-runtime/admin/header-nav.local.html | 2 +-
24+
.../guest-seeds/tool-metadata-inventory.js | 10 +-
25+
.../game-journey-mock-repository.js | 10 +-
26+
src/shared/contracts/tools/toolContractsIndex.js | 2 +-
27+
.../wave-3-tool-migration-scenarios.json | 2 +-
28+
.../playwright/tools/RootToolsFutureState.spec.mjs | 2 +-
29+
.../tools/ToolboxAdminMetadataSsot.spec.mjs | 2 +-
30+
tests/playwright/tools/ToolboxRoutePages.spec.mjs | 10 +-
31+
toolbox/ai-assistant/index.html | 124 ++++++++++++++++++---
32+
12 files changed, 162 insertions(+), 49 deletions(-)

0 commit comments

Comments
 (0)