From d510116c4b9b8a979b125bcf432584e5eacb7e6d Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 5 Dec 2019 17:09:11 +0100 Subject: [PATCH] Better card informations display --- client/src/components/BoardPage/BoardPage.jsx | 27 ++++++++++++++++++- client/src/components/HomePage/BoardCard.jsx | 10 ++++--- client/src/components/Navbar.jsx | 2 +- client/src/sass/_base.scss | 1 + client/src/store/sagas/kanboards.js | 7 ++--- 5 files changed, 37 insertions(+), 10 deletions(-) diff --git a/client/src/components/BoardPage/BoardPage.jsx b/client/src/components/BoardPage/BoardPage.jsx index e820d6b..31c64b1 100644 --- a/client/src/components/BoardPage/BoardPage.jsx +++ b/client/src/components/BoardPage/BoardPage.jsx @@ -43,9 +43,34 @@ export class BoardPage extends React.Component {
+ { + card.issue.assignee ? +
+
+ Image + {`@${card.issue.assignee.login}`} +
+
+ : null + }
-
{card.title}
+

+ {`#${card.issue.number}`}  + { card.issue.milestone ? {`- ${card.issue.milestone.title}`} : null } +
+ {card.issue.title} +

+
+
+ +
diff --git a/client/src/components/HomePage/BoardCard.jsx b/client/src/components/HomePage/BoardCard.jsx index ee0cfeb..24b016d 100644 --- a/client/src/components/HomePage/BoardCard.jsx +++ b/client/src/components/HomePage/BoardCard.jsx @@ -8,9 +8,13 @@ export class BoardCard extends React.PureComponent {
- -

{board.title}

-
+

+ + {board.title} + +
+ {board.description} +

diff --git a/client/src/components/Navbar.jsx b/client/src/components/Navbar.jsx index c61bcab..bd3caa7 100644 --- a/client/src/components/Navbar.jsx +++ b/client/src/components/Navbar.jsx @@ -3,7 +3,7 @@ import React from 'react'; export class Navbar extends React.Component { render() { return ( -