@eeacms/volto-eea-design-system 1.40.0 → 1.40.2
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 +52 -4
- package/jest-addon.config.js +2 -0
- package/package.json +1 -1
- package/src/ui/Header/HeaderMenuPopUp.js +1 -1
- package/src/ui/Header/utils.js +16 -2
- package/src/ui/Header/utils.test.js +110 -7
- package/src/ui/Logo/Logo.jsx +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,15 +4,30 @@ 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.40.
|
|
7
|
+
### [1.40.2](https://github.com/eea/volto-eea-design-system/compare/1.40.1...1.40.2) - 8 December 2025
|
|
8
8
|
|
|
9
|
-
#### :
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- fix tests [Teodor - [`4b3db9b`](https://github.com/eea/volto-eea-design-system/commit/4b3db9b63230fcb43626eebddfed78007b24b464)]
|
|
12
|
+
- Add comprehensive tests for megamenu fix utilities [copilot-swe-agent[bot] - [`d4e1af8`](https://github.com/eea/volto-eea-design-system/commit/d4e1af8f3a8da40c64ccc122355ba90e19320288)]
|
|
13
|
+
- Initial plan [copilot-swe-agent[bot] - [`5e90591`](https://github.com/eea/volto-eea-design-system/commit/5e90591503dcff8af4d39298ac2c0e98b94ff2c0)]
|
|
14
|
+
### [1.40.1](https://github.com/eea/volto-eea-design-system/compare/1.40.0...1.40.1) - 4 December 2025
|
|
15
|
+
|
|
16
|
+
#### :bug: Bug Fixes
|
|
10
17
|
|
|
11
|
-
-
|
|
18
|
+
- fix(header): tests to return empty string when number isn't found [David Ichim - [`6285df3`](https://github.com/eea/volto-eea-design-system/commit/6285df34627462e2fe0f986de9aaf6ff3b89f9f0)]
|
|
19
|
+
- fix(mega-menu): add column class even if value is already string [David Ichim - [`0df0db2`](https://github.com/eea/volto-eea-design-system/commit/0df0db28ec3cf214a4420aa3f853125dc529bb00)]
|
|
20
|
+
|
|
21
|
+
#### :nail_care: Enhancements
|
|
22
|
+
|
|
23
|
+
- change(test): jest config to fix cleanup package path [David Ichim - [`243a95f`](https://github.com/eea/volto-eea-design-system/commit/243a95fa1138a3e4f30f196d33ba6ebf73cd864a)]
|
|
12
24
|
|
|
13
25
|
#### :hammer_and_wrench: Others
|
|
14
26
|
|
|
15
|
-
-
|
|
27
|
+
- add rule for eeacms/countup to jest-config.js [David Ichim - [`59244c2`](https://github.com/eea/volto-eea-design-system/commit/59244c2e85447766e9e2a051e080652d93f67458)]
|
|
28
|
+
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`314266b`](https://github.com/eea/volto-eea-design-system/commit/314266bd8131b8ade427f23f81a084714f0104af)]
|
|
29
|
+
### [1.40.0](https://github.com/eea/volto-eea-design-system/compare/1.39.1...1.40.0) - 4 November 2025
|
|
30
|
+
|
|
16
31
|
### [1.39.1](https://github.com/eea/volto-eea-design-system/compare/1.39.0...1.39.1) - 22 September 2025
|
|
17
32
|
|
|
18
33
|
#### :boom: Breaking Change
|
|
@@ -86,8 +101,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
86
101
|
|
|
87
102
|
#### :hammer_and_wrench: Others
|
|
88
103
|
|
|
104
|
+
- Add Sonarqube tag using fise-frontend addons list [EEA Jenkins - [`d3a993f`](https://github.com/eea/volto-eea-design-system/commit/d3a993f7c9f687d709e1c8bc48b4972aca7a161e)]
|
|
89
105
|
- Fix with sed the issue from line 714 missing } [David Ichim - [`e4e10a0`](https://github.com/eea/volto-eea-design-system/commit/e4e10a0a8a82c1fa20dcff9fa8178a6a938a7fd5)]
|
|
90
106
|
- Fixed link for don't use more than six colors [David Ichim - [`f42c698`](https://github.com/eea/volto-eea-design-system/commit/f42c69895258291ef72c0299e348f5671b2c127b)]
|
|
107
|
+
- Add Sonarqube tag using ied-frontend addons list [EEA Jenkins - [`a8fa4e1`](https://github.com/eea/volto-eea-design-system/commit/a8fa4e157f6351939fd6ee126f733efc1adf6dfe)]
|
|
91
108
|
- lint fix [David Ichim - [`5d4d60a`](https://github.com/eea/volto-eea-design-system/commit/5d4d60ac305b8694fec64a9cce625a1015e8486f)]
|
|
92
109
|
### [1.36.3](https://github.com/eea/volto-eea-design-system/compare/1.36.2...1.36.3) - 4 March 2025
|
|
93
110
|
|
|
@@ -121,6 +138,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
121
138
|
#### :hammer_and_wrench: Others
|
|
122
139
|
|
|
123
140
|
- Update package.json [Ichim David - [`40ae6a7`](https://github.com/eea/volto-eea-design-system/commit/40ae6a70377c54256f7365a12bded4e25b0c322e)]
|
|
141
|
+
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`b433236`](https://github.com/eea/volto-eea-design-system/commit/b433236f3e264304c86082281da90384da7ab0ff)]
|
|
124
142
|
### [1.34.1](https://github.com/eea/volto-eea-design-system/compare/1.34.0...1.34.1) - 14 October 2024
|
|
125
143
|
|
|
126
144
|
### [1.34.0](https://github.com/eea/volto-eea-design-system/compare/1.33.1...1.34.0) - 11 October 2024
|
|
@@ -202,6 +220,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
202
220
|
|
|
203
221
|
#### :hammer_and_wrench: Others
|
|
204
222
|
|
|
223
|
+
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`dfa1d1b`](https://github.com/eea/volto-eea-design-system/commit/dfa1d1bd53ae63b20aa0ef64c37bf71faf376290)]
|
|
205
224
|
### [1.31.0](https://github.com/eea/volto-eea-design-system/compare/1.23.8...1.31.0) - 22 May 2024
|
|
206
225
|
|
|
207
226
|
#### :boom: Breaking Change
|
|
@@ -230,6 +249,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
230
249
|
|
|
231
250
|
#### :hammer_and_wrench: Others
|
|
232
251
|
|
|
252
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`2ccf437`](https://github.com/eea/volto-eea-design-system/commit/2ccf4372f93d56ce3cc8bfd66de5c9fbb2698cf4)]
|
|
233
253
|
### [1.23.5](https://github.com/eea/volto-eea-design-system/compare/1.23.4...1.23.5) - 5 April 2024
|
|
234
254
|
|
|
235
255
|
#### :nail_care: Enhancements
|
|
@@ -265,6 +285,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
265
285
|
- Update package.json version to 1.23.0 [David Ichim - [`4b2eeee`](https://github.com/eea/volto-eea-design-system/commit/4b2eeee398b771ac80111e1755f67273c8940ced)]
|
|
266
286
|
- fixed merge conflict [David Ichim - [`efe0f4b`](https://github.com/eea/volto-eea-design-system/commit/efe0f4b7df1782f5143e1bee31c997801427d35c)]
|
|
267
287
|
- Update react-slick version to 0.30.1 [David Ichim - [`62d4570`](https://github.com/eea/volto-eea-design-system/commit/62d457014866fc075a3203fd0f9e66354aa73fe5)]
|
|
288
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`c6c74f0`](https://github.com/eea/volto-eea-design-system/commit/c6c74f049ee787632b8ad0ec0f28531ac4d0f20f)]
|
|
289
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`d3d7793`](https://github.com/eea/volto-eea-design-system/commit/d3d779363caa10f384d829a7e4242c5d54268099)]
|
|
268
290
|
### [1.23.0](https://github.com/eea/volto-eea-design-system/compare/1.22.7...1.23.0) - 19 February 2024
|
|
269
291
|
|
|
270
292
|
### [1.22.7](https://github.com/eea/volto-eea-design-system/compare/1.22.6...1.22.7) - 22 January 2024
|
|
@@ -350,7 +372,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
350
372
|
- Add dropdown test case to Header component [David Ichim - [`9ea3234`](https://github.com/eea/volto-eea-design-system/commit/9ea3234c2c0f1c819c7c2b54a75c56cda7812c56)]
|
|
351
373
|
- Remove unused import in Header.test.jsx [David Ichim - [`082069e`](https://github.com/eea/volto-eea-design-system/commit/082069e1f057786e0f1fb00c98d54b8e03b5d9c5)]
|
|
352
374
|
- Added some tests for TopDropdownMenu mobile and dropdown interaction [David Ichim - [`9d24488`](https://github.com/eea/volto-eea-design-system/commit/9d24488c1e97b2b1b14bd9bd8cb6f5b68414794b)]
|
|
375
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`eadf018`](https://github.com/eea/volto-eea-design-system/commit/eadf018aa1f32d310619ce4ef08f9b11950a20dc)]
|
|
353
376
|
- Lint fix [David Ichim - [`e29fd50`](https://github.com/eea/volto-eea-design-system/commit/e29fd50ee73477007dcf94a268596e6c11176d7b)]
|
|
377
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`947cb92`](https://github.com/eea/volto-eea-design-system/commit/947cb929c01ebb6f46bf124833fe1fec0f385edb)]
|
|
378
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`8356dfe`](https://github.com/eea/volto-eea-design-system/commit/8356dfe929039dcd165af0692cbbfc771a0f7fb4)]
|
|
379
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`e38f17e`](https://github.com/eea/volto-eea-design-system/commit/e38f17ed735e743e59df7d06ca723c1218bdb569)]
|
|
354
380
|
### [1.20.0](https://github.com/eea/volto-eea-design-system/compare/1.19.0...1.20.0) - 2 November 2023
|
|
355
381
|
|
|
356
382
|
#### :rocket: New Features
|
|
@@ -383,6 +409,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
383
409
|
|
|
384
410
|
#### :house: Internal changes
|
|
385
411
|
|
|
412
|
+
- chore: [JENKINS] do not run tests on PR comments [valentinab25 - [`51b68fc`](https://github.com/eea/volto-eea-design-system/commit/51b68fc76a956996e01521b784262c67e7094d35)]
|
|
413
|
+
- chore: [JENKINS] add comment step [valentinab25 - [`5022758`](https://github.com/eea/volto-eea-design-system/commit/50227587db2c72d17e26e7b66f28d4c09b760873)]
|
|
414
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`a70ca64`](https://github.com/eea/volto-eea-design-system/commit/a70ca642918f578d6737d975e4769bac8312f48d)]
|
|
386
415
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`59ecb8e`](https://github.com/eea/volto-eea-design-system/commit/59ecb8e28b259472303324f9655b0cbbcbbf9c23)]
|
|
387
416
|
|
|
388
417
|
#### :hammer_and_wrench: Others
|
|
@@ -508,6 +537,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
508
537
|
|
|
509
538
|
#### :hammer_and_wrench: Others
|
|
510
539
|
|
|
540
|
+
- test: Fix eslint and yarn i18n [Alin Voinea - [`331149f`](https://github.com/eea/volto-eea-design-system/commit/331149f5eb16a9cc6f2d996f7b793909773063c2)]
|
|
511
541
|
- i18n: Add en [Alin Voinea - [`4584295`](https://github.com/eea/volto-eea-design-system/commit/458429530d993c27cfb962ddfe2f376f3568bf01)]
|
|
512
542
|
- Release 1.17.0 [Alin Voinea - [`e3c25ee`](https://github.com/eea/volto-eea-design-system/commit/e3c25eeeca5e863244faae396b5aa915d0702633)]
|
|
513
543
|
- test: add unit tests for DS components - refs #254313 [ana-oprea - [`0c4d4d1`](https://github.com/eea/volto-eea-design-system/commit/0c4d4d118b8e13082c576dc5c2dce6a715f49006)]
|
|
@@ -617,6 +647,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
617
647
|
#### :hammer_and_wrench: Others
|
|
618
648
|
|
|
619
649
|
- Release 1.14.0 [Alin Voinea - [`cb9084f`](https://github.com/eea/volto-eea-design-system/commit/cb9084fb2246dc1b729e12a419a26daa12c26f7a)]
|
|
650
|
+
- test: [JENKINS] set pipe fail [valentinab25 - [`1cdfc39`](https://github.com/eea/volto-eea-design-system/commit/1cdfc39d08f1ae301dea57f1e4be5265c4a4c6f9)]
|
|
620
651
|
- test: try storybook upload [valentinab25 - [`6d5833d`](https://github.com/eea/volto-eea-design-system/commit/6d5833d4419d00f1ac04c9eb78a0884214f9a494)]
|
|
621
652
|
- test: remove useless code [valentinab25 - [`2c14b0c`](https://github.com/eea/volto-eea-design-system/commit/2c14b0ce4596cfc11a81b9762677596d1861acfe)]
|
|
622
653
|
### [1.13.2](https://github.com/eea/volto-eea-design-system/compare/1.13.1...1.13.2) - 13 June 2023
|
|
@@ -655,6 +686,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
655
686
|
|
|
656
687
|
#### :house: Internal changes
|
|
657
688
|
|
|
689
|
+
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`fb2b166`](https://github.com/eea/volto-eea-design-system/commit/fb2b166d64f95a1c183901abfe0fe0254d1bbc7a)]
|
|
658
690
|
|
|
659
691
|
#### :house: Documentation changes
|
|
660
692
|
|
|
@@ -988,6 +1020,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
988
1020
|
|
|
989
1021
|
- Release 1.0.0-beta.5 [Alin Voinea - [`e4417e1`](https://github.com/eea/volto-eea-design-system/commit/e4417e121477511c350ae3fbe4e70aadb445ed86)]
|
|
990
1022
|
- better useOnScreen hook [Andrei Grigore - [`c214b6b`](https://github.com/eea/volto-eea-design-system/commit/c214b6b76443f81c795ce2f3aa457562ec088b30)]
|
|
1023
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b227cf8`](https://github.com/eea/volto-eea-design-system/commit/b227cf8a8c44b9d91e9fda8a7999fb0a42bacdca)]
|
|
991
1024
|
- feature(mobile): increased performance by lazy loading footer images #303 from eea/increase_performance [ichim-david - [`80d1df1`](https://github.com/eea/volto-eea-design-system/commit/80d1df1c459680331d486f9e8e6a95c9db0adbf6)]
|
|
992
1025
|
- prettier [David Ichim - [`a7f8384`](https://github.com/eea/volto-eea-design-system/commit/a7f838470c1bcc4e2be115d514d92a1b686a5e9b)]
|
|
993
1026
|
- fixed less build failure due to changes in footer.less [David Ichim - [`190bc8c`](https://github.com/eea/volto-eea-design-system/commit/190bc8cfa88191b45808f1e27c6e2737ee3d15b1)]
|
|
@@ -1058,6 +1091,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1058
1091
|
|
|
1059
1092
|
#### :house: Internal changes
|
|
1060
1093
|
|
|
1094
|
+
- chore(docusaurus): ignore website/.yarn [Giorgos Stamatis - [`0b33ffd`](https://github.com/eea/volto-eea-design-system/commit/0b33ffd1dda61b126e3cc5ff48888124d6aee41b)]
|
|
1061
1095
|
- style(header): react syntax fix [Antonis Tarantilis - [`3add127`](https://github.com/eea/volto-eea-design-system/commit/3add1271c785a92bea0ef925d7bc562cef1e0d92)]
|
|
1062
1096
|
|
|
1063
1097
|
#### :house: Documentation changes
|
|
@@ -1254,6 +1288,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1254
1288
|
|
|
1255
1289
|
- Release 1.0.0-alpha.10 [Alin Voinea - [`7014d08`](https://github.com/eea/volto-eea-design-system/commit/7014d080ce114bd0bc039abeecbd7229333b0971)]
|
|
1256
1290
|
- Add variable definitions [kreafox - [`293fe65`](https://github.com/eea/volto-eea-design-system/commit/293fe65e2f24e6290e1286229169a77f9be4750e)]
|
|
1291
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`ef58a6f`](https://github.com/eea/volto-eea-design-system/commit/ef58a6f5ad8deea26b1395a86778fe1159b7617b)]
|
|
1257
1292
|
- Back to dev [Alin Voinea - [`31d4616`](https://github.com/eea/volto-eea-design-system/commit/31d461662b9184a7bbe190e86f3c47fab39229fe)]
|
|
1258
1293
|
### [1.0.0-alpha.9](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.8...1.0.0-alpha.9) - 28 December 2022
|
|
1259
1294
|
|
|
@@ -1311,6 +1346,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1311
1346
|
- bump package version [David Ichim - [`b4628be`](https://github.com/eea/volto-eea-design-system/commit/b4628bed134abc76e38a243d4e98143e19cef989)]
|
|
1312
1347
|
- feature(docusaurus, storybook): logos selection for sites plus inverted options #253 from eea/doc-logo-page [ichim-david - [`dbfc90d`](https://github.com/eea/volto-eea-design-system/commit/dbfc90d035dc40e9d4054347f00fde4de486d63d)]
|
|
1313
1348
|
- (feat): Add ability to disable the language select from website top menu - refs #158616 [dobri1408 - [`411c8e4`](https://github.com/eea/volto-eea-design-system/commit/411c8e4afaf0b2b9edfdeeecdca22aa4cc41f329)]
|
|
1349
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`c4769e9`](https://github.com/eea/volto-eea-design-system/commit/c4769e987d525f5dcafac8e6cf8a89fd8111667d)]
|
|
1314
1350
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`92feea0`](https://github.com/eea/volto-eea-design-system/commit/92feea09796c9ef0530f65fa1d34139905133215)]
|
|
1315
1351
|
- Proof reading page header section [ichim-david - [`230239e`](https://github.com/eea/volto-eea-design-system/commit/230239e1b22734fb8606656985bc5e513731e244)]
|
|
1316
1352
|
### [1.0.0-alpha.7](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.6...1.0.0-alpha.7) - 16 December 2022
|
|
@@ -1342,6 +1378,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1342
1378
|
#### :hammer_and_wrench: Others
|
|
1343
1379
|
|
|
1344
1380
|
- Release 1.0.0-alpha.7 [Alin Voinea - [`7e66bcc`](https://github.com/eea/volto-eea-design-system/commit/7e66bcc296b389bc55073e7f99681534977dce3a)]
|
|
1381
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`ce47e9b`](https://github.com/eea/volto-eea-design-system/commit/ce47e9b163bcb4eda988e3a87718b54ffbd3f99f)]
|
|
1345
1382
|
- added back descriptionDistance variable until package release [David Ichim - [`3af811a`](https://github.com/eea/volto-eea-design-system/commit/3af811a8d86a132e16de118697ba5a4302a8a4da)]
|
|
1346
1383
|
- Back to dev [Alin Voinea - [`cb531c9`](https://github.com/eea/volto-eea-design-system/commit/cb531c933c907bdbb88c9de0f1df2eb7ce899a4c)]
|
|
1347
1384
|
- Proper paths if the package is not installed, but in development [Tiberiu Ichim - [`7a2655f`](https://github.com/eea/volto-eea-design-system/commit/7a2655f7cf9d3c687f172eefcf2b4cff4b12f832)]
|
|
@@ -1429,6 +1466,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1429
1466
|
#### :hammer_and_wrench: Others
|
|
1430
1467
|
|
|
1431
1468
|
- feature(Docusaurus): Updates on color palette information including thematic websites #231 from eea/refactor-docusaurus [ichim-david - [`ec7843d`](https://github.com/eea/volto-eea-design-system/commit/ec7843dea07f626dc1c71ae1baa8bb5b0caa52f3)]
|
|
1469
|
+
- Upgrade Jenkinsfile storybook to yarn 3 [Alin Voinea - [`d20de8d`](https://github.com/eea/volto-eea-design-system/commit/d20de8d6e21a14660b7b5125a80218a8a6f19e62)]
|
|
1432
1470
|
- Back to dev [Alin Voinea - [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)]
|
|
1433
1471
|
- perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
|
|
1434
1472
|
### [1.0.0-alpha.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.3...1.0.0-alpha.4) - 22 November 2022
|
|
@@ -1521,6 +1559,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1521
1559
|
- modified left value of full width classes with toolbars [David Ichim - [`70d82d4`](https://github.com/eea/volto-eea-design-system/commit/70d82d47fbc2c00a3a709de0d5c087c8443a1eae)]
|
|
1522
1560
|
- WIP settings column grid width when using full size class [David Ichim - [`affc7ac`](https://github.com/eea/volto-eea-design-system/commit/affc7ac99527aa92d5a192d90dc8c9ec46a66404)]
|
|
1523
1561
|
- fix eslint [Miu Razvan - [`30c52e4`](https://github.com/eea/volto-eea-design-system/commit/30c52e4eb443555ca44c1b35df064e73d52c0a8b)]
|
|
1562
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`76a41c7`](https://github.com/eea/volto-eea-design-system/commit/76a41c786995fd54afe4d1c345de939f683ffa70)]
|
|
1524
1563
|
- fix broken variable call for contentBox.variables introduced in previous commit by mistake [David Ichim - [`d249c11`](https://github.com/eea/volto-eea-design-system/commit/d249c1160d19bedb174a2fde3fdab48d9ce297d4)]
|
|
1525
1564
|
- clean up [Miu Razvan - [`89f3cb3`](https://github.com/eea/volto-eea-design-system/commit/89f3cb33d70a14806a953f0acd1807e94169ee5c)]
|
|
1526
1565
|
- Feature(container): flexible container size #260 from eea/feature-flexible-container [ichim-david - [`8f84c5b`](https://github.com/eea/volto-eea-design-system/commit/8f84c5b67afe9cbe01b2a44a8f92a9a554e1036a)]
|
|
@@ -1622,6 +1661,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1622
1661
|
|
|
1623
1662
|
#### :nail_care: Enhancements
|
|
1624
1663
|
|
|
1664
|
+
- change(jenkins): added yarn policy for storybook building [ichim-david - [`3d1b844`](https://github.com/eea/volto-eea-design-system/commit/3d1b844efeea40b99c00c9aa97089e0a0be58a57)]
|
|
1625
1665
|
- change(docusaurus): typography updates [ichim-david - [`60a93a4`](https://github.com/eea/volto-eea-design-system/commit/60a93a4aece4e478ae13c2dfe697fd3703aa178a)]
|
|
1626
1666
|
- change(accordion): allow customization of accordion title with css variables [David Ichim - [`15e7d27`](https://github.com/eea/volto-eea-design-system/commit/15e7d27f02c640df582f51a51ef36e645723f842)]
|
|
1627
1667
|
- change(content-box): added css variables that will set text color and background for children [David Ichim - [`86cac53`](https://github.com/eea/volto-eea-design-system/commit/86cac531cc94386b6022e1be80dba826b39f2443)]
|
|
@@ -1656,6 +1696,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1656
1696
|
#### :hammer_and_wrench: Others
|
|
1657
1697
|
|
|
1658
1698
|
- Merge pull request #243 from eea/develop [ichim-david - [`576564c`](https://github.com/eea/volto-eea-design-system/commit/576564ce395ee6ac9e74bcb19d5c4f0b4cd3c33b)]
|
|
1699
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`4a5be6e`](https://github.com/eea/volto-eea-design-system/commit/4a5be6eec78dae230626e61ea2c77e7f3c62510d)]
|
|
1659
1700
|
- Back to dev [Alin Voinea - [`b251255`](https://github.com/eea/volto-eea-design-system/commit/b251255a7ed14d8290717726d86eaf54b87aa2d4)]
|
|
1660
1701
|
### [0.9.0](https://github.com/eea/volto-eea-design-system/compare/0.8.1...0.9.0) - 19 September 2022
|
|
1661
1702
|
|
|
@@ -2411,6 +2452,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2411
2452
|
#### :hammer_and_wrench: Others
|
|
2412
2453
|
|
|
2413
2454
|
- prettier changes [David Ichim - [`134da52`](https://github.com/eea/volto-eea-design-system/commit/134da52549b9d5eac5a12b7ad3005073500ac2c4)]
|
|
2455
|
+
- [JENKINSFILE] remove debug, add error per stage [valentinab25 - [`903eecd`](https://github.com/eea/volto-eea-design-system/commit/903eecdb6bcbb8d73cff5e447d80c85e2a2c906d)]
|
|
2456
|
+
- [JENKINSFILE] mention comment author in comment [valentinab25 - [`39a26aa`](https://github.com/eea/volto-eea-design-system/commit/39a26aa1ff0f35e93e8df9f442c29c5ab79ff493)]
|
|
2457
|
+
- [JENKINSFILE] format PR comments [valentinab25 - [`739438c`](https://github.com/eea/volto-eea-design-system/commit/739438c64950c745d630d1998314a2bed595b23a)]
|
|
2458
|
+
- [JENKINSFILE] Add failure comment, no jenkins fail [valentinab25 - [`c325bf1`](https://github.com/eea/volto-eea-design-system/commit/c325bf14f3fb0da150f2a56cda0a9f03d8d8a628)]
|
|
2414
2459
|
### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3) - 29 April 2022
|
|
2415
2460
|
|
|
2416
2461
|
#### :rocket: New Features
|
|
@@ -2835,6 +2880,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2835
2880
|
- set profile section overflow to auto [nileshgulia1 - [`71ab47f`](https://github.com/eea/volto-eea-design-system/commit/71ab47f89a433233c14b394c3824e607dd18a393)]
|
|
2836
2881
|
- remove segment custom width [nileshgulia1 - [`1d3ea40`](https://github.com/eea/volto-eea-design-system/commit/1d3ea40f98bbdc1eab95b4da739a659b5e29ec16)]
|
|
2837
2882
|
- fix profile section css overflow [nileshgulia1 - [`db5126f`](https://github.com/eea/volto-eea-design-system/commit/db5126fc902e191d1e18fb7e4c54877c8d8786e6)]
|
|
2883
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`647a6e3`](https://github.com/eea/volto-eea-design-system/commit/647a6e3e2093f2c4884c356eb148453551c8f33f)]
|
|
2838
2884
|
- fix warning related to proptype [nileshgulia1 - [`946c6c6`](https://github.com/eea/volto-eea-design-system/commit/946c6c6bc9dece0985ae4b9f9cad6ece2be0ff2c)]
|
|
2839
2885
|
- removed override already present in card.less [ichim-david - [`50d2ab2`](https://github.com/eea/volto-eea-design-system/commit/50d2ab26f85c8f409da02ec128cc1df34848ca69)]
|
|
2840
2886
|
- update [Miu Razvan - [`bbcab87`](https://github.com/eea/volto-eea-design-system/commit/bbcab87ef4c8475f347f0daf4ab7e428e69c2316)]
|
|
@@ -2921,6 +2967,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2921
2967
|
- remove segment custom width [nileshgulia1 - [`4a60d84`](https://github.com/eea/volto-eea-design-system/commit/4a60d84d5fe76578b7760aa1dad6eef9a20916a7)]
|
|
2922
2968
|
- Reformat header.less [Tiberiu Ichim - [`1f99dfc`](https://github.com/eea/volto-eea-design-system/commit/1f99dfc82c165304ca5600ce5138c1233615ab69)]
|
|
2923
2969
|
- fix profile section css overflow [nileshgulia1 - [`8fd2654`](https://github.com/eea/volto-eea-design-system/commit/8fd265413149f1b5e033dffa0fbcb5ef5ecad15f)]
|
|
2970
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6051724`](https://github.com/eea/volto-eea-design-system/commit/6051724437a38675e659c797bb5586ef81286ec0)]
|
|
2924
2971
|
- fix warning related to proptype [nileshgulia1 - [`824b9be`](https://github.com/eea/volto-eea-design-system/commit/824b9beff77aae139882cd50a1d670a02ec6f723)]
|
|
2925
2972
|
- refactor breadcrumbs component, make it functional and customizable [nileshgulia1 - [`4ec374e`](https://github.com/eea/volto-eea-design-system/commit/4ec374e20565eb0a5aed0ff67a02cd6f77eba1f0)]
|
|
2926
2973
|
- removed override already present in card.less [ichim-david - [`93c4e5a`](https://github.com/eea/volto-eea-design-system/commit/93c4e5aac9cc85ff2cc6c04180f6655d5f5616dc)]
|
|
@@ -3489,6 +3536,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
3489
3536
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`3af46d2`](https://github.com/eea/volto-eea-design-system/commit/3af46d2b14fa0b1ef44736f25b0f9ac93b23d18d)]
|
|
3490
3537
|
- Refs #140454 updated eea-design-system readme with extra info on package contents [David Ichim - [`d2efc3d`](https://github.com/eea/volto-eea-design-system/commit/d2efc3ddae7b91efc82cf3bce8fb8e42d696a780)]
|
|
3491
3538
|
- Refs #140454 add h1 to the list of elements that are max 800px and centered [David Ichim - [`7d3c30f`](https://github.com/eea/volto-eea-design-system/commit/7d3c30f409aa4cb43810839f8960589456cc1b2e)]
|
|
3539
|
+
- Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`8d657d0`](https://github.com/eea/volto-eea-design-system/commit/8d657d056cde5163cfe90ac66bc973f55d82e5e9)]
|
|
3492
3540
|
### [0.1.0](https://github.com/eea/volto-eea-design-system/compare/0.0.1...0.1.0) - 17 November 2021
|
|
3493
3541
|
|
|
3494
3542
|
#### :hammer_and_wrench: Others
|
package/jest-addon.config.js
CHANGED
|
@@ -421,7 +421,9 @@ module.exports = {
|
|
|
421
421
|
'@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
|
|
422
422
|
'@eeacms/search/(.*)$': '<rootDir>/src/addons/volto-searchlib/searchlib/$1',
|
|
423
423
|
'@eeacms/search': '<rootDir>/src/addons/volto-searchlib/searchlib',
|
|
424
|
+
'@eeacms/countup': '<rootDir>/node_modules/@eeacms/countup/lib',
|
|
424
425
|
'@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2',
|
|
426
|
+
'@eeacms/(.*?)$': '<rootDir>/node_modules/@eeacms/$1/src',
|
|
425
427
|
'@plone/volto-slate$':
|
|
426
428
|
'<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
|
|
427
429
|
'@plone/volto-slate/(.*)$':
|
package/package.json
CHANGED
|
@@ -249,7 +249,7 @@ const SecondLevelContent = ({ element, topics = false, renderMenuItem }) => {
|
|
|
249
249
|
(element) => element.title === 'At a glance',
|
|
250
250
|
);
|
|
251
251
|
const inDepth = element.items.find(
|
|
252
|
-
(element) => element.url.indexOf('in-depth') !== -1,
|
|
252
|
+
(element) => element.url && element.url.indexOf('in-depth') !== -1,
|
|
253
253
|
);
|
|
254
254
|
content = (
|
|
255
255
|
<List>
|
package/src/ui/Header/utils.js
CHANGED
|
@@ -72,8 +72,22 @@ export const numberToColumnString = (num) => {
|
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
export const numbersToMenuItemColumns = (numbers) => {
|
|
75
|
-
|
|
75
|
+
// Handle both single number and array of numbers for column dimensions
|
|
76
|
+
// Also handle pre-formatted strings (e.g., 'at-a-glance three wide column')
|
|
77
|
+
if (!Array.isArray(numbers)) {
|
|
78
|
+
// If it's already a string containing 'wide column', return it as-is
|
|
79
|
+
if (typeof numbers === 'string' && numbers.includes('wide column')) {
|
|
80
|
+
return numbers;
|
|
81
|
+
}
|
|
82
|
+
return numberToColumnString(numbers);
|
|
83
|
+
}
|
|
76
84
|
return numbers
|
|
77
|
-
.map((num) =>
|
|
85
|
+
.map((num) => {
|
|
86
|
+
// If array element is already a formatted string, return it as-is
|
|
87
|
+
if (typeof num === 'string' && num.includes('wide column')) {
|
|
88
|
+
return num;
|
|
89
|
+
}
|
|
90
|
+
return numberToColumnString(parseInt(num));
|
|
91
|
+
})
|
|
78
92
|
.filter((col) => col !== '');
|
|
79
93
|
};
|
|
@@ -98,6 +98,75 @@ describe('Header utils', () => {
|
|
|
98
98
|
expect(result3.bestMatchUrl).toBe(null);
|
|
99
99
|
expect(result3.bestScore).toBe(-1);
|
|
100
100
|
});
|
|
101
|
+
|
|
102
|
+
test('handles trailing slashes in URLs correctly', () => {
|
|
103
|
+
const menuItems = [
|
|
104
|
+
{ url: '/topics/', items: [] },
|
|
105
|
+
{ url: '/topics/climate/', items: [] },
|
|
106
|
+
];
|
|
107
|
+
|
|
108
|
+
// Active item with trailing slash should match menu item without
|
|
109
|
+
const result1 = findBestMatchingMenuItem(menuItems, '/topics/');
|
|
110
|
+
expect(result1.bestMatchUrl).toBe('/topics');
|
|
111
|
+
|
|
112
|
+
// Active item without trailing slash should match menu item with
|
|
113
|
+
const result2 = findBestMatchingMenuItem(menuItems, '/topics/climate');
|
|
114
|
+
expect(result2.bestMatchUrl).toBe('/topics/climate');
|
|
115
|
+
|
|
116
|
+
// Exact match with both having trailing slashes
|
|
117
|
+
const result3 = findBestMatchingMenuItem(menuItems, '/topics/climate/');
|
|
118
|
+
expect(result3.bestMatchUrl).toBe('/topics/climate');
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
test('handles multiple trailing slashes', () => {
|
|
122
|
+
const menuItems = [{ url: '/topics///', items: [] }];
|
|
123
|
+
|
|
124
|
+
const result = findBestMatchingMenuItem(menuItems, '/topics');
|
|
125
|
+
expect(result.bestMatchUrl).toBe('/topics');
|
|
126
|
+
expect(result.bestScore).toBe('/topics'.length + 1);
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
test('prevents sibling collision with similar URLs', () => {
|
|
130
|
+
// This is the key test for the megamenu fix
|
|
131
|
+
const menuItems = [
|
|
132
|
+
{ url: '/topics', items: [] },
|
|
133
|
+
{ url: '/topics-archive', items: [] },
|
|
134
|
+
{ url: '/topics/climate', items: [] },
|
|
135
|
+
];
|
|
136
|
+
|
|
137
|
+
// Should match /topics/climate (most specific parent), not /topics-archive
|
|
138
|
+
const result1 = findBestMatchingMenuItem(
|
|
139
|
+
menuItems,
|
|
140
|
+
'/topics/climate/overview',
|
|
141
|
+
);
|
|
142
|
+
expect(result1.bestMatchUrl).toBe('/topics/climate');
|
|
143
|
+
|
|
144
|
+
// Should match /topics-archive exactly, not /topics
|
|
145
|
+
const result2 = findBestMatchingMenuItem(menuItems, '/topics-archive');
|
|
146
|
+
expect(result2.bestMatchUrl).toBe('/topics-archive');
|
|
147
|
+
|
|
148
|
+
// Should match /topics-archive when on /topics-archive/page (parent-child relationship)
|
|
149
|
+
const result3 = findBestMatchingMenuItem(
|
|
150
|
+
menuItems,
|
|
151
|
+
'/topics-archive/page',
|
|
152
|
+
);
|
|
153
|
+
expect(result3.bestMatchUrl).toBe('/topics-archive');
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
test('root path ("/") handling', () => {
|
|
157
|
+
const menuItems = [
|
|
158
|
+
{ url: '/', items: [] },
|
|
159
|
+
{ url: '/topics', items: [] },
|
|
160
|
+
];
|
|
161
|
+
|
|
162
|
+
const result1 = findBestMatchingMenuItem(menuItems, '/');
|
|
163
|
+
expect(result1.bestMatchUrl).toBe('/');
|
|
164
|
+
|
|
165
|
+
// Root should not match other paths
|
|
166
|
+
const result2 = findBestMatchingMenuItem(menuItems, '/topics');
|
|
167
|
+
expect(result2.bestMatchUrl).toBe('/topics');
|
|
168
|
+
expect(result2.bestScore).toBe('/topics'.length + 1);
|
|
169
|
+
});
|
|
101
170
|
});
|
|
102
171
|
|
|
103
172
|
describe('isMenuItemActive', () => {
|
|
@@ -205,13 +274,6 @@ describe('Header utils', () => {
|
|
|
205
274
|
]);
|
|
206
275
|
});
|
|
207
276
|
|
|
208
|
-
test('returns non-array input as-is', () => {
|
|
209
|
-
expect(numbersToMenuItemColumns('not an array')).toBe('not an array');
|
|
210
|
-
expect(numbersToMenuItemColumns(null)).toBe(null);
|
|
211
|
-
expect(numbersToMenuItemColumns(undefined)).toBe(undefined);
|
|
212
|
-
expect(numbersToMenuItemColumns(123)).toBe(123);
|
|
213
|
-
});
|
|
214
|
-
|
|
215
277
|
test('handles empty array', () => {
|
|
216
278
|
const result = numbersToMenuItemColumns([]);
|
|
217
279
|
expect(result).toEqual([]);
|
|
@@ -221,5 +283,46 @@ describe('Header utils', () => {
|
|
|
221
283
|
const result = numbersToMenuItemColumns([0, 10, -1, 100]);
|
|
222
284
|
expect(result).toEqual([]);
|
|
223
285
|
});
|
|
286
|
+
|
|
287
|
+
test('handles single number input (non-array)', () => {
|
|
288
|
+
expect(numbersToMenuItemColumns(3)).toBe('three wide column');
|
|
289
|
+
expect(numbersToMenuItemColumns(5)).toBe('five wide column');
|
|
290
|
+
expect(numbersToMenuItemColumns(0)).toBe('');
|
|
291
|
+
expect(numbersToMenuItemColumns(10)).toBe('');
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
test('handles pre-formatted string input', () => {
|
|
295
|
+
const result = numbersToMenuItemColumns('at-a-glance three wide column');
|
|
296
|
+
expect(result).toBe('at-a-glance three wide column');
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
test('handles array with pre-formatted strings', () => {
|
|
300
|
+
const result = numbersToMenuItemColumns([
|
|
301
|
+
'custom one wide column',
|
|
302
|
+
2,
|
|
303
|
+
'another three wide column',
|
|
304
|
+
]);
|
|
305
|
+
expect(result).toEqual([
|
|
306
|
+
'custom one wide column',
|
|
307
|
+
'two wide column',
|
|
308
|
+
'another three wide column',
|
|
309
|
+
]);
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
test('handles mixed array with numbers, strings, and pre-formatted strings', () => {
|
|
313
|
+
const result = numbersToMenuItemColumns([
|
|
314
|
+
1,
|
|
315
|
+
'special four wide column',
|
|
316
|
+
'3',
|
|
317
|
+
0,
|
|
318
|
+
'another five wide column',
|
|
319
|
+
]);
|
|
320
|
+
expect(result).toEqual([
|
|
321
|
+
'one wide column',
|
|
322
|
+
'special four wide column',
|
|
323
|
+
'three wide column',
|
|
324
|
+
'another five wide column',
|
|
325
|
+
]);
|
|
326
|
+
});
|
|
224
327
|
});
|
|
225
328
|
});
|