2.3 KiB
2.3 KiB
Web Industrial Console Implementation Plan
For Claude: REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
Goal: Redesign the Cold Display Guard management frontend into a dense industrial control console without changing the backend API.
Architecture: Keep the existing Vite app and vanilla JavaScript state model. Replace the static HTML shell with a more structured console layout, then update render helpers to emit richer classes for status, calibration completeness, and event severity. Implement the visual system in web/src/styles.css.
Tech Stack: Vite 5, vanilla JavaScript modules, HTML canvas, CSS custom properties.
Task 1: Restructure Console Shell
Files:
- Modify:
web/src/main.js
Steps:
- Replace the current
app.innerHTMLshell with a console header, segmented tabs, status pill, and view-specific panels. - Preserve all existing element IDs used by JavaScript event handlers.
- Keep the three views:
calibrationView,eventsView, andsettingsView. - Run
pnpm --dir web build.
Task 2: Add UI State Classes
Files:
- Modify:
web/src/main.js
Steps:
- Update
renderRegionList()to include region color swatches, labels, active state, and completion state. - Update
renderRegionSummary()to emit completion classes. - Update
renderMetrics()to classify baseline and violation cards. - Update
renderEvents()to classify violation rows. - Update
setStatus()to classify success, error, and progress states. - Run
pnpm --dir web build.
Task 3: Implement Industrial Visual System
Files:
- Modify:
web/src/styles.css
Steps:
- Replace the existing generic styles with CSS variables for the industrial console palette.
- Style the header, tabs, status strip, controls, panels, calibration canvas, metrics, tables, and settings layout.
- Add responsive behavior for tablet and mobile widths.
- Confirm text does not overflow compact controls.
- Run
pnpm --dir web build.
Task 4: Verify
Files:
- Read:
web/dist/index.html
Steps:
- Run
pnpm --dir web build. - Confirm Vite emits
web/dist. - Review
git diff -- web/src/main.js web/src/styles.css docs/plans/2026-04-29-web-industrial-console-design.md docs/plans/2026-04-29-web-industrial-console.md.