diff --git a/src/GitHub.App/GitHub.App.csproj b/src/GitHub.App/GitHub.App.csproj
index 3e9bff0d12..46cd1945a0 100644
--- a/src/GitHub.App/GitHub.App.csproj
+++ b/src/GitHub.App/GitHub.App.csproj
@@ -148,6 +148,10 @@
..\..\packages\Microsoft.VisualStudio.Utilities.14.3.25407\lib\net45\Microsoft.VisualStudio.Utilities.dll
True
+
+ ..\..\packages\Microsoft.VisualStudio.Utilities.14.3.25407\lib\net45\Microsoft.VisualStudio.Utilities.dll
+ True
+
@@ -236,6 +240,7 @@
+
diff --git a/src/GitHub.App/Models/Account.cs b/src/GitHub.App/Models/Account.cs
index b2b07462aa..050871f6fa 100644
--- a/src/GitHub.App/Models/Account.cs
+++ b/src/GitHub.App/Models/Account.cs
@@ -88,7 +88,7 @@ public BitmapSource Avatar
set { avatar = value; this.RaisePropertyChanged(); }
}
-#region Equality things
+ #region Equality things
public void CopyFrom(IAccount other)
{
if (!Equals(other))
diff --git a/src/GitHub.App/Resources.Designer.cs b/src/GitHub.App/Resources.Designer.cs
index d658cc788d..5851e6a658 100644
--- a/src/GitHub.App/Resources.Designer.cs
+++ b/src/GitHub.App/Resources.Designer.cs
@@ -69,6 +69,15 @@ internal static string AddedFileStatus {
}
}
+ ///
+ /// Looks up a localized string similar to Approved.
+ ///
+ internal static string Approved {
+ get {
+ return ResourceManager.GetString("Approved", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Select a containing folder for your new repository..
///
@@ -78,6 +87,15 @@ internal static string BrowseForDirectory {
}
}
+ ///
+ /// Looks up a localized string similar to Changes Requested.
+ ///
+ internal static string ChangesRequested {
+ get {
+ return ResourceManager.GetString("ChangesRequested", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Clone a {0} Repository.
///
@@ -87,6 +105,15 @@ internal static string CloneTitle {
}
}
+ ///
+ /// Looks up a localized string similar to Commented.
+ ///
+ internal static string Commented {
+ get {
+ return ResourceManager.GetString("Commented", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Could not connect to github.com.
///
@@ -180,6 +207,15 @@ internal static string Fork {
}
}
+ ///
+ /// Looks up a localized string similar to InProgress.
+ ///
+ internal static string InProgress {
+ get {
+ return ResourceManager.GetString("InProgress", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to [invalid].
///
diff --git a/src/GitHub.App/Resources.resx b/src/GitHub.App/Resources.resx
index 7fa2be0265..153a52be18 100644
--- a/src/GitHub.App/Resources.resx
+++ b/src/GitHub.App/Resources.resx
@@ -294,4 +294,16 @@
Please install Git for Windows from:
https://git-scm.com/download/win
+
+ Approved
+
+
+ Changes Requested
+
+
+ Commented
+
+
+ InProgress
+
\ No newline at end of file
diff --git a/src/GitHub.App/SampleData/PullRequestDetailViewModelDesigner.cs b/src/GitHub.App/SampleData/PullRequestDetailViewModelDesigner.cs
index 63f163f42a..387bfeda66 100644
--- a/src/GitHub.App/SampleData/PullRequestDetailViewModelDesigner.cs
+++ b/src/GitHub.App/SampleData/PullRequestDetailViewModelDesigner.cs
@@ -67,6 +67,34 @@ public PullRequestDetailViewModelDesigner()
modelsDir.Files.Add(oldBranchModel);
gitHubDir.Directories.Add(modelsDir);
+ Reviews = new[]
+ {
+ new PullRequestReviewSummaryViewModel
+ {
+ Id = 2,
+ User = new AccountDesigner { Login = "grokys", IsUser = true },
+ State = PullRequestReviewState.Pending,
+ FileCommentCount = 0,
+ },
+ new PullRequestReviewSummaryViewModel
+ {
+ Id = 1,
+ User = new AccountDesigner { Login = "jcansdale", IsUser = true },
+ State = PullRequestReviewState.Approved,
+ FileCommentCount = 5,
+ },
+ new PullRequestReviewSummaryViewModel
+ {
+ Id = 2,
+ User = new AccountDesigner { Login = "shana", IsUser = true },
+ State = PullRequestReviewState.ChangesRequested,
+ FileCommentCount = 5,
+ },
+ new PullRequestReviewSummaryViewModel
+ {
+ },
+ };
+
Files = new PullRequestFilesViewModelDesigner();
}
@@ -81,6 +109,7 @@ public PullRequestDetailViewModelDesigner()
public bool IsCheckedOut { get; }
public bool IsFromFork { get; }
public string Body { get; }
+ public IReadOnlyList Reviews { get; }
public IPullRequestFilesViewModel Files { get; set; }
public IPullRequestCheckoutState CheckoutState { get; set; }
public IPullRequestUpdateState UpdateState { get; set; }
@@ -92,6 +121,7 @@ public PullRequestDetailViewModelDesigner()
public ReactiveCommand Pull { get; }
public ReactiveCommand Push { get; }
public ReactiveCommand