Code Review Guide

Learn how to review and iterate on code changes using BatonAI's code review interface.

Code Review Overview

Review Interface Overview

The code review interface provides a comprehensive view of changes across different iterations of your implementation:

  1. Branch Comparison

    • Compare different iterations of your implementation
    • View changes between any two commits
    • Navigate through commit history
    Branch Comparison
  2. File Tree Navigation

    • Browse modified files in a sidebar
    • Quick access to specific file changes
    • Clear indication of file status (modified/added/removed)
    File Tree

Comparing Changes

Branch Selection

  1. Base Branch

    • Select the reference point for comparison
    • View the original state of the code
    • Choose from previous iterations or base branch
    Base Branch Selection
  2. Comparison Branch

    • Select the iteration to compare against
    • View changes made in specific commits
    • Navigate through implementation history
    Comparison Branch Selection
  1. Previous/Next Buttons

    • Move between iterations
    • Review changes sequentially
    • Track implementation progress
    Navigation Controls
  2. Commit Message View

    • View detailed commit messages
    • Understand the purpose of changes
    • Access full commit history
    Commit Message

Reviewing Changes

Diff Viewer

  1. Split View

    • Toggle between unified and split views
    • Compare old and new code side by side
    • Syntax highlighting for better readability
    Diff Viewer
  2. Change Statistics

    • View total number of changed files
    • Track additions and deletions
    • Monitor implementation scope
    Change Statistics

Interactive Features

  1. File Selection

    • Click on files in the sidebar to view changes
    • Navigate between modified files
    • Focus on specific areas of implementation
    File Selection
  2. Code Folding

    • Collapse unchanged sections
    • Focus on modified code
    • Improve review efficiency
    Code Folding

Requesting Changes

Chat Interface

  1. AI Assistant

    • Discuss changes with AI
    • Request specific modifications
    • Get implementation suggestions
    Chat Interface
  2. Change Requests

    • Submit feedback through chat
    • Request specific modifications
    • Track revision history
    Change Requests

Revision Process

  1. Request Changes

    • Click "Request Changes" to start revision
    • Provide feedback through chat
    • Track revision status
    Request Changes
  2. Review New Iterations

    • Compare new changes with previous versions
    • Verify requested modifications
    • Approve or request further changes
    Review Iterations

Best Practices

  1. Effective Review

    • Use split view for complex changes
    • Review commit messages for context
    • Check related files for impact
    Effective Review
  2. Clear Communication

    • Use chat for specific feedback
    • Reference specific code sections
    • Explain the reasoning behind requests
    Clear Communication

Troubleshooting

Common Issues

  1. Loading States

    • Wait for diff loading to complete
    • Check network connection
    • Verify repository access
    Loading States
  2. No Changes Found

    • Verify branch selection
    • Check if changes were merged
    • Confirm repository status
    No Changes

Need Help?