@eeacms/volto-cca-policy 0.2.81 → 0.2.82

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,21 @@ 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.82](https://github.com/eea/volto-cca-policy/compare/0.2.81...0.2.82) - 12 December 2024
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Refs #281176 - test resizable [Tripon Eugen - [`0a6dd6a`](https://github.com/eea/volto-cca-policy/commit/0a6dd6a3a771c554cac251eb1ae22a0fab4c9215)]
12
+ - Refs #281176 - do not show empty fields [Tripon Eugen - [`3c1b1b2`](https://github.com/eea/volto-cca-policy/commit/3c1b1b27505eb17e797362e0703c96c0b27f6769)]
13
+ - Refs #281176 - do not show empty sections [Tripon Eugen - [`4d1ebc2`](https://github.com/eea/volto-cca-policy/commit/4d1ebc2f21c5b2b7381efa290e4ea0265b979009)]
14
+ - Refs #281474 - float image left [Tripon Eugen - [`167561b`](https://github.com/eea/volto-cca-policy/commit/167561be774fdaa1e0fad6f26d1b53b708401138)]
15
+ - Refs #281502 - test wip [Tripon Eugen - [`0145dc5`](https://github.com/eea/volto-cca-policy/commit/0145dc5244c2e1d0deab3c17d623509081ff79e0)]
16
+ - Refs #281502 - test wip [Tripon Eugen - [`da15a99`](https://github.com/eea/volto-cca-policy/commit/da15a99b19331fa177e49dae4acf556bd004a977)]
17
+ - Refs #281502 - test wip [Tripon Eugen - [`3ab8b99`](https://github.com/eea/volto-cca-policy/commit/3ab8b992e7f2b1e79dd710b0ef4a02079c83ede5)]
18
+ - Refs #281502 - lint wip [Tripon Eugen - [`2d1489a`](https://github.com/eea/volto-cca-policy/commit/2d1489a8457d58c34e034be22d943a7bf4c1e404)]
19
+ - Refs #281502 - remuve duplicated country faces on mission funding search [Tripon Eugen - [`324c52e`](https://github.com/eea/volto-cca-policy/commit/324c52eb3c6fe9371caa7797eaf218f2fbc56908)]
20
+ - Refs #281159 - transational regions [Tripon Eugen - [`eb4a98e`](https://github.com/eea/volto-cca-policy/commit/eb4a98e573dc1fb6c91012f54e804df16a136dbb)]
21
+ - Refs #281474 - case study logo [Tripon Eugen - [`ee311cf`](https://github.com/eea/volto-cca-policy/commit/ee311cf2131afa6348abc5cf0a5546cb36f554a6)]
7
22
  ### [0.2.81](https://github.com/eea/volto-cca-policy/compare/0.2.80...0.2.81) - 25 November 2024
8
23
 
9
24
  #### :hammer_and_wrench: Others
@@ -1673,10 +1688,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1673
1688
  - Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
1674
1689
  - Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
1675
1690
  - Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
1691
+ - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
1692
+ - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
1676
1693
  ### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
1677
1694
 
1678
1695
  #### :house: Internal changes
1679
1696
 
1697
+ - chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
1680
1698
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
1681
1699
 
1682
1700
  #### :hammer_and_wrench: Others
@@ -1693,6 +1711,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1693
1711
  - Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
1694
1712
  - Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
1695
1713
  - Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
1714
+ - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
1715
+ - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
1716
+ - test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
1696
1717
  - Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
1697
1718
  - 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)]
1698
1719
  - Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
@@ -1909,6 +1930,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1909
1930
 
1910
1931
  #### :house: Internal changes
1911
1932
 
1933
+ - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
1912
1934
 
1913
1935
  #### :hammer_and_wrench: Others
1914
1936
 
@@ -2389,6 +2411,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2389
2411
  #### :hammer_and_wrench: Others
2390
2412
 
2391
2413
  - Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
2414
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
2392
2415
  ### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
2393
2416
 
2394
2417
  #### :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.81",
3
+ "version": "0.2.82",
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",
@@ -24,6 +24,8 @@ import {
24
24
  ListItem,
25
25
  } from 'semantic-ui-react';
26
26
 
