eionet2-dashboard 3.2.1 → 3.2.3

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/Jenkinsfile +2 -5
  3. package/api/getGraphData/index.js +3 -4
  4. package/package.json +2 -2
  5. package/tabs/package-lock.json +2927 -1866
  6. package/tabs/package.json +3 -3
  7. package/tabs/public/auth-start.html +2 -2
  8. package/tabs/src/components/App.test.jsx +67 -0
  9. package/tabs/src/components/BottomMenu.test.jsx +94 -0
  10. package/tabs/src/components/CustomColumnResizeIcon.jsx +1 -1
  11. package/tabs/src/components/CustomColumnResizeIcon.test.jsx +17 -0
  12. package/tabs/src/components/CustomDrawer.test.jsx +14 -0
  13. package/tabs/src/components/EventDialogTitle.test.jsx +25 -0
  14. package/tabs/src/components/HtmlBox.test.jsx +41 -0
  15. package/tabs/src/components/Privacy.test.jsx +11 -0
  16. package/tabs/src/components/ResizableGrid.test.jsx +64 -0
  17. package/tabs/src/components/Tab.test.jsx +463 -0
  18. package/tabs/src/components/TabConfig.test.jsx +27 -0
  19. package/tabs/src/components/TabPanel.test.jsx +31 -0
  20. package/tabs/src/components/TermsOfUse.test.jsx +11 -0
  21. package/tabs/src/components/UnderConstruction.test.jsx +13 -0
  22. package/tabs/src/components/UserMenu.test.jsx +53 -0
  23. package/tabs/src/components/activity/Activity.test.jsx +218 -0
  24. package/tabs/src/components/activity/ConsultationList.test.jsx +114 -0
  25. package/tabs/src/components/activity/EventList.test.jsx +164 -0
  26. package/tabs/src/components/activity/GroupsTags.test.jsx +23 -0
  27. package/tabs/src/components/activity/ObligationList.test.jsx +46 -0
  28. package/tabs/src/components/activity/PublicationList.test.jsx +46 -0
  29. package/tabs/src/components/activity/Reporting.test.jsx +11 -0
  30. package/tabs/src/components/event_rating/EventRating.test.jsx +63 -0
  31. package/tabs/src/components/event_rating/EventRatingDialog.test.jsx +28 -0
  32. package/tabs/src/components/event_registration/Approval.test.jsx +25 -0
  33. package/tabs/src/components/event_registration/ApprovalDialog.test.jsx +25 -0
  34. package/tabs/src/components/event_registration/ApprovalList.test.jsx +36 -0
  35. package/tabs/src/components/event_registration/EventExternalRegistration.test.jsx +219 -0
  36. package/tabs/src/components/event_registration/EventRegistration.test.jsx +208 -0
  37. package/tabs/src/components/my_country/AtAGlance.test.jsx +157 -0
  38. package/tabs/src/components/my_country/CountryMembers.test.jsx +117 -0
  39. package/tabs/src/components/my_country/CountryProgress.test.jsx +21 -0
  40. package/tabs/src/components/my_country/DataReporters.jsx +2 -3
  41. package/tabs/src/components/my_country/DataReporters.test.jsx +155 -0
  42. package/tabs/src/components/my_country/FullCircularProgress.test.jsx +19 -0
  43. package/tabs/src/components/my_country/GroupView.test.jsx +165 -0
  44. package/tabs/src/components/my_country/GroupsBoard.test.jsx +30 -0
  45. package/tabs/src/components/my_country/IndicatorCard.test.jsx +27 -0
  46. package/tabs/src/components/my_country/ManagementBoard.test.jsx +119 -0
  47. package/tabs/src/components/my_country/MyCountry.test.jsx +220 -0
  48. package/tabs/src/components/my_country/ProgressGauge.test.jsx +34 -0
  49. package/tabs/src/components/my_country/ScientificCommittee.test.jsx +11 -0
  50. package/tabs/src/components/my_country/UserCard.test.jsx +24 -0
  51. package/tabs/src/components/my_country/YearlyProgress.test.jsx +33 -0
  52. package/tabs/src/components/self_service/UserEdit.test.jsx +213 -0
  53. package/tabs/src/data/apiProvider.test.js +228 -0
  54. package/tabs/src/data/icsHelper.test.js +76 -0
  55. package/tabs/src/data/provider.test.js +351 -0
  56. package/tabs/src/data/reportingProvider.test.js +103 -0
  57. package/tabs/src/data/selfServiceProvider.test.js +108 -0
  58. package/tabs/src/data/selfServiceSharepointProvider.test.js +100 -0
  59. package/tabs/src/data/sharepointProvider.test.js +669 -0
  60. package/tabs/src/data/validator.test.js +34 -2
  61. package/tabs/yarn.lock +415 -414
  62. package/tabs/src/components/CustomGridToolbar.jsx +0 -202
