Skip to content

Commit

Permalink
Merge branch 'master' into jmfrancois/chore/update-postcss
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfrancois authored May 21, 2024
2 parents cc6955e + d548b21 commit a73aea0
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 22 deletions.
6 changes: 6 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @talend/react-components

## 16.1.3

### Patch Changes

- 003c7a4: fix(TDC-7452/Tour): Fix tour is changing to first step when closing

## 16.1.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,5 @@
"publishConfig": {
"access": "public"
},
"version": "16.1.2"
"version": "16.1.3"
}
18 changes: 11 additions & 7 deletions packages/components/src/AppGuidedTour/AppGuidedTour.component.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import useLocalStorage from 'react-use/lib/useLocalStorage';
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import useLocalStorage from 'react-use/lib/useLocalStorage';

import PropTypes from 'prop-types';

import I18N_DOMAIN_COMPONENTS from '../constants';
import GuidedTour from '../GuidedTour';
import Toggle from '../Toggle';
import Stepper from '../Stepper';
import I18N_DOMAIN_COMPONENTS from '../constants';
import Toggle from '../Toggle';
import DemoContentStep from './DemoContentStep.component';

const DEMO_CONTENT_STEP_ID = 1;
Expand Down Expand Up @@ -73,8 +75,10 @@ function AppGuidedTour({
onRequestClose={() => {
onRequestClose();
setIsAlreadyViewed(true);
setCurrentStep(0);
setImportDemoContent(false);
if (importDemoContent) {
setImportDemoContent(false);
setCurrentStep(Math.max(0, currentStep - 1));
}
}}
steps={[
{
Expand Down
17 changes: 17 additions & 0 deletions packages/components/src/AppGuidedTour/AppGuidedTour.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,21 @@ describe('AppGuidedTour', () => {
);
expect(screen.queryByText('Import demo content')).not.toBeInTheDocument();
});
it('Should stay on the last page when finished', async () => {
const user = userEvent.setup();
const steps = [
{
content: {
header: 'Header',
body: () => 'Last page',
},
},
];
render(<AppGuidedTour {...DEFAULT_PROPS} steps={steps} demoContentSteps={null} />);
expect(screen.queryByText(/Last page/i)).not.toBeInTheDocument();
const nextBtn = document.querySelector('button[data-tour-elem="right-arrow"]');
await user.click(nextBtn);
await user.click(screen.getByText('Let me try'));
expect(screen.queryByText(/Last page/i)).toBeInTheDocument();
});
});
6 changes: 6 additions & 0 deletions packages/dataviz/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 6.1.5

### Patch Changes

- 0f408a7: Fix(Dataviz): Range filter - date time inputs overlap

## 6.1.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/dataviz/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@talend/react-dataviz",
"version": "6.1.4",
"version": "6.1.5",
"description": "Talend charts and visualization components",
"main": "lib/index.js",
"mainSrc": "src/index.ts",
Expand Down Expand Up @@ -52,7 +52,7 @@
"@talend/design-system": "^10.4.2",
"@talend/eslint-config": "^13.0.3",
"@talend/eslint-plugin": "^1.1.1",
"@talend/icons": "^7.7.2",
"@talend/icons": "^7.8.0",
"@talend/locales-tui-components": "^11.4.5",
"@talend/locales-tui-dataviz": "^3.0.1",
"@talend/react-components": "^16.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@
}

:global(.date-picker) {
flex-basis: 75%;
margin-right: 2px;
> div {
flex-basis: 75%;
margin-right: 2px;
}
}

:global(.time-picker) {
flex-basis: 50%;
margin-right: 5px;
> div {
flex-basis: 50%;
margin-right: 5px;
}
}
}
6 changes: 6 additions & 0 deletions packages/icons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @talend/icons

## 7.8.0

### Minor Changes

- d409b57: feat(TMC-27713/icons): update qlik favicon

## 7.7.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,5 @@
"publishConfig": {
"access": "public"
},
"version": "7.7.2"
"version": "7.8.0"
}
10 changes: 3 additions & 7 deletions packages/icons/src/svg/products/qlik-favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a73aea0

Please sign in to comment.