@eeacms/volto-cca-policy 0.2.86 → 0.2.87

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 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.2.87](https://github.com/eea/volto-cca-policy/compare/0.2.86...0.2.87) - 20 December 2024
8
+
9
+ #### :nail_care: Enhancements
10
+
11
+ - change(map): remove light blue dots for AdapteCCA from case study explorer map; code cleanup - refs #281701 [kreafox - [`046cf1b`](https://github.com/eea/volto-cca-policy/commit/046cf1bbe3e427757d30234bfdb310e10e689bc2)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - Refs #281766 - rename Kosovo and Turkiye [Tripon Eugen - [`7728e62`](https://github.com/eea/volto-cca-policy/commit/7728e62c124f13762068bfb83a4995e38ff9844b)]
16
+ - Refs #281766 - update country list [Tripon Eugen - [`314fc4a`](https://github.com/eea/volto-cca-policy/commit/314fc4affbc543c95a6fe164453c46fbe3eac8c3)]
7
17
  ### [0.2.86](https://github.com/eea/volto-cca-policy/compare/0.2.85...0.2.86) - 18 December 2024
8
18
 
9
19
  #### :rocket: Dependency updates
@@ -1721,13 +1731,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1721
1731
  - Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
1722
1732
  - Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
1723
1733
  - Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
1724
- - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
1725
- - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
1726
1734
  ### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
1727
1735
 
1728
1736
  #### :house: Internal changes
1729
1737
 
1730
- - chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
1731
1738
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
1732
1739
 
1733
1740
  #### :hammer_and_wrench: Others
@@ -1744,9 +1751,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1744
1751
  - Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
1745
1752
  - Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
1746
1753
  - Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
1747
- - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
1748
- - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
1749
- - test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
1750
1754
  - Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
1751
1755
  - 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)]
1752
1756
  - Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
@@ -1963,7 +1967,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1963
1967
 
1964
1968
  #### :house: Internal changes
1965
1969
 
1966
- - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
1967
1970
 
1968
1971
  #### :hammer_and_wrench: Others
1969
1972
 
@@ -2444,7 +2447,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2444
2447
  #### :hammer_and_wrench: Others
2445
2448
 
2446
2449
  - Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
2447
- - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
2448
2450
  ### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
2449
2451
 
2450
2452
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.2.86",
3
+ "version": "0.2.87",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useIntl, FormattedMessage } from 'react-intl';
3
- import { Accordion, Icon, Checkbox } from 'semantic-ui-react';
3
+ import { Accordion, Icon, Checkbox, Button } from 'semantic-ui-react';
4
4
 
