@eeacms/volto-cca-policy 0.1.89 → 0.1.90

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,7 +4,12 @@ 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.1.89](https://github.com/eea/volto-cca-policy/compare/0.1.88...0.1.89) - 4 March 2024
7
+ ### [0.1.90](https://github.com/eea/volto-cca-policy/compare/0.1.89...0.1.90) - 5 March 2024
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Fix default [Tiberiu Ichim - [`03849ee`](https://github.com/eea/volto-cca-policy/commit/03849ee821516ef131e863378ae6e12e4b6a41cd)]
12
+ ### [0.1.89](https://github.com/eea/volto-cca-policy/compare/0.1.88...0.1.89) - 5 March 2024
8
13
 
9
14
  #### :bug: Bug Fixes
10
15
 
@@ -563,10 +568,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
563
568
  - Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
564
569
  - Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
565
570
  - Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
571
+ - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
572
+ - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
566
573
  ### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
567
574
 
568
575
  #### :house: Internal changes
569
576
 
577
+ - chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
570
578
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
571
579
 
572
580
  #### :hammer_and_wrench: Others
@@ -583,6 +591,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
583
591
  - Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
584
592
  - Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
585
593
  - Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
594
+ - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
595
+ - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
596
+ - test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
586
597
  - Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
587
598
  - 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)]
588
599
  - Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
@@ -799,6 +810,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
799
810
 
800
811
  #### :house: Internal changes
801
812
 
813
+ - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
802
814
 
803
815
  #### :hammer_and_wrench: Others
804
816
 
@@ -1279,6 +1291,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1279
1291
  #### :hammer_and_wrench: Others
1280
1292
 
1281
1293
  - Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
1294
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
1282
1295
  ### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
1283
1296
 
1284
1297
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.89",
3
+ "version": "0.1.90",
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",
@@ -51,7 +51,7 @@ const Schema = () => {
51
51
  ['SearchBlock', 'Volto Search block'],
52
52
  ['EEASemanticSearch', 'EEA Semantic Search'],
53
53
  ],
54
- default: 'ListingBlock',
54
+ default: 'SearchBlock',
55
55
  },
56
56
  showLabel: {
57
57
  type: 'boolean',
package/src/index.js CHANGED
@@ -211,6 +211,27 @@ const applyConfig = (config) => {
211
211
  };
212
212
  }
213
213
 
214
+ const { facetWidgets } = config.blocks.blocksConfig.search.extensions;
215
+ const { rewriteOptions } = facetWidgets;
216
+ const origin_website_blacklist = ['AdapteCCA', 'DRMKC'];
217
+ facetWidgets.rewriteOptions = (name, choices) => {
218
+ let base = rewriteOptions(name, choices);
219
+ if (name === 'origin_website') {
220
+ base.forEach((pair) => {
221
+ if (pair.value === 'Lancet Countdown') {
222
+ pair.label = 'Lancet Countdown in Europe';
223
+ }
224
+ if (pair.value === 'C3S') {
225
+ pair.label = 'Copernicus (C3S)';
226
+ }
227
+ });
228
+ base = base.filter(
229
+ (f) => origin_website_blacklist.indexOf(f.value) === -1,
230
+ );
231
+ }
232
+ return base;
233
+ };
234
+
214
235
  // Move blocks to Site group
215
236
  const move_to_site = [
216
237
  'countryFlag',