|
| 1 | +# PR_26132_018-object-vector-studio-v2-control-layout-cleanup |
| 2 | + |
| 3 | +## Scope |
| 4 | + |
| 5 | +Updates Object Vector Studio V2 UI layout only. No schema changes, no sample JSON changes, and no new feature systems. |
| 6 | + |
| 7 | +## Changes |
| 8 | + |
| 9 | +- Reduced stacked accordion spacing and kept removed useful help/status text in Status Log. |
| 10 | +- Moved Shape/Tools to the top of the right column, removed its visible hint paragraph, kept its content scrollable, and made tool buttons square. |
| 11 | +- Moved Words/Icons beside Grid and preserved icon mode for preview/frame action buttons. |
| 12 | +- Added a selectable shape list inside Object Details for the selected object. |
| 13 | +- Moved Object Details under Object in the left column and moved object/shape counts into the Object Details header. |
| 14 | +- Moved Dependency Graph into its own right-column accordion. |
| 15 | +- Reworked Palette as an accordion with Paint, Stroke, Current Color, Stroke Width, header swatch count, square swatches, and internal scrolling. |
| 16 | +- Moved Object Preview coordinate/status text into the Object Preview header and removed the old visible selection/render summary blocks. |
| 17 | +- Added Copy JSON inside JSON Details without changing accordion open/closed state. |
| 18 | + |
| 19 | +## Validation |
| 20 | + |
| 21 | +Playwright impacted: Yes. |
| 22 | + |
| 23 | +Commands run: |
| 24 | + |
| 25 | +- `node --check tools/object-vector-studio-v2/js/ToolStarterApp.js` |
| 26 | +- `node --check tools/object-vector-studio-v2/js/bootstrap.js` |
| 27 | +- `node --check tests/playwright/tools/WorkspaceManagerV2.spec.mjs` |
| 28 | +- `node --check tools/object-vector-studio-v2/tests/playwright/FirstClassToolStarter.spec.mjs` |
| 29 | +- `npx playwright test tests/playwright/tools/WorkspaceManagerV2.spec.mjs --project=playwright --grep "Object Vector Studio V2" --reporter=list` |
| 30 | +- `npm run test:workspace-v2` |
| 31 | + |
| 32 | +Result: |
| 33 | + |
| 34 | +- Targeted Object Vector Studio V2 validation passed: 6 passed. |
| 35 | +- Full Workspace Manager V2 suite passed: 45 passed. |
| 36 | +- Playwright V8 coverage generated at `docs/dev/reports/playwright_v8_coverage.txt`. |
| 37 | +- Full samples smoke test skipped per request; this PR only changes Object Vector Studio V2 UI layout and workspace-v2 coverage validates the impacted surface. |
| 38 | + |
| 39 | +## Playwright Coverage |
| 40 | + |
| 41 | +Validates: |
| 42 | + |
| 43 | +- Shape/Tools is in the right column. |
| 44 | +- Object Details is under Object in the left column. |
| 45 | +- Words/Icons is beside Grid. |
| 46 | +- Shape/tool buttons are square. |
| 47 | +- Object tiles do not overlap on load. |
| 48 | +- Shapes inside the selected object can be selected from the new shape list. |
| 49 | +- JSON Details Copy JSON preserves accordion state. |
| 50 | +- Removed useful status/help text appears in Status Log. |
| 51 | + |
| 52 | +Expected pass behavior: |
| 53 | + |
| 54 | +- Layout controls move to the requested columns, compact content scrolls internally, selectable shape rows are clickable, and JSON copy does not toggle the accordion. |
| 55 | + |
| 56 | +Expected fail behavior: |
| 57 | + |
| 58 | +- Invalid payloads, missing payloads, missing palette, or missing selected object still log visible/actionable failures and block invalid rendering or mutations. |
| 59 | + |
| 60 | +## Manual Validation |
| 61 | + |
| 62 | +1. Open `tools/object-vector-studio-v2/index.html`. |
| 63 | +2. Confirm left column order: Object, Object Details, Objects. |
| 64 | +3. Confirm right column order: Shape/Tools, Palette, JSON Details, Dependency Graph, Status Log. |
| 65 | +4. Load a valid Object Vector payload with a runtime palette. |
| 66 | +5. Create multiple shapes, then select shapes from the Object Details shape list. |
| 67 | +6. Confirm Paint/Stroke, Current Color, Stroke Width, and palette swatches sit at the top of Palette. |
| 68 | +7. Click JSON Details `Copy JSON` and confirm the accordion stays open. |
| 69 | + |
| 70 | +Expected outcome: |
| 71 | + |
| 72 | +- Object Vector Studio V2 has tighter accordions, usable right-column Shape/Tools, non-overlapping object tiles, clickable shape selection, palette controls at the top, and stable JSON copy behavior. |
| 73 | + |
| 74 | +## Out Of Scope |
| 75 | + |
| 76 | +- No schema changes. |
| 77 | +- No sample JSON changes. |
| 78 | +- No new feature systems. |
| 79 | +- No full samples smoke test. |
0 commit comments