@eeacms/volto-tableau 8.1.0 → 8.1.1

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 CHANGED
@@ -4,7 +4,13 @@ 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
- ### [8.1.0](https://github.com/eea/volto-tableau/compare/8.0.7...8.1.0) - 11 September 2024
7
+ ### [8.1.1](https://github.com/eea/volto-tableau/compare/8.1.0...8.1.1) - 11 October 2024
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix: Increase wait time EEA Screenshooter when saving preview image - refs #277935 [dobri1408 - [`f9e5d01`](https://github.com/eea/volto-tableau/commit/f9e5d01033fd011c1b411b2cb3e271dfc140f19b)]
12
+
13
+ ### [8.1.0](https://github.com/eea/volto-tableau/compare/8.0.7...8.1.0) - 13 September 2024
8
14
 
9
15
  #### :hammer_and_wrench: Others
10
16
 
@@ -51,6 +57,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
51
57
 
52
58
  #### :hammer_and_wrench: Others
53
59
 
60
+ - Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`22eeee9`](https://github.com/eea/volto-tableau/commit/22eeee93cfa8516261bb037a4bffef654af7a179)]
54
61
  - Revert "Add fullwidth property" [Miu Razvan - [`ea36e3c`](https://github.com/eea/volto-tableau/commit/ea36e3c4be0ff20999a5ea7ced69cc77f287ced5)]
55
62
  - Add fullwidth property [Miu Razvan - [`8d21ed0`](https://github.com/eea/volto-tableau/commit/8d21ed0b219f94d18998155a77acf2a0c50c9338)]
56
63
  ### [8.0.3](https://github.com/eea/volto-tableau/compare/8.0.2...8.0.3) - 14 June 2024
@@ -182,12 +189,14 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
182
189
  - test [Dobricean Ioan Dorian - [`48505ca`](https://github.com/eea/volto-tableau/commit/48505caef84d12091035fdd79cf64067e7f819e2)]
183
190
  - split the view and edit [Dobricean Ioan Dorian - [`7227bb1`](https://github.com/eea/volto-tableau/commit/7227bb1fb70e5d895f15872ed6533e089be99836)]
184
191
  - update embed tableau so it can work with serialized data [Dobricean Ioan Dorian - [`59d958c`](https://github.com/eea/volto-tableau/commit/59d958c7a1a5055ea62e04abcbf34ee93f52e23a)]
192
+ - test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`c452d70`](https://github.com/eea/volto-tableau/commit/c452d704819fb485e3cd3b39c2501361d20e8559)]
185
193
  ### [6.0.6](https://github.com/eea/volto-tableau/compare/6.0.5...6.0.6) - 17 November 2023
186
194
 
187
195
  #### :hammer_and_wrench: Others
188
196
 
189
197
  - tests: add cypress for tableau [nileshgulia1 - [`6eca683`](https://github.com/eea/volto-tableau/commit/6eca6834b85cdab4ed82367fee32fdbbb35b0f5e)]
190
198
  - tests: update unit tests [nileshgulia1 - [`96cae09`](https://github.com/eea/volto-tableau/commit/96cae09eab2e737f032c97eb401a3efa88e68ec6)]
199
+ - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`c7e81cb`](https://github.com/eea/volto-tableau/commit/c7e81cb0768f755dd4107a4998253d9bccc33809)]
191
200
  - comment test [Miu Razvan - [`a459525`](https://github.com/eea/volto-tableau/commit/a459525fdccf8ee61651d4cb2e04eb253e841c61)]
192
201
  ### [6.0.5](https://github.com/eea/volto-tableau/compare/6.0.4...6.0.5) - 15 November 2023
193
202
 
@@ -214,6 +223,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
214
223
 
215
224
  #### :house: Internal changes
216
225
 
226
+ - chore: [JENKINS] Refactor automated testing [valentinab25 - [`903b90a`](https://github.com/eea/volto-tableau/commit/903b90a2df0abc183aa68d99a89bb688de3a0c73)]
217
227
 
218
228
  #### :hammer_and_wrench: Others
219
229
 
@@ -223,6 +233,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
223
233
  - tests: increase coverage [kreafox - [`ecb9262`](https://github.com/eea/volto-tableau/commit/ecb92625a44365faf4c39f0ff3f02ccc4ca21656)]
224
234
  - Fix tableau height [kreafox - [`6194c24`](https://github.com/eea/volto-tableau/commit/6194c2405e2bd93aba9865caed76292cd55193d3)]
225
235
  - Show share & download button on widget view [kreafox - [`a66e253`](https://github.com/eea/volto-tableau/commit/a66e2537d08dc7129e249c28e1daa27246c88815)]
236
+ - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`9d2189d`](https://github.com/eea/volto-tableau/commit/9d2189d4edb13dd449d75cd6dd9052bbed67304d)]
237
+ - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`f2fa3f9`](https://github.com/eea/volto-tableau/commit/f2fa3f9ccabab918586179ac16ead44e2eba8498)]
238
+ - test: [JENKINS] Improve cypress time [valentinab25 - [`5748183`](https://github.com/eea/volto-tableau/commit/5748183c27dae18a4ebbc067d659cbc24cad8f71)]
226
239
  - use toolbar from volto-embed [Miu Razvan - [`1a232a1`](https://github.com/eea/volto-tableau/commit/1a232a15f2bbe05da75307800590d0a0a1c4996b)]
227
240
  ## [6.0.0](https://github.com/eea/volto-tableau/compare/5.0.2...6.0.0) - 30 October 2023
228
241
 
@@ -280,6 +293,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
280
293
  - test: change volto version in Jenkinsfile [ana-oprea - [`347aceb`](https://github.com/eea/volto-tableau/commit/347aceb07d152fddeebbf3a7e7a6ac9c55dc21ba)]
281
294
  - test: increase cypress timeout [ana-oprea - [`bdf4408`](https://github.com/eea/volto-tableau/commit/bdf44083cd84c96b4914d3f8a3bb17c5187f191c)]
282
295
  - test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`caff974`](https://github.com/eea/volto-tableau/commit/caff9742a703b224133a8dd2a969629e70c9fd33)]
296
+ - test: Fix eslint and yarn i18n [Alin Voinea - [`b8be7fb`](https://github.com/eea/volto-tableau/commit/b8be7fb9ab10faed0a1be8ce7e3d4e7c78ebe020)]
283
297
  - i18n: Add en [Alin Voinea - [`c5e20dd`](https://github.com/eea/volto-tableau/commit/c5e20ddea25c830ac80665ee9a71e557e8cd117d)]
284
298
  - test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`2116ff9`](https://github.com/eea/volto-tableau/commit/2116ff95c6454e813bdca44e6c3aa81fa0a916b8)]
285
299
  ## [5.0.0](https://github.com/eea/volto-tableau/compare/4.1.1...5.0.0) - 25 July 2023
@@ -291,17 +305,21 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
291
305
  #### :hammer_and_wrench: Others
292
306
 
293
307
  - Release 5.0.0 [Alin Voinea - [`97c98e9`](https://github.com/eea/volto-tableau/commit/97c98e98b1295a4ad45756326dc20cd59517515f)]
308
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`2acb3a5`](https://github.com/eea/volto-tableau/commit/2acb3a5490f62ce0a95ebbd03c32874ac3a42603)]
294
309
  ### [4.1.1](https://github.com/eea/volto-tableau/compare/4.1.0...4.1.1) - 21 July 2023
295
310
 
296
311
  #### :hammer_and_wrench: Others
297
312
 
298
313
  - Add VisualizationViewWidget [Tiberiu Ichim - [`fa881cb`](https://github.com/eea/volto-tableau/commit/fa881cbc3643a46697fb16d1c86ada1d4121a46a)]
314
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`cbcbad2`](https://github.com/eea/volto-tableau/commit/cbcbad26f7aa3683122199c8d5cbd142903df93b)]
315
+ - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`51abe6d`](https://github.com/eea/volto-tableau/commit/51abe6d4db80825fe2e396e04c7003c6ad79b480)]
299
316
  ### [4.1.0](https://github.com/eea/volto-tableau/compare/4.0.0...4.1.0) - 15 June 2023
300
317
 
301
318
  ## [4.0.0](https://github.com/eea/volto-tableau/compare/3.0.8...4.0.0) - 13 June 2023
302
319
 
303
320
  #### :house: Internal changes
304
321
 
322
+ - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`e33bb21`](https://github.com/eea/volto-tableau/commit/e33bb21eb429c33e3a15d771487a1c9af8ccb0d5)]
305
323
 
306
324
  #### :hammer_and_wrench: Others
307
325
 
@@ -333,6 +351,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
333
351
 
334
352
  #### :hammer_and_wrench: Others
335
353
 
354
+ - Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`f5deccd`](https://github.com/eea/volto-tableau/commit/f5deccd84372752908b300c5cfd78134818e5ce4)]
336
355
  ### [3.0.6](https://github.com/eea/volto-tableau/compare/3.0.5...3.0.6) - 30 January 2023
337
356
 
338
357
  ### [3.0.5](https://github.com/eea/volto-tableau/compare/3.0.4...3.0.5) - 26 January 2023
@@ -404,6 +423,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
404
423
  - Update commands.js [Nilesh - [`7c48437`](https://github.com/eea/volto-tableau/commit/7c4843780efb9b85a4728de73c00d831c1d8fdcf)]
405
424
  - Update e2e.js [Nilesh - [`f67b45c`](https://github.com/eea/volto-tableau/commit/f67b45c170f58f8d0301192994226f173e4cb00a)]
406
425
  - latest volto compatibility refs #154757 [nileshgulia1 - [`881ba48`](https://github.com/eea/volto-tableau/commit/881ba482dc9b82e7fdac16549d41e80a6d26b3de)]
426
+ - Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`58e25df`](https://github.com/eea/volto-tableau/commit/58e25df2291add09670143bee54cde103ee835b9)]
407
427
  ### [1.3.0](https://github.com/eea/volto-tableau/compare/1.2.5...1.3.0) - 28 September 2022
408
428
 
409
429
  #### :hammer_and_wrench: Others
@@ -417,11 +437,15 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
417
437
  - Use volto 16 alpha 14 [Miu Razvan - [`93641be`](https://github.com/eea/volto-tableau/commit/93641be4c2393f49008aff789400cf7c947949fd)]
418
438
  - Revert volto-tableau group to common [Andrei Grigore - [`9d24c6d`](https://github.com/eea/volto-tableau/commit/9d24c6d2767fed6a840cddaee55dbd5cecb544b5)]
419
439
  - Tableaugroup typo fix [Andrei Grigore - [`b0b5378`](https://github.com/eea/volto-tableau/commit/b0b5378a437043120a96c9e5e8802584145daa22)]
440
+ - Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`3234347`](https://github.com/eea/volto-tableau/commit/3234347e524cc0ed4918242f503fe9e7dba266b2)]
420
441
  - Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`d237e1c`](https://github.com/eea/volto-tableau/commit/d237e1c72817d7e68a3eb698563674d1514db24f)]
421
442
  ### [1.2.4](https://github.com/eea/volto-tableau/compare/1.2.3...1.2.4) - 25 October 2021
422
443
 
423
444
  #### :hammer_and_wrench: Others
424
445
 
446
+ - Add Sonarqube tag using frontend addons list [EEA Jenkins - [`2b19679`](https://github.com/eea/volto-tableau/commit/2b19679e2c7bcdc83082d1c73a595eea8b86d14f)]
447
+ - Add Sonarqube tag using frontend addons list [EEA Jenkins - [`384ccae`](https://github.com/eea/volto-tableau/commit/384ccaebed8c414a5c90eb96c6ce0a2b091f249c)]
448
+ - Add Sonarqube tag using frontend addons list [EEA Jenkins - [`589258e`](https://github.com/eea/volto-tableau/commit/589258e9b3cbba9cee37c57bb85ca5b707bc65d7)]
425
449
  ### [1.2.3](https://github.com/eea/volto-tableau/compare/1.2.2...1.2.3) - 14 June 2021
426
450
 
427
451
  #### :hammer_and_wrench: Others
@@ -27,13 +27,18 @@ describe('Blocks Tests', () => {
27
27
  afterEach(slateAfterEach);
28
28
 
29
29
  it('Add Tableau block', () => {
30
+ cy.intercept('GET', `/**/*?expand*`, {
31
+ statusCode: 200,
32
+ }).as('content');
30
33
  // when I add a maps block
31
34
  cy.addNewBlock('tableau');
32
35
 
33
36
  cy.get(
34
37
  `.sidebar-container .field-wrapper-tableau_vis_url #field-tableau_vis_url`,
35
38
  ).type('/path/to/dashboard', { force: true });
39
+ cy.wait('@content');
36
40
  cy.get('#toolbar-save').click({ force: true });
41
+ cy.intercept('GET', `/**/*?expand*`).as('content');
37
42
  cy.wait('@content');
38
43
  cy.url().should('eq', Cypress.config().baseUrl + '/cypress/my-page');
39
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-tableau",
3
- "version": "8.1.0",
3
+ "version": "8.1.1",
4
4
  "description": "@eeacms/volto-tableau: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -433,7 +433,7 @@ const Tableau = forwardRef((props, ref) => {
433
433
  }
434
434
  return v;
435
435
  });
436
- if (value.length) {
436
+ if (value?.length) {
437
437
  workbook.changeParameterValueAsync(fieldName, value);
438
438
  }
439
439
  }
@@ -1,6 +1,7 @@
1
1
  import React, { useState } from 'react';
2
2
  import { withRouter } from 'react-router';
3
3
  import { connect } from 'react-redux';
4
+ import { injectIntl } from 'react-intl';
4
5
  import { compose } from 'redux';
5
6
  import { isEqual } from 'lodash';
6
7
  import { Modal, Button, Grid } from 'semantic-ui-react';
@@ -125,12 +126,16 @@ const VisualizationWidget = (props) => {
125
126
  * Get schema
126
127
  */
127
128
  React.useEffect(() => {
128
- getSchema({ config, viz: viz.current, vizState, data: value }).then(
129
- (schema) => {
130
- setSchema(schema);
131
- },
132
- );
133
- }, [vizState, value]);
129
+ getSchema({
130
+ config,
131
+ viz: viz.current,
132
+ vizState,
133
+ data: value,
134
+ intl: props.intl,
135
+ }).then((schema) => {
136
+ setSchema(schema);
137
+ });
138
+ }, [vizState, value, props.intl]);
134
139
 
135
140
  React.useEffect(() => {
136
141
  if (value && value.url && value.preview_url_loaded !== value.url) {
@@ -139,7 +144,7 @@ const VisualizationWidget = (props) => {
139
144
  '',
140
145
  )}/cors-proxy/https://screenshot.eea.europa.eu/api/v1/retrieve_image_for_url?url=${encodeURIComponent(
141
146
  value.url,
142
- )}&w=1920&h=1000&waitfor=4000`,
147
+ )}&w=1920&h=1000&waitfor=8000`,
143
148
  )
144
149
  .then((e) => e.blob())
145
150
  .then((myBlob) => {
@@ -260,5 +265,6 @@ const VisualizationWidget = (props) => {
260
265
 
261
266
  export default compose(
262
267
  withRouter,
268
+ injectIntl,
263
269
  connect((state) => ({ content: state?.content?.data })),
264
270
  )(VisualizationWidget);
@@ -1,9 +1,21 @@
1
+ import { defineMessages } from 'react-intl';
1
2
  import { find, includes } from 'lodash';
2
3
  import {
3
4
  getSheetnamesChoices,
4
5
  canChangeVizData,
5
6
  } from '@eeacms/volto-tableau/Tableau/helpers';
6
7
 
8
+ const messages = defineMessages({
9
+ CSSHeight: {
10
+ id: 'CSS height',
11
+ defaultMessage: 'CSS height',
12
+ },
13
+ CSSTableauHeightDescription: {
14
+ id: 'Tableau height',
15
+ defaultMessage: 'Tableau height',
16
+ },
17
+ });
18
+
7
19
  async function getUrlParametersSchema({ viz, vizState, data }) {
8
20
  const tableauParameters =
9
21
  vizState.loaded && viz ? await viz.getWorkbook().getParametersAsync() : [];
@@ -170,7 +182,7 @@ const breakpointUrlSchema = (config) => {
170
182
  };
171
183
  };
172
184
 
173
- const schema = async ({ config, viz, vizState, data }) => {
185
+ const schema = async ({ config, viz, vizState, data, intl }) => {
174
186
  const isDisabled = !canChangeVizData(viz, vizState);
175
187
 
176
188
  return {
@@ -189,6 +201,7 @@ const schema = async ({ config, viz, vizState, data }) => {
189
201
  'hideTabs',
190
202
  'hideToolbar',
191
203
  'autoScale',
204
+ 'tableau_height',
192
205
  'toolbarPosition',
193
206
  'breakpointUrls',
194
207
  ],
@@ -230,6 +243,18 @@ const schema = async ({ config, viz, vizState, data }) => {
230
243
  description: 'Scale down tableau according to width',
231
244
  isDisabled,
232
245
  },
246
+ tableau_height: {
247
+ title: (
248
+ <a
249
+ rel="noopener noreferrer"
250
+ target="_blank"
251
+ href="https://developer.mozilla.org/en-US/docs/Web/CSS/height"
252
+ >
253
+ {intl.formatMessage(messages.CSSHeight)}
254
+ </a>
255
+ ),
256
+ description: intl.formatMessage(messages.CSSTableauHeightDescription),
257
+ },
233
258
  toolbarPosition: {
234
259
  title: 'Toolbar position',
235
260
  choices: [