eionet2-dashboard 3.2.0 → 3.2.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/Jenkinsfile +2 -2
  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.test.jsx +17 -0
  11. package/tabs/src/components/CustomDrawer.test.jsx +14 -0
  12. package/tabs/src/components/CustomGridToolbar.test.jsx +8 -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.scss +6 -0
  18. package/tabs/src/components/Tab.test.jsx +463 -0
  19. package/tabs/src/components/TabConfig.test.jsx +27 -0
  20. package/tabs/src/components/TabPanel.test.jsx +31 -0
  21. package/tabs/src/components/TermsOfUse.test.jsx +11 -0
  22. package/tabs/src/components/UnderConstruction.test.jsx +13 -0
  23. package/tabs/src/components/UserMenu.test.jsx +53 -0
  24. package/tabs/src/components/activity/Activity.test.jsx +218 -0
  25. package/tabs/src/components/activity/ConsultationList.test.jsx +114 -0
  26. package/tabs/src/components/activity/EventList.test.jsx +164 -0
  27. package/tabs/src/components/activity/GroupsTags.test.jsx +23 -0
  28. package/tabs/src/components/activity/ObligationList.test.jsx +46 -0
  29. package/tabs/src/components/activity/PublicationList.test.jsx +46 -0
  30. package/tabs/src/components/activity/Reporting.test.jsx +11 -0
  31. package/tabs/src/components/event_rating/EventRating.test.jsx +63 -0
  32. package/tabs/src/components/event_rating/EventRatingDialog.test.jsx +28 -0
  33. package/tabs/src/components/event_registration/Approval.test.jsx +25 -0
  34. package/tabs/src/components/event_registration/ApprovalDialog.test.jsx +25 -0
  35. package/tabs/src/components/event_registration/ApprovalList.test.jsx +36 -0
  36. package/tabs/src/components/event_registration/EventExternalRegistration.test.jsx +219 -0
  37. package/tabs/src/components/event_registration/EventRegistration.test.jsx +208 -0
  38. package/tabs/src/components/my_country/AtAGlance.test.jsx +157 -0
  39. package/tabs/src/components/my_country/CountryMembers.test.jsx +117 -0
  40. package/tabs/src/components/my_country/CountryProgress.test.jsx +21 -0
  41. package/tabs/src/components/my_country/DataReporters.test.jsx +156 -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
package/CHANGELOG.md CHANGED
@@ -4,6 +4,29 @@ 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.2](https://github.com/eea/eionet2-dashboard/compare/3.2.1...3.2.2) - 12 March 2026
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: unit tests (Refs #153197) [Mihai Nicolae - [`b267728`](https://github.com/eea/eionet2-dashboard/commit/b267728ac745c398d398af1bbf8ddd7cca98fd75)]
12
+ - feat: unit tests (Refs #153197) [Mihai Nicolae - [`6bbe659`](https://github.com/eea/eionet2-dashboard/commit/6bbe6597f9619983e3778688e285390d2631bd06)]
13
+ - feat: unit tests (Refs #153197) [Mihai Nicolae - [`615a774`](https://github.com/eea/eionet2-dashboard/commit/615a774447f5921b0c655375b841fd7766b5c7d2)]
14
+ - feat: unit tests (Refs #153197) [Mihai Nicolae - [`e4c615e`](https://github.com/eea/eionet2-dashboard/commit/e4c615ecb7442dada313de55146732bd4d4dd896)]
15
+
16
+ #### :bug: Bug Fixes
17
+
18
+ - fix: ics generation (Refs #299213) [Mihai Nicolae - [`6d59025`](https://github.com/eea/eionet2-dashboard/commit/6d59025e1ae5a47a183b210e0379ca19188bb2aa)]
19
+ - fix: unit test [Mihai Nicolae - [`df4cb59`](https://github.com/eea/eionet2-dashboard/commit/df4cb5939f326f26b4731c0d63f8857434a0ad7d)]
20
+
21
+ #### :house: Internal changes
22
+
23
+ - chore: new version [Mihai Nicolae - [`c88d6f8`](https://github.com/eea/eionet2-dashboard/commit/c88d6f8214c85e491cf7fb25fdc81348d57b2773)]
24
+ - chore: code format [Mihai Nicolae - [`a593c60`](https://github.com/eea/eionet2-dashboard/commit/a593c6030a550a37d159ca864ed689663b1a8456)]
25
+ - chore: jenking unit test [Mihai Nicolae - [`24bb98d`](https://github.com/eea/eionet2-dashboard/commit/24bb98d821adbceb9f231aaf9c3451eea8df3502)]
26
+ - chore: code format [Mihai Nicolae - [`eea17da`](https://github.com/eea/eionet2-dashboard/commit/eea17da6d0b41610a2bcc1e4c4852ad2b60c893c)]
27
+
28
+ ### [3.2.1](https://github.com/eea/eionet2-dashboard/compare/3.2.0...3.2.1) - 18 February 2026
29
+
7
30
  ### [3.2.0](https://github.com/eea/eionet2-dashboard/compare/3.1.7...3.2.0) - 18 February 2026
8
31
 
9
32
  #### :bug: Bug Fixes
package/Jenkinsfile CHANGED
@@ -113,8 +113,8 @@ pipeline {
113
113
  steps {
114
114
  script{
115
115
  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'''
116
+ sh "sonar-scanner -Dsonar.javascript.lcov.reportPaths=./tabs/coverage/lcov.info -Dsonar.sources=./tabs,./api -Dsonar.projectKey=$GIT_NAME -Dsonar.projectName=$GIT_NAME -Dsonar.branch.name=$BRANCH_NAME"
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}&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
118
  }
119
119
  }
120
120
  }
@@ -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.0",
3
+ "version": "3.2.2",
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
+ }