@eeacms/volto-cca-policy 0.2.88 → 0.2.89

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,11 +4,15 @@ 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.88](https://github.com/eea/volto-cca-policy/compare/0.2.87...0.2.88) - 6 January 2025
7
+ ### [0.2.89](https://github.com/eea/volto-cca-policy/compare/0.2.88...0.2.89) - 7 January 2025
8
8
 
9
9
  #### :hammer_and_wrench: Others
10
10
 
11
- - Fix facet for mission tools [Tiberiu Ichim - [`a4b5787`](https://github.com/eea/volto-cca-policy/commit/a4b578762eac8da26b01b5fef7cbddbebdd78eb6)]
11
+ - Refs #268762 - update map to allow hover tr update [Tripon Eugen - [`0be2afe`](https://github.com/eea/volto-cca-policy/commit/0be2afed14d855d9bbf7bbaebb0f70688506e692)]
12
+ - Refs #268762 - update map to allow hover tr [Tripon Eugen - [`8a94cf1`](https://github.com/eea/volto-cca-policy/commit/8a94cf1888f34793b8637fe383b923ee196403d8)]
13
+ - Remove prefix condition, will be solved by indexing [Tiberiu Ichim - [`3cf4ed0`](https://github.com/eea/volto-cca-policy/commit/3cf4ed0befde89e8cc3393c8458aa3d5a6d9a70a)]
14
+ ### [0.2.88](https://github.com/eea/volto-cca-policy/compare/0.2.87...0.2.88) - 6 January 2025
15
+
12
16
  ### [0.2.87](https://github.com/eea/volto-cca-policy/compare/0.2.86...0.2.87) - 20 December 2024
13
17
 
14
18
  #### :nail_care: Enhancements
@@ -1736,13 +1740,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1736
1740
  - Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
1737
1741
  - Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
1738
1742
  - Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
1739
- - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
1740
- - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
1741
1743
  ### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
1742
1744
 
1743
1745
  #### :house: Internal changes
1744
1746
 
1745
- - chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
1746
1747
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
1747
1748
 
1748
1749
  #### :hammer_and_wrench: Others
@@ -1759,9 +1760,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1759
1760
  - Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
1760
1761
  - Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
1761
1762
  - Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
1762
- - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
1763
- - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
1764
- - test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
1765
1763
  - Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
1766
1764
  - 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)]
1767
1765
  - Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
@@ -1978,7 +1976,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1978
1976
 
1979
1977
  #### :house: Internal changes
1980
1978
 
1981
- - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
1982
1979
 
1983
1980
  #### :hammer_and_wrench: Others
1984
1981
 
@@ -2459,7 +2456,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2459
2456
  #### :hammer_and_wrench: Others
2460
2457
 
2461
2458
  - Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
2462
- - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
2463
2459
  ### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
2464
2460
 
2465
2461
  #### :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.88",
3
+ "version": "0.2.89",
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",
@@ -37,12 +37,21 @@ const CountryMapObservatoryView = (props) => {
37
37
  setOverlaySource(new ol.source.Vector());
38
38
 
39
39
  const features = new ol.format.GeoJSON().readFeatures(geofeatures);
40
+ const updateEuCountryNames = euCountryNames.map((countryName) => {
41
+ if ('Turkey' === countryName) {
42
+ countryName = 'Türkiye';
43
+ }
44
+ return countryName;
45
+ });
46
+
40
47
  const filtered = features.filter((f) =>
41
- euCountryNames.includes(f.get('na')),
48
+ updateEuCountryNames.includes(f.get('na')),
42
49
  );
43
-
44
50
  filtered.forEach((feature) => {
45
51
  const img = new Image();
52
+ if ('Türkiye' === feature.values_.na) {
53
+ feature.values_.na = 'Turkey';
54
+ }
46
55
  img.onload = function () {
47
56
  feature.set('flag', img);
48
57
  };
@@ -70,12 +79,14 @@ const CountryMapObservatoryView = (props) => {
70
79
 
71
80
  const onFeatureClick = React.useCallback(
72
81
  (feature) => {
73
- const country = feature.get('na');
82
+ let country = feature.get('na');
83
+ if ('Türkiye' === country) {
84
+ country = 'Turkey';
85
+ }
74
86
  history.push(`${baseUrl}/${country.toLowerCase()}`);
75
87
  },
76
88
  [baseUrl, history],
77
89
  );
78
- // console.log(geofeatures, projection, euCountriesSource, overlaySource);
79
90
 
80
91
  return tileWMSSources ? (
81
92
  <Map
@@ -85,11 +85,11 @@ export default function installMainSearch(config) {
85
85
  cca_include_in_mission: 'true',
86
86
  },
87
87
  },
88
- {
89
- prefix: {
90
- 'id.keyword': 'https://climate-adapt.eea.europa.eu/en/mission',
91
- },
92
- },
88
+ // {
89
+ // prefix: {
90
+ // 'id.keyword': 'https://climate-adapt.eea.europa.eu/en/mission',
91
+ // },
92
+ // },
93
93
  ],
94
94
  minimum_should_match: 1,
95
95
  },