Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: backnotprop/plannotator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: backnotprop/plannotator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/code-review-system
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 12 commits
  • 38 files changed
  • 2 contributors

Commits on Jan 12, 2026

  1. 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]>
    backnotprop and claude committed Jan 12, 2026
    Configuration menu
    Copy the full SHA
    be94bf4 View commit details
    Browse the repository at this point in the history
  2. 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]>
    backnotprop and claude committed Jan 12, 2026
    Configuration menu
    Copy the full SHA
    3fc79fc View commit details
    Browse the repository at this point in the history
  3. 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]>
    backnotprop and claude committed Jan 12, 2026
    Configuration menu
    Copy the full SHA
    7a6cac8 View commit details
    Browse the repository at this point in the history
  4. 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]>
    backnotprop and claude committed Jan 12, 2026
    Configuration menu
    Copy the full SHA
    025597f View commit details
    Browse the repository at this point in the history
  5. 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]>
    backnotprop and claude committed Jan 12, 2026
    Configuration menu
    Copy the full SHA
    aca7462 View commit details
    Browse the repository at this point in the history
  6. 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]>
    backnotprop and claude committed Jan 12, 2026
    Configuration menu
    Copy the full SHA
    b89dc7d View commit details
    Browse the repository at this point in the history
  7. 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]>
    backnotprop and claude committed Jan 12, 2026
    Configuration menu
    Copy the full SHA
    b939523 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2026

  1. 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]>
    backnotprop and claude committed Jan 13, 2026
    Configuration menu
    Copy the full SHA
    4cecd9c View commit details
    Browse the repository at this point in the history
  2. 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]>
    backnotprop and claude committed Jan 13, 2026
    Configuration menu
    Copy the full SHA
    65ce5e7 View commit details
    Browse the repository at this point in the history
  3. 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]>
    backnotprop and claude committed Jan 13, 2026
    Configuration menu
    Copy the full SHA
    5e00c64 View commit details
    Browse the repository at this point in the history
  4. 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]>
    backnotprop and claude committed Jan 13, 2026
    Configuration menu
    Copy the full SHA
    f734dd0 View commit details
    Browse the repository at this point in the history
  5. 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]>
    backnotprop and claude committed Jan 13, 2026
    Configuration menu
    Copy the full SHA
    8c742ae View commit details
    Browse the repository at this point in the history
Loading