Overview
Implement the Review & Commit View for inspecting changes and committing to git with confidence.
Reference: docs/PHASE_3_UI_ARCHITECTURE.md Section 1.6, 3.6
Purpose
Inspect changes and commit to git with confidence.
User Actions
- View unified diff of all changes
- Run quality checks (lint, tests)
- Export patch file
- Commit with generated message
- Create GitHub PR
Components
ReviewCommitView
├── ReviewHeader
│ ├── ChangeSummary (X files changed, Y insertions, Z deletions)
│ └── QualityGateResults
│ ├── GateBadge (ruff: passed/failed)
│ └── GateBadge (pytest: X/Y passed)
├── FileTreePanel (left sidebar, 25% width)
│ └── FileTree (changed files, click to view diff)
├── DiffViewer (main content, 75% width)
│ ├── UnifiedDiff (syntax highlighted)
│ └── DiffNavigation (prev/next file)
└── CommitPanel (bottom or right)
├── CommitMessageSuggestion (AI-generated, editable)
├── CommitButton
└── PRCreationToggle
└── PRForm (title, description)
API Endpoints Used
GET /api/v2/review/diff - Get unified diff
POST /api/v2/gates/run - Run quality gates
GET /api/v2/review/patch - Export patch file
POST /api/v2/git/commit - Create commit
POST /api/v2/pr/create - Create GitHub PR
Acceptance Criteria
Route
/review
Real-time Requirements
None - static view, refresh after actions
Overview
Implement the Review & Commit View for inspecting changes and committing to git with confidence.
Reference:
docs/PHASE_3_UI_ARCHITECTURE.mdSection 1.6, 3.6Purpose
Inspect changes and commit to git with confidence.
User Actions
Components
API Endpoints Used
GET /api/v2/review/diff- Get unified diffPOST /api/v2/gates/run- Run quality gatesGET /api/v2/review/patch- Export patch filePOST /api/v2/git/commit- Create commitPOST /api/v2/pr/create- Create GitHub PRAcceptance Criteria
Route
/reviewReal-time Requirements
None - static view, refresh after actions