Skip to content

Commit 6b71e83

Browse files
author
DavidQ
committed
Remove tools shared index barrel exports - PR_26140_066-remove-tools-shared-index-barrels
1 parent cc85d67 commit 6b71e83

20 files changed

Lines changed: 75 additions & 51 deletions
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# PR_26140_066 Tools Shared Index Barrel Removal Report
2+
3+
## Summary
4+
- Removed the targeted `tools/shared/**/index.js` barrel files.
5+
- Replaced all active imports from those barrels with direct imports from the canonical module files.
6+
- Preserved behavior by changing only import specifiers and deleting now-unused barrel files.
7+
- Did not touch sample entry `index.js` files, game entry `index.js` files, or `src/engine/**/index.js` files.
8+
- No replacement pass-through files were created.
9+
10+
## Target Barrels Removed
11+
- `tools/shared/editor/index.js`
12+
- `tools/shared/pipeline/index.js`
13+
- `tools/shared/tooling/index.js`
14+
15+
## Direct Import Decisions
16+
- Editor sample scenes now import directly from:
17+
- `tools/shared/editor/LevelEditor.js`
18+
- `tools/shared/editor/TileMapEditor.js`
19+
- `tools/shared/editor/EntityPlacementEditor.js`
20+
- `tools/shared/editor/TimelineEditor.js`
21+
- Pipeline sample scenes now import directly from:
22+
- `tools/shared/pipeline/AssetImportPipeline.js`
23+
- `tools/shared/pipeline/TexturePreprocessPipeline.js`
24+
- `tools/shared/pipeline/AudioPreprocessPipeline.js`
25+
- `tools/shared/pipeline/ContentMigrationSystem.js`
26+
- `tools/shared/pipeline/BuildAssetManifestSystem.js`
27+
- `tools/shared/pipeline/ContentValidationPipeline.js`
28+
- Tooling sample scenes now import directly from:
29+
- `tools/shared/tooling/DeveloperConsole.js`
30+
- `tools/shared/tooling/RuntimeInspector.js`
31+
- `tools/shared/tooling/PropertyEditor.js`
32+
- `tools/shared/tooling/LiveTuningService.js`
33+
- `tools/shared/tooling/AssetBrowser.js`
34+
- `tools/shared/tooling/SceneGraphViewer.js`
35+
36+
## Guardrail Checks
37+
- PASS: no active imports remain from `tools/shared/editor/index.js`, `tools/shared/pipeline/index.js`, or `tools/shared/tooling/index.js`.
38+
- PASS: targeted `tools/shared/**/index.js` barrel files no longer exist.
39+
- PASS: no sample JSON files were modified.
40+
- PASS: sample entry `index.js`, game entry `index.js`, and `src/engine/**/index.js` files were not modified.
41+
- Required exception: none.
42+
43+
## Validation
44+
- PASS: targeted syntax validation for 16 changed JavaScript files.
45+
- PASS: targeted import-target validation for 16 changed JavaScript files.
46+
- PASS: `npm run test:workspace-v2` with 59 passed.
47+
- PASS: `git diff --check` completed without whitespace errors.
48+
49+
## Coverage Guardrail
50+
- Playwright generated the existing advisory V8 coverage report at `docs/dev/reports/coverage_changed_js_guardrail.txt`.
51+
- Missing or low coverage entries are WARN-only per project instructions.
52+
53+
## Full Samples Smoke Test
54+
- Skipped. This PR only normalizes direct imports for targeted `tools/shared` barrel files, and the requested targeted validation plus Workspace V2 test gate passed.
55+
56+
## Manual Validation
57+
1. Review `docs/dev/reports/codex_review.diff` and confirm each affected sample scene imports the concrete editor, pipeline, or tooling module directly.
58+
2. Confirm the three targeted `tools/shared/**/index.js` files are absent.
59+
3. Launch Workspace Manager V2 and confirm normal tool/game launch behavior remains intact.

samples/phase-14/1401/LevelEditorScene.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LevelEditorScene.js
77
import { Scene } from '/src/engine/scene/index.js';
88
import { drawFrame, drawPanel } from '/src/engine/debug/index.js';
99
import { Theme, ThemeTokens } from '/src/engine/theme/index.js';
10-
import { LevelEditor } from '/tools/shared/editor/index.js';
10+
import LevelEditor from '/tools/shared/editor/LevelEditor.js';
1111

1212
const theme = new Theme(ThemeTokens);
1313

