@eeacms/volto-cca-policy 0.3.38 → 0.3.39
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 +10 -0
- package/package.json +1 -1
- package/src/components/theme/MissionSignatoryProfile/TabSections/ActionPagesTab.jsx +2 -2
- package/src/components/theme/MissionSignatoryProfile/TabSections/AssessmentTab.jsx +19 -3
- package/src/components/theme/MissionSignatoryProfile/TabSections/AssessmentTab.test.jsx +0 -5
- package/src/components/theme/MissionSignatoryProfile/TabSections/PlanningTab.jsx +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ 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.39](https://github.com/eea/volto-cca-policy/compare/0.3.38...0.3.39) - 9 May 2025
|
|
8
|
+
|
|
9
|
+
#### :nail_care: Enhancements
|
|
10
|
+
|
|
11
|
+
- change: update Assessment bottom section - refs #286757 [kreafox - [`de01613`](https://github.com/eea/volto-cca-policy/commit/de0161390443df084d058a4243492974240b0406)]
|
|
12
|
+
|
|
13
|
+
#### :house: Internal changes
|
|
14
|
+
|
|
15
|
+
- style: improvements [kreafox - [`f06cfb9`](https://github.com/eea/volto-cca-policy/commit/f06cfb9867963b304ac8be3cd306ca7eeb575290)]
|
|
16
|
+
|
|
7
17
|
### [0.3.38](https://github.com/eea/volto-cca-policy/compare/0.3.37...0.3.38) - 9 May 2025
|
|
8
18
|
|
|
9
19
|
### [0.3.37](https://github.com/eea/volto-cca-policy/compare/0.3.36...0.3.37) - 8 May 2025
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ const ActionsTabContent = ({ action }) => {
|
|
|
13
13
|
<Grid.Column mobile={12} tablet={12} computer={6}>
|
|
14
14
|
{hasHazards && (
|
|
15
15
|
<>
|
|
16
|
-
<h5>{action.Hazards_Addressed_Label}</h5>
|
|
16
|
+
<h5 className="small-label">{action.Hazards_Addressed_Label}</h5>
|
|
17
17
|
<ul>
|
|
18
18
|
{action.Climate_Hazards.map((hazard, index) => (
|
|
19
19
|
<li key={index}>{hazard}</li>
|
|
@@ -23,7 +23,7 @@ const ActionsTabContent = ({ action }) => {
|
|
|
23
23
|
)}
|
|
24
24
|
{hasSectors && (
|
|
25
25
|
<>
|
|
26
|
-
<h5>{action.Sectors_Label}</h5>
|
|
26
|
+
<h5 className="small-label">{action.Sectors_Label}</h5>
|
|
27
27
|
<ul>
|
|
28
28
|
{action.Sectors.map((hazard, index) => (
|
|
29
29
|
<li key={index}>{hazard}</li>
|
|
@@ -56,8 +56,9 @@ const AssessmentTab = ({ result }) => {
|
|
|
56
56
|
Hazards_Abstract,
|
|
57
57
|
} = result.assessment_text?.[0] || [];
|
|
58
58
|
const assessment_risks = result.assessment_risks || [];
|
|
59
|
+
const assessment_sectors = result.assessment_sectors || [];
|
|
59
60
|
|
|
60
|
-
const [activeIndex, setActiveIndex] = React.useState(0);
|
|
61
|
+
// const [activeIndex, setActiveIndex] = React.useState(0);
|
|
61
62
|
|
|
62
63
|
return (
|
|
63
64
|
<Tab.Pane>
|
|
@@ -102,7 +103,22 @@ const AssessmentTab = ({ result }) => {
|
|
|
102
103
|
|
|
103
104
|
<br />
|
|
104
105
|
|
|
105
|
-
|
|
106
|
+
{assessment_sectors && (
|
|
107
|
+
<AccordionList
|
|
108
|
+
accordions={assessment_sectors.map((category) => ({
|
|
109
|
+
title: category.Category_Name,
|
|
110
|
+
content: (
|
|
111
|
+
<ul>
|
|
112
|
+
{category.Sectors.map((sector, idx) => (
|
|
113
|
+
<li key={idx}>{sector}</li>
|
|
114
|
+
))}
|
|
115
|
+
</ul>
|
|
116
|
+
),
|
|
117
|
+
}))}
|
|
118
|
+
/>
|
|
119
|
+
)}
|
|
120
|
+
|
|
121
|
+
{/* <Tab
|
|
106
122
|
menu={{
|
|
107
123
|
fluid: true,
|
|
108
124
|
className: 'secondary',
|
|
@@ -153,7 +169,7 @@ const AssessmentTab = ({ result }) => {
|
|
|
153
169
|
),
|
|
154
170
|
},
|
|
155
171
|
]}
|
|
156
|
-
/>
|
|
172
|
+
/> */}
|
|
157
173
|
</Tab.Pane>
|
|
158
174
|
);
|
|
159
175
|
};
|
|
@@ -54,10 +54,5 @@ describe('AssessmentTab', () => {
|
|
|
54
54
|
// Items section
|
|
55
55
|
expect(screen.getByText('Factor A')).toBeInTheDocument();
|
|
56
56
|
expect(screen.getByText('Factor B')).toBeInTheDocument();
|
|
57
|
-
|
|
58
|
-
// Hazard tabs
|
|
59
|
-
expect(screen.getByText('Water related')).toBeInTheDocument();
|
|
60
|
-
expect(screen.getByText('Heat related')).toBeInTheDocument();
|
|
61
|
-
expect(screen.getByText('Other hazards')).toBeInTheDocument();
|
|
62
57
|
});
|
|
63
58
|
});
|
|
@@ -34,7 +34,9 @@ const PlanningGoalContent = ({ goal }) => {
|
|
|
34
34
|
<Grid columns="12">
|
|
35
35
|
{hasHazards && (
|
|
36
36
|
<Grid.Column mobile={12} tablet={12} computer={6}>
|
|
37
|
-
<h5>
|
|
37
|
+
<h5 className="small-label">
|
|
38
|
+
{goal.Climate_Hazards_Addressed_Label}
|
|
39
|
+
</h5>
|
|
38
40
|
<ul>
|
|
39
41
|
{goal.Climate_Hazards.map((hazard, index) => (
|
|
40
42
|
<li key={index}>{hazard}</li>
|