{
*/}
- • {i18n.t('new_updates.news.first', 'The editor is faster')}
• {' '}
{i18n.t(
- 'new_updates.news.second',
- 'Two new cards for processing responses in a 100% intelligent way'
+ 'new_updates.news.first',
+ 'Now you can use your “little hand” to navigate in your flow'
+ )}
+
+ • {i18n.t('new_updates.news.second', 'Zoom tool')}
+
+ • {' '}
+ {i18n.t(
+ 'new_updates.news.third',
+ "It's easier to know where your flow is going with the new colors on the arrows that connect the blocks"
)}
• {' '}
- {i18n.t('new_updates.news.third', 'Copy and paste any type of card without worrying')}
+ {i18n.t(
+ 'new_updates.news.fourth',
+ 'The feedback modal is different and takes up less space on your screen'
+ )}
• {' '}
- {i18n.t('new_updates.news.fourth', 'Bugs fixed in the selection component on cards')}
+ {i18n.t('new_updates.news.fifth', "Now it's easier to find the start of your flow")}
- {i18n.t(
- 'new_updates.footer',
- 'Feel free to send feedbacks about your experience clicking on the detective'
- )}
+ {i18n.t('new_updates.footer', 'Feel free to send feedbacks about your experience')}
@@ -483,7 +493,7 @@ export class Flow extends React.PureComponent {
ReactDOM.unmountComponentAtNode(newUpdatesModalEl);
}}
/>
- {/* {
this.startGuiding();
ReactDOM.unmountComponentAtNode(newUpdatesModalEl);
}}
- /> */}
+ />
,
newUpdatesModalEl
diff --git a/src/components/guidingsteps/GuidingSteps.module.scss b/src/components/guidingsteps/GuidingSteps.module.scss
index 651fff9f8..9d147ead1 100644
--- a/src/components/guidingsteps/GuidingSteps.module.scss
+++ b/src/components/guidingsteps/GuidingSteps.module.scss
@@ -62,10 +62,18 @@
background-color: $unnnic-color-brand-weni-soft;
width: 100%;
}
+
+ &.arrow_left {
+
+ &::before {
+ left: 2.5%;
+ }
+ }
}
.top {
top: calc(var(--tooltip-margin) * -1);
+ transform: translateX(-2%) translateY(-100%);
&::before {
top: 100%;
diff --git a/src/components/guidingsteps/GuidingSteps.tsx b/src/components/guidingsteps/GuidingSteps.tsx
index ccbff0d61..5a9f4fd27 100644
--- a/src/components/guidingsteps/GuidingSteps.tsx
+++ b/src/components/guidingsteps/GuidingSteps.tsx
@@ -34,6 +34,8 @@ export interface GuidingStepsProps {
description: string;
buttonText: string;
side?: string;
+ align?: string;
+ action?: () => void;
}
export class GuidingSteps extends React.Component<
@@ -46,6 +48,10 @@ export class GuidingSteps extends React.Component<
private nextGuide(): void {
this.props.mergeEditorState({ guidingStep: this.props.guidingStep + 1 });
+
+ if (this.props.action) {
+ this.props.action();
+ }
}
private shouldRenderGuide(): boolean {
@@ -56,12 +62,15 @@ export class GuidingSteps extends React.Component<
public render(): JSX.Element {
const directionStyle = this.props.side ? styles[this.props.side] : styles.right;
+ const arrowAlign = this.props.align ? styles[this.props.align] : styles.arrow_center;
return (
{this.props.children}
{this.shouldRenderGuide() && (
-
+
{this.props.title}
diff --git a/src/components/sidebar/Sidebar.tsx b/src/components/sidebar/Sidebar.tsx
index 919551ef5..4bfca4b04 100644
--- a/src/components/sidebar/Sidebar.tsx
+++ b/src/components/sidebar/Sidebar.tsx
@@ -143,24 +143,35 @@ export class Sidebar extends React.PureComponent
{
public render(): JSX.Element {
return (
-
- this.toggleMouseState()}>
- {this.props.mouseState === MouseState.SELECT ? (
- near_me
- ) : (
- back_hand
- )}
-
-
+
+ this.toggleMouseState()}>
+ {this.props.mouseState === MouseState.SELECT ? (
+ near_me
+ ) : (
+ back_hand
+ )}
+
+
+
{
this.preloadBgImage();
}
+ private startNextTour() {
+ this.props.mergeEditorState({ currentGuide: 'control_tools', guidingStep: 0 });
+ }
+
public render(): ReactNode {
const simStyle = this.state.simulatorStyle === 'whatsapp' ? styles.whatsapp : '';
@@ -1152,6 +1156,7 @@ export class Simulator extends React.Component {
)}
buttonText={i18n.t('guiding.v2.2.button', 'Got it 3/3')}
side="left"
+ action={() => this.startNextTour()}
>
diff --git a/src/components/simulator/__snapshots__/Simulator.test.ts.snap b/src/components/simulator/__snapshots__/Simulator.test.ts.snap
index 5435736bb..b447b5061 100644
--- a/src/components/simulator/__snapshots__/Simulator.test.ts.snap
+++ b/src/components/simulator/__snapshots__/Simulator.test.ts.snap
@@ -153,6 +153,7 @@ exports[`Simulator renders 1`] = `