@eeacms/volto-n2k 1.1.3 → 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 CHANGED
@@ -4,6 +4,15 @@ 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.5](https://github.com/eea/volto-n2k/compare/1.1.4...1.1.5) - 18 February 2025
8
+
9
+ #### :hammer_and_wrench: Others
10
+
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
15
+
7
16
  ### [1.1.3](https://github.com/eea/volto-n2k/compare/1.1.2...1.1.3) - 9 January 2025
8
17
 
9
18
  #### :house: Internal changes
@@ -16,7 +25,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
16
25
  - fix sonarqube errors [Claudia Ifrim - [`bbd9b7a`](https://github.com/eea/volto-n2k/commit/bbd9b7a0fb6acf40c3edbf5e2a034b7df0e2048b)]
17
26
  - comment filters for habitats, fix z-index for filters on species list [Claudia Ifrim - [`44533aa`](https://github.com/eea/volto-n2k/commit/44533aa781b3b374320071b7cab0adbad322ad5b)]
18
27
  - fix ImageText editor [Miu Razvan - [`67e6611`](https://github.com/eea/volto-n2k/commit/67e66113d289d5b3984909aee94e6b343fcd69a9)]
19
- - Make site habitats list work la species list [Miu Razvan - [`498e995`](https://github.com/eea/volto-n2k/commit/498e9955882bba9c2c549ab29dce5b988f36f489)]
20
28
  ### [1.1.2](https://github.com/eea/volto-n2k/compare/1.1.1...1.1.2) - 11 December 2024
21
29
 
22
30
  #### :hammer_and_wrench: Others
@@ -61,7 +69,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
61
69
 
62
70
  #### :house: Internal changes
63
71
 
64
- - chore: [JENKINS] Refactor automated testing [valentinab25 - [`e4f9fc8`](https://github.com/eea/volto-n2k/commit/e4f9fc800b753b97cca7c685bc47dd48804276f0)]
65
72
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`647d621`](https://github.com/eea/volto-n2k/commit/647d621d52400c50f5bc629b3ddc4f2121f14ffa)]
66
73
  - chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`60d94b6`](https://github.com/eea/volto-n2k/commit/60d94b61ff8826abc57af9616793a1a247f585b5)]
67
74
 
@@ -76,11 +83,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
76
83
  - try to use volto-spotlight theme in jenkins [Miu Razvan - [`ec0b952`](https://github.com/eea/volto-n2k/commit/ec0b9525b967f907922ae660bd9f520119cd80c1)]
77
84
  - remove waitForResourceToLoad [ana-oprea - [`eaded9b`](https://github.com/eea/volto-n2k/commit/eaded9b9ecd1ca2eb78aa8dd65838c063d95db85)]
78
85
  - update image size from 300 to 800 px [Claudia Ifrim - [`8d9270a`](https://github.com/eea/volto-n2k/commit/8d9270a09506278ceaea25e8a72abdf5b22fcc78)]
79
- - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`350f8a6`](https://github.com/eea/volto-n2k/commit/350f8a6928aafbf168472b572f8041a79f71f577)]
80
- - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`99b3a84`](https://github.com/eea/volto-n2k/commit/99b3a84a266710fadf7d430117359b741cadede8)]
81
- - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`050ac98`](https://github.com/eea/volto-n2k/commit/050ac982ec39e9a1b4885b665cdc118fca7b1283)]
82
- - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`3546040`](https://github.com/eea/volto-n2k/commit/35460409817f496fc752ab34e37d6d33a069b2e9)]
83
- - test: [JENKINS] Improve cypress time [valentinab25 - [`06a4ab1`](https://github.com/eea/volto-n2k/commit/06a4ab151799b8cdf4a316dbcb0c323e0f568e30)]
84
86
  - test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`4850d6a`](https://github.com/eea/volto-n2k/commit/4850d6a65349fe49dbe9244c30592ae38c9aeaba)]
85
87
  - test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`2c91856`](https://github.com/eea/volto-n2k/commit/2c9185688a2fe6b36e5eeb2963f6c8676e3c5628)]
86
88
  ### [1.0.33](https://github.com/eea/volto-n2k/compare/1.0.32...1.0.33) - 3 July 2023
@@ -337,7 +339,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
337
339
  - Update [razvanMiu - [`42ab50e`](https://github.com/eea/volto-n2k/commit/42ab50e6681a47251d15ac06b836c6f8c27157fa)]
338
340
  - Added bubble chart [razvanMiu - [`89fba5e`](https://github.com/eea/volto-n2k/commit/89fba5e5db41aa955ba2d0ed58c9f0042c461504)]
339
341
  - Group species by id_eunis in species list [razvanMiu - [`543c957`](https://github.com/eea/volto-n2k/commit/543c9573b53acd8eecc9afbb6ae7beeddba53966)]
340
- - Add Sonarqube tag using frontend addons list [EEA Jenkins - [`2ca3e4c`](https://github.com/eea/volto-n2k/commit/2ca3e4c092211f92339791d71db81f5b4ca2d562)]
341
342
  - update maps - species and habitats distribution maps [Claudia Ifrim - [`ad12eb1`](https://github.com/eea/volto-n2k/commit/ad12eb141907d6f28444f1eafc3f687735d2a68d)]
342
343
  - update format for common name and author [Claudia Ifrim - [`26b7a2f`](https://github.com/eea/volto-n2k/commit/26b7a2f3d20c7701b57fb24f39fc7dfeceec3ce8)]
343
344
  - update format for species name (common / scientific) [Claudia Ifrim - [`abdedcf`](https://github.com/eea/volto-n2k/commit/abdedcfe645665031dedf050fd2c5cdde8c14a50)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-n2k",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "volto-n2k: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -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
- ? `; Priority habitat type: ${habitat.habitat_prioriy}`
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}