You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Renamed the center workspace accordion from `Action Mappings` to `Action Mapping(s)`, including the related center panel and preview aria labels.
7
+
- Updated `InputMappingState.payload()` so exported/copied JSON excludes actions whose `inputs` array is empty.
8
+
- Changed JSON preview export to emit the actual filtered Input Mapping V2 payload, not a wrapper `toolState.payload` object.
9
+
- Rewired Input Mapping V2 workspace nav Copy JSON and JSON buttons to the same real filtered payload actions as the tool nav.
10
+
- Disabled Import in tool and workspace nav with an actionable reason because this tool imports through Workspace Manager `game.manifest.json` launch data.
11
+
- Confirmed the active Asteroids `game.manifest.json` already includes `tools.input-mapping-v2`, and Workspace Manager V2 already discovers/launches it from the selected game manifest.
- PASS: node manifest assertion confirmed `games/Asteroids/game.manifest.json` contains `tools.input-mapping-v2` with the expected tool id and engine input model.
31
+
- PASS: `npm run test:workspace-v2` passed 70/70 tests.
32
+
33
+
## Playwright Coverage Added/Updated
34
+
- Tool nav shows Import, Copy JSON, JSON; Import is disabled with an actionable reason.
35
+
- Workspace nav shows Import, Copy JSON, JSON when launched in workspace mode; Import is disabled with an actionable reason.
36
+
- Workspace nav JSON preview and Copy JSON use the real filtered payload.
37
+
- Empty default actions export as `actions: []` instead of empty action entries.
38
+
- Mapped exports include only actions with inputs and exclude empty action tiles such as Confirm and Start.
39
+
- Copy JSON writes the same filtered payload shown by JSON preview.
40
+
- Active `game.manifest.json` includes `input-mapping-v2`, and existing Workspace Manager V2 coverage confirms Input Mapping V2 hydrates, appears as enabled, and launches from the selected game manifest.
41
+
42
+
## Coverage Report
43
+
- Browser V8 coverage was generated by the workspace-v2 run.
44
+
- Changed runtime JS coverage lines are present in `docs/dev/reports/playwright_v8_coverage_report.txt`:
45
+
-`(90%) tools/input-mapping-v2/js/services/InputMappingState.js - changed JS file with browser V8 coverage`
46
+
-`(94%) tools/input-mapping-v2/js/ToolStarterApp.js - changed JS file with browser V8 coverage`
47
+
-`(100%) tools/input-mapping-v2/js/controls/ActionNavControl.js - changed JS file with browser V8 coverage`
48
+
-`(100%) tools/input-mapping-v2/js/controls/ExportControl.js - changed JS file with browser V8 coverage`
49
+
50
+
## Manual Test Notes
51
+
1. Open `tools/input-mapping-v2/index.html`.
52
+
2. Confirm the center mapping accordion reads `Action Mapping(s)`.
53
+
3. Confirm Import is disabled and its tooltip explains that import is through Workspace Manager `game.manifest.json` launch data.
54
+
4. Add a tile, capture one input, and click JSON; expected JSON includes only actions with captured inputs.
6. Open Workspace Manager V2, select Asteroids, and launch Input Mapping V2; expected result is that the tool loads from `game.manifest.json` and Return to Workspace remains available.
57
+
58
+
## Full Samples Smoke Test
59
+
- Not run, per request and project instructions. This PR is scoped to Input Mapping V2 and Workspace V2 validation.
0 commit comments