Files
backnotprop__plannotator/tests/manual/local/test-opencode-review.sh
Michael Ramos 8019f73a44 Feat/code review system (#57)
## Summary
Complete code review system for reviewing git diffs with annotations.

### Features
- Interactive diff viewer with split/unified views
- Line-level annotation system
- Diff type selector (uncommitted, last commit, vs main branch)
- Dynamic default branch detection
- Empty state handling
- Simplified UX with streamlined feedback flow

Closes #51
Closes #56
2026-01-12 19:36:09 -08:00

39 lines
986 B
Bash
Executable File

#!/bin/bash
# Test script to simulate OpenCode code review
#
# Usage:
# ./test-opencode-review.sh
#
# What it does:
# 1. Builds the review app (ensures latest code)
# 2. Runs the review server with opencode origin
# 3. Opens browser for you to test the UI (should show "OpenCode" badge + "Send Feedback" button)
# 4. Prints the result (feedback)
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../../.." && pwd)"
echo "=== Plannotator OpenCode Code Review Test ==="
echo ""
# Build first to ensure latest code
echo "Building review app..."
cd "$PROJECT_ROOT"
bun run build:review
echo ""
echo "Starting review server with OpenCode origin..."
echo "Browser should open automatically."
echo "You should see:"
echo " - 'OpenCode' badge in header"
echo " - 'Send Feedback' button (instead of 'Copy Feedback')"
echo ""
# Run the test server
bun run "$PROJECT_ROOT/tests/manual/test-review-server.ts"
echo ""
echo "=== Test Complete ==="