eionet2-dashboard 3.2.1 → 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.
- package/CHANGELOG.md +23 -0
- package/Jenkinsfile +2 -2
- package/api/getGraphData/index.js +3 -4
- package/package.json +2 -2
- package/tabs/package-lock.json +2894 -1833
- package/tabs/package.json +3 -3
- package/tabs/public/auth-start.html +2 -2
- package/tabs/src/components/App.test.jsx +67 -0
- package/tabs/src/components/BottomMenu.test.jsx +94 -0
- package/tabs/src/components/CustomColumnResizeIcon.test.jsx +17 -0
- package/tabs/src/components/CustomDrawer.test.jsx +14 -0
- package/tabs/src/components/CustomGridToolbar.test.jsx +8 -0
- package/tabs/src/components/EventDialogTitle.test.jsx +25 -0
- package/tabs/src/components/HtmlBox.test.jsx +41 -0
- package/tabs/src/components/Privacy.test.jsx +11 -0
- package/tabs/src/components/ResizableGrid.test.jsx +64 -0
- package/tabs/src/components/Tab.test.jsx +463 -0
- package/tabs/src/components/TabConfig.test.jsx +27 -0
- package/tabs/src/components/TabPanel.test.jsx +31 -0
- package/tabs/src/components/TermsOfUse.test.jsx +11 -0
- package/tabs/src/components/UnderConstruction.test.jsx +13 -0
- package/tabs/src/components/UserMenu.test.jsx +53 -0
- package/tabs/src/components/activity/Activity.test.jsx +218 -0
- package/tabs/src/components/activity/ConsultationList.test.jsx +114 -0
- package/tabs/src/components/activity/EventList.test.jsx +164 -0
- package/tabs/src/components/activity/GroupsTags.test.jsx +23 -0
- package/tabs/src/components/activity/ObligationList.test.jsx +46 -0
- package/tabs/src/components/activity/PublicationList.test.jsx +46 -0
- package/tabs/src/components/activity/Reporting.test.jsx +11 -0
- package/tabs/src/components/event_rating/EventRating.test.jsx +63 -0
- package/tabs/src/components/event_rating/EventRatingDialog.test.jsx +28 -0
- package/tabs/src/components/event_registration/Approval.test.jsx +25 -0
- package/tabs/src/components/event_registration/ApprovalDialog.test.jsx +25 -0
- package/tabs/src/components/event_registration/ApprovalList.test.jsx +36 -0
- package/tabs/src/components/event_registration/EventExternalRegistration.test.jsx +219 -0
- package/tabs/src/components/event_registration/EventRegistration.test.jsx +208 -0
- package/tabs/src/components/my_country/AtAGlance.test.jsx +157 -0
- package/tabs/src/components/my_country/CountryMembers.test.jsx +117 -0
- package/tabs/src/components/my_country/CountryProgress.test.jsx +21 -0
- package/tabs/src/components/my_country/DataReporters.test.jsx +156 -0
- package/tabs/src/components/my_country/FullCircularProgress.test.jsx +19 -0
- package/tabs/src/components/my_country/GroupView.test.jsx +165 -0
- package/tabs/src/components/my_country/GroupsBoard.test.jsx +30 -0
- package/tabs/src/components/my_country/IndicatorCard.test.jsx +27 -0
- package/tabs/src/components/my_country/ManagementBoard.test.jsx +119 -0
- package/tabs/src/components/my_country/MyCountry.test.jsx +220 -0
- package/tabs/src/components/my_country/ProgressGauge.test.jsx +34 -0
- package/tabs/src/components/my_country/ScientificCommittee.test.jsx +11 -0
- package/tabs/src/components/my_country/UserCard.test.jsx +24 -0
- package/tabs/src/components/my_country/YearlyProgress.test.jsx +33 -0
- package/tabs/src/components/self_service/UserEdit.test.jsx +213 -0
- package/tabs/src/data/apiProvider.test.js +228 -0
- package/tabs/src/data/icsHelper.test.js +76 -0
- package/tabs/src/data/provider.test.js +351 -0
- package/tabs/src/data/reportingProvider.test.js +103 -0
- package/tabs/src/data/selfServiceProvider.test.js +108 -0
- package/tabs/src/data/selfServiceSharepointProvider.test.js +100 -0
- package/tabs/src/data/sharepointProvider.test.js +669 -0
- package/tabs/src/data/validator.test.js +34 -2
- 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
|
|
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}
|
|
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
|
|
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" ?
|
|
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
|
|
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