samples/phase-14/1402/TileMapEditorScene.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ David Quesenberry
44
03/22/2026
55
TileMapEditorScene.js
66
*/
7-
import { Scene } from '/src/engine/scene/index.js'; import { drawFrame, drawPanel } from '/src/engine/debug/index.js'; import { Theme, ThemeTokens } from '/src/engine/theme/index.js'; import { TileMapEditor } from '/tools/shared/editor/index.js';
7+
import { Scene } from '/src/engine/scene/index.js'; import { drawFrame, drawPanel } from '/src/engine/debug/index.js'; import { Theme, ThemeTokens } from '/src/engine/theme/index.js'; import TileMapEditor from '/tools/shared/editor/TileMapEditor.js';
88
const theme = new Theme(ThemeTokens);
99
export default class TileMapEditorScene extends Scene {
1010
constructor() { super(); this.editor = new TileMapEditor({ width: 8, height: 4 }); this.status = 'Pick a tile type, then paint a row.'; }

samples/phase-14/1403/EntityPlacementEditorScene.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ David Quesenberry
44
03/22/2026
55
EntityPlacementEditorScene.js
66
*/
7-
import { Scene } from '/src/engine/scene/index.js'; import { drawFrame, drawPanel } from '/src/engine/debug/index.js'; import { Theme, ThemeTokens } from '/src/engine/theme/index.js'; import { EntityPlacementEditor } from '/tools/shared/editor/index.js';
7+
import { Scene } from '/src/engine/scene/index.js'; import { drawFrame, drawPanel } from '/src/engine/debug/index.js'; import { Theme, ThemeTokens } from '/src/engine/theme/index.js'; import EntityPlacementEditor from '/tools/shared/editor/EntityPlacementEditor.js';
88
const theme = new Theme(ThemeTokens);
99
export default class EntityPlacementEditorScene extends Scene {
1010
constructor() { super(); this.editor = new EntityPlacementEditor(); this.status = 'Add an entity, then move it through editor tooling.'; }

samples/phase-14/1404/TimelineCutsceneEditorScene.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ David Quesenberry
44
03/22/2026
55
TimelineCutsceneEditorScene.js
66
*/
7-
import { Scene } from '/src/engine/scene/index.js'; import { drawFrame, drawPanel } from '/src/engine/debug/index.js'; import { Theme, ThemeTokens } from '/src/engine/theme/index.js'; import { TimelineEditor } from '/tools/shared/editor/index.js';
7+
import { Scene } from '/src/engine/scene/index.js'; import { drawFrame, drawPanel } from '/src/engine/debug/index.js'; import { Theme, ThemeTokens } from '/src/engine/theme/index.js'; import TimelineEditor from '/tools/shared/editor/TimelineEditor.js';
88
const theme = new Theme(ThemeTokens);
99
export default class TimelineCutsceneEditorScene extends Scene {
1010
constructor() { super(); this.timeline = new TimelineEditor(); this.status = 'Add and reposition cutscene clips.'; }

samples/phase-14/1413/AssetImportPipelineScene.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Scene } from '/src/engine/scene/index.js'; import { drawFrame, drawPanel } from '/src/engine/debug/index.js'; import { Theme, ThemeTokens } from '/src/engine/theme/index.js'; import { AssetImportPipeline } from '/tools/shared/pipeline/index.js';
1+
import { Scene } from '/src/engine/scene/index.js'; import { drawFrame, drawPanel } from '/src/engine/debug/index.js'; import { Theme, ThemeTokens } from '/src/engine/theme/index.js'; import AssetImportPipeline from '/tools/shared/pipeline/AssetImportPipeline.js';
22
const theme = new Theme(ThemeTokens);
33
export default class AssetImportPipelineScene extends Scene {
44
constructor(options = {}) {

samples/phase-14/1414/TextureSpritePreprocessPipelineScene.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Scene } from "/src/engine/scene/index.js";
22
import { drawFrame, drawPanel } from "/src/engine/debug/index.js";
33
import { Theme, ThemeTokens } from "/src/engine/theme/index.js";
4-
import { TexturePreprocessPipeline } from "/tools/shared/pipeline/index.js";
4+
import TexturePreprocessPipeline from "/tools/shared/pipeline/TexturePreprocessPipeline.js";
55
import { drawSpriteProjectFrame, loadSpriteProjectPreset } from "/samples/shared/spritePresetRuntime.js";
66

77
const theme = new Theme(ThemeTokens);

samples/phase-14/1415/AudioPreprocessPipelineScene.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/phase-14/1416/ContentVersioningMigrationScene.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/phase-14/1417/BuildAssetManifestSystemScene.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)