@eeacms/volto-cca-policy 0.3.32 → 0.3.33
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,17 @@ 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.33](https://github.com/eea/volto-cca-policy/compare/0.3.32...0.3.33) - 5 May 2025
|
|
8
|
+
|
|
9
|
+
#### :rocket: Dependency updates
|
|
10
|
+
|
|
11
|
+
- Release @eeacms/volto-searchlib@2.0.16 [EEA Jenkins - [`dba0f63`](https://github.com/eea/volto-cca-policy/commit/dba0f63b7800d064f16b7f7a4278b3a820c71591)]
|
|
12
|
+
|
|
13
|
+
#### :nail_care: Enhancements
|
|
14
|
+
|
|
15
|
+
- change: update tests - refs #287273 [kreafox - [`c79837c`](https://github.com/eea/volto-cca-policy/commit/c79837c907c5d4daecede23dcfe5ab93f7232a01)]
|
|
16
|
+
- change: remove Introduction tab - refs #287273 [kreafox - [`4791f04`](https://github.com/eea/volto-cca-policy/commit/4791f0410b5abaf3bb25b325a268b4868f801215)]
|
|
17
|
+
|
|
7
18
|
### [0.3.32](https://github.com/eea/volto-cca-policy/compare/0.3.31...0.3.32) - 30 April 2025
|
|
8
19
|
|
|
9
20
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-cca-policy",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.33",
|
|
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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@eeacms/volto-globalsearch": "2.0.11",
|
|
36
36
|
"@eeacms/volto-hero-block": "^7.1.0",
|
|
37
37
|
"@eeacms/volto-openlayers-map": "*",
|
|
38
|
-
"@eeacms/volto-searchlib": "2.0.
|
|
38
|
+
"@eeacms/volto-searchlib": "2.0.16",
|
|
39
39
|
"@eeacms/volto-slate-label": "^0.6.0",
|
|
40
40
|
"@eeacms/volto-tabs-block": "^7.5.1",
|
|
41
41
|
"@elastic/search-ui": "1.21.2",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Tab, Container } from 'semantic-ui-react';
|
|
3
3
|
import { BannerTitle } from '@eeacms/volto-cca-policy/helpers';
|
|
4
|
-
import IntroductionTab from './TabSections/IntroductionTab';
|
|
5
4
|
import GovernanceTab from './TabSections/GovernanceTab';
|
|
6
5
|
import AssessmentTab from './TabSections/AssessmentTab';
|
|
7
6
|
import PlanningTab from './TabSections/PlanningTab';
|
|
@@ -53,10 +52,6 @@ const MissionSignatoryProfileView = (props) => {
|
|
|
53
52
|
activeIndex={activeIndex}
|
|
54
53
|
onTabChange={(e, { activeIndex }) => setActiveIndex(activeIndex)}
|
|
55
54
|
panes={[
|
|
56
|
-
{
|
|
57
|
-
menuItem: 'Introduction',
|
|
58
|
-
render: () => <IntroductionTab activeIndex={activeIndex} />,
|
|
59
|
-
},
|
|
60
55
|
{
|
|
61
56
|
menuItem: 'Governance',
|
|
62
57
|
render: () => <GovernanceTab result={governance} />,
|
|
@@ -4,9 +4,6 @@ import '@testing-library/jest-dom';
|
|
|
4
4
|
import MissionSignatoryProfileView from './MissionSignatoryProfileView';
|
|
5
5
|
|
|
6
6
|
// Mock the tab components with minimal placeholders
|
|
7
|
-
jest.mock('./TabSections/IntroductionTab', () => () => (
|
|
8
|
-
<div>Mocked Introduction</div>
|
|
9
|
-
));
|
|
10
7
|
jest.mock('./TabSections/GovernanceTab', () => () => (
|
|
11
8
|
<div>Mocked Governance</div>
|
|
12
9
|
));
|
|
@@ -33,14 +30,10 @@ describe('MissionSignatoryProfileView', () => {
|
|
|
33
30
|
render(<MissionSignatoryProfileView data={data} />);
|
|
34
31
|
|
|
35
32
|
// Tab labels
|
|
36
|
-
expect(screen.getByText('Introduction')).toBeInTheDocument();
|
|
37
33
|
expect(screen.getByText('Governance')).toBeInTheDocument();
|
|
38
34
|
expect(screen.getByText('Assessment')).toBeInTheDocument();
|
|
39
35
|
expect(screen.getByText('Planning')).toBeInTheDocument();
|
|
40
36
|
expect(screen.getByText('Action')).toBeInTheDocument();
|
|
41
|
-
|
|
42
|
-
// Default selected tab content (Introduction)
|
|
43
|
-
expect(screen.getByText('Mocked Introduction')).toBeInTheDocument();
|
|
44
37
|
});
|
|
45
38
|
|
|
46
39
|
it('switches tabs and renders corresponding content', () => {
|