Skip to content

Claude/planreview phase 2 d5b0bc - #2

Merged
tchxm merged 2 commits into
mainfrom
claude/planreview-phase-2-d5b0bc
Sep 19, 2026
Merged

tchxm merged 2 commits into
mainfrom
claude/planreview-phase-2-d5b0bc

Conversation

@tchxm

@tchxm tchxm commented Sep 19, 2026

Copy link
Copy Markdown
Owner

No description provided.

tchxm and others added 2 commits September 20, 2026 03:09
… docs

- FastAPI no longer mounts web/dist; serves only /api, /docs, /openapi.json
- web/src/api.js: single client, stable ApiError shape, no auto-retry,
  honest timeout/abort messages; console migrated to it
- Console renders EVALUATION_ERROR as a technical failure
- Vite proxies /api, /docs, /openapi.json to FastAPI (strictPort 5173)
- start.ps1 / start-frontend.ps1, README and beginner test updated
- docs/api_contract.md and docs/phase3_migration_map.md
- Tests: API independence, JSON 404, Vite origin; 22 vitest client tests

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… API examples

Gaps found by comparing with the separate C:\Dev attempt (read-only):
- tools/test_phase2_smoke.py: separate FastAPI + Vite process smoke test
- tests/test_api.py: OpenAPI schema lists task endpoints
- docs/api_contract.md: observed real error/gate examples
- README: document the smoke script

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 19, 2026 22:00
@tchxm
tchxm merged commit 58e3aaa into main Sep 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Address the dependency lock mismatch, cross-platform smoke-test interpreter path, and /apply timeout handling.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity

Open (2)
What changed in this PR

Separates the FastAPI backend from the Vite frontend and adds centralized API handling, tests, error UI, and development documentation.

Changes:

  • Added Vite proxy configuration and frontend startup workflow.
  • Added API client, error handling, and Vitest coverage.
  • Added backend and smoke tests.
  • Updated dependencies and Phase 2 documentation.
File Summary
web/​vite.config.js Configures Vite server, proxy, and tests.
web/​src/​styles.css Styles evaluation-error states.
web/​src/​main.jsx Integrates API helpers and evaluation-error display.
web/​src/​api.test.js Tests API client behavior.
web/​src/​api.js Centralizes HTTP requests and error handling.
web/​package.json Adds frontend test tooling.
web/​package-lock.json Locks frontend dependencies.
tools/​test_phase2_smoke.py Adds FastAPI/Vite integration smoke testing.
tests/​test_api.py Tests backend API behavior.
start.ps1 Starts the backend with validation.
start-frontend.ps1 Starts the Vite frontend.
requirements.txt Adds Ollama support.
README.md Documents Phase 2 setup and verification.
engine/​api.py Removes frontend static hosting.
docs/​phase3_migration_map.md Documents future frontend migration boundaries.
docs/​api_contract.md Documents the backend API contract.
BEGINNER_HTTP_TEST.md Updates local usage instructions.
Files not reviewed (1)
  • web/package-lock.json: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +55 to +56
[str(ROOT / ".venv/Scripts/python.exe"), "-m", "uvicorn", "engine.api:app",
"--host", "127.0.0.1", "--port", "8000"],
Comment thread web/src/api.js
canonicalize: (id, o) => post(`/tasks/${enc(id)}/canonicalize`, {}, o),
evaluate: (id, o) => post(`/tasks/${enc(id)}/evaluate`, {}, o),
resolve: (id, decisions, o) => post(`/tasks/${enc(id)}/resolve`, decisions, o),
apply: (id, o) => post(`/tasks/${enc(id)}/apply`, {}, o),
tchxm added a commit that referenced this pull request Sep 20, 2026
tchxm added a commit that referenced this pull request Sep 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants