@@ -3,6 +3,7 @@ import VotingStick from "./voting-stick";
3
3
import MetricAverages from "./metric-averages" ;
4
4
import GroomingBoardErrorPopup from "./grooming-board-error-popup" ;
5
5
import GroomingBoardResult from "./grooming-board-result" ;
6
+ import IssueSummary from "./issue-summary" ;
6
7
import GroomingBoardLogs from "./grooming-board-logs" ;
7
8
import GroomingBoardActions from "./grooming-board-actions" ;
8
9
import Loading from "../loading" ;
@@ -48,6 +49,8 @@ const GroomingBoard = ({
48
49
setShowErrorPopup,
49
50
editVoteClicked,
50
51
setEditVoteClicked,
52
+ jiraSidebarExpanded,
53
+ setJiraSidebarExpanded,
51
54
} = useGroomingRoom ( ) ;
52
55
53
56
const { showLoader } = useLoader ( ) ;
@@ -61,6 +64,10 @@ const GroomingBoard = ({
61
64
const isScoreGrooming = groomingInfo . mode === GroomingMode . ScoreGrooming ;
62
65
const isPlanningPoker = groomingInfo . mode === GroomingMode . PlanningPoker ;
63
66
67
+ const selectedIssueIndex = groomingInfo . issues ?. findIndex (
68
+ ( issue ) => issue . selected
69
+ ) ;
70
+
64
71
useEffect ( ( ) => {
65
72
const handleInitialize = ( data : GroomingInfo ) => {
66
73
if ( data ?. participants [ lobby . userID ] ) {
@@ -147,14 +154,17 @@ const GroomingBoard = ({
147
154
}
148
155
149
156
return (
150
- < div className = "grooming-board" >
157
+ < div className = { classNames ( "grooming-board" , { jiraSidebarExpanded : jiraSidebarExpanded } ) } >
151
158
{ showLoader && < Loading /> }
152
159
< section
153
160
className = { classNames ( "grooming-board__playground" , {
154
161
"story-point-mode" : isPlanningPoker ,
155
162
} ) }
156
163
>
157
164
{ ! editVoteClicked && isScoreGrooming && < GroomingBoardResult /> }
165
+ { isPlanningPoker && (
166
+ < IssueSummary issueSummary = { groomingInfo . issues ?. [ selectedIssueIndex ] ?. summary } />
167
+ ) }
158
168
{ showVotingStick && isScoreGrooming && (
159
169
< div className = "grooming-board__voting-sticks" >
160
170
{ groomingInfo . metrics ?. map ( ( metric ) => (
@@ -178,7 +188,13 @@ const GroomingBoard = ({
178
188
) ) }
179
189
</ div >
180
190
) }
181
- < GroomingBoardLiveChart />
191
+ { ! jiraSidebarExpanded && < GroomingBoardLiveChart /> }
192
+ { jiraSidebarExpanded && (
193
+ < div className = "grooming-board__logs-chart" >
194
+ < GroomingBoardLogs roomId = { roomId } />
195
+ < GroomingBoardLiveChart />
196
+ </ div >
197
+ ) }
182
198
{ ! editVoteClicked && < MetricAverages /> }
183
199
{ groomingInfo . isResultShown && isScoreGrooming && (
184
200
< div className = "grooming-board__toggle-button-wrapper" >
0 commit comments