1.2 KiB
1.2 KiB
Implementation Plan
- Read frontend/backend project specs and map the current workbench startup contract.
- Extract small, testable helpers for session workspace creation, default
RoadCompilerInput, and bounded OSM request handling. - Repair
bin/road-workbench.jsto support import-first startup while adapting legacy--inputfiles. - Add server endpoints for upload/bootstrap and active-session state, preserving all existing edit routes.
- Add a minimal import screen and transition in the existing client; keep the map/editor UI intact.
- Add tests for helper validation and an HTTP import smoke path using
test/fixtures/fengshu-er-road.osm. - Run
npm test, targeted workbench tests, and manual localhost smoke checks; fix issues found. - Run Trellis quality check, update relevant specs if a durable convention is discovered, then commit.
Validation commands:
npm testnode --check bin/road-workbench.jsnode --check workbench/server.js- targeted workbench test command added by this task
Rollback points: CLI/server changes can be reverted independently of compiler sources; workspace staging ensures an import failure does not alter an existing session.