From 4d5c125255ffff22450cfdb25afdeb0331f47420 Mon Sep 17 00:00:00 2001 From: tedw87 Date: Thu, 18 May 2023 15:14:06 +0300 Subject: [PATCH 01/13] update with getFieldURL --- src/StatisticBlock/View.jsx | 5 ++++- src/helpers.js | 20 +++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/StatisticBlock/View.jsx b/src/StatisticBlock/View.jsx index a1f57b2..9ec2671 100644 --- a/src/StatisticBlock/View.jsx +++ b/src/StatisticBlock/View.jsx @@ -5,6 +5,7 @@ import VisibilitySensor from 'react-visibility-sensor'; import { Statistic } from 'semantic-ui-react'; import { UniversalLink } from '@plone/volto/components'; import { serializeText } from '@eeacms/volto-statistic-block/helpers'; +import { getFieldURL } from '@eeacms/volto-statistic-block/helpers'; import './styles.less'; @@ -63,7 +64,9 @@ const View = ({ data, mode }) => { className={styles.align === 'full' ? 'ui container' : ''} > {items.map((item, index) => { - const StatisticWrapper = item.href ? UniversalLink : Statistic; + const StatisticWrapper = getFieldURL(item.href) + ? UniversalLink + : Statistic; return ( { return isArray(text) ? serializeNodes(text) : text; }; + +export const getFieldURL = (data) => { + let url = data; + const _isObject = data && isObject(data) && !isArray(data); + if (_isObject && data['@type'] === 'URL') { + url = data['value'] || data['url'] || data['href'] || data; + } else if (_isObject) { + url = data['@id'] || data['url'] || data['href'] || data; + } + if (isArray(data)) { + url = data.map((item) => getFieldURL(item)); + } + if (isString(url) && isInternalURL(url)) return flattenToAppURL(url); + return url; +}; From df7fcd475d4b36c2e4f370f727a5468b52a1950d Mon Sep 17 00:00:00 2001 From: tedw87 Date: Thu, 25 May 2023 12:29:52 +0300 Subject: [PATCH 02/13] refactor code --- src/StatisticBlock/View.jsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/StatisticBlock/View.jsx b/src/StatisticBlock/View.jsx index 9ec2671..87286a7 100644 --- a/src/StatisticBlock/View.jsx +++ b/src/StatisticBlock/View.jsx @@ -64,15 +64,12 @@ const View = ({ data, mode }) => { className={styles.align === 'full' ? 'ui container' : ''} > {items.map((item, index) => { - const StatisticWrapper = getFieldURL(item.href) - ? UniversalLink - : Statistic; + const href = getFieldURL(item.href); + const StatisticWrapper = href ? UniversalLink : Statistic; return ( {animation.enabled ? ( From 3dc34908cf22514318c3fd737d517c8261da7fd4 Mon Sep 17 00:00:00 2001 From: valentinab25 Date: Thu, 1 Jun 2023 12:22:38 +0300 Subject: [PATCH 03/13] chore: [JENKINS] Deprecate circularity website --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4d7272f..8d81a3c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { environment { GIT_NAME = "volto-statistic-block" NAMESPACE = "@eeacms" - SONARQUBE_TAGS = "volto.eea.europa.eu,demo-www.eea.europa.eu,circularity.eea.europa.eu,forest.eea.europa.eu,clmsdemo.devel6cph.eea.europa.eu,water.europa.eu-marine,biodiversity.europa.eu,climate-adapt.eea.europa.eu,climate-energy.eea.europa.eu,climate-advisory-board.devel4cph.eea.europa.eu,climate-advisory-board.europa.eu,www.eea.europa.eu-ims,www.eea.europa.eu-en,industry.eea.europa.eu" + SONARQUBE_TAGS = "volto.eea.europa.eu,demo-www.eea.europa.eu,forest.eea.europa.eu,clmsdemo.devel6cph.eea.europa.eu,water.europa.eu-marine,biodiversity.europa.eu,climate-adapt.eea.europa.eu,climate-energy.eea.europa.eu,climate-advisory-board.devel4cph.eea.europa.eu,climate-advisory-board.europa.eu,www.eea.europa.eu-ims,www.eea.europa.eu-en,industry.eea.europa.eu" DEPENDENCIES = "" VOLTO = "" } From 10dc32ded0890409ec4e316222c9ff6001a25597 Mon Sep 17 00:00:00 2001 From: Miu Razvan Date: Thu, 8 Jun 2023 15:07:50 +0300 Subject: [PATCH 04/13] feat: added text aligment option --- src/StatisticBlock/View.jsx | 3 ++- src/StatisticBlock/styles.less | 30 +++++++++++++++++++++++++----- src/StatisticBlock/stylesSchema.js | 6 ++++++ 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/StatisticBlock/View.jsx b/src/StatisticBlock/View.jsx index 73f6c49..6b5e72d 100644 --- a/src/StatisticBlock/View.jsx +++ b/src/StatisticBlock/View.jsx @@ -48,6 +48,7 @@ const View = ({ data, mode }) => { animation = {}, } = data; const { + textAlign = 'center', backgroundInverted = 'primary', valueVariation = 'secondary', labelVariation = 'tertiary', @@ -70,7 +71,7 @@ const View = ({ data, mode }) => { valuevariation={valueVariation} labelvariation={labelVariation} extravariation={extraVariation} - className={styles.align === 'full' ? 'ui container' : ''} + className={cx(textAlign, { 'ui container': styles.align === 'full' })} > {items.map((item, index) => { const href = getFieldURL(item.href); diff --git a/src/StatisticBlock/styles.less b/src/StatisticBlock/styles.less index c7ee611..6bc22df 100644 --- a/src/StatisticBlock/styles.less +++ b/src/StatisticBlock/styles.less @@ -1,8 +1,28 @@ -.ui.statistic { - .slate { - p { - margin-bottom: 0; - color: inherit; +.ui.statistics { + .ui.statistic { + .slate { + p { + margin-bottom: 0; + color: inherit; + } + } + } + + &.left { + .ui.statistic { + align-items: flex-start; + } + } + + &.center { + .ui.statistic { + align-items: center; + } + } + + &.right { + .ui.statistic { + align-items: flex-end; } } } diff --git a/src/StatisticBlock/stylesSchema.js b/src/StatisticBlock/stylesSchema.js index 6ba845f..feb8ed1 100644 --- a/src/StatisticBlock/stylesSchema.js +++ b/src/StatisticBlock/stylesSchema.js @@ -6,6 +6,7 @@ export default () => { title: 'Default', fields: [ 'align', + 'textAlign', 'backgroundInverted', 'valueVariation', 'labelVariation', @@ -20,6 +21,11 @@ export default () => { title: 'Align', actions: ['center', 'wide', 'full'], }, + textAlign: { + title: 'Text align', + widget: 'style_text_align', + default: 'center', + }, backgroundInverted: { title: 'Background when inverted', choices: [ From f707d99e9ebb5fdb3e2ce3361d7d0678c5c5dc46 Mon Sep 17 00:00:00 2001 From: Miu Razvan Date: Thu, 8 Jun 2023 15:08:39 +0300 Subject: [PATCH 05/13] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37a11a7..98bb17c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-statistic-block", - "version": "1.2.1", + "version": "1.3.0", "description": "@eeacms/volto-statistic-block: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", From 6657284b4dc852ba39df18138c5a0cc1d9c6edc9 Mon Sep 17 00:00:00 2001 From: Miu Razvan Date: Thu, 8 Jun 2023 15:16:45 +0300 Subject: [PATCH 06/13] fix: use computed href instead of plain href --- src/StatisticBlock/View.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StatisticBlock/View.jsx b/src/StatisticBlock/View.jsx index 6b5e72d..aedff4c 100644 --- a/src/StatisticBlock/View.jsx +++ b/src/StatisticBlock/View.jsx @@ -75,14 +75,14 @@ const View = ({ data, mode }) => { > {items.map((item, index) => { const href = getFieldURL(item.href); - const StatisticWrapper = item.href ? UniversalLink : Statistic; + const StatisticWrapper = href ? UniversalLink : Statistic; const valueNodes = serializeToNodes(item.value); const valueNo = Number(serializeNodesToText(valueNodes)); return ( {animation.enabled && isNumber(valueNo) && !isNaN(valueNo) ? ( From 12d02721e17b6c713a7a9a61b149392124c86c72 Mon Sep 17 00:00:00 2001 From: EEA Jenkins <@users.noreply.github.com> Date: Thu, 8 Jun 2023 12:29:41 +0000 Subject: [PATCH 07/13] Automated release 1.3.0 --- CHANGELOG.md | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e430d0..b16a3fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,25 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -### [1.2.1](https://github.com/eea/volto-statistic-block/compare/1.2.0...1.2.1) - 22 May 2023 +### [1.3.0](https://github.com/eea/volto-statistic-block/compare/1.2.1...1.3.0) - 8 June 2023 + +#### :rocket: New Features + +- feat: added text aligment option [Miu Razvan - [`10dc32d`](https://github.com/eea/volto-statistic-block/commit/10dc32ded0890409ec4e316222c9ff6001a25597)] #### :bug: Bug Fixes -- fix: serialize nodes as it should be done [Miu Razvan - [`ebbf6f7`](https://github.com/eea/volto-statistic-block/commit/ebbf6f7e10540a409626a19d7eb6b20e286c3b07)] +- fix: use computed href instead of plain href [Miu Razvan - [`6657284`](https://github.com/eea/volto-statistic-block/commit/6657284b4dc852ba39df18138c5a0cc1d9c6edc9)] + +#### :house: Internal changes + + +#### :hammer_and_wrench: Others + +- bump version [Miu Razvan - [`f707d99`](https://github.com/eea/volto-statistic-block/commit/f707d99e9ebb5fdb3e2ce3361d7d0678c5c5dc46)] +- merge master into this branch [Miu Razvan - [`67f1eec`](https://github.com/eea/volto-statistic-block/commit/67f1eecfe5900a6585ae109bc141e37f9d4f03c7)] +- refactor code [tedw87 - [`df7fcd4`](https://github.com/eea/volto-statistic-block/commit/df7fcd475d4b36c2e4f370f727a5468b52a1950d)] +### [1.2.1](https://github.com/eea/volto-statistic-block/compare/1.2.0...1.2.1) - 22 May 2023 #### :hammer_and_wrench: Others @@ -24,30 +38,16 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - use countup.js@2.5.0 [Miu Razvan - [`9dad099`](https://github.com/eea/volto-statistic-block/commit/9dad099fb6519688752bf4788023712bd9719671)] - bump version [Miu Razvan - [`e886513`](https://github.com/eea/volto-statistic-block/commit/e886513e63bf480dcdb5c9e0a627b31c6b4e989d)] -- Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`7cf6d5b`](https://github.com/eea/volto-statistic-block/commit/7cf6d5b1427a9f17bb1c740d019130e323668286)] ### [1.1.0](https://github.com/eea/volto-statistic-block/compare/1.0.1...1.1.0) - 27 March 2023 #### :hammer_and_wrench: Others -- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`1ecdcec`](https://github.com/eea/volto-statistic-block/commit/1ecdcec0ef98c891d9157db9592365fc10760b59)] -- Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`e5f76cc`](https://github.com/eea/volto-statistic-block/commit/e5f76cc8f90dfa21ba1f2bb25b2491ae0e1b102d)] -- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`439ba7f`](https://github.com/eea/volto-statistic-block/commit/439ba7f0016eb5ba86ef267309e0ddef7b81f379)] -- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`1e72601`](https://github.com/eea/volto-statistic-block/commit/1e72601f1f9a7e8023c9130407d9ce28f1d7b6f9)] -- Add Sonarqube tag using climate-energy-frontend addons list [EEA Jenkins - [`9ab65ad`](https://github.com/eea/volto-statistic-block/commit/9ab65ad0f5b300a14590f5f260659749f4831956)] - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`75e506f`](https://github.com/eea/volto-statistic-block/commit/75e506fd7cf92296871ddf52f9b1c82a053ec931)] -- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`9297e9f`](https://github.com/eea/volto-statistic-block/commit/9297e9fb8a638a1564d7d7a6d2ebbea0056d775e)] -- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`6dde4aa`](https://github.com/eea/volto-statistic-block/commit/6dde4aae3c87bfe434a28719479e37078db11099)] -- yarn 3 [Alin Voinea - [`b4949e1`](https://github.com/eea/volto-statistic-block/commit/b4949e18f23a7965c76ef97a5790607a587987dc)] -- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`8820afa`](https://github.com/eea/volto-statistic-block/commit/8820afa4ab8fcebd17e90522196c1fde8b246e21)] -- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`8eb5b8d`](https://github.com/eea/volto-statistic-block/commit/8eb5b8de3f87152cb57faeb960233791b328c900)] -- Add Sonarqube tag using demo-kitkat-frontend addons list [EEA Jenkins - [`58f36bd`](https://github.com/eea/volto-statistic-block/commit/58f36bd4ae9dcdccbef182789957dbf0bb97da74)] -- Add Sonarqube tag using forests-frontend addons list [EEA Jenkins - [`3bb9a21`](https://github.com/eea/volto-statistic-block/commit/3bb9a2128a88c1196258722112a1957f60d332fc)] ### [1.0.1](https://github.com/eea/volto-statistic-block/compare/1.0.0...1.0.1) - 16 November 2022 #### :hammer_and_wrench: Others - test(estlint): Fix .project.eslintrc.js [Alin Voinea - [`d81878f`](https://github.com/eea/volto-statistic-block/commit/d81878fff2ba1be4446dd330560c46d8161f8bc2)] -- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`a58f436`](https://github.com/eea/volto-statistic-block/commit/a58f436c5bb052fcdd13b213895c497881e48c67)] ## [1.0.0](https://github.com/eea/volto-statistic-block/compare/0.3.0...1.0.0) - 28 October 2022 #### :nail_care: Enhancements @@ -59,7 +59,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :hammer_and_wrench: Others - Cleanup [Alin Voinea - [`6d5f4a6`](https://github.com/eea/volto-statistic-block/commit/6d5f4a6d8048689e97e567316f24902d0865de88)] -- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`5fd7ba7`](https://github.com/eea/volto-statistic-block/commit/5fd7ba7a4595e157bdb0ebb0932f1d3afd64b369)] ### [0.3.0](https://github.com/eea/volto-statistic-block/compare/0.2.0...0.3.0) - 19 September 2022 #### :nail_care: Enhancements @@ -90,7 +89,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :hammer_and_wrench: Others - Remove useless from block title [Alin Voinea - [`a3daf0a`](https://github.com/eea/volto-statistic-block/commit/a3daf0ad63666d0cd87eef465f42f525a5a307bc)] -- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`4a9ea35`](https://github.com/eea/volto-statistic-block/commit/4a9ea35d0717941e9d96a29e46dc85717140fccf)] ### [0.1.1](https://github.com/eea/volto-statistic-block/compare/0.1.0...0.1.1) - 10 March 2022 #### :hammer_and_wrench: Others @@ -101,5 +99,4 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :hammer_and_wrench: Others -- yarn bootstrap [Alin Voinea - [`ba85706`](https://github.com/eea/volto-statistic-block/commit/ba857067b16dc04f9bc970b0c0d4afd479bb7528)] - Initial commit [Alin Voinea - [`2e19fe2`](https://github.com/eea/volto-statistic-block/commit/2e19fe2708f89887d2d79f88696e197643ea10f4)] From a2dc67fcb3a0aacb4851a847803179994448c6a0 Mon Sep 17 00:00:00 2001 From: Miu Razvan Date: Thu, 8 Jun 2023 16:24:24 +0300 Subject: [PATCH 08/13] fix: fixed text-alignment --- src/StatisticBlock/View.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/StatisticBlock/View.jsx b/src/StatisticBlock/View.jsx index aedff4c..e3c8d66 100644 --- a/src/StatisticBlock/View.jsx +++ b/src/StatisticBlock/View.jsx @@ -84,7 +84,9 @@ const View = ({ data, mode }) => { key={`${index}-${item.label}`} {...(href ? { className: 'ui statistic', href } : {})} > - + {animation.enabled && isNumber(valueNo) && !isNaN(valueNo) ? ( { _serializeNodes(valueNodes) )} - + {serializeNodes(item.label)} -
+
{serializeNodes(item.info)}
From d5bf0a82f42e0e28931ffe7808773f75efe072d8 Mon Sep 17 00:00:00 2001 From: EEA Jenkins <@users.noreply.github.com> Date: Thu, 8 Jun 2023 13:35:21 +0000 Subject: [PATCH 09/13] Automated release 1.3.0 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b16a3fa..10d754f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :bug: Bug Fixes +- fix: fixed text-alignment [Miu Razvan - [`a2dc67f`](https://github.com/eea/volto-statistic-block/commit/a2dc67fcb3a0aacb4851a847803179994448c6a0)] - fix: use computed href instead of plain href [Miu Razvan - [`6657284`](https://github.com/eea/volto-statistic-block/commit/6657284b4dc852ba39df18138c5a0cc1d9c6edc9)] #### :house: Internal changes From 4d35869e6c5c6fd79f84fa8afa4742214d7efcb1 Mon Sep 17 00:00:00 2001 From: valentinab25 Date: Thu, 8 Jun 2023 20:51:37 +0300 Subject: [PATCH 10/13] test: Fix test config, coverage Refs #253277 --- Jenkinsfile | 1 + jest-addon.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8d81a3c..620c5e3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -188,6 +188,7 @@ pipeline { def nodeJS = tool 'NodeJS'; withSonarQubeEnv('Sonarqube') { sh '''sed -i "s#/opt/frontend/my-volto-project/src/addons/${GIT_NAME}/##g" xunit-reports/coverage/lcov.info''' + sh '''sed -i "s#src/addons/${GIT_NAME}/##g" xunit-reports/coverage/lcov.info''' sh "export PATH=${scannerHome}/bin:${nodeJS}/bin:$PATH; sonar-scanner -Dsonar.javascript.lcov.reportPaths=./xunit-reports/coverage/lcov.info,./cypress-coverage/coverage/lcov.info -Dsonar.sources=./src -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER" 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''' } diff --git a/jest-addon.config.js b/jest-addon.config.js index da38318..e23a6c3 100644 --- a/jest-addon.config.js +++ b/jest-addon.config.js @@ -5,6 +5,7 @@ module.exports = { '!src/**/*.d.ts', ], moduleNameMapper: { + '\\.(css|less|scss|sass)$': 'identity-obj-proxy', '@plone/volto/cypress': '/node_modules/@plone/volto/cypress', '@plone/volto/babel': '/node_modules/@plone/volto/babel', '@plone/volto/(.*)$': '/node_modules/@plone/volto/src/$1', @@ -17,7 +18,6 @@ module.exports = { '~/(.*)$': '/src/$1', 'load-volto-addons': '/node_modules/@plone/volto/jest-addons-loader.js', - '\\.(css|less|scss|sass)$': 'identity-obj-proxy', }, transform: { '^.+\\.js(x)?$': 'babel-jest', From 065b26129e0416abc8b1d5e45593378284b34e0a Mon Sep 17 00:00:00 2001 From: EEA Jenkins <@users.noreply.github.com> Date: Thu, 8 Jun 2023 18:43:24 +0000 Subject: [PATCH 11/13] Automated release 1.3.0 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10d754f..86ad360 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :hammer_and_wrench: Others +- test: Fix test config, coverage Refs #253277 [valentinab25 - [`4d35869`](https://github.com/eea/volto-statistic-block/commit/4d35869e6c5c6fd79f84fa8afa4742214d7efcb1)] - bump version [Miu Razvan - [`f707d99`](https://github.com/eea/volto-statistic-block/commit/f707d99e9ebb5fdb3e2ce3361d7d0678c5c5dc46)] - merge master into this branch [Miu Razvan - [`67f1eec`](https://github.com/eea/volto-statistic-block/commit/67f1eecfe5900a6585ae109bc141e37f9d4f03c7)] - refactor code [tedw87 - [`df7fcd4`](https://github.com/eea/volto-statistic-block/commit/df7fcd475d4b36c2e4f370f727a5468b52a1950d)] From ebec353a06dbca878d00ccafb55d05311c4023e6 Mon Sep 17 00:00:00 2001 From: valentinab25 Date: Fri, 9 Jun 2023 20:38:25 +0300 Subject: [PATCH 12/13] test: jest should look for addons in node_modules Refs #253277 --- jest-addon.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest-addon.config.js b/jest-addon.config.js index e23a6c3..3c86610 100644 --- a/jest-addon.config.js +++ b/jest-addon.config.js @@ -12,7 +12,7 @@ module.exports = { '@package/(.*)$': '/src/$1', '@root/(.*)$': '/src/$1', '@plone/volto-quanta/(.*)$': '/src/addons/volto-quanta/src/$1', - '@eeacms/(.*?)/(.*)$': '/src/addons/$1/src/$2', + '@eeacms/(.*?)/(.*)$': '/node_modules/@eeacms/$1/src/$2', '@plone/volto-slate': '/node_modules/@plone/volto/packages/volto-slate/src', '~/(.*)$': '/src/$1', From 25119349b5180fd00b4f6ea9603af389867bad5e Mon Sep 17 00:00:00 2001 From: EEA Jenkins <@users.noreply.github.com> Date: Fri, 9 Jun 2023 18:34:51 +0000 Subject: [PATCH 13/13] Automated release 1.3.0 --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86ad360..5d23d6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -### [1.3.0](https://github.com/eea/volto-statistic-block/compare/1.2.1...1.3.0) - 8 June 2023 +### [1.3.0](https://github.com/eea/volto-statistic-block/compare/1.2.1...1.3.0) - 9 June 2023 #### :rocket: New Features @@ -20,6 +20,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :hammer_and_wrench: Others +- test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`ebec353`](https://github.com/eea/volto-statistic-block/commit/ebec353a06dbca878d00ccafb55d05311c4023e6)] - test: Fix test config, coverage Refs #253277 [valentinab25 - [`4d35869`](https://github.com/eea/volto-statistic-block/commit/4d35869e6c5c6fd79f84fa8afa4742214d7efcb1)] - bump version [Miu Razvan - [`f707d99`](https://github.com/eea/volto-statistic-block/commit/f707d99e9ebb5fdb3e2ce3361d7d0678c5c5dc46)] - merge master into this branch [Miu Razvan - [`67f1eec`](https://github.com/eea/volto-statistic-block/commit/67f1eecfe5900a6585ae109bc141e37f9d4f03c7)]