mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
8019f73a44
## 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
39 lines
986 B
Bash
Executable File
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 ==="
|