From 8669382c17545fef336b22f83d86ba0f2abffbe8 Mon Sep 17 00:00:00 2001 From: Arnaud Pasquelin Date: Mon, 20 Sep 2021 18:49:03 +0200 Subject: [PATCH] improve display when there are lots of reviewers on the project --- src/contributions/PRInfo/PRInfo.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/contributions/PRInfo/PRInfo.tsx b/src/contributions/PRInfo/PRInfo.tsx index 3fd5657..539f139 100644 --- a/src/contributions/PRInfo/PRInfo.tsx +++ b/src/contributions/PRInfo/PRInfo.tsx @@ -535,6 +535,7 @@ class RepositoryServiceHubContent extends React.Component<{}, IRepositoryService let reviewerPieChartData = getPieChartInfo(this.approverList.value); let groupBarChartData = getStackedBarChartInfo(this.approvalGroupList,""); let reviewerBarChartData = getStackedBarChartInfo(this.approverList.value, this.noReviewerText); + let smallNumberOfReviewers = reviewerPieChartData.labels.length < 7 let durationTrenChartData = getDurationBarChartInfo(this.durationSlices); let closedPRChartData = getPullRequestsCompletedChartInfo(this.durationSlices); if(doneLoading) @@ -722,16 +723,19 @@ class RepositoryServiceHubContent extends React.Component<{}, IRepositoryService -
- -
- + {/* Removing the Doughnut when there are too many reviewers */} + {smallNumberOfReviewers && +
+ +
+ +
+
- -
+ }
-
+