5
5
  const AccordionIcon = ({ active }) => {
6
6
  return (
@@ -12,6 +12,7 @@ const AccordionIcon = ({ active }) => {
12
12
  };
13
13
 
14
14
  export default function CaseStudyFilters(props) {
15
+ const intl = useIntl();
15
16
  const {
16
17
  filters,
17
18
  activeFilters,
@@ -74,7 +75,6 @@ export default function CaseStudyFilters(props) {
74
75
  setQuerySectors(tempSectors);
75
76
  };
76
77
 
77
- const intl = useIntl();
78
78
  return (
79
79
  <div className="casestudy-filters">
80
80
  <Accordion exclusive={false} className="secondary">
@@ -103,6 +103,7 @@ export default function CaseStudyFilters(props) {
103
103
  ),
104
104
  )}
105
105
  </Accordion.Content>
106
+
106
107
  <Accordion.Title
107
108
  active={activeIndex.includes(1)}
108
109
  index={1}
@@ -128,6 +129,7 @@ export default function CaseStudyFilters(props) {
128
129
  ),
129
130
  )}
130
131
  </Accordion.Content>
132
+
131
133
  <Accordion.Title
132
134
  active={activeIndex.includes(2)}
133
135
  index={2}
@@ -143,9 +145,7 @@ export default function CaseStudyFilters(props) {
143
145
  {Object.entries(filters?.measures || {}).map(
144
146
  ([key, values], index) => (
145
147
  <div className="subcategory" key={'ktm' + index}>
146
- <p>
147
- <strong>{intl.formatMessage({ id: key })}</strong>
148
- </p>
148
+ <h4>{intl.formatMessage({ id: key })}</h4>
149
149
  {Object.entries(values).map(([_, valData]) => (
150
150
  <Checkbox
151
151
  label={intl.formatMessage({ id: valData.value })}
@@ -186,29 +186,28 @@ export default function CaseStudyFilters(props) {
186
186
  )}
187
187
  </Accordion.Content>
188
188
  </Accordion>
189
+
189
190
  {nrActiveFilters ? (
190
- <button
191
- className="ui primary button reset"
192
- onClick={(_e) => resetFilters()}
193
- >
191
+ <Button primary className="reset" onClick={(_e) => resetFilters()}>
194
192
  Reset
195
- </button>
193
+ </Button>
196
194
  ) : null}
195
+
197
196
  <div className="case-study-legend">
198
197
  <p>
199
- <span></span>
198
+ <span className="case-study-dot" />
200
199
  <FormattedMessage
201
200
  id="Climate-ADAPT case studies"
202
201
  defaultMessage="Climate-ADAPT case studies"
203
202
  />
204
203
  </p>
205
- <p>
206
- <span className="light-blue"></span>
204
+ {/* <p>
205
+ <span className="case-study-dot light-blue" />
207
206
  <FormattedMessage
208
207
  id="Case studies collected at national level in Spain, provided by AdapteCCA.es"
209
208
  defaultMessage="Case studies collected at national level in Spain, provided by AdapteCCA.es"
210
209
  />
211
- </p>
210
+ </p> */}
212
211
  </div>
213
212
  </div>
214
213
  );
@@ -11,45 +11,57 @@ export default function FeatureDisplay({ feature }) {
11
11
  </a>
12
12
  </strong>
13
13
  </p>
14
- <span className="img">
15
- <center>
16
- <img src={feature.image} alt={feature.title} />
17
- </center>
18
- </span>
19
- <p style={{ marginBottom: '10px' }}>
20
- <span className="blue">
21
- <FormattedMessage
22
- id="Adaptation sectors"
23
- defaultMessage="Adaptation sectors"
24
- />
25
- {': '}
26
- </span>
27
- <span>{feature.adaptations}</span>
28
- </p>
29
- <p style={{ marginBottom: '10px' }}>
30
- <span className="blue">
31
- <FormattedMessage
32
- id="Climate impacts"
33
- defaultMessage="Climate impacts"
34
- />
35
- {': '}
36
- </span>
37
- <span>{feature.impacts}</span>
38
- </p>
39
- <p>
40
- <span className="blue">
41
- <FormattedMessage
42
- id="Adaptation options"
43
- defaultMessage="Adaptation options"
44
- />
45
- {': '}
14
+
15
+ {feature.image && (
16
+ <span className="img">
17
+ <center>
18
+ <img src={feature.image} alt={feature.title} />
19
+ </center>
46
20
  </span>
47
- <span
48
- dangerouslySetInnerHTML={{
49
- __html: feature.adaptation_options_links.replaceAll('<>', '; '),
50
- }}
51
- ></span>
52
- </p>
21
+ )}
22
+
23
+ {feature.adaptations && (
24
+ <p>
25
+ <span className="blue">
26
+ <FormattedMessage
27
+ id="Adaptation sectors"
28
+ defaultMessage="Adaptation sectors"
29
+ />
30
+ {': '}
31
+ </span>
32
+ <span>{feature.adaptations}</span>
33
+ </p>
34
+ )}
35
+
36
+ {feature.impacts && (
37
+ <p>
38
+ <span className="blue">
39
+ <FormattedMessage
40
+ id="Climate impacts"
41
+ defaultMessage="Climate impacts"
42
+ />
43
+ {': '}
44
+ </span>
45
+ <span>{feature.impacts}</span>
46
+ </p>
47
+ )}
48
+
49
+ {feature.adaptation_options_links && (
50
+ <p>
51
+ <span className="blue">
52
+ <FormattedMessage
53
+ id="Adaptation options"
54
+ defaultMessage="Adaptation options"
55
+ />
56
+ {': '}
57
+ </span>
58
+ <span
59
+ dangerouslySetInnerHTML={{
60
+ __html: feature.adaptation_options_links.replaceAll('<>', '; '),
61
+ }}
62
+ ></span>
63
+ </p>
64
+ )}
53
65
  </div>
54
66
  ) : null;
55
67
  }
@@ -1,12 +1,4 @@
1
- a.dbitem {
2
- font-size: 14px;
3
- }
4
-
5
- #csepopup > span {
6
- display: 'block';
7
- margin-bottom: '10px';
8
- background-color: '#ddd';
9
- }
1
+ @mapHeight: 70vh;
10
2
 
11
3
  #csepopup {
12
4
  width: 300px;
@@ -14,14 +6,15 @@ a.dbitem {
14
6
  border-bottom: 6px solid #005c96;
15
7
  background-color: white;
16
8
 
9
+ a.dbitem {
10
+ font-size: 14px;
11
+ text-decoration: none;
12
+ }
13
+
17
14
  p {
18
- padding: 0 10px 0 10px;
15
+ padding: 0 10px;
19
16
  font-size: 13px;
20
17
 
21
- p {
22
- margin-bottom: 10px;
23
- }
24
-
25
18
  a {
26
19
  text-decoration: underline;
27
20
  }
@@ -37,26 +30,21 @@ a.dbitem {
37
30
  background-color: #ddd;
38
31
 
39
32
  img {
40
- max-height: 133px;
33
+ max-height: 130px;
41
34
  }
42
35
  }
43
36
  }
44
37
 
45
38
  .section-case-study-explorer #popup-overlay {
46
- width: 340px;
47
- // max-height: 300px;
39
+ width: 300px;
48
40
  padding: 0;
49
41
  background-color: #fff;
50
42
  }
51
43
 
52
- @mapHeight: 70vh;
53
-
54
44
  .casestudy-explorer-map {
55
- // height: @mapHeight;
56
45
  min-height: @mapHeight;
57
46
 
58
47
  .ol-map {
59
- // height: @mapHeight;
60
48
  min-height: @mapHeight;
61
49
  }
62
50
 
@@ -68,54 +56,16 @@ a.dbitem {
68
56
 
69
57
  #cse-filter {
70
58
  h4 {
71
- position: relative;
72
- padding: 10px;
73
- border-bottom: 1px solid #d8d8d8;
74
- margin-top: 0 !important;
75
- margin-bottom: 0 !important;
76
- background-color: #fff;
77
- clear: both;
78
- color: #005c96;
79
- cursor: pointer;
80
- font-size: 14px;
81
- }
82
-
83
- p {
84
- // padding: 2px;
85
- padding-bottom: 10px;
86
- clear: both;
87
- line-height: 20px;
88
-
89
- span {
90
- float: left;
91
- font-family: OpenSansM, sans-serif;
92
- font-size: 12px;
93
- }
94
-
95
- input {
96
- float: right;
97
- }
98
- }
99
-
100
- div.title {
101
- width: 100%;
59
+ font-size: 16px;
102
60
  }
103
61
 
104
62
  .ui.accordion {
105
- & > .title > .icon {
106
- line-height: 1rem;
107
- }
108
-
109
- p {
110
- margin: 0;
111
- }
112
-
113
63
  .content {
114
64
  overflow: auto;
115
65
  max-height: 400px;
116
66
 
117
67
  .subcategory {
118
- margin-bottom: 30px;
68
+ margin-bottom: 20px;
119
69
  }
120
70
  }
121
71
  }
@@ -132,7 +82,7 @@ a.dbitem {
132
82
  padding-top: 20px;
133
83
  margin-top: auto;
134
84
 
135
- span {
85
+ .case-study-dot {
136
86
  display: inline-block;
137
87
  width: 12px;
138
88
  height: 12px;
@@ -141,10 +91,10 @@ a.dbitem {
141
91
  background-color: #005c96 !important;
142
92
  background-color: #bbb;
143
93
  border-radius: 50%;
144
- }
145
94
 
146
- span.light-blue {
147
- background-color: #00ffff !important;
95
+ // &.light-blue {
96
+ // background-color: #00ffff !important;
97
+ // }
148
98
  }
149
99
  }
150
100
  }
@@ -47,14 +47,14 @@ export const ACE_COUNTRIES = {
47
47
  NL: 'Netherlands',
48
48
  PT: 'Portugal',
49
49
  NO: 'Norway',
50
- TR: 'Turkey',
50
+ TR: 'Türkiye',
51
51
  LI: 'Liechtenstein',
52
52
  LV: 'Latvia',
53
53
  LT: 'Lithuania',
54
54
  LU: 'Luxembourg',
55
55
  RO: 'Romania',
56
56
  PL: 'Poland',
57
- XK: 'Kosovo under UN Security Council Resolution 1244/99',
57
+ XK: 'Kosovo',
58
58
  CH: 'Switzerland',
59
59
  GR: 'Greece',
60
60
  EE: 'Estonia',
@@ -504,9 +504,12 @@ export const SUBNATIONAL_REGIONS = {
504
504
  };
505
505
 
506
506
  export const EU_COUNTRIES = [
507
+ 'AL',
507
508
  'AT',
509
+ 'BA',
508
510
  'BE',
509
511
  'BG',
512
+ 'CH',
510
513
  'CY',
511
514
  'CZ',
512
515
  'DE',
@@ -519,18 +522,24 @@ export const EU_COUNTRIES = [
519
522
  'HR',
520
523
  'HU',
521
524
  'IE',
525
+ 'IS',
522
526
  'IT',
523
527
  'LI',
524
528
  'LT',
525
529
  'LU',
526
530
  'LV',
531
+ 'ME',
532
+ 'MK',
527
533
  'MT',
528
534
  'NL',
529
535
  'NO',
530
536
  'PL',
531
537
  'PT',
532
538
  'RO',
539
+ 'RS',
533
540
  'SE',
534
541
  'SI',
535
542
  'SK',
543
+ 'TR',
544
+ 'XK',
536
545
  ];