|
| 1 | +# PR_26132_019-object-vector-studio-v2-simplify-controls |
| 2 | + |
| 3 | +## Scope |
| 4 | + |
| 5 | +Updates Object Vector Studio V2 UI/control behavior only. No schema changes, no sample JSON changes, no World Vector Studio V2 runtime changes. |
| 6 | + |
| 7 | +## Changes |
| 8 | + |
| 9 | +- Simplified Shape/Tools so Words/Icons affects only shape buttons; reset, viewport, grid, snap, frame, and runtime buttons remain text-only. |
| 10 | +- Replaced shape initials with visual icons for select, triangle, rectangle, circle, ellipse, line, polygon, arc, and text. |
| 11 | +- Added a separator between shape tools and grid/snap controls, kept shape buttons square, and let the grid fit as many buttons across as available. |
| 12 | +- Removed hardcoded category/tag controls and replaced them with editable object tags plus a dynamic tag filter. |
| 13 | +- Removed Object Type, Template, active state UI, and active library asset UI from the current editing surface; deferred notes are logged/status-documented. |
| 14 | +- Reworked Palette controls: removed Current Color, added hue/sat/bri/name sort buttons, kept square swatches, and exposed stacked hover details. |
| 15 | +- Removed duplicate SVG grid rendering; the remaining CSS grid is toggled by the Grid button. |
| 16 | +- Moved Object Preview actions under the canvas and placed the selected object id in the center-column footer. |
| 17 | +- Added selected-object shape rows under the active object tile, with selected object/shape highlighting. |
| 18 | +- Added runtime-only object eye/lock controls and shape eye controls; object lock blocks mutating edits. |
| 19 | +- Started JSON Details, Dependency Graph, and Status Log collapsed in the right column. |
| 20 | +- Moved Object Details action buttons under the canvas and kept Object Details focused on selected-shape editable fields. |
| 21 | + |
| 22 | +## Validation |
| 23 | + |
| 24 | +Playwright impacted: Yes. |
| 25 | + |
| 26 | +Commands run: |
| 27 | + |
| 28 | +- `npx playwright test tests/playwright/tools/WorkspaceManagerV2.spec.mjs --project=playwright --workers=1 --reporter=line -g "Object Vector Studio V2 layout shell|expands Object Vector Studio V2 asset authoring|animation states" --timeout=120000` |
| 29 | +- `npm run test:workspace-v2` |
| 30 | + |
| 31 | +Result: |
| 32 | + |
| 33 | +- Targeted Object Vector Studio V2 checks passed: 3 passed. |
| 34 | +- Full Workspace Manager V2 suite passed: 45 passed. |
| 35 | +- Playwright V8 coverage refreshed at `docs/dev/reports/playwright_v8_coverage.txt`. |
| 36 | +- Full samples smoke test skipped per request; this PR is limited to Object Vector Studio V2 UI/control behavior and workspace-v2 coverage validates the impacted surface. |
| 37 | + |
| 38 | +## Playwright Coverage |
| 39 | + |
| 40 | +Validates: |
| 41 | + |
| 42 | +- Words/Icons affects only Shape/Tools buttons. |
| 43 | +- Real shape icons render. |
| 44 | +- Object/shape selection rows highlight correctly. |
| 45 | +- Object and shape visibility controls work. |
| 46 | +- Object lock blocks edits. |
| 47 | +- Duplicate SVG grid rendering is absent and the Grid button toggles the remaining grid. |
| 48 | +- Palette sorting controls render. |
| 49 | +- Right-column JSON Details, Dependency Graph, and Status Log start collapsed. |
| 50 | +- Object Type and Template UI are removed. |
| 51 | + |
| 52 | +Expected pass behavior: |
| 53 | + |
| 54 | +- Simplified controls render in the requested layout, object/tag filtering works without hardcoded category lists, and runtime-only object visibility/lock state updates without changing schema payloads. |
| 55 | + |
| 56 | +Expected fail behavior: |
| 57 | + |
| 58 | +- Missing payloads, invalid payloads, missing palette, locked objects, or missing selections log visible/actionable WARN/FAIL entries and do not silently mutate or render invalid state. |
| 59 | + |
| 60 | +## Manual Validation |
| 61 | + |
| 62 | +1. Open `tools/object-vector-studio-v2/index.html`. |
| 63 | +2. Load a valid Object Vector payload with a runtime palette. |
| 64 | +3. Confirm Shape/Tools shows visual icons, square buttons, and Words/Icons only changes those buttons. |
| 65 | +4. Add/edit object tags and confirm Tag Filter options come from loaded object tags. |
| 66 | +5. Toggle object eye/lock controls and confirm hidden objects stop rendering and locked objects block edits. |
| 67 | +6. Toggle Grid and confirm the single visible grid appears/disappears. |
| 68 | +7. Confirm JSON Details, Dependency Graph, and Status Log start collapsed. |
| 69 | + |
| 70 | +Expected outcome: |
| 71 | + |
| 72 | +- Object Vector Studio V2 presents a cleaner control surface with no Object Type/Template UI, dynamic tags, working object/shape visibility, runtime object locking, and no duplicate grid rendering. |
| 73 | + |
| 74 | +## Out Of Scope |
| 75 | + |
| 76 | +- No schema changes. |
| 77 | +- No sample JSON changes. |
| 78 | +- No new major feature systems. |
| 79 | +- No World Vector Studio V2 runtime mutation changes. |
| 80 | +- No full samples smoke test. |
0 commit comments