@eeacms/volto-cca-policy 0.2.44 → 0.2.46

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,10 @@ 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.46](https://github.com/eea/volto-cca-policy/compare/0.2.45...0.2.46) - 1 July 2024
8
+
9
+ ### [0.2.45](https://github.com/eea/volto-cca-policy/compare/0.2.44...0.2.45) - 24 June 2024
10
+
7
11
  ### [0.2.44](https://github.com/eea/volto-cca-policy/compare/0.2.43...0.2.44) - 20 June 2024
8
12
 
9
13
  #### :nail_care: Enhancements
@@ -1407,10 +1411,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1407
1411
  - Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
1408
1412
  - Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
1409
1413
  - Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
1414
+ - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
1415
+ - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
1410
1416
  ### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
1411
1417
 
1412
1418
  #### :house: Internal changes
1413
1419
 
1420
+ - chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
1414
1421
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
1415
1422
 
1416
1423
  #### :hammer_and_wrench: Others
@@ -1427,6 +1434,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1427
1434
  - Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
1428
1435
  - Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
1429
1436
  - Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
1437
+ - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
1438
+ - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
1439
+ - test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
1430
1440
  - Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
1431
1441
  - 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)]
1432
1442
  - Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
@@ -1643,6 +1653,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1643
1653
 
1644
1654
  #### :house: Internal changes
1645
1655
 
1656
+ - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
1646
1657
 
1647
1658
  #### :hammer_and_wrench: Others
1648
1659
 
@@ -2123,6 +2134,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2123
2134
  #### :hammer_and_wrench: Others
2124
2135
 
2125
2136
  - Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
2137
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
2126
2138
  ### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
2127
2139
 
2128
2140
  #### :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.44",
3
+ "version": "0.2.46",
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",
@@ -84,31 +84,6 @@ export default function CaseStudyFilters(props) {
84
84
  ),
85
85
  )}
86
86
  </Accordion.Content>
87
- <Accordion.Title
88
- active={activeIndex.includes(3)}
89
- index={3}
90
- onClick={handleClick}
91
- >
92
- <AccordionIcon active={activeIndex.includes(3)} />
93
- <FormattedMessage
94
- id="Adaptation elements"
95
- defaultMessage="Adaptation elements"
96
- />
97
- </Accordion.Title>
98
- <Accordion.Content active={activeIndex.includes(3)}>
99
- {Object.entries(filters?.elements || {}).map(
100
- ([value, label], index) => (
101
- <Checkbox
102
- label={intl.formatMessage({ id: label })}
103
- value={value}
104
- checked={activeFilters.elements.includes(value)}
105
- name="elements"
106
- onChange={checkboxChangeHandler}
107
- key={'element' + index}
108
- />
109
- ),
110
- )}
111
- </Accordion.Content>
112
87
  <Accordion.Title
113
88
  active={activeIndex.includes(1)}
114
89
  index={1}
@@ -166,6 +141,31 @@ export default function CaseStudyFilters(props) {
166
141
  ),
167
142
  )}
168
143
  </Accordion.Content>
144
+ <Accordion.Title
145
+ active={activeIndex.includes(3)}
146
+ index={3}
147
+ onClick={handleClick}
148
+ >
149
+ <AccordionIcon active={activeIndex.includes(3)} />
150
+ <FormattedMessage
151
+ id="Adaptation elements"
152
+ defaultMessage="Adaptation elements"
153
+ />
154
+ </Accordion.Title>
155
+ <Accordion.Content active={activeIndex.includes(3)}>
156
+ {Object.entries(filters?.elements || {}).map(
157
+ ([value, label], index) => (
158
+ <Checkbox
159
+ label={intl.formatMessage({ id: label })}
160
+ value={value}
161
+ checked={activeFilters.elements.includes(value)}
162
+ name="elements"
163
+ onChange={checkboxChangeHandler}
164
+ key={'element' + index}
165
+ />
166
+ ),
167
+ )}
168
+ </Accordion.Content>
169
169
  </Accordion>
170
170
  {nrActiveFilters ? (
171
171
  <button
@@ -51,6 +51,12 @@ function CcaEventView(props) {
51
51
  blocks: filtered_blocks,
52
52
  blocks_layout: filtered_blocks_layout,
53
53
  } = filterBlocks(content, 'tabs_block');
54
+ const titleBlock = Object.values(filtered_blocks).find(
55
+ (block) => block['@type'] === 'title',
56
+ );
57
+ if (titleBlock && !titleBlock.subtitle && content.subtitle) {
58
+ titleBlock.subtitle = content.subtitle;
59
+ }
54
60
 
55
61
  return (
56
62
  <div className="cca-event-view">