package/CHANGELOG.md CHANGED
@@ -4,6 +4,43 @@ 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
+ ### [3.2.3](https://github.com/eea/eionet2-dashboard/compare/3.2.2...3.2.3) - 24 April 2026
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: grid toolbar issue (Refs #302855) [Mihai Nicolae - [`f50c4ee`](https://github.com/eea/eionet2-dashboard/commit/f50c4ee8a6160c91d39cbfa4b8d12832b609348f)]
12
+
13
+ #### :house: Internal changes
14
+
15
+ - chore: sonar [Mihai Nicolae - [`d531c58`](https://github.com/eea/eionet2-dashboard/commit/d531c587d99ed740ceb83ddbcbf3651bf5a82283)]
16
+ - chore: coverage on master [Mihai Nicolae - [`d0a7925`](https://github.com/eea/eionet2-dashboard/commit/d0a79254460ffe9d06bf597d2bb1c3c24b1d42d5)]
17
+ - chore: coverage on master [Mihai Nicolae - [`364faf4`](https://github.com/eea/eionet2-dashboard/commit/364faf432bd637b1e1782942161eafe4a450a648)]
18
+ - chore: build [Mihai Nicolae - [`fa47ba5`](https://github.com/eea/eionet2-dashboard/commit/fa47ba5764bfc49824d15c41da8df0ba3bea4855)]
19
+
20
+ ### [3.2.2](https://github.com/eea/eionet2-dashboard/compare/3.2.1...3.2.2) - 12 March 2026
21
+
22
+ #### :rocket: New Features
23
+
24
+ - feat: unit tests (Refs #153197) [Mihai Nicolae - [`b267728`](https://github.com/eea/eionet2-dashboard/commit/b267728ac745c398d398af1bbf8ddd7cca98fd75)]
25
+ - feat: unit tests (Refs #153197) [Mihai Nicolae - [`6bbe659`](https://github.com/eea/eionet2-dashboard/commit/6bbe6597f9619983e3778688e285390d2631bd06)]
26
+ - feat: unit tests (Refs #153197) [Mihai Nicolae - [`615a774`](https://github.com/eea/eionet2-dashboard/commit/615a774447f5921b0c655375b841fd7766b5c7d2)]
27
+ - feat: unit tests (Refs #153197) [Mihai Nicolae - [`e4c615e`](https://github.com/eea/eionet2-dashboard/commit/e4c615ecb7442dada313de55146732bd4d4dd896)]
28
+
29
+ #### :bug: Bug Fixes
30
+
31
+ - fix: ics generation (Refs #299213) [Mihai Nicolae - [`6d59025`](https://github.com/eea/eionet2-dashboard/commit/6d59025e1ae5a47a183b210e0379ca19188bb2aa)]
32
+ - fix: unit test [Mihai Nicolae - [`df4cb59`](https://github.com/eea/eionet2-dashboard/commit/df4cb5939f326f26b4731c0d63f8857434a0ad7d)]
33
+
34
+ #### :house: Internal changes
35
+
36
+ - chore: new version [Mihai Nicolae - [`c88d6f8`](https://github.com/eea/eionet2-dashboard/commit/c88d6f8214c85e491cf7fb25fdc81348d57b2773)]
37
+ - chore: code format [Mihai Nicolae - [`a593c60`](https://github.com/eea/eionet2-dashboard/commit/a593c6030a550a37d159ca864ed689663b1a8456)]
38
+ - chore: jenking unit test [Mihai Nicolae - [`24bb98d`](https://github.com/eea/eionet2-dashboard/commit/24bb98d821adbceb9f231aaf9c3451eea8df3502)]
39
+ - chore: code format [Mihai Nicolae - [`eea17da`](https://github.com/eea/eionet2-dashboard/commit/eea17da6d0b41610a2bcc1e4c4852ad2b60c893c)]
40
+ - chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`438a9fb`](https://github.com/eea/eionet2-dashboard/commit/438a9fb90c90501e69fbf70651a0080fc17cd18a)]
41
+
42
+ ### [3.2.1](https://github.com/eea/eionet2-dashboard/compare/3.2.0...3.2.1) - 18 February 2026
43
+
7
44
  ### [3.2.0](https://github.com/eea/eionet2-dashboard/compare/3.1.7...3.2.0) - 18 February 2026
8
45
 
9
46
  #### :bug: Bug Fixes
package/Jenkinsfile CHANGED
@@ -31,7 +31,6 @@ pipeline {
31
31
  allOf {
32
32
  environment name: 'CHANGE_ID', value: ''
33
33
  not { changelog '.*^Automated release [0-9\\.]+$' }
34
- not { branch 'master' }
35
34
  }
36
35
  }
37
36
  steps {
@@ -49,7 +48,6 @@ pipeline {
49
48
  allOf {
50
49
  environment name: 'CHANGE_ID', value: ''
51
50
  not { changelog '.*^Automated release [0-9\\.]+$' }
52
- not { branch 'master' }
53
51
  }
54
52
  }
55
53
  steps {
@@ -64,7 +62,6 @@ pipeline {
64
62
  allOf {
65
63
  environment name: 'CHANGE_ID', value: ''
66
64
  not { changelog '.*^Automated release [0-9\\.]+$' }
67
- not { branch 'master' }
68
65
  }
69
66
  }
70
67
  steps {
@@ -113,8 +110,8 @@ pipeline {
113
110
  steps {
114
111
  script{
115
112
  withSonarQubeEnv('Sonarqube') {
116
- sh "sonar-scanner -Dsonar.javascript.lcov.reportPaths=./tabs/coverage/lcov.info -Dsonar.sources=./tabs,./api -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER"
117
- sh '''try=2; while [ \$try -gt 0 ]; do curl -s -XPOST -u "${SONAR_AUTH_TOKEN}:" "${SONAR_HOST_URL}api/project_tags/set?project=${GIT_NAME}-${BRANCH_NAME}&tags=${SONARQUBE_TAGS},${BRANCH_NAME}" > set_tags_result; if [ \$(grep -ic error set_tags_result ) -eq 0 ]; then try=0; else cat set_tags_result; echo "... Will retry"; sleep 60; try=\$(( \$try - 1 )); fi; done'''
113
+ sh "sonar-scanner -Dsonar.javascript.lcov.reportPaths=./tabs/coverage/lcov.info -Dsonar.sources=./tabs,./api -Dsonar.exclusions=**/__tests__/**,**/*.test.*,**/*.spec.* -Dsonar.projectKey=$GIT_NAME -Dsonar.projectName=$GIT_NAME -Dsonar.branch.name=$BRANCH_NAME"
114
+ sh '''try=2; while [ \$try -gt 0 ]; do curl -s -XPOST -u "${SONAR_AUTH_TOKEN}:" "${SONAR_HOST_URL}api/project_tags/set?project=${GIT_NAME}&tags=${SONARQUBE_TAGS}" > set_tags_result; if [ \$(grep -ic error set_tags_result ) -eq 0 ]; then try=0; else cat set_tags_result; echo "... Will retry"; sleep 60; try=\$(( \$try - 1 )); fi; done'''
118
115
  }
119
116
  }
120
117
  }
@@ -25,7 +25,7 @@ module.exports = async function (context, req) {
25
25
 
26
26
  // Prepare access token.
27
27
  const authHeader = req.headers && (req.headers.authorization || req.headers.Authorization);
28
- const accessToken = authHeader && authHeader.startsWith("Bearer ")
28
+ const accessToken = authHeader?.startsWith("Bearer ")
29
29
  ? authHeader.slice("Bearer ".length)
30
30
  : null;
31
31
  if (!accessToken) {
@@ -39,7 +39,7 @@ module.exports = async function (context, req) {
39
39
 
40
40
  const method = req.method.toLowerCase();
41
41
  const credentialType =
42
- method !== "get" ? (req.body && req.body.credentialType) : req.query.credentialType;
42
+ method !== "get" ? req.body?.credentialType : req.query.credentialType;
43
43
  const eTag = method == 'patch' ? req.body.eTag : undefined;
44
44
 
45
45
  const tenantId = process.env.M365_TENANT_ID;
@@ -81,7 +81,7 @@ module.exports = async function (context, req) {
81
81
  });
82
82
  }
83
83
 
84
- if (!tokenResult || !tokenResult.accessToken) {
84
+ if (!tokenResult?.accessToken) {
85
85
  return {
86
86
  status: 500,
87
87
  body: {
@@ -97,7 +97,6 @@ module.exports = async function (context, req) {
97
97
  authProvider: (done) => done(null, tokenResult.accessToken),
98
98
  });
99
99
 
100
- //graphClient.config.defaultVersion = 'beta';
101
100
  let path = "";
102
101
  let result;
103
102
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eionet2-dashboard",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "scripts": {
@@ -22,4 +22,4 @@
22
22
  "@fluentui/react-teams": "^6.0.0",
23
23
  "@mui/material": "^5.5.0"
24
24
  }
25
- }
25
+ }