diff --git a/components/atoms/Card/card.tsx b/components/atoms/Card/card.tsx index ca77047b1b..43f349c92c 100644 --- a/components/atoms/Card/card.tsx +++ b/components/atoms/Card/card.tsx @@ -8,7 +8,7 @@ interface CardProps { const Card: React.FC = ({ className, children, heading }) => { return ( -
+
{ heading ? <> diff --git a/components/molecules/CardHorizontalBarChart/card-horizontal-bar-chart.tsx b/components/molecules/CardHorizontalBarChart/card-horizontal-bar-chart.tsx index d73db91c2d..8d228cfba7 100644 --- a/components/molecules/CardHorizontalBarChart/card-horizontal-bar-chart.tsx +++ b/components/molecules/CardHorizontalBarChart/card-horizontal-bar-chart.tsx @@ -32,9 +32,9 @@ const CardHorizontalBarChart = ({ languageList }: CardHorizontalBarChartProps): }; return ( -
+
{/* Progress Bar */} -
+
{sortedLangArray.map(({ languageName, percentageUsed }, index) =>
{ return ( -
+
{githubName}
-
-
+
+
{totalPRs}
-
+
{dateOfFirstPR}
diff --git a/components/molecules/CardRepoList/card-repo-list.tsx b/components/molecules/CardRepoList/card-repo-list.tsx index c11ab0976c..672a78911c 100644 --- a/components/molecules/CardRepoList/card-repo-list.tsx +++ b/components/molecules/CardRepoList/card-repo-list.tsx @@ -23,7 +23,7 @@ const CardRepoList = ({ repoList }: CardRepoListProps): JSX.Element => { .filter((repo, arrCount) => arrCount < REPOLISTLIMIT) .map(({repoName, repoIcon}, index) =>
- + {repoName}
) diff --git a/components/molecules/ContributorTable/contributor-table.tsx b/components/molecules/ContributorTable/contributor-table.tsx index e3d6d4e2ff..cbe8836d4a 100644 --- a/components/molecules/ContributorTable/contributor-table.tsx +++ b/components/molecules/ContributorTable/contributor-table.tsx @@ -22,82 +22,86 @@ const ContributorTable = ({ listOfPRs }: CardTableProps) => { return ( listOfPRs.length > 0 ? <> -
-
- - Latest PRs - -
- -
- -
-
- -
- -
-
- -
- -
-
- -
- +
+
+
+ + Latest PRs +
- -
- {listOfPRs.map(({prName, prStatus, prIssuedTime, prClosedTime, noOfFilesChanged, noOfLinesChanged}, index) => -
-
- {prStatus === "open" ? - - - + +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+
+ {listOfPRs.map(({prName, prStatus, prIssuedTime, prClosedTime, noOfFilesChanged, noOfLinesChanged}, index) => +
+
+ {prStatus === "open" ? + + + - : + : - prStatus === "closed" ? - - - + prStatus === "closed" ? + + + - : + : - prStatus === "merged" ? - - - + prStatus === "merged" ? + + + - : + : - - - - } - - {prIssuedTime} - - - {prName} - -
-
- {prIssuedTime} -
-
- {prClosedTime} -
-
- {noOfFilesChanged} -
-
- {noOfLinesChanged} -
+ + + + } + + {prIssuedTime} + + + {prName} + +
+
+ {prIssuedTime} +
+
+ {prClosedTime} +
+
+ {noOfFilesChanged} +
+
+ {noOfLinesChanged} +
+
+ )}
- )} +
: diff --git a/components/organisms/ContributorCard/contributor-card.tsx b/components/organisms/ContributorCard/contributor-card.tsx index 00d0d22ce4..c74a6e2c4e 100644 --- a/components/organisms/ContributorCard/contributor-card.tsx +++ b/components/organisms/ContributorCard/contributor-card.tsx @@ -36,23 +36,27 @@ const ContributorCard = ({ className, contributor }: ContributorCardProps) => { return ( -
-
+
+
-
+
- +
+ +
{showPRs ? ( -
- -
+ ) : null} -
- diff --git a/lib/hooks/useContributorData.ts b/lib/hooks/useContributorData.ts index c7ad2ff48f..97400f1b88 100644 --- a/lib/hooks/useContributorData.ts +++ b/lib/hooks/useContributorData.ts @@ -5,25 +5,26 @@ const useContributorData = () => { xAxis: { type: "category", boundaryGap: false, - axisLabel: { - fontSize: 14, - fontWeight: "bold", - color: "darkgray" - }, + axisLabel: false, data: ["Jan 2022", "Mar 2022", "Jun 2022"] }, yAxis: { type: "value", splitNumber: 1, - axisLabel: { - show: false - }, + axisLabel: false, splitLine: { lineStyle: { type: "dashed" } } }, + grid: { + height: 100, + top: 0, + bottom: 0, + right: 0, + left: 0 + }, series: [ { data: [820, 932, 901, 934, 1290, 1330, 1320], diff --git a/stories/organisms/contributor-card.stories.tsx b/stories/organisms/contributor-card.stories.tsx index 798ec89b21..a36d7367fe 100644 --- a/stories/organisms/contributor-card.stories.tsx +++ b/stories/organisms/contributor-card.stories.tsx @@ -14,25 +14,26 @@ const lineChart = { xAxis: { type: "category", boundaryGap: false, - axisLabel: { - fontSize: 14, - fontWeight: "bold", - color: "darkgray" - }, + axisLabel: false, data: ["Jan 1, 2022", "Jan 15, 2022", "Feb 1, 2022"] }, yAxis: { type: "value", splitNumber: 1, - axisLabel: { - show: false - }, + axisLabel: false, splitLine: { lineStyle: { type: "dashed" } } }, + grid: { + height: 100, + top: 0, + bottom: 0, + right: 0, + left: 0 + }, series: [ { data: [820, 932, 901, 934, 1290, 1330, 1320],