@eeacms/volto-datahub 1.0.13 → 1.0.14
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 +12 -1
- package/package.json +1 -1
- package/src/components/ItemView/Datasets.jsx +4 -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,19 @@ 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.14](https://github.com/eea/volto-datahub/compare/1.0.13...1.0.14) - 1 March 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Fix warnings [kreafox - [`aa2648d`](https://github.com/eea/volto-datahub/commit/aa2648de683d57163600dc0bd144463f439d9b2a)]
|
|
12
|
+
- Prettier [kreafox - [`89d2b1e`](https://github.com/eea/volto-datahub/commit/89d2b1e76fbf38f478a62d04d157dbb8ac614ee3)]
|
|
13
|
+
- Make first tab open [kreafox - [`e578106`](https://github.com/eea/volto-datahub/commit/e578106ee06c8e2c4f48148f719f9ad9098b19b6)]
|
|
14
|
+
- updated wording [Zoltan Szabo - [`792aeec`](https://github.com/eea/volto-datahub/commit/792aeec6d7b21b3021ef77fd321e849b0f109216)]
|
|
7
15
|
### [1.0.13](https://github.com/eea/volto-datahub/compare/1.0.12...1.0.13) - 10 February 2023
|
|
8
16
|
|
|
9
17
|
#### :hammer_and_wrench: Others
|
|
10
18
|
|
|
11
19
|
- 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
20
|
### [1.0.12](https://github.com/eea/volto-datahub/compare/1.0.11...1.0.12) - 9 February 2023
|
|
14
21
|
|
|
15
22
|
#### :hammer_and_wrench: Others
|
|
@@ -87,9 +94,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
87
94
|
#### :hammer_and_wrench: Others
|
|
88
95
|
|
|
89
96
|
- Fix eslintrc: add @eeacms/search [kreafox - [`465816f`](https://github.com/eea/volto-datahub/commit/465816feb8f58095ab4b5b3168cd29ebede3a10c)]
|
|
97
|
+
- Use latest Volto before yarn 3 [Tiberiu Ichim - [`69f5859`](https://github.com/eea/volto-datahub/commit/69f585980fd9a38ff99d0c7875704671857720f7)]
|
|
90
98
|
- Reorder sections on landing page [kreafox - [`46fac8d`](https://github.com/eea/volto-datahub/commit/46fac8d821cf93fe1b2c380380719de130c3f1cb)]
|
|
91
99
|
- Fix project eslintrc [kreafox - [`5baa150`](https://github.com/eea/volto-datahub/commit/5baa1505ec38ed313269f5608c186c6a6a8bbfc4)]
|
|
92
100
|
- Open dataset links in new tab [kreafox - [`bbed914`](https://github.com/eea/volto-datahub/commit/bbed914dc2edf6c749d1d73d93a423bc642e680c)]
|
|
101
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`380a2a9`](https://github.com/eea/volto-datahub/commit/380a2a9625c6f799df7a7c343fad3f3b3d959f96)]
|
|
93
102
|
## [1.0.0](https://github.com/eea/volto-datahub/compare/0.1.12...1.0.0) - 28 October 2022
|
|
94
103
|
|
|
95
104
|
#### :nail_care: Enhancements
|
|
@@ -114,6 +123,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
114
123
|
#### :hammer_and_wrench: Others
|
|
115
124
|
|
|
116
125
|
- fixed query for related items [Zoltan Szabo - [`b66faee`](https://github.com/eea/volto-datahub/commit/b66faee1f8a1922cd22b3a36eccc9c7b92e377d4)]
|
|
126
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`158fe1a`](https://github.com/eea/volto-datahub/commit/158fe1a0b1767452e2e51a3e2ef97169589a50e8)]
|
|
117
127
|
### [0.1.10](https://github.com/eea/volto-datahub/compare/0.1.9...0.1.10) - 21 September 2022
|
|
118
128
|
|
|
119
129
|
#### :hammer_and_wrench: Others
|
|
@@ -202,6 +212,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
202
212
|
#### :hammer_and_wrench: Others
|
|
203
213
|
|
|
204
214
|
- Hide questions & fix landing page [kreafox - [`a1ef303`](https://github.com/eea/volto-datahub/commit/a1ef3033df0e84f3a72dd0f984c8717dff2a771c)]
|
|
215
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`910688e`](https://github.com/eea/volto-datahub/commit/910688e3ddf2f8cda4f941595ae9a6ee0ec0ea3b)]
|
|
205
216
|
### [0.1.1](https://github.com/eea/volto-datahub/compare/0.1.0...0.1.1) - 10 June 2022
|
|
206
217
|
|
|
207
218
|
### [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>
|
|
@@ -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
|
),
|