@eeacms/volto-cca-policy 0.3.17 → 0.3.18
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 +22 -0
- package/package.json +1 -1
- package/src/components/manage/Blocks/MissionSignatoriesProfile/StatisticsSection.jsx +13 -10
- package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/AssessmentTab.jsx +165 -10
- package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/IntroductionTab.jsx +14 -0
- package/src/components/manage/Blocks/MissionSignatoriesProfile/style.less +18 -1
- package/theme/assets/images/image-narrow.svg +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ 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
|
+
### [0.3.18](https://github.com/eea/volto-cca-policy/compare/0.3.17...0.3.18) - 21 March 2025
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat: improve statistic section, add assessment section (WIP) - refs #285361 [kreafox - [`3a1ca18`](https://github.com/eea/volto-cca-policy/commit/3a1ca18aad31813e55c298c4160bd5092eb8303b)]
|
|
12
|
+
|
|
13
|
+
#### :nail_care: Enhancements
|
|
14
|
+
|
|
15
|
+
- change: improve mission signatories profile view - refs #285361 [kreafox - [`e3a2de9`](https://github.com/eea/volto-cca-policy/commit/e3a2de94b3bb329012380b33695f1f976cd6611e)]
|
|
16
|
+
|
|
17
|
+
#### :house: Internal changes
|
|
18
|
+
|
|
19
|
+
- style: Automated code fix [eea-jenkins - [`7bfbc5c`](https://github.com/eea/volto-cca-policy/commit/7bfbc5cc9ab0489e5dbb9dd35eca77a1ee83d089)]
|
|
20
|
+
|
|
7
21
|
### [0.3.17](https://github.com/eea/volto-cca-policy/compare/0.3.16...0.3.17) - 19 March 2025
|
|
8
22
|
|
|
9
23
|
#### :rocket: New Features
|
|
@@ -2019,10 +2033,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2019
2033
|
- Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
|
|
2020
2034
|
- Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
|
|
2021
2035
|
- Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
|
|
2036
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
|
|
2037
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
|
|
2022
2038
|
### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
|
|
2023
2039
|
|
|
2024
2040
|
#### :house: Internal changes
|
|
2025
2041
|
|
|
2042
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
|
|
2026
2043
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
|
|
2027
2044
|
|
|
2028
2045
|
#### :hammer_and_wrench: Others
|
|
@@ -2039,6 +2056,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2039
2056
|
- Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
|
|
2040
2057
|
- Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
|
|
2041
2058
|
- Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
|
|
2059
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
|
|
2060
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
|
|
2061
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
|
|
2042
2062
|
- Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
|
|
2043
2063
|
- Refs #256681 - Fix error in CCA Event view menu. ([React Intl] An id must be provided to format a message.) [GhitaB - [`517eeb8`](https://github.com/eea/volto-cca-policy/commit/517eeb817264a47bbfd6b9b7d22aaf22d44ed224)]
|
|
2044
2064
|
- Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
|
|
@@ -2255,6 +2275,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2255
2275
|
|
|
2256
2276
|
#### :house: Internal changes
|
|
2257
2277
|
|
|
2278
|
+
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
|
|
2258
2279
|
|
|
2259
2280
|
#### :hammer_and_wrench: Others
|
|
2260
2281
|
|
|
@@ -2735,6 +2756,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2735
2756
|
#### :hammer_and_wrench: Others
|
|
2736
2757
|
|
|
2737
2758
|
- Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
|
|
2759
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
|
|
2738
2760
|
### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
|
|
2739
2761
|
|
|
2740
2762
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
Statistic,
|
|
5
|
+
StatisticValue,
|
|
6
|
+
StatisticLabel,
|
|
7
|
+
StatisticGroup,
|
|
8
|
+
} from 'semantic-ui-react';
|
|
9
|
+
|
|
3
10
|
const StatisticsSection = ({ statistics }) => {
|
|
4
11
|
return (
|
|
5
|
-
<
|
|
12
|
+
<StatisticGroup widths="two" size="small">
|
|
6
13
|
{statistics.map((stat, index) => (
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<div className="label slate text-center primary">
|
|
12
|
-
<p>{stat.label}</p>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
14
|
+
<Statistic key={index}>
|
|
15
|
+
<StatisticValue>{stat.value}</StatisticValue>
|
|
16
|
+
<StatisticLabel>{stat.label}</StatisticLabel>
|
|
17
|
+
</Statistic>
|
|
15
18
|
))}
|
|
16
|
-
</
|
|
19
|
+
</StatisticGroup>
|
|
17
20
|
);
|
|
18
21
|
};
|
|
19
22
|
|
package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/AssessmentTab.jsx
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Tab,
|
|
4
|
+
Image,
|
|
5
|
+
Button,
|
|
6
|
+
Segment,
|
|
7
|
+
Grid,
|
|
8
|
+
GridColumn,
|
|
9
|
+
Item,
|
|
10
|
+
ItemGroup,
|
|
11
|
+
ItemContent,
|
|
12
|
+
} from 'semantic-ui-react';
|
|
3
13
|
import { Callout } from '@eeacms/volto-eea-design-system/ui';
|
|
14
|
+
import AccordionList from './../AccordionList';
|
|
15
|
+
|
|
16
|
+
import image from '@eeacms/volto-cca-policy/../theme//assets/images/image-narrow.svg';
|
|
4
17
|
|
|
5
18
|
const AssessmentTab = () => {
|
|
19
|
+
const [activeIndex, setActiveIndex] = React.useState(0);
|
|
6
20
|
return (
|
|
7
21
|
<Tab.Pane>
|
|
8
22
|
<h2>Assessment</h2>
|
|
@@ -12,17 +26,158 @@ const AssessmentTab = () => {
|
|
|
12
26
|
eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
13
27
|
</p>
|
|
14
28
|
</Callout>
|
|
29
|
+
|
|
30
|
+
<div className="profile-content-box">
|
|
31
|
+
<h3>Climate Risk Assessment</h3>
|
|
32
|
+
<div className="profile-content-box-info">
|
|
33
|
+
<ItemGroup unstackable className="row">
|
|
34
|
+
<Item>
|
|
35
|
+
<Image size="miny" src={image} />
|
|
36
|
+
<ItemContent
|
|
37
|
+
verticalAlign="middle"
|
|
38
|
+
style={{ paddingLeft: '5px' }}
|
|
39
|
+
>
|
|
40
|
+
Lorem ipsum dolor sit amet
|
|
41
|
+
</ItemContent>
|
|
42
|
+
</Item>
|
|
43
|
+
</ItemGroup>
|
|
44
|
+
|
|
45
|
+
<div className="date">
|
|
46
|
+
<p>Year of publication: 2022</p>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<h4>The CRA conducted considers the following factors</h4>
|
|
51
|
+
|
|
52
|
+
<div className="items-wrapper">
|
|
53
|
+
<Grid className="column-grid">
|
|
54
|
+
<GridColumn width={6} className="column-blocks-wrapper">
|
|
55
|
+
<ItemGroup unstackable className="row">
|
|
56
|
+
<Item>
|
|
57
|
+
<Image size="small" src={image} />
|
|
58
|
+
<ItemContent verticalAlign="middle">
|
|
59
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
60
|
+
</ItemContent>
|
|
61
|
+
</Item>
|
|
62
|
+
|
|
63
|
+
<Item>
|
|
64
|
+
<Image size="small" src={image} />
|
|
65
|
+
<ItemContent verticalAlign="middle">
|
|
66
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
67
|
+
</ItemContent>
|
|
68
|
+
</Item>
|
|
69
|
+
|
|
70
|
+
<Item>
|
|
71
|
+
<Image size="small" src={image} />
|
|
72
|
+
<ItemContent verticalAlign="middle">
|
|
73
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
74
|
+
</ItemContent>
|
|
75
|
+
</Item>
|
|
76
|
+
</ItemGroup>
|
|
77
|
+
</GridColumn>
|
|
78
|
+
|
|
79
|
+
<GridColumn width={6}>
|
|
80
|
+
<ItemGroup unstackable className="row">
|
|
81
|
+
<Item>
|
|
82
|
+
<Image size="small" src={image} />
|
|
83
|
+
<ItemContent verticalAlign="middle">
|
|
84
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
85
|
+
</ItemContent>
|
|
86
|
+
</Item>
|
|
87
|
+
|
|
88
|
+
<Item>
|
|
89
|
+
<Image size="small" src={image} />
|
|
90
|
+
<ItemContent verticalAlign="middle">
|
|
91
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
92
|
+
</ItemContent>
|
|
93
|
+
</Item>
|
|
94
|
+
|
|
95
|
+
<Item>
|
|
96
|
+
<Image size="small" src={image} />
|
|
97
|
+
<ItemContent verticalAlign="middle">
|
|
98
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
|
99
|
+
</ItemContent>
|
|
100
|
+
</Item>
|
|
101
|
+
</ItemGroup>
|
|
102
|
+
</GridColumn>
|
|
103
|
+
</Grid>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<h4>Further details</h4>
|
|
107
|
+
<Segment>
|
|
108
|
+
Nam tempor finibus lorem, nec varius arcu convallis sed. Nunc id orci
|
|
109
|
+
a neque vehicula malesuada. Donec vehicula libero vel leo convallis,
|
|
110
|
+
nec tincidunt felis tincidunt. Maecenas euismod tristique leo, vel
|
|
111
|
+
malesuada ligula malesuada sed. Donec eget libero id leo congue
|
|
112
|
+
venenatis.
|
|
113
|
+
</Segment>
|
|
114
|
+
<Button primary inverted>
|
|
115
|
+
Download
|
|
116
|
+
</Button>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<h3>Climate related hazards & sectors most exposed</h3>
|
|
15
120
|
<p>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
|
|
21
|
-
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit
|
|
22
|
-
in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
|
23
|
-
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
|
|
24
|
-
officia deserunt mollit anim id est laborum.
|
|
121
|
+
Donec eget libero id leo congue venenatis. Ut enim ad minim veniam, quis
|
|
122
|
+
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
123
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit
|
|
124
|
+
esse cillum dolore eu fugiat nulla pariatur.
|
|
25
125
|
</p>
|
|
126
|
+
|
|
127
|
+
<br />
|
|
128
|
+
|
|
129
|
+
<Tab
|
|
130
|
+
menu={{
|
|
131
|
+
fluid: true,
|
|
132
|
+
className: 'secondary',
|
|
133
|
+
vertical: true,
|
|
134
|
+
pointing: true,
|
|
135
|
+
}}
|
|
136
|
+
grid={{ paneWidth: 9, tabWidth: 3, stackable: true }}
|
|
137
|
+
activeIndex={activeIndex}
|
|
138
|
+
onTabChange={(e, { activeIndex }) => setActiveIndex(activeIndex)}
|
|
139
|
+
panes={[
|
|
140
|
+
{
|
|
141
|
+
menuItem: 'Water related',
|
|
142
|
+
render: () => (
|
|
143
|
+
<AccordionList
|
|
144
|
+
accordions={[
|
|
145
|
+
{
|
|
146
|
+
title: 'Vestibulum ante ipsum primis',
|
|
147
|
+
content: 'No additional details provided.',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
title: 'Etiam accumsan urna a mauris',
|
|
151
|
+
content: 'No additional details provided.',
|
|
152
|
+
},
|
|
153
|
+
]}
|
|
154
|
+
/>
|
|
155
|
+
),
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
menuItem: 'Heat related',
|
|
159
|
+
render: () => (
|
|
160
|
+
<div>
|
|
161
|
+
Nam tempor finibus lorem, nec varius arcu convallis sed. Nunc id
|
|
162
|
+
orci a neque vehicula malesuada. Donec vehicula libero vel leo
|
|
163
|
+
convallis, nec tincidunt felis tincidunt. Maecenas euismod
|
|
164
|
+
tristique leo, vel malesuada ligula malesuada sed.
|
|
165
|
+
</div>
|
|
166
|
+
),
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
menuItem: 'Other hazards',
|
|
170
|
+
render: () => (
|
|
171
|
+
<div>
|
|
172
|
+
Nam tempor finibus lorem, nec varius arcu convallis sed. Nunc id
|
|
173
|
+
orci a neque vehicula malesuada. Donec vehicula libero vel leo
|
|
174
|
+
convallis, nec tincidunt felis tincidunt. Maecenas euismod
|
|
175
|
+
tristique leo, vel malesuada ligula malesuada sed.
|
|
176
|
+
</div>
|
|
177
|
+
),
|
|
178
|
+
},
|
|
179
|
+
]}
|
|
180
|
+
/>
|
|
26
181
|
</Tab.Pane>
|
|
27
182
|
);
|
|
28
183
|
};
|
package/src/components/manage/Blocks/MissionSignatoriesProfile/TabSections/IntroductionTab.jsx
CHANGED
|
@@ -12,12 +12,26 @@ const IntroductionTab = () => {
|
|
|
12
12
|
tristique senectus et netus et malesuada fames ac turpis egestas.
|
|
13
13
|
</p>
|
|
14
14
|
</Callout>
|
|
15
|
+
<h3>The Mission on Adaptation</h3>
|
|
15
16
|
<p>
|
|
16
17
|
Nulla facilisi. Donec fringilla urna id ligula ullamcorper, vel
|
|
17
18
|
tristique lorem posuere. Donec et orci mauris. Nullam tempor velit id mi
|
|
18
19
|
luctus, a scelerisque libero accumsan. In hac habitasse platea dictumst.
|
|
19
20
|
Cras ac nunc nec massa tristique fringilla.
|
|
20
21
|
</p>
|
|
22
|
+
<h3>Data source</h3>
|
|
23
|
+
<p>
|
|
24
|
+
Donec eget libero id leo congue venenatis. Ut enim ad minim veniam, quis
|
|
25
|
+
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
26
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit
|
|
27
|
+
esse cillum dolore eu fugiat nulla pariatur.
|
|
28
|
+
</p>
|
|
29
|
+
<p>
|
|
30
|
+
Donec eget libero id leo congue venenatis. Ut enim ad minim veniam, quis
|
|
31
|
+
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
32
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit
|
|
33
|
+
esse cillum dolore eu fugiat nulla pariatur.
|
|
34
|
+
</p>
|
|
21
35
|
</Tab.Pane>
|
|
22
36
|
);
|
|
23
37
|
};
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
.signatories-profile {
|
|
2
|
-
.
|
|
2
|
+
.profile-content-box {
|
|
3
|
+
padding: 1.5em;
|
|
3
4
|
margin: 2em 0;
|
|
5
|
+
background-color: #f9f9f9;
|
|
6
|
+
|
|
7
|
+
.items-wrapper {
|
|
8
|
+
margin: 2em 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.profile-content-box-info {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
|
|
16
|
+
.date {
|
|
17
|
+
position: relative;
|
|
18
|
+
top: 5px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
4
21
|
}
|
|
5
22
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M10 13L11.9333 11V25L10 23H26L24.0667 25V11L26 13H10ZM26 11V18V21.5V23.5V25H10V11H26Z" fill="#007B6C"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 31H29V29H7V31Z" fill="#007B6C"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7 7H29V5H7V7Z" fill="#007B6C"/>
|
|
5
|
+
</svg>
|