+
+
+
+ {t("review:scopeSelector.branchDiff", "Branch diff")}
+
+
+
+ {branchAvailable
+ ? t(
+ "review:scopeSelector.branchDiffDescription",
+ "{{currentBranch}} vs {{baseBranch}} ({{count}} file(s))",
+ {
+ currentBranch: scopeInfo?.branch.currentBranch ?? "",
+ baseBranch: scopeInfo?.branch.baseBranch ?? "",
+ count: scopeInfo?.branch.fileCount ?? 0,
+ },
+ )
+ : t(
+ "review:scopeSelector.noBranchDiff",
+ "Already on base branch or no changes",
+ )}
+
+ {branchAvailable && scopeInfo?.branch.filePreview && (
+
+ {scopeInfo.branch.filePreview.slice(0, 3).map((file, i) => (
+
+ {file}
+
+ ))}
+ {scopeInfo.branch.filePreview.length > 3 && (
+
+ +{scopeInfo.branch.filePreview.length - 3} more
+
+ )}
+
+ )}
+
+