@eeacms/volto-cca-policy 0.3.87 → 0.3.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,7 +4,7 @@ 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.3.87](https://github.com/eea/volto-cca-policy/compare/1.0.0-alpha.1...0.3.87) - 10 November 2025
7
+ ### [0.3.89](https://github.com/eea/volto-cca-policy/compare/1.0.0-alpha.1...0.3.89) - 18 November 2025
8
8
 
9
9
  #### :rocket: Dependency updates
10
10
 
@@ -14,6 +14,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
14
14
 
15
15
  #### :bug: Bug Fixes
16
16
 
17
+ - fix: url instead of link in footer config - refs #293707 [kreafox - [`00e3489`](https://github.com/eea/volto-cca-policy/commit/00e3489e6855024ab8186e042d250b5529bea0e4)]
17
18
  - fix(tests): increase code coverage [kreafox - [`66cd2b3`](https://github.com/eea/volto-cca-policy/commit/66cd2b39a9b7b026c171d99e2bf3b8a47b7cddd2)]
18
19
  - fix(tests): update hyperlink text in PlanningTab [kreafox - [`05080e0`](https://github.com/eea/volto-cca-policy/commit/05080e0727730a5fe7c67d884ad6453eaf82081a)]
19
20
  - fix(mission): adjust margins for nested lists and accordion padding [kreafox - [`1abf18f`](https://github.com/eea/volto-cca-policy/commit/1abf18fabe9efffa552ed2e6a8b57f9b1d59f7a6)]
@@ -25,6 +26,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
25
26
 
26
27
  #### :nail_care: Enhancements
27
28
 
29
+ - change: cleanup, css fix [kreafox - [`cd1f97f`](https://github.com/eea/volto-cca-policy/commit/cd1f97f65b0549188ec336820c517e45ea728f47)]
30
+ - change: remove website and contribution links from organisation cards, use semantic cards - refs #294273 [kreafox - [`7cffbca`](https://github.com/eea/volto-cca-policy/commit/7cffbca5cc2d422120b08fd683d5235f368256ce)]
28
31
  - change(mission): update download fields for CSV export for mission funding search - refs #293691 [kreafox - [`7451c66`](https://github.com/eea/volto-cca-policy/commit/7451c6698a4160e580e39cb4b38a87cf38dd49d8)]
29
32
  - change(mission): add third level for sectors and hazards - refs #291189 [kreafox - [`5cf352c`](https://github.com/eea/volto-cca-policy/commit/5cf352ce46284b3cbd106276b60a1d4fea89235d)]
30
33
  - refactor(mission): simplify sector rendering logic in Action tab [kreafox - [`8413ccc`](https://github.com/eea/volto-cca-policy/commit/8413cccfd67e9a598f88474b8a034e7998063d23)]
@@ -39,6 +42,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
39
42
 
40
43
  #### :house: Internal changes
41
44
 
45
+ - style: Automated code fix [eea-jenkins - [`ef718da`](https://github.com/eea/volto-cca-policy/commit/ef718da674d72d1f3614593f7381fb422792eece)]
46
+ - style: cleanup [kreafox - [`142f706`](https://github.com/eea/volto-cca-policy/commit/142f7069f84d1b8460cc6b133e0864f85ad6bc41)]
47
+ - style: Automated code fix [eea-jenkins - [`654e225`](https://github.com/eea/volto-cca-policy/commit/654e2256d7b0e96d14ae48ae2e7fbe22ab5c9098)]
42
48
  - style(mission): mobile fixes on signatory reporting pages [kreafox - [`cbeb584`](https://github.com/eea/volto-cca-policy/commit/cbeb5846c8047c164c29635bd30491b4f810246a)]
43
49
  - chore: better component naming [kreafox - [`d61e462`](https://github.com/eea/volto-cca-policy/commit/d61e4629da184ec14d6ad0d056ac29751223e2f9)]
44
50
  - style: Automated code fix [eea-jenkins - [`f8934ba`](https://github.com/eea/volto-cca-policy/commit/f8934baf29317bb81cb5a816bfe66ee1724e040f)]
@@ -137,7 +143,19 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
137
143
  - Add some loadable for components [Tiberiu Ichim - [`1793962`](https://github.com/eea/volto-cca-policy/commit/179396211c66a6a2465b2d1b6c0f2afc40fc7189)]
138
144
  - Refs #284961 - test [Tripon Eugen - [`c989f1f`](https://github.com/eea/volto-cca-policy/commit/c989f1f8638c0c5233c5c49f8673c9a2cdc7937e)]
139
145
  - Refs #284961 - add translations [Tripon Eugen - [`04ee988`](https://github.com/eea/volto-cca-policy/commit/04ee988c086d393b9b37ce1ea8d24f5e84f266aa)]
140
- ### [1.0.0-alpha.0](https://github.com/eea/volto-cca-policy/compare/0.3.86...1.0.0-alpha.0) - 15 July 2025
146
+ ### [1.0.0-alpha.0](https://github.com/eea/volto-cca-policy/compare/0.3.88...1.0.0-alpha.0) - 15 July 2025
147
+
148
+ ### [0.3.88](https://github.com/eea/volto-cca-policy/compare/0.3.87...0.3.88) - 10 November 2025
149
+
150
+ #### :bug: Bug Fixes
151
+
152
+ - fix: url instead of link in footer config - refs #293707 [kreafox - [`00e3489`](https://github.com/eea/volto-cca-policy/commit/00e3489e6855024ab8186e042d250b5529bea0e4)]
153
+
154
+ ### [0.3.87](https://github.com/eea/volto-cca-policy/compare/0.3.86...0.3.87) - 10 November 2025
155
+
156
+ #### :nail_care: Enhancements
157
+
158
+ - change(mission): update download fields for CSV export for mission funding search - refs #293691 [kreafox - [`7451c66`](https://github.com/eea/volto-cca-policy/commit/7451c6698a4160e580e39cb4b38a87cf38dd49d8)]
141
159
 
142
160
  ### [0.3.86](https://github.com/eea/volto-cca-policy/compare/0.3.85...0.3.86) - 31 October 2025
143
161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.3.87",
3
+ "version": "0.3.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",
@@ -1,28 +1,16 @@
1
- import React from 'react';
2
1
  import PropTypes from 'prop-types';
3
- import { UniversalLink } from '@plone/volto/components';
4
- import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
5
- import { makeContributionsSearchQuery } from '@eeacms/volto-cca-policy/helpers';
2
+ import { CardGroup, CardHeader, CardContent, Card } from 'semantic-ui-react';
6
3
 
7
4
  import './styles.less';
8
5
 
9
- const messages = defineMessages({
10
- website: {
11
- id: 'Web site',
12
- defaultMessage: 'Web site',
13
- },
14
- });
15
-
16
6
  const OrganisationCardsListingView = ({ items }) => {
17
- const intl = useIntl();
18
-
19
7
  return (
20
- <div className="ui fluid four cards">
8
+ <CardGroup itemsPerRow={4}>
21
9
  {items.map((item, index) => (
22
- <div className="ui fluid card u-card" key={index}>
23
- <div className="content">
24
- <div className="header">
25
- <UniversalLink className="image" href={item['@id']}>
10
+ <Card fluid className="u-card" key={index} href={item['@id']}>
11
+ <CardContent>
12
+ <CardHeader>
13
+ <div className="image">
26
14
  <div className="img-container">
27
15
  <img
28
16
  src={item['@id'] + '/@@images/logo/preview'}
@@ -30,33 +18,13 @@ const OrganisationCardsListingView = ({ items }) => {
30
18
  className="ui image"
31
19
  ></img>
32
20
  </div>
33
- </UniversalLink>
34
- <UniversalLink
35
- className="header-link org-name"
36
- href={item['@id']}
37
- >
38
- {item.title}
39
- </UniversalLink>
40
- <UniversalLink
41
- className="header-link org-site"
42
- href={item.websites?.[0] ?? '#'}
43
- >
44
- {intl.formatMessage(messages.website)}
45
- </UniversalLink>
46
- <UniversalLink
47
- className="header-link org-site"
48
- href={makeContributionsSearchQuery(item)}
49
- >
50
- <FormattedMessage
51
- id="Observatory contributions"
52
- defaultMessage="Observatory contributions"
53
- />
54
- </UniversalLink>
55
- </div>
56
- </div>
57
- </div>
21
+ </div>
22
+ <div className="card-title">{item.title}</div>
23
+ </CardHeader>
24
+ </CardContent>
25
+ </Card>
58
26
  ))}
59
- </div>
27
+ </CardGroup>
60
28
  );
61
29
  };
62
30
 
@@ -4,29 +4,35 @@
4
4
  @import (multiple, reference, optional) '../../theme.config';
5
5
 
6
6
  // Organisation Cards Listing
7
- div.organisationCards {
8
- div.card.u-card {
9
- border: 1px solid #ccc;
10
- margin: 10px;
11
-
12
- div.img-container {
13
- min-height: 120px;
14
- text-align: center;
15
-
16
- img {
17
- width: auto;
18
- max-height: 100px;
7
+ .organisationCards {
8
+ .ui.cards {
9
+ .card.u-card {
10
+ border: 1px solid #ccc;
11
+ margin: 0.75em;
12
+
13
+ &:hover .card-title {
14
+ text-decoration: underline;
19
15
  }
20
- }
21
16
 
22
- a.org-name {
23
- margin-top: 0.5em;
24
- margin-bottom: 0.5em;
25
- font-size: 1em;
26
- }
17
+ .header {
18
+ display: flex !important;
19
+ height: 100%;
20
+ gap: 1em;
21
+ }
27
22
 
28
- a.org-site {
29
- font-size: 0.7em;
23
+ .image {
24
+ width: 100%;
25
+ }
26
+
27
+ .img-container {
28
+ min-height: 120px;
29
+ text-align: center;
30
+
31
+ img {
32
+ width: auto;
33
+ max-height: 100px;
34
+ }
35
+ }
30
36
  }
31
37
  }
32
38
  }
package/src/index.js CHANGED
@@ -167,26 +167,30 @@ const applyConfig = (config) => {
167
167
  'The European Climate Adaptation Platform Climate-ADAPT is a partnership between the European Commission and the European Environment Agency.',
168
168
  managedBy: [
169
169
  {
170
- link: 'https://www.eea.europa.eu/',
170
+ url: 'https://www.eea.europa.eu/',
171
171
  src: eeaWhiteLogo,
172
172
  alt: 'EEA Logo',
173
173
  className: 'site logo',
174
174
  columnSize: {
175
175
  mobile: 6,
176
- tablet: 12,
176
+ tablet: 6,
177
177
  computer: 4,
178
178
  },
179
+ width: 270,
180
+ height: 100,
179
181
  },
180
182
  {
181
- link: 'https://commission.europa.eu/',
183
+ url: 'https://commission.europa.eu/',
182
184
  src: europeanComissionLogo,
183
185
  alt: 'European Commission Logo',
184
186
  className: 'ec logo',
185
187
  columnSize: {
186
188
  mobile: 6,
187
- tablet: 12,
189
+ tablet: 6,
188
190
  computer: 4,
189
191
  },
192
+ width: 360,
193
+ height: 95,
190
194
  },
191
195
  ],
192
196
  social: [],
@@ -468,6 +472,10 @@ const applyConfig = (config) => {
468
472
  ],
469
473
  menuItemChildrenListColumns: [2, 1, 1, 1],
470
474
  },
475
+ '/en/observatory/topics': {
476
+ menuItemColumns: ['six wide column', 'six wide column'],
477
+ menuItemChildrenListColumns: [2, 1],
478
+ },
471
479
  };
472
480
 
473
481
  // we won't need the listing for Folders