eionet2-dashboard 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -1
- package/package.json +1 -1
- package/tabs/package-lock.json +1 -1
- package/tabs/package.json +1 -1
- package/tabs/src/components/activity/Activity.jsx +94 -45
- package/tabs/src/components/activity/ConsultationList.jsx +40 -10
- package/tabs/src/components/my_country/AtAGlance.jsx +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,19 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
### [1.7.
|
|
7
|
+
### [1.7.1](https://github.com/eea/eionet2-dashboard/compare/1.7.0...1.7.1) - 29 November 2023
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat: ui improvements [Mihai Nicolae - [`822051f`](https://github.com/eea/eionet2-dashboard/commit/822051f21c19ddae4973012a052e1583207af9a9)]
|
|
12
|
+
- feat: add future cons/survery; fixes (#257970) [Mihai Nicolae - [`0f971ad`](https://github.com/eea/eionet2-dashboard/commit/0f971ad96f0539ebafd9061fb7d9d952fe1922c5)]
|
|
13
|
+
|
|
14
|
+
#### :house: Internal changes
|
|
15
|
+
|
|
16
|
+
- chore: version [Mihai Nicolae - [`870064d`](https://github.com/eea/eionet2-dashboard/commit/870064db6a0e5609c41a412f0c51438d6547db19)]
|
|
17
|
+
- chore: version [Mihai Nicolae - [`088ba5d`](https://github.com/eea/eionet2-dashboard/commit/088ba5de1b0738a011dfd0a1364113ed0acdaa13)]
|
|
18
|
+
|
|
19
|
+
### [1.7.0](https://github.com/eea/eionet2-dashboard/compare/1.6.1...1.7.0) - 28 November 2023
|
|
8
20
|
|
|
9
21
|
#### :rocket: New Features
|
|
10
22
|
|
package/package.json
CHANGED
package/tabs/package-lock.json
CHANGED
package/tabs/package.json
CHANGED
|
@@ -15,6 +15,8 @@ import Constants from '../../data/constants.json';
|
|
|
15
15
|
import LoopIcon from '@mui/icons-material/Loop';
|
|
16
16
|
import FastForwardOutlinedIcon from '@mui/icons-material/FastForwardOutlined';
|
|
17
17
|
import HistoryOutlinedIcon from '@mui/icons-material/HistoryOutlined';
|
|
18
|
+
import NextPlanOutlinedIcon from '@mui/icons-material/NextPlanOutlined';
|
|
19
|
+
|
|
18
20
|
import { ConsultationList } from './ConsultationList';
|
|
19
21
|
import { EventList } from './EventList';
|
|
20
22
|
import {
|
|
@@ -43,9 +45,11 @@ export function Activity({
|
|
|
43
45
|
[openConsultations, setOpenConsultations] = useState([]),
|
|
44
46
|
[reviewConsultations, setReviewConsultations] = useState([]),
|
|
45
47
|
[finalisedConsultations, setFinalisedConsultations] = useState([]),
|
|
48
|
+
[futureConsultations, setFutureConsultations] = useState([]),
|
|
46
49
|
[openSurveys, setOpenSurveys] = useState([]),
|
|
47
50
|
[reviewSurveys, setReviewSurveys] = useState([]),
|
|
48
51
|
[finalisedSurveys, setFinalisedSurveys] = useState([]),
|
|
52
|
+
[futureSurveys, setFutureSurveys] = useState([]),
|
|
49
53
|
[futurePublications, setFuturePublications] = useState([]),
|
|
50
54
|
[pastPublications, setPastPublications] = useState([]),
|
|
51
55
|
[upcomingObligations, setUpcomingObligations] = useState([]),
|
|
@@ -107,9 +111,9 @@ export function Activity({
|
|
|
107
111
|
onClick={() => setTabsValue(3)}
|
|
108
112
|
>
|
|
109
113
|
<ListItemIcon className="list-item-icon">
|
|
110
|
-
<
|
|
114
|
+
<NextPlanOutlinedIcon />
|
|
111
115
|
</ListItemIcon>
|
|
112
|
-
<ListItemText primary={'
|
|
116
|
+
<ListItemText primary={'Future(' + futureConsultations.length + ')'} />
|
|
113
117
|
</ListItemButton>
|
|
114
118
|
</ListItem>
|
|
115
119
|
<ListItem disablePadding className="list-item" key={6}>
|
|
@@ -118,15 +122,26 @@ export function Activity({
|
|
|
118
122
|
onClick={() => setTabsValue(4)}
|
|
119
123
|
>
|
|
120
124
|
<ListItemIcon className="list-item-icon">
|
|
121
|
-
<
|
|
125
|
+
<LoopIcon />
|
|
122
126
|
</ListItemIcon>
|
|
123
|
-
<ListItemText primary={'
|
|
127
|
+
<ListItemText primary={'Open (' + openConsultations.length + ')'} />
|
|
124
128
|
</ListItemButton>
|
|
125
129
|
</ListItem>
|
|
126
130
|
<ListItem disablePadding className="list-item" key={7}>
|
|
127
131
|
<ListItemButton
|
|
128
132
|
className={'list-item-button ' + (tabsValue == 5 ? ' drawer-item-selected' : '')}
|
|
129
133
|
onClick={() => setTabsValue(5)}
|
|
134
|
+
>
|
|
135
|
+
<ListItemIcon className="list-item-icon">
|
|
136
|
+
<FastForwardOutlinedIcon />
|
|
137
|
+
</ListItemIcon>
|
|
138
|
+
<ListItemText primary={'Review(' + reviewConsultations.length + ')'} />
|
|
139
|
+
</ListItemButton>
|
|
140
|
+
</ListItem>
|
|
141
|
+
<ListItem disablePadding className="list-item" key={8}>
|
|
142
|
+
<ListItemButton
|
|
143
|
+
className={'list-item-button ' + (tabsValue == 6 ? ' drawer-item-selected' : '')}
|
|
144
|
+
onClick={() => setTabsValue(6)}
|
|
130
145
|
>
|
|
131
146
|
<ListItemIcon className="list-item-icon">
|
|
132
147
|
<HistoryOutlinedIcon />
|
|
@@ -134,17 +149,29 @@ export function Activity({
|
|
|
134
149
|
<ListItemText primary={'Finalised(' + finalisedConsultations.length + ')'} />
|
|
135
150
|
</ListItemButton>
|
|
136
151
|
</ListItem>
|
|
137
|
-
|
|
152
|
+
|
|
153
|
+
<ListItem disablePadding className="list-item" key={9}>
|
|
138
154
|
<ListItemText
|
|
139
155
|
className="list-item-text"
|
|
140
156
|
primary={'INQUIRIES'}
|
|
141
157
|
sx={{ color: 'primary.main' }}
|
|
142
158
|
/>
|
|
143
159
|
</ListItem>
|
|
144
|
-
<ListItem disablePadding className="list-item" key={
|
|
160
|
+
<ListItem disablePadding className="list-item" key={10}>
|
|
145
161
|
<ListItemButton
|
|
146
|
-
className={'list-item-button ' + (tabsValue ==
|
|
147
|
-
onClick={() => setTabsValue(
|
|
162
|
+
className={'list-item-button ' + (tabsValue == 7 ? ' drawer-item-selected' : '')}
|
|
163
|
+
onClick={() => setTabsValue(7)}
|
|
164
|
+
>
|
|
165
|
+
<ListItemIcon className="list-item-icon">
|
|
166
|
+
<NextPlanOutlinedIcon />
|
|
167
|
+
</ListItemIcon>
|
|
168
|
+
<ListItemText primary={'Future(' + futureSurveys.length + ')'} />
|
|
169
|
+
</ListItemButton>
|
|
170
|
+
</ListItem>
|
|
171
|
+
<ListItem disablePadding className="list-item" key={11}>
|
|
172
|
+
<ListItemButton
|
|
173
|
+
className={'list-item-button ' + (tabsValue == 8 ? ' drawer-item-selected' : '')}
|
|
174
|
+
onClick={() => setTabsValue(8)}
|
|
148
175
|
>
|
|
149
176
|
<ListItemIcon className="list-item-icon">
|
|
150
177
|
<LoopIcon />
|
|
@@ -152,10 +179,10 @@ export function Activity({
|
|
|
152
179
|
<ListItemText primary={'Open(' + openSurveys.length + ')'} />
|
|
153
180
|
</ListItemButton>
|
|
154
181
|
</ListItem>
|
|
155
|
-
<ListItem disablePadding className="list-item" key={
|
|
182
|
+
<ListItem disablePadding className="list-item" key={12}>
|
|
156
183
|
<ListItemButton
|
|
157
|
-
className={'list-item-button ' + (tabsValue ==
|
|
158
|
-
onClick={() => setTabsValue(
|
|
184
|
+
className={'list-item-button ' + (tabsValue == 9 ? ' drawer-item-selected' : '')}
|
|
185
|
+
onClick={() => setTabsValue(9)}
|
|
159
186
|
>
|
|
160
187
|
<ListItemIcon className="list-item-icon">
|
|
161
188
|
<FastForwardOutlinedIcon />
|
|
@@ -163,10 +190,10 @@ export function Activity({
|
|
|
163
190
|
<ListItemText primary={'Review(' + reviewSurveys.length + ')'} />
|
|
164
191
|
</ListItemButton>
|
|
165
192
|
</ListItem>
|
|
166
|
-
<ListItem disablePadding className="list-item" key={
|
|
193
|
+
<ListItem disablePadding className="list-item" key={13}>
|
|
167
194
|
<ListItemButton
|
|
168
|
-
className={'list-item-button ' + (tabsValue ==
|
|
169
|
-
onClick={() => setTabsValue(
|
|
195
|
+
className={'list-item-button ' + (tabsValue == 10 ? ' drawer-item-selected' : '')}
|
|
196
|
+
onClick={() => setTabsValue(10)}
|
|
170
197
|
>
|
|
171
198
|
<ListItemIcon className="list-item-icon">
|
|
172
199
|
<HistoryOutlinedIcon />
|
|
@@ -174,17 +201,17 @@ export function Activity({
|
|
|
174
201
|
<ListItemText primary={'Finalised(' + finalisedSurveys.length + ')'} />
|
|
175
202
|
</ListItemButton>
|
|
176
203
|
</ListItem>
|
|
177
|
-
<ListItem disablePadding className="list-item" key={
|
|
204
|
+
<ListItem disablePadding className="list-item" key={14}>
|
|
178
205
|
<ListItemText
|
|
179
206
|
className="list-item-text"
|
|
180
207
|
primary={'PUBLICATIONS'}
|
|
181
208
|
sx={{ color: 'primary.main' }}
|
|
182
209
|
/>
|
|
183
210
|
</ListItem>
|
|
184
|
-
<ListItem disablePadding className="list-item" key={
|
|
211
|
+
<ListItem disablePadding className="list-item" key={15}>
|
|
185
212
|
<ListItemButton
|
|
186
|
-
className={'list-item-button ' + (tabsValue ==
|
|
187
|
-
onClick={() => setTabsValue(
|
|
213
|
+
className={'list-item-button ' + (tabsValue == 11 ? ' drawer-item-selected' : '')}
|
|
214
|
+
onClick={() => setTabsValue(11)}
|
|
188
215
|
>
|
|
189
216
|
<ListItemIcon className="list-item-icon">
|
|
190
217
|
<LoopIcon />
|
|
@@ -192,10 +219,10 @@ export function Activity({
|
|
|
192
219
|
<ListItemText primary={'Future(' + futurePublications.length + ')'} />
|
|
193
220
|
</ListItemButton>
|
|
194
221
|
</ListItem>
|
|
195
|
-
<ListItem disablePadding className="list-item" key={
|
|
222
|
+
<ListItem disablePadding className="list-item" key={16}>
|
|
196
223
|
<ListItemButton
|
|
197
|
-
className={'list-item-button ' + (tabsValue ==
|
|
198
|
-
onClick={() => setTabsValue(
|
|
224
|
+
className={'list-item-button ' + (tabsValue == 12 ? ' drawer-item-selected' : '')}
|
|
225
|
+
onClick={() => setTabsValue(12)}
|
|
199
226
|
>
|
|
200
227
|
<ListItemIcon className="list-item-icon">
|
|
201
228
|
<HistoryOutlinedIcon />
|
|
@@ -203,17 +230,17 @@ export function Activity({
|
|
|
203
230
|
<ListItemText primary={'Past(' + pastPublications.length + ')'} />
|
|
204
231
|
</ListItemButton>
|
|
205
232
|
</ListItem>
|
|
206
|
-
<ListItem disablePadding className="list-item" key={
|
|
233
|
+
<ListItem disablePadding className="list-item" key={17}>
|
|
207
234
|
<ListItemText
|
|
208
235
|
className="list-item-text"
|
|
209
236
|
primary={'REPORTING OBLIGATIONS'}
|
|
210
237
|
sx={{ color: 'primary.main' }}
|
|
211
238
|
/>
|
|
212
239
|
</ListItem>
|
|
213
|
-
<ListItem disablePadding className="list-item" key={
|
|
240
|
+
<ListItem disablePadding className="list-item" key={18}>
|
|
214
241
|
<ListItemButton
|
|
215
|
-
className={'list-item-button ' + (tabsValue ==
|
|
216
|
-
onClick={() => setTabsValue(
|
|
242
|
+
className={'list-item-button ' + (tabsValue == 13 ? ' drawer-item-selected' : '')}
|
|
243
|
+
onClick={() => setTabsValue(13)}
|
|
217
244
|
>
|
|
218
245
|
<ListItemIcon className="list-item-icon">
|
|
219
246
|
<LoopIcon />
|
|
@@ -221,10 +248,10 @@ export function Activity({
|
|
|
221
248
|
<ListItemText primary={'Upcoming(' + upcomingObligations.length + ')'} />
|
|
222
249
|
</ListItemButton>
|
|
223
250
|
</ListItem>
|
|
224
|
-
<ListItem disablePadding className="list-item" key={
|
|
251
|
+
<ListItem disablePadding className="list-item" key={19}>
|
|
225
252
|
<ListItemButton
|
|
226
|
-
className={'list-item-button ' + (tabsValue ==
|
|
227
|
-
onClick={() => setTabsValue(
|
|
253
|
+
className={'list-item-button ' + (tabsValue == 14 ? ' drawer-item-selected' : '')}
|
|
254
|
+
onClick={() => setTabsValue(14)}
|
|
228
255
|
>
|
|
229
256
|
<ListItemIcon className="list-item-icon">
|
|
230
257
|
<HistoryOutlinedIcon />
|
|
@@ -269,11 +296,13 @@ export function Activity({
|
|
|
269
296
|
|
|
270
297
|
getConsultations(undefined, fromDate, country).then((loadedConsultations) => {
|
|
271
298
|
if (loadedConsultations) {
|
|
299
|
+
const currentDate = new Date(new Date().toDateString());
|
|
272
300
|
setOpenConsultations(
|
|
273
301
|
loadedConsultations.filter((c) => {
|
|
274
302
|
return (
|
|
275
303
|
c.ConsultationType == Constants.ConsultationType.Consultation &&
|
|
276
|
-
c.Closed >=
|
|
304
|
+
c.Closed >= currentDate &&
|
|
305
|
+
c.Startdate <= currentDate
|
|
277
306
|
);
|
|
278
307
|
}),
|
|
279
308
|
);
|
|
@@ -281,8 +310,8 @@ export function Activity({
|
|
|
281
310
|
loadedConsultations.filter((c) => {
|
|
282
311
|
return (
|
|
283
312
|
c.ConsultationType == Constants.ConsultationType.Consultation &&
|
|
284
|
-
c.Closed <
|
|
285
|
-
c.Deadline >=
|
|
313
|
+
c.Closed < currentDate &&
|
|
314
|
+
c.Deadline >= currentDate
|
|
286
315
|
);
|
|
287
316
|
}),
|
|
288
317
|
);
|
|
@@ -290,8 +319,16 @@ export function Activity({
|
|
|
290
319
|
loadedConsultations.filter((c) => {
|
|
291
320
|
return (
|
|
292
321
|
c.ConsultationType == Constants.ConsultationType.Consultation &&
|
|
293
|
-
c.Closed <=
|
|
294
|
-
c.Deadline <
|
|
322
|
+
c.Closed <= currentDate &&
|
|
323
|
+
c.Deadline < currentDate
|
|
324
|
+
);
|
|
325
|
+
}),
|
|
326
|
+
);
|
|
327
|
+
setFutureConsultations(
|
|
328
|
+
loadedConsultations.filter((c) => {
|
|
329
|
+
return (
|
|
330
|
+
c.ConsultationType == Constants.ConsultationType.Consultation &&
|
|
331
|
+
c.Startdate > currentDate
|
|
295
332
|
);
|
|
296
333
|
}),
|
|
297
334
|
);
|
|
@@ -299,7 +336,9 @@ export function Activity({
|
|
|
299
336
|
setOpenSurveys(
|
|
300
337
|
loadedConsultations.filter((c) => {
|
|
301
338
|
return (
|
|
302
|
-
c.ConsultationType == Constants.ConsultationType.Survey &&
|
|
339
|
+
c.ConsultationType == Constants.ConsultationType.Survey &&
|
|
340
|
+
c.Closed >= currentDate &&
|
|
341
|
+
c.Startdate <= currentDate
|
|
303
342
|
);
|
|
304
343
|
}),
|
|
305
344
|
);
|
|
@@ -307,8 +346,8 @@ export function Activity({
|
|
|
307
346
|
loadedConsultations.filter((c) => {
|
|
308
347
|
return (
|
|
309
348
|
c.ConsultationType == Constants.ConsultationType.Survey &&
|
|
310
|
-
c.Closed <
|
|
311
|
-
c.Deadline >=
|
|
349
|
+
c.Closed < currentDate &&
|
|
350
|
+
c.Deadline >= currentDate
|
|
312
351
|
);
|
|
313
352
|
}),
|
|
314
353
|
);
|
|
@@ -316,8 +355,15 @@ export function Activity({
|
|
|
316
355
|
loadedConsultations.filter((c) => {
|
|
317
356
|
return (
|
|
318
357
|
c.ConsultationType == Constants.ConsultationType.Survey &&
|
|
319
|
-
c.Closed <=
|
|
320
|
-
c.Deadline <
|
|
358
|
+
c.Closed <= currentDate &&
|
|
359
|
+
c.Deadline < currentDate
|
|
360
|
+
);
|
|
361
|
+
}),
|
|
362
|
+
);
|
|
363
|
+
setFutureSurveys(
|
|
364
|
+
loadedConsultations.filter((c) => {
|
|
365
|
+
return (
|
|
366
|
+
c.ConsultationType == Constants.ConsultationType.Survey && c.Startdate > currentDate
|
|
321
367
|
);
|
|
322
368
|
}),
|
|
323
369
|
);
|
|
@@ -370,43 +416,46 @@ export function Activity({
|
|
|
370
416
|
openApproval={openApproval}
|
|
371
417
|
></EventList>
|
|
372
418
|
)}
|
|
373
|
-
{tabsValue >= 3 && tabsValue <=
|
|
419
|
+
{tabsValue >= 3 && tabsValue <= 6 && (
|
|
374
420
|
<ConsultationList
|
|
375
421
|
configuration={configuration}
|
|
376
422
|
openConsultations={openConsultations}
|
|
377
423
|
reviewConsultations={reviewConsultations}
|
|
378
424
|
finalisedConsultations={finalisedConsultations}
|
|
425
|
+
futureConsultations={futureConsultations}
|
|
379
426
|
type={Constants.ConsultationType.Consultation}
|
|
380
427
|
country={country}
|
|
381
428
|
tabsValue={tabsValue - 3}
|
|
382
429
|
></ConsultationList>
|
|
383
430
|
)}
|
|
384
|
-
{tabsValue >=
|
|
431
|
+
{tabsValue >= 7 && tabsValue <= 10 && (
|
|
385
432
|
<ConsultationList
|
|
386
433
|
configuration={configuration}
|
|
387
434
|
openConsultations={openSurveys}
|
|
388
435
|
reviewConsultations={reviewSurveys}
|
|
389
436
|
finalisedConsultations={finalisedSurveys}
|
|
437
|
+
futureConsultations={futureSurveys}
|
|
390
438
|
type={Constants.ConsultationType.Survey}
|
|
391
|
-
|
|
439
|
+
country={country}
|
|
440
|
+
tabsValue={tabsValue - 7}
|
|
392
441
|
></ConsultationList>
|
|
393
442
|
)}
|
|
394
|
-
{tabsValue >=
|
|
443
|
+
{tabsValue >= 11 && tabsValue <= 12 && (
|
|
395
444
|
<PublicatonList
|
|
396
445
|
userInfo={userInfo}
|
|
397
446
|
configuration={configuration}
|
|
398
447
|
futurePublications={futurePublications}
|
|
399
448
|
pastPublications={pastPublications}
|
|
400
|
-
tabsValue={tabsValue -
|
|
449
|
+
tabsValue={tabsValue - 11}
|
|
401
450
|
></PublicatonList>
|
|
402
451
|
)}
|
|
403
|
-
{tabsValue >=
|
|
452
|
+
{tabsValue >= 13 && tabsValue <= 14 && (
|
|
404
453
|
<ObligationList
|
|
405
454
|
userInfo={userInfo}
|
|
406
455
|
configuration={configuration}
|
|
407
456
|
upcomingObligations={upcomingObligations}
|
|
408
457
|
continuousObligations={continuousObligations}
|
|
409
|
-
tabsValue={tabsValue -
|
|
458
|
+
tabsValue={tabsValue - 13}
|
|
410
459
|
></ObligationList>
|
|
411
460
|
)}
|
|
412
461
|
</Box>
|
|
@@ -13,6 +13,7 @@ export function ConsultationList({
|
|
|
13
13
|
openConsultations,
|
|
14
14
|
reviewConsultations,
|
|
15
15
|
finalisedConsultations,
|
|
16
|
+
futureConsultations,
|
|
16
17
|
type,
|
|
17
18
|
country,
|
|
18
19
|
tabsValue,
|
|
@@ -72,21 +73,19 @@ export function ConsultationList({
|
|
|
72
73
|
renderGroupsTags = (params) => {
|
|
73
74
|
return <GroupsTags handleClick={handleCellClick} groups={params.row.EionetGroups || []} />;
|
|
74
75
|
},
|
|
75
|
-
|
|
76
|
+
renderDate = (date) => {
|
|
76
77
|
let dateFormat = configuration.DateFormatDashboard || 'dd-MMM-yyyy';
|
|
77
78
|
return (
|
|
78
79
|
<Typography className="grid-text" variant="body1" component={'span'}>
|
|
79
|
-
{format(
|
|
80
|
+
{format(date, dateFormat)}
|
|
80
81
|
</Typography>
|
|
81
82
|
);
|
|
82
83
|
},
|
|
84
|
+
renderStartDate = (params) => {
|
|
85
|
+
return renderDate(params.row.Startdate);
|
|
86
|
+
},
|
|
83
87
|
renderDeadline = (params) => {
|
|
84
|
-
|
|
85
|
-
return (
|
|
86
|
-
<Typography className="grid-text" variant="body1" component={'span'}>
|
|
87
|
-
{format(params.row.Deadline, dateFormat)}
|
|
88
|
-
</Typography>
|
|
89
|
-
);
|
|
88
|
+
return renderDate(params.row.Deadline);
|
|
90
89
|
},
|
|
91
90
|
renderResults = (params) => {
|
|
92
91
|
if (params.row.LinkToResults) {
|
|
@@ -226,6 +225,18 @@ export function ConsultationList({
|
|
|
226
225
|
align: 'center',
|
|
227
226
|
renderCell: renderResults,
|
|
228
227
|
});
|
|
228
|
+
|
|
229
|
+
let futureColumns = [];
|
|
230
|
+
futureColumns.push(titleColumn);
|
|
231
|
+
futureColumns.push(documentColumn);
|
|
232
|
+
futureColumns.push(groupsColumn);
|
|
233
|
+
futureColumns.push({
|
|
234
|
+
field: 'Startdate',
|
|
235
|
+
headerName: 'Expected launch date',
|
|
236
|
+
width: '190',
|
|
237
|
+
align: 'center',
|
|
238
|
+
renderCell: renderStartDate,
|
|
239
|
+
});
|
|
229
240
|
return (
|
|
230
241
|
<div className="">
|
|
231
242
|
{false && <span>{configuration.toString()}</span>}
|
|
@@ -245,6 +256,25 @@ export function ConsultationList({
|
|
|
245
256
|
</Dialog>
|
|
246
257
|
<Box className="grid-container">
|
|
247
258
|
{tabsValue == 0 && (
|
|
259
|
+
<ResizableGrid
|
|
260
|
+
rows={futureConsultations}
|
|
261
|
+
columns={futureColumns}
|
|
262
|
+
pageSizeOptions={[25, 50, 100]}
|
|
263
|
+
hideFooterSelectedRowCount={true}
|
|
264
|
+
initialState={{
|
|
265
|
+
pagination: { paginationModel: { pageSize: 25 } },
|
|
266
|
+
sorting: {
|
|
267
|
+
sortModel: [
|
|
268
|
+
{
|
|
269
|
+
field: 'Startdate',
|
|
270
|
+
sort: 'asc',
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
},
|
|
274
|
+
}}
|
|
275
|
+
/>
|
|
276
|
+
)}
|
|
277
|
+
{tabsValue == 1 && (
|
|
248
278
|
<ResizableGrid
|
|
249
279
|
rows={openConsultations}
|
|
250
280
|
columns={openColumns}
|
|
@@ -263,7 +293,7 @@ export function ConsultationList({
|
|
|
263
293
|
}}
|
|
264
294
|
/>
|
|
265
295
|
)}
|
|
266
|
-
{tabsValue ==
|
|
296
|
+
{tabsValue == 2 && (
|
|
267
297
|
<ResizableGrid
|
|
268
298
|
rows={reviewConsultations}
|
|
269
299
|
columns={reviewColumns}
|
|
@@ -281,7 +311,7 @@ export function ConsultationList({
|
|
|
281
311
|
}}
|
|
282
312
|
/>
|
|
283
313
|
)}
|
|
284
|
-
{tabsValue ==
|
|
314
|
+
{tabsValue == 3 && (
|
|
285
315
|
<ResizableGrid
|
|
286
316
|
rows={finalisedConsultations}
|
|
287
317
|
columns={finalisedColumns}
|
|
@@ -54,7 +54,9 @@ export function AtAGlance({
|
|
|
54
54
|
consultationsCount: allConsultations.length,
|
|
55
55
|
surveysCount: allSurveys.length,
|
|
56
56
|
attendedMeetingsCount: allMeetings.filter((meeting) => {
|
|
57
|
-
return meeting.Participants.some(
|
|
57
|
+
return meeting.Participants.some(
|
|
58
|
+
(participant) => participant.Country == country && participant.Participated,
|
|
59
|
+
);
|
|
58
60
|
}).length,
|
|
59
61
|
responseConsultationsCount: allConsultations.filter((c) => {
|
|
60
62
|
return c.Respondants.includes(country);
|