-
Notifications
You must be signed in to change notification settings - Fork 73
Comparing changes
Open a pull request
base repository: backnotprop/plannotator
base: main
head repository: backnotprop/plannotator
compare: feat/code-review-system
- 12 commits
- 38 files changed
- 2 contributors
Commits on Jan 12, 2026
-
feat: add code review system for git diffs
Introduces a new code review feature that displays git diffs with interactive line/range annotations using @pierre/diffs library. New packages: - apps/review/ - Review app with server entry point and Vite build - packages/review-editor/ - React UI with DiffViewer, ReviewPanel, FileTree - packages/server/review.ts - Review server with /api/diff and /api/feedback Features: - Split/unified diff view toggle - Line selection and range selection for annotations - Comment, suggestion, and concern annotation types - Hover utility (+ button) for quick single-line comments - Multi-file navigation with j/k keyboard shortcuts - Export feedback as structured markdown - Copy diff to clipboard Usage: bun apps/review/server/index.ts # Unstaged changes bun apps/review/server/index.ts --staged # Staged changes bun apps/review/server/index.ts main # Diff against ref Co-Authored-By: Claude Opus 4.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for be94bf4 - Browse repository at this point
Copy the full SHA be94bf4View commit details -
feat: UI/UX consistency improvements for code review
Header: - Rebrand to "Plannotator" with "Code Review" badge - Add version link to GitHub releases - Add Copy Raw Diffs and Copy Feedback action buttons - Add Settings placeholder and panel toggle - Remove API mode (no hooks/approval flow) Sidebar (ReviewPanel): - Match Plannotator styling (w-72, backdrop-blur, uppercase header) - Add author display with "(me)" suffix - Add empty state icon - Standardize timestamp format - Add Quick Copy Feedback footer - Remove floating toggle (header controlled) FileTree: - More compact layout, system font - Add viewed indicator (eyeball icon) - Move keyboard nav hint to footer - Annotation count before diff stats Other: - Per-file Copy Diff button with feedback - Inline comment styling improvements - Extract demo data to separate file - No annotations dialog for Copy Feedback Co-Authored-By: Claude Opus 4.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3fc79fc - Browse repository at this point
Copy the full SHA 3fc79fcView commit details -
feat: add OpenCode integration for code review
- Add /plannotator-review command to OpenCode plugin - Event listener intercepts command and launches review server - Add completion overlay after sending feedback (matches plan mode) - Add agent switching support for review feedback routing - Add Settings component with identity and agent switching options - Update server to accept/return agentSwitch in /api/feedback Build & Test: - Add review-editor.html to gitignore (build artifact) - Update package.json build script to copy both HTML files - Add postinstall script to copy command files - Add sandbox-opencode.sh for local plugin testing - Add test-opencode-review.sh and test-review-server.ts Co-Authored-By: Claude Opus 4.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7a6cac8 - Browse repository at this point
Copy the full SHA 7a6cac8View commit details -
fix: access sessionID from event.properties in OpenCode plugin
The OpenCode bus wraps all event data in a properties object, so sessionID must be accessed via event.properties.sessionID rather than directly from the event object. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 025597f - Browse repository at this point
Copy the full SHA 025597fView commit details -
feat: add Claude Code integration for code review
Add /plannotator-review slash command for Claude Code users: - Add `review` subcommand to plannotator binary - Runs git diff, opens review UI, outputs feedback to stdout - Create slash command that captures feedback via !`plannotator review` - Update install scripts to install command to ~/.claude/commands/ - Add "claude-code" origin support to review server and UI - Update release workflow to build review UI before hook Users can now run /plannotator-review in Claude Code to open the interactive code review UI and send annotated feedback back to Claude. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aca7462 - Browse repository at this point
Copy the full SHA aca7462View commit details -
feat: UI/UX improvements for plan and code review
Plan Review: - Change "Deny with Feedback" to "Send Feedback" (friendlier wording per #56) Code Review: - Add two-button pattern: "Send Feedback" (accent) + "Approve" (green) - Send Feedback disabled when no annotations - Approve button dims when annotations exist - Add warning dialog when approving with annotations - Add hover tooltip explaining annotations won't be sent - Show different completion messages for approve vs feedback - Support both OpenCode and Claude Code origins Co-Authored-By: Claude Opus 4.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b89dc7d - Browse repository at this point
Copy the full SHA b89dc7dView commit details -
feat: add mode prop to Settings for review-specific UI
- Add `mode` prop to Settings component ('plan' | 'review') - In review mode, only show Identity and Agent Switching - Hide plan-specific settings: Plan Saving, Tater Mode, Obsidian, Bear - Pass mode="review" from code review editor Co-Authored-By: Claude Opus 4.5 <[email protected]>Configuration menu - View commit details
-
Copy full SHA for b939523 - Browse repository at this point
Copy the full SHA b939523View commit details
Commits on Jan 13, 2026
-
refactor: simplify code review UX to single-step comment input
Remove the two-hop annotation flow (select lines → choose type → input). Now matches GitHub's UX: select lines → comment box appears immediately. - Remove type selection menu (comment/suggestion/concern) - Direct comment input when lines are selected - Optional "Add suggested code" expansion - Remove type badges from annotation display - Simplify export format (no type labels) - Add keyboard shortcuts (Cmd+Enter submit, Escape cancel) The AI understands intent from natural language - no need to pre-categorize. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4cecd9c - Browse repository at this point
Copy the full SHA 4cecd9cView commit details -
fix: guard against undefined sessionID in code review feedback
Only attempt to send feedback to session if sessionID is available. Prevents "undefined is not an object (evaluating 'agent.name')" error when the event structure doesn't include a sessionID. Co-Authored-By: Claude Opus 4.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 65ce5e7 - Browse repository at this point
Copy the full SHA 65ce5e7View commit details -
docs: update CLAUDE.md with code review system documentation
- Add code review flow and review server API - Update project structure with review-related files - Add dev:review and build:review/opencode to development scripts - Fix OpenCode plugin review mode to capture stderr and use noReply flag Co-Authored-By: Claude Opus 4.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5e00c64 - Browse repository at this point
Copy the full SHA 5e00c64View commit details -
feat: add milestone update banner with feature highlights
- Add FEATURE_HIGHLIGHTS for version-specific announcements (0.5.0: Code Review) - Expanded banner UI for milestone releases with feature title/description - OpenCode-specific cache clear instructions when origin is opencode - Debug params: ?preview-update=X.X.X and ?preview-origin=opencode for testing Co-Authored-By: Claude Opus 4.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f734dd0 - Browse repository at this point
Copy the full SHA f734dd0View commit details -
feat: add diff type selector for code review
- Add centralized git utilities module (packages/server/git.ts) - Dropdown to switch between diff views: uncommitted, last commit, vs main - Dynamic default branch detection (main/master) - Empty state UI when no changes to display - Fix line range display for bottom-to-top selections Co-Authored-By: Claude Opus 4.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8c742ae - Browse repository at this point
Copy the full SHA 8c742aeView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...feat/code-review-system