|
| 1 | +PR_26126_069-tool-template-panel-role-standardization |
| 2 | + |
| 3 | +Scope: |
| 4 | +- Updated the official first-class tool starter layout at tools/templates/first-class-tool-starter/. |
| 5 | +- Updated first-class tool template README and control/service contracts. |
| 6 | +- Added the panel role standard to docs/dev/PROJECT_INSTRUCTIONS.md under UI CONSISTENCY CONTRACT. |
| 7 | +- Updated existing Playwright coverage for panel role placement. |
| 8 | +- No live tools outside tools/templates, samples, schemas, roadmap, start_of_day folders, or tools/shared files were modified. |
| 9 | + |
| 10 | +Changes: |
| 11 | +- Moved the Status accordion from the left column to the bottom of the right column. |
| 12 | +- Kept Output Summary above Status in the right column. |
| 13 | +- Left column now contains only user-editable/setup controls in the starter. |
| 14 | +- Center column remains the primary preview/work surface. |
| 15 | +- Right column now owns generated output, summary, status, and logging in the starter. |
| 16 | +- Documented the standard three-column first-class tool layout in: |
| 17 | + - tools/templates/first-class-tool-starter/README.md |
| 18 | + - tools/templates/first-class-tool-starter/docs/CONTROL_SERVICE_CONTRACTS.md |
| 19 | + - docs/dev/PROJECT_INSTRUCTIONS.md |
| 20 | +- Preserved Preview Generator V2 visual/theme alignment, src/engine/theme usage, and no tools/shared runtime dependency. |
| 21 | +- Preserved external CSS/JS only; no inline style block, inline script block, or inline event handlers were added. |
| 22 | + |
| 23 | +Validation: |
| 24 | +- node --check tests/playwright/PreviewGeneratorV2Baseline.spec.mjs |
| 25 | +- node --check tools/templates/first-class-tool-starter/tests/playwright/FirstClassToolStarter.spec.mjs |
| 26 | +- rg check confirmed tools/templates/first-class-tool-starter/index.html has no inline style block, inline script block, or inline event handlers. |
| 27 | +- git diff --check |
| 28 | +- npm run test:workspace-v2 |
| 29 | +- npx playwright test --config tools/templates/first-class-tool-starter/playwright.config.mjs --reporter=list |
| 30 | + |
| 31 | +Playwright impacted: Yes |
| 32 | +- This PR changes template UI layout and panel-role placement. |
| 33 | +- npm run test:workspace-v2 passed. |
| 34 | +- Template-local Playwright passed. |
| 35 | + |
| 36 | +Playwright behavior validated: |
| 37 | +- Starter left panel contains Input Source and does not contain Status. |
| 38 | +- Starter center panel contains Preview. |
| 39 | +- Starter right panel contains Output Summary and Status. |
| 40 | +- Status remains a working accordion and remains the last accordion in the right panel. |
| 41 | +- Existing starter nav modes, accordion behavior, required-field gating, primary action, and status clear behavior still work. |
| 42 | + |
| 43 | +Manual test notes: |
| 44 | +- Open tools/templates/first-class-tool-starter/index.html. |
| 45 | +- Confirm the left panel contains only Input Source. |
| 46 | +- Confirm the center panel contains Preview. |
| 47 | +- Confirm the right panel contains Output Summary above Status. |
| 48 | +- Confirm Status collapses/expands and Clear still empties the status log. |
| 49 | + |
| 50 | +Full samples smoke test: |
| 51 | +- Skipped. This PR only changes the first-class tool starter template, template documentation, project instructions wording, and targeted tests. |
0 commit comments