@eeacms/volto-n2k 1.1.4 → 1.1.5
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 +6 -10
- package/package.json +1 -1
- package/src/components/manage/Blocks/SiteHabitatsList/View.jsx +10 -3
- package/src/components/manage/Blocks/SiteProtectedHabitats/View.jsx +1 -1
- package/src/components/manage/Blocks/SiteProtectedSpecies/View.jsx +1 -1
- package/src/components/manage/Blocks/SiteSpeciesList/View.jsx +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,14 @@ 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.1.
|
|
7
|
+
### [1.1.5](https://github.com/eea/volto-n2k/compare/1.1.4...1.1.5) - 18 February 2025
|
|
8
8
|
|
|
9
|
-
#### :
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- Scroll to banner on page change [Miu Razvan - [`3195762`](https://github.com/eea/volto-n2k/commit/31957629fdb1addb596f86183251ac9b272b26b6)]
|
|
12
|
+
- fix font size + decimals [Claudia Ifrim - [`4beb02b`](https://github.com/eea/volto-n2k/commit/4beb02bd8bd69a6ef76510166e240b80190b9d12)]
|
|
13
|
+
- show number of caves [Claudia Ifrim - [`e3876b8`](https://github.com/eea/volto-n2k/commit/e3876b8624886c8055692c4324f258a90578170a)]
|
|
14
|
+
### [1.1.4](https://github.com/eea/volto-n2k/compare/1.1.3...1.1.4) - 16 January 2025
|
|
12
15
|
|
|
13
16
|
### [1.1.3](https://github.com/eea/volto-n2k/compare/1.1.2...1.1.3) - 9 January 2025
|
|
14
17
|
|
|
@@ -66,7 +69,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
66
69
|
|
|
67
70
|
#### :house: Internal changes
|
|
68
71
|
|
|
69
|
-
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`e4f9fc8`](https://github.com/eea/volto-n2k/commit/e4f9fc800b753b97cca7c685bc47dd48804276f0)]
|
|
70
72
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`647d621`](https://github.com/eea/volto-n2k/commit/647d621d52400c50f5bc629b3ddc4f2121f14ffa)]
|
|
71
73
|
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`60d94b6`](https://github.com/eea/volto-n2k/commit/60d94b61ff8826abc57af9616793a1a247f585b5)]
|
|
72
74
|
|
|
@@ -81,11 +83,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
81
83
|
- try to use volto-spotlight theme in jenkins [Miu Razvan - [`ec0b952`](https://github.com/eea/volto-n2k/commit/ec0b9525b967f907922ae660bd9f520119cd80c1)]
|
|
82
84
|
- remove waitForResourceToLoad [ana-oprea - [`eaded9b`](https://github.com/eea/volto-n2k/commit/eaded9b9ecd1ca2eb78aa8dd65838c063d95db85)]
|
|
83
85
|
- update image size from 300 to 800 px [Claudia Ifrim - [`8d9270a`](https://github.com/eea/volto-n2k/commit/8d9270a09506278ceaea25e8a72abdf5b22fcc78)]
|
|
84
|
-
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`350f8a6`](https://github.com/eea/volto-n2k/commit/350f8a6928aafbf168472b572f8041a79f71f577)]
|
|
85
|
-
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`99b3a84`](https://github.com/eea/volto-n2k/commit/99b3a84a266710fadf7d430117359b741cadede8)]
|
|
86
|
-
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`050ac98`](https://github.com/eea/volto-n2k/commit/050ac982ec39e9a1b4885b665cdc118fca7b1283)]
|
|
87
|
-
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`3546040`](https://github.com/eea/volto-n2k/commit/35460409817f496fc752ab34e37d6d33a069b2e9)]
|
|
88
|
-
- test: [JENKINS] Improve cypress time [valentinab25 - [`06a4ab1`](https://github.com/eea/volto-n2k/commit/06a4ab151799b8cdf4a316dbcb0c323e0f568e30)]
|
|
89
86
|
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`4850d6a`](https://github.com/eea/volto-n2k/commit/4850d6a65349fe49dbe9244c30592ae38c9aeaba)]
|
|
90
87
|
- test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`2c91856`](https://github.com/eea/volto-n2k/commit/2c9185688a2fe6b36e5eeb2963f6c8676e3c5628)]
|
|
91
88
|
### [1.0.33](https://github.com/eea/volto-n2k/compare/1.0.32...1.0.33) - 3 July 2023
|
|
@@ -342,7 +339,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
342
339
|
- Update [razvanMiu - [`42ab50e`](https://github.com/eea/volto-n2k/commit/42ab50e6681a47251d15ac06b836c6f8c27157fa)]
|
|
343
340
|
- Added bubble chart [razvanMiu - [`89fba5e`](https://github.com/eea/volto-n2k/commit/89fba5e5db41aa955ba2d0ed58c9f0042c461504)]
|
|
344
341
|
- Group species by id_eunis in species list [razvanMiu - [`543c957`](https://github.com/eea/volto-n2k/commit/543c9573b53acd8eecc9afbb6ae7beeddba53966)]
|
|
345
|
-
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`2ca3e4c`](https://github.com/eea/volto-n2k/commit/2ca3e4c092211f92339791d71db81f5b4ca2d562)]
|
|
346
342
|
- update maps - species and habitats distribution maps [Claudia Ifrim - [`ad12eb1`](https://github.com/eea/volto-n2k/commit/ad12eb141907d6f28444f1eafc3f687735d2a68d)]
|
|
347
343
|
- update format for common name and author [Claudia Ifrim - [`26b7a2f`](https://github.com/eea/volto-n2k/commit/26b7a2f3d20c7701b57fb24f39fc7dfeceec3ce8)]
|
|
348
344
|
- update format for species name (common / scientific) [Claudia Ifrim - [`abdedcf`](https://github.com/eea/volto-n2k/commit/abdedcfe645665031dedf050fd2c5cdde8c14a50)]
|
package/package.json
CHANGED
|
@@ -188,10 +188,13 @@ const View = (props) => {
|
|
|
188
188
|
style={{ fontSize: '1.2rem' }}
|
|
189
189
|
key={`habitat-${index}-${habitat.code_2000}`}
|
|
190
190
|
>
|
|
191
|
-
Cover: {habitat.coverage_ha.toFixed(2)} ha (
|
|
192
|
-
{(habitat.coverage_ha / 100).toFixed(4)} km²)
|
|
193
191
|
{habitat.habitat_prioriy
|
|
194
|
-
?
|
|
192
|
+
? `Priority habitat type; `
|
|
193
|
+
: ''}
|
|
194
|
+
Cover: {habitat.coverage_ha.toFixed(2)} ha (
|
|
195
|
+
{(habitat.coverage_ha / 100).toFixed(2)} km²)
|
|
196
|
+
{habitat.caves > 0
|
|
197
|
+
? `; Number of caves: ${habitat.caves}`
|
|
195
198
|
: ''}
|
|
196
199
|
</p>
|
|
197
200
|
))}
|
|
@@ -220,6 +223,10 @@ const View = (props) => {
|
|
|
220
223
|
)}
|
|
221
224
|
onPageChange={(e, data) => {
|
|
222
225
|
setPagination({ ...pagination, activePage: data.activePage });
|
|
226
|
+
const el = document.getElementById('habitats-banner');
|
|
227
|
+
el.scrollIntoView({
|
|
228
|
+
block: 'start',
|
|
229
|
+
});
|
|
223
230
|
}}
|
|
224
231
|
prevItem={null}
|
|
225
232
|
nextItem={null}
|
|
@@ -23,7 +23,7 @@ const View = (props) => {
|
|
|
23
23
|
}, [JSON.stringify(provider_data)]);
|
|
24
24
|
|
|
25
25
|
return (
|
|
26
|
-
<div className="habitats-banner full-width">
|
|
26
|
+
<div className="habitats-banner full-width" id="habitats-banner">
|
|
27
27
|
<div className="habitats-container">
|
|
28
28
|
<Container className="habitats-wrapper">
|
|
29
29
|
<div className="habitats-wrapper">
|
|
@@ -11,7 +11,7 @@ const View = (props) => {
|
|
|
11
11
|
}, {});
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
|
-
<div className="species-banner full-width">
|
|
14
|
+
<div className="species-banner full-width" id="species-banner">
|
|
15
15
|
<div className="species-container">
|
|
16
16
|
<Container className="species-wrapper">
|
|
17
17
|
{/* <Grid size="12">
|
|
@@ -181,6 +181,7 @@ const View = (props) => {
|
|
|
181
181
|
{filteredSpecies[index].map((specimen, index) => (
|
|
182
182
|
<p
|
|
183
183
|
className="specimen-data"
|
|
184
|
+
style={{ fontSize: '1.2rem' }}
|
|
184
185
|
key={`specimen-${index}-${specimen.id_eunis}`}
|
|
185
186
|
>
|
|
186
187
|
{getLabelString(
|
|
@@ -233,6 +234,10 @@ const View = (props) => {
|
|
|
233
234
|
)}
|
|
234
235
|
onPageChange={(e, data) => {
|
|
235
236
|
setPagination({ ...pagination, activePage: data.activePage });
|
|
237
|
+
const el = document.getElementById('species-banner');
|
|
238
|
+
el.scrollIntoView({
|
|
239
|
+
block: 'start',
|
|
240
|
+
});
|
|
236
241
|
}}
|
|
237
242
|
prevItem={null}
|
|
238
243
|
nextItem={null}
|