feat: v0.11 AI連携 - レビュー・分析機能の追加#17
Merged
Merged
Conversation
LlmAdapterトレイトにexecute_prompt汎用メソッドを追加し、 コードレビュー(review_diff)、コンフリクト解決(ai_resolve_conflict)、 PR説明文生成(generate_pr_description)の3つのTauriコマンドを実装。 各機能のプロンプト構築・JSONパースを独立モジュールに分離し、 プロセス起動ロジックはrun_promptプライベートメソッドに共通化。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CommitPanelにAI Reviewボタンを追加し、差分ビュー内にインラインAI レビューコメント(warning/error分類・Dismiss対応)を表示。 ファイルリストにレビューバッジを表示し、問題のあるファイルを可視化。 AiIconコンポーネントを共通atoms層に抽出し、サービス層・ストアに reviewDiff/dismissReviewComment/clearReviewCommentsアクションを追加。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
各コンフリクトセクションにAI Resolveボタンと AI Suggestionパネル(confidenceレベル・提案コード・理由・Accept/Reject) を追加。ファイル単位のAI Resolve Allボタンで全コンフリクトを順次解決。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
reviewDiff(成功・ローディング遷移・失敗)、resolveConflict(成功・ ローディング遷移・失敗)、dismissReviewComment(一致削除・非一致保持)、 clearReviewCommentsの8テストケースを追加。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
コードレビュー支援、コンフリクト解決支援、PR/MR説明文生成を完了に更新。 PRレビュー効率化ビューとテンプレート対応は未実装のまま。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
デザインモックアップで定義されているCSSクラスが実装側に 転記されていなかったため、ボタンにスタイルが適用されていなかった。 designs/のCSSから正確に転記し、conflict-file-itemのborder:none バグも修正。 Co-Authored-By: Claude <noreply@anthropic.com>
handleDragOverがHTMLDivElementの型を期待していたが、実際には li要素で使用されておりCIのTypeScriptビルドが失敗していた。 Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
変更内容
バックエンド(Rust)
ai/review.rs— レビュープロンプト構築 + JSONレスポンスパース(テスト7件)ai/conflict.rs— コンフリクト解決プロンプト + パース(テスト7件)ai/pr.rs— PR説明文プロンプト + パース(テスト6件)ai/adapter.rs—execute_promptをLlmAdapterトレイトに追加、run_promptで重複排除commands/ai.rs—review_diff,ai_resolve_conflict,generate_pr_descriptionコマンド追加フロントエンド(React/TypeScript)
CommitPanel— AI Review ボタン追加DiffHunk/DiffPanel— インラインレビューコメント表示FileItem— レビューバッジ(warning/danger)表示ConflictSection— AI Resolve ボタン + Suggestion パネルConflictDetail— AI Resolve All ボタンAiIcon.tsx— 共通AIアイコンコンポーネント(重複排除)aiStore— レビュー・コンフリクト解決の状態管理 + テスト8件CSS修正
ai.css—.ai-review-btnスタイル追加conflict.css— AI関連スタイル +.conflict-file-itemborder バグ修正components.css—.btn-danger-outline追加コンフリクトテスト用ブランチ
コンフリクト解決UIの動作確認用:
conflict-test-base— 円表記・パーセント割引版conflict-test-theirs— Intl.NumberFormat・バリデーション版Test plan
task test— 全295テスト合格task lint— Biomeエラーなしtask devでAI Reviewボタンの動作確認🤖 Generated with Claude Code