27
+ import './CaseStudyView.less';
28
+
27
29
  const messages = defineMessages({
28
30
  References: { id: 'References', defaultMessage: 'References' },
29
31
  Challenges: { id: 'Challenges', defaultMessage: 'Challenges' },
@@ -322,7 +324,7 @@ const SectionContent = ({ sectionData, content }) => {
322
324
  function CaseStudyView(props) {
323
325
  const intl = useIntl();
324
326
  const { content } = props;
325
- const { long_description, updating_notes } = content;
327
+ const { long_description, updating_notes, logo, title } = content;
326
328
 
327
329
  const hasValue = (field) => {
328
330
  if (!content.hasOwnProperty(field)) {
@@ -334,6 +336,12 @@ function CaseStudyView(props) {
334
336
  if (Array.isArray(content[field]) && content[field].length === 0) {
335
337
  return false;
336
338
  }
339
+ if (
340
+ typeof content[field]?.data === 'string' &&
341
+ content[field]?.data.replace('<p></p>', '').length === 0
342
+ ) {
343
+ return false;
344
+ }
337
345
  return true;
338
346
  };
339
347
 
@@ -369,6 +377,15 @@ function CaseStudyView(props) {
369
377
  computer={8}
370
378
  className="col-left"
371
379
  >
380
+ {logo && (
381
+ <div>
382
+ <Image
383
+ src={logo?.scales?.mini?.download}
384
+ alt={title}
385
+ className="db-logo"
386
+ />
387
+ </div>
388
+ )}
372
389
  <PrimaryPhoto {...props} />
373
390
  <HTMLField value={long_description} />
374
391
  {updating_notes && updating_notes.length > 0 && (
@@ -0,0 +1,8 @@
1
+ .db-item-view.case-study-view {
2
+ div {
3
+ img.db-logo {
4
+ padding-left: 5px;
5
+ float: right !important;
6
+ }
7
+ }
8
+ }
@@ -107,16 +107,16 @@ export const BIOREGIONS = {
107
107
  TRANS_MACRO_MED: 'Mediterranean (Euro-Med)',
108
108
  TRANS_MACRO_DANUBE: 'Danube Area',
109
109
  TRANS_MACRO_ADR_IONIAN: 'Adriatic-Ionian',
110
- TRANS_MACRO_BALKAN_MED: 'Balkan-Mediterranean',
111
- TRANS_MACRO_CAR_AREA: 'Caribbean Area',
112
- TRANS_MACRO_AMAZONIA: 'Amazonia',
113
- TRANS_MACRO_IND_OCEAN_AREA: 'Indian Ocean Area',
114
- TRANS_MACRO_SE_EUR: 'South East Europe',
110
+ // TRANS_MACRO_BALKAN_MED: 'Balkan-Mediterranean',
111
+ // TRANS_MACRO_CAR_AREA: 'Caribbean Area',
112
+ // TRANS_MACRO_AMAZONIA: 'Amazonia',
113
+ // TRANS_MACRO_IND_OCEAN_AREA: 'Indian Ocean Area',
114
+ // TRANS_MACRO_SE_EUR: 'South East Europe',
115
115
  TRANS_MACRO_MED_BASIN: 'Mediterranean Sea Basin (NEXT)',
116
- TRANS_MACRO_MID_ATLANTIC: 'Mid-Atlantic',
117
- TRANS_MACRO_ARCTIC: 'Arctic',
118
- TRANS_MACRO_BLACKSEA: 'Black Sea',
119
- TRANS_MACRO_ATLANTIC: 'Atlantic',
116
+ // TRANS_MACRO_MID_ATLANTIC: 'Mid-Atlantic',
117
+ // TRANS_MACRO_ARCTIC: 'Arctic',
118
+ // TRANS_MACRO_BLACKSEA: 'Black Sea',
119
+ // TRANS_MACRO_ATLANTIC: 'Atlantic',
120
120
  TRANS_MACRO_BLACKSEA_BASIN: 'Black Sea Basin (NEXT)',
121
121
  TRANS_BIO_ALPINE: 'Alpine',
122
122
  TRANS_BIO_ANATOLIAN: 'Anatolian',
@@ -1,6 +1,6 @@
1
1
  import { multiTermFacet } from '@eeacms/search';
2
2
  import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-search-base-config.js';
3
- import spatialWhitelist from '@eeacms/volto-globalsearch/config/json/spatialWhitelist';
3
+ // import spatialWhitelist from '@eeacms/volto-globalsearch/config/json/spatialWhitelist';
4
4
  import { cca_adaptation_sectors } from './../common';
5
5
 
6
6
  const blacklist = ['IncludeArchived', 'issued.date', 'spatial', 'language'];
@@ -21,17 +21,17 @@ const facets = [
21
21
  alwaysVisible: false,
22
22
  }),
23
23
  cca_adaptation_sectors,
24
- multiTermFacet({
25
- field: 'spatial',
26
- isFilterable: true,
27
- isMulti: true,
28
- label: 'Countries',
29
- spatialWhitelist: spatialWhitelist,
30
- show: 10000,
31
- iconsFamily: 'Countries',
32
- enableExact: true,
33
- alwaysVisible: false,
34
- }),
24
+ // multiTermFacet({
25
+ // field: 'spatial',
26
+ // isFilterable: true,
27
+ // isMulti: true,
28
+ // label: 'Countries',
29
+ // spatialWhitelist: spatialWhitelist,
30
+ // show: 10000,
31
+ // iconsFamily: 'Countries',
32
+ // enableExact: true,
33
+ // alwaysVisible: false,
34
+ // }),
35
35
 
36
36
  ...globalSearchBaseConfig.facets.filter((f) => !blacklist.includes(f.field)),
37
37
  ];