@eeacms/volto-cca-policy 0.3.88 → 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.88](https://github.com/eea/volto-cca-policy/compare/1.0.0-alpha.1...0.3.88) - 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
 
@@ -26,6 +26,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
26
26
 
27
27
  #### :nail_care: Enhancements
28
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)]
29
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)]
30
32
  - change(mission): add third level for sectors and hazards - refs #291189 [kreafox - [`5cf352c`](https://github.com/eea/volto-cca-policy/commit/5cf352ce46284b3cbd106276b60a1d4fea89235d)]
31
33
  - refactor(mission): simplify sector rendering logic in Action tab [kreafox - [`8413ccc`](https://github.com/eea/volto-cca-policy/commit/8413cccfd67e9a598f88474b8a034e7998063d23)]
@@ -40,6 +42,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
40
42
 
41
43
  #### :house: Internal changes
42
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)]
43
48
  - style(mission): mobile fixes on signatory reporting pages [kreafox - [`cbeb584`](https://github.com/eea/volto-cca-policy/commit/cbeb5846c8047c164c29635bd30491b4f810246a)]
44
49
  - chore: better component naming [kreafox - [`d61e462`](https://github.com/eea/volto-cca-policy/commit/d61e4629da184ec14d6ad0d056ac29751223e2f9)]
45
50
  - style: Automated code fix [eea-jenkins - [`f8934ba`](https://github.com/eea/volto-cca-policy/commit/f8934baf29317bb81cb5a816bfe66ee1724e040f)]
@@ -138,7 +143,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
138
143
  - Add some loadable for components [Tiberiu Ichim - [`1793962`](https://github.com/eea/volto-cca-policy/commit/179396211c66a6a2465b2d1b6c0f2afc40fc7189)]
139
144
  - Refs #284961 - test [Tripon Eugen - [`c989f1f`](https://github.com/eea/volto-cca-policy/commit/c989f1f8638c0c5233c5c49f8673c9a2cdc7937e)]
140
145
  - Refs #284961 - add translations [Tripon Eugen - [`04ee988`](https://github.com/eea/volto-cca-policy/commit/04ee988c086d393b9b37ce1ea8d24f5e84f266aa)]
141
- ### [1.0.0-alpha.0](https://github.com/eea/volto-cca-policy/compare/0.3.87...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)]
142
153
 
143
154
  ### [0.3.87](https://github.com/eea/volto-cca-policy/compare/0.3.86...0.3.87) - 10 November 2025
144
155
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.3.88",
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
@@ -472,6 +472,10 @@ const applyConfig = (config) => {
472
472
  ],
473
473
  menuItemChildrenListColumns: [2, 1, 1, 1],
474
474
  },
475
+ '/en/observatory/topics': {
476
+ menuItemColumns: ['six wide column', 'six wide column'],
477
+ menuItemChildrenListColumns: [2, 1],
478
+ },
475
479
  };
476
480
 
477
481
  // we won't need the listing for Folders