Modular React-based UI with versioned v2 API - #4
Open
MrFredericKlark with Copilot wants to merge 3 commits into
Open
Modular React-based UI with versioned v2 API#4MrFredericKlark with Copilot wants to merge 3 commits into
MrFredericKlark with Copilot wants to merge 3 commits into
Conversation
- Set up Vite + React + TypeScript under app/frontend/ - Add typed Pydantic models in app/models.py - Add versioned /api/v2 endpoints (upload, upload-svg, job status, download, settings schema, WebSocket) - Build modular frontend: api layer, Zustand store, settings panel, path preview canvas, upload controls - Add cyberpunk CSS theme matching existing UI - Update Dockerfile with multi-stage Node.js build - Update main.py to serve React SPA at /v2 and include v2 router - Add 20 frontend unit tests (store + event reducers) - Add 11 backend contract tests (v2 routes + backward compat) - Preserve all legacy v1 routes for backward compatibility Co-authored-by: MrFredericKlark <197261270+MrFredericKlark@users.noreply.github.com> Agent-Logs-Url: https://github.com/MrFrederic/plotter-gcode-optimizer/sessions/68bd78cf-df39-40de-a096-40272bc961bd
…guidelines Co-authored-by: MrFredericKlark <197261270+MrFredericKlark@users.noreply.github.com> Agent-Logs-Url: https://github.com/MrFrederic/plotter-gcode-optimizer/sessions/68bd78cf-df39-40de-a096-40272bc961bd
Copilot
AI
changed the title
[WIP] Add modular React-based UI for scalable frontend
Modular React-based UI with versioned v2 API
Mar 26, 2026
MrFredericKlark
marked this pull request as ready for review
March 26, 2026 10:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the UI from a monolithic static page to a React + TypeScript + Vite SPA with typed backend contracts, while preserving all legacy routes for backward compatibility.
Backend
app/models.py— Pydantic schemas for all v2 request/response/WS event typesapp/routers/gcode_v2.py—/api/v2endpoints: upload, upload-svg, job status, download, settings JSON schema, WebSocket optimizationapp/main.py— Mounts v2 router and serves React SPA at/v2; legacy/,/upload,/ws/{job_id},/download/{job_id}untouchedFrontend (
app/frontend/)api/,store/,features/settings/,features/path-preview/,features/upload/,components/Infrastructure
.gitignoreupdated fornode_modules/anddist/Tests
Screenshot
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.