@eeacms/volto-datahub 1.0.13 → 1.0.15
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 +17 -1
- package/package.json +1 -1
- package/src/components/ItemView/Datasets.jsx +7 -2
- package/src/components/ItemView/ItemView.jsx +2 -11
- package/src/components/LandingPage/DatahubLandingPage.jsx +1 -5
- package/src/components/Result/DatahubCardItem.jsx +2 -10
- package/src/config/vocabulary.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,12 +4,24 @@ 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
|
+
### [1.0.15](https://github.com/eea/volto-datahub/compare/1.0.14...1.0.15) - 1 March 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Fix active accordion on tab change [kreafox - [`68f4fae`](https://github.com/eea/volto-datahub/commit/68f4fae1e38aaa93ec49ddf8887250b37335bdef)]
|
|
12
|
+
### [1.0.14](https://github.com/eea/volto-datahub/compare/1.0.13...1.0.14) - 1 March 2023
|
|
13
|
+
|
|
14
|
+
#### :hammer_and_wrench: Others
|
|
15
|
+
|
|
16
|
+
- Fix warnings [kreafox - [`aa2648d`](https://github.com/eea/volto-datahub/commit/aa2648de683d57163600dc0bd144463f439d9b2a)]
|
|
17
|
+
- Prettier [kreafox - [`89d2b1e`](https://github.com/eea/volto-datahub/commit/89d2b1e76fbf38f478a62d04d157dbb8ac614ee3)]
|
|
18
|
+
- Make first tab open [kreafox - [`e578106`](https://github.com/eea/volto-datahub/commit/e578106ee06c8e2c4f48148f719f9ad9098b19b6)]
|
|
19
|
+
- updated wording [Zoltan Szabo - [`792aeec`](https://github.com/eea/volto-datahub/commit/792aeec6d7b21b3021ef77fd321e849b0f109216)]
|
|
7
20
|
### [1.0.13](https://github.com/eea/volto-datahub/compare/1.0.12...1.0.13) - 10 February 2023
|
|
8
21
|
|
|
9
22
|
#### :hammer_and_wrench: Others
|
|
10
23
|
|
|
11
24
|
- Fix case with no coverage [kreafox - [`6a67083`](https://github.com/eea/volto-datahub/commit/6a67083acebb5fc358882e8592d1eca05fcb38bc)]
|
|
12
|
-
- Group datasets by temporal coverage [kreafox - [`599b122`](https://github.com/eea/volto-datahub/commit/599b122596bc72ccafedeba8fa2d9787e6fdfff0)]
|
|
13
25
|
### [1.0.12](https://github.com/eea/volto-datahub/compare/1.0.11...1.0.12) - 9 February 2023
|
|
14
26
|
|
|
15
27
|
#### :hammer_and_wrench: Others
|
|
@@ -87,9 +99,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
87
99
|
#### :hammer_and_wrench: Others
|
|
88
100
|
|
|
89
101
|
- Fix eslintrc: add @eeacms/search [kreafox - [`465816f`](https://github.com/eea/volto-datahub/commit/465816feb8f58095ab4b5b3168cd29ebede3a10c)]
|
|
102
|
+
- Use latest Volto before yarn 3 [Tiberiu Ichim - [`69f5859`](https://github.com/eea/volto-datahub/commit/69f585980fd9a38ff99d0c7875704671857720f7)]
|
|
90
103
|
- Reorder sections on landing page [kreafox - [`46fac8d`](https://github.com/eea/volto-datahub/commit/46fac8d821cf93fe1b2c380380719de130c3f1cb)]
|
|
91
104
|
- Fix project eslintrc [kreafox - [`5baa150`](https://github.com/eea/volto-datahub/commit/5baa1505ec38ed313269f5608c186c6a6a8bbfc4)]
|
|
92
105
|
- Open dataset links in new tab [kreafox - [`bbed914`](https://github.com/eea/volto-datahub/commit/bbed914dc2edf6c749d1d73d93a423bc642e680c)]
|
|
106
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`380a2a9`](https://github.com/eea/volto-datahub/commit/380a2a9625c6f799df7a7c343fad3f3b3d959f96)]
|
|
93
107
|
## [1.0.0](https://github.com/eea/volto-datahub/compare/0.1.12...1.0.0) - 28 October 2022
|
|
94
108
|
|
|
95
109
|
#### :nail_care: Enhancements
|
|
@@ -114,6 +128,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
114
128
|
#### :hammer_and_wrench: Others
|
|
115
129
|
|
|
116
130
|
- fixed query for related items [Zoltan Szabo - [`b66faee`](https://github.com/eea/volto-datahub/commit/b66faee1f8a1922cd22b3a36eccc9c7b92e377d4)]
|
|
131
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`158fe1a`](https://github.com/eea/volto-datahub/commit/158fe1a0b1767452e2e51a3e2ef97169589a50e8)]
|
|
117
132
|
### [0.1.10](https://github.com/eea/volto-datahub/compare/0.1.9...0.1.10) - 21 September 2022
|
|
118
133
|
|
|
119
134
|
#### :hammer_and_wrench: Others
|
|
@@ -202,6 +217,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
202
217
|
#### :hammer_and_wrench: Others
|
|
203
218
|
|
|
204
219
|
- Hide questions & fix landing page [kreafox - [`a1ef303`](https://github.com/eea/volto-datahub/commit/a1ef3033df0e84f3a72dd0f984c8717dff2a771c)]
|
|
220
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`910688e`](https://github.com/eea/volto-datahub/commit/910688e3ddf2f8cda4f941595ae9a6ee0ec0ea3b)]
|
|
205
221
|
### [0.1.1](https://github.com/eea/volto-datahub/compare/0.1.0...0.1.1) - 10 June 2022
|
|
206
222
|
|
|
207
223
|
### [0.1.0](https://github.com/eea/volto-datahub/compare/0.0.1...0.1.0) - 9 June 2022
|
package/package.json
CHANGED
|
@@ -272,7 +272,7 @@ const Datasets = (props) => {
|
|
|
272
272
|
const { item, appConfig } = props;
|
|
273
273
|
const { children } = item?.raw_value?.raw || {};
|
|
274
274
|
|
|
275
|
-
const [activeIndex, setActiveIndex] = React.useState(
|
|
275
|
+
const [activeIndex, setActiveIndex] = React.useState(0);
|
|
276
276
|
|
|
277
277
|
function handleClick(e, titleProps) {
|
|
278
278
|
const { index } = titleProps;
|
|
@@ -318,7 +318,9 @@ const Datasets = (props) => {
|
|
|
318
318
|
|
|
319
319
|
const panes = (groupedDatasets || []).map((item, i) => ({
|
|
320
320
|
menuItem: (
|
|
321
|
-
<Menu.Item
|
|
321
|
+
<Menu.Item key={i}>
|
|
322
|
+
{item.date ? <span>{item.date}</span> : 'No date'}
|
|
323
|
+
</Menu.Item>
|
|
322
324
|
),
|
|
323
325
|
render: () => (
|
|
324
326
|
<Tab.Pane>
|
|
@@ -439,6 +441,9 @@ const Datasets = (props) => {
|
|
|
439
441
|
className="datasets-tab"
|
|
440
442
|
menu={{ vertical: true, secondary: true, pointing: true }}
|
|
441
443
|
panes={panes}
|
|
444
|
+
onTabChange={() => {
|
|
445
|
+
setActiveIndex(0);
|
|
446
|
+
}}
|
|
442
447
|
/>
|
|
443
448
|
</>
|
|
444
449
|
) : null;
|
|
@@ -32,8 +32,7 @@ function IsomorphicPortal({ children }) {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
function ItemView(props) {
|
|
35
|
-
const { docid,
|
|
36
|
-
const { fromPathname, fromSearch } = location?.state || {};
|
|
35
|
+
const { docid, staticContext } = props;
|
|
37
36
|
const dispatch = useDispatch();
|
|
38
37
|
// const content = useSelector((state) => state.content.data);
|
|
39
38
|
let result = useSelector((state) => state.datahub_results?.[docid]);
|
|
@@ -107,15 +106,7 @@ function ItemView(props) {
|
|
|
107
106
|
<Banner>
|
|
108
107
|
<Banner.Content>
|
|
109
108
|
<Banner.Subtitle>
|
|
110
|
-
<Link
|
|
111
|
-
to={
|
|
112
|
-
location?.state
|
|
113
|
-
? { pathname: fromPathname, search: fromSearch }
|
|
114
|
-
: {
|
|
115
|
-
pathname: '/en/datahub/',
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
>
|
|
109
|
+
<Link to={appConfig.landingPageURL}>
|
|
119
110
|
<Icon className="arrow left" />
|
|
120
111
|
Datahub overview
|
|
121
112
|
</Link>
|
|
@@ -252,13 +252,9 @@ const LandingPage = (props) => {
|
|
|
252
252
|
onKeyDown={fixedOnClickHandler}
|
|
253
253
|
onClick={fixedOnClickHandler}
|
|
254
254
|
>
|
|
255
|
-
<div className="content">
|
|
256
|
-
<Term term={all_series.value} field="cluster_name" />
|
|
257
|
-
</div>
|
|
258
255
|
<div className="extra content">
|
|
259
256
|
<span className="count">
|
|
260
|
-
{all_series.count}
|
|
261
|
-
{all_series.count === 1 ? 'item' : 'items'}
|
|
257
|
+
See all {all_series.count} datasets
|
|
262
258
|
</span>
|
|
263
259
|
</div>
|
|
264
260
|
</div>
|
|
@@ -13,18 +13,10 @@ const DatahubCardItem = (props) => {
|
|
|
13
13
|
// if (metaType.length === 0) {
|
|
14
14
|
// metaType = 'Others';
|
|
15
15
|
// }
|
|
16
|
+
|
|
16
17
|
const item = {
|
|
17
18
|
title: (
|
|
18
|
-
<Link
|
|
19
|
-
to={{
|
|
20
|
-
pathname: result.href,
|
|
21
|
-
state: {
|
|
22
|
-
fromPathname: window.location.pathname,
|
|
23
|
-
fromSearch: window.location.search,
|
|
24
|
-
},
|
|
25
|
-
}}
|
|
26
|
-
title={result.title}
|
|
27
|
-
>
|
|
19
|
+
<Link to={result.href} title={result.title}>
|
|
28
20
|
{result.title}
|
|
29
21
|
</Link>
|
|
30
22
|
),
|