Skip to content

Commit 9bb43dc

Browse files
committed
fixed tutorial for map tab
1 parent 29203cd commit 9bb43dc

File tree

3 files changed

+2
-30
lines changed

3 files changed

+2
-30
lines changed

src/app/components/Buttons/Tutorial.tsx

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ import { Component } from 'react';
77
import 'intro.js/introjs.css';
88
import { TutorialProps, TutorialState, StepsObj } from '../../FrontendTypes';
99
import { Button } from '@mui/material';
10-
import HelpOutlineIcon from '@mui/icons-material/HelpOutline';
1110
const { Steps } = require('intro.js-react'); //Must be required in. This enables compatibility with TS. If imported in, throws ts error of not rendering steps as a class component correctly. The package 'intro.js-react' is small React wrapper around Intro.js. The wrapper provides support for both steps and hints. https://introjs.com/docs/
1211
import { setCurrentTabInApp, tutorialSaveSeriesToggle } from '../../slices/mainSlice';
13-
import { useDispatch, useSelector } from 'react-redux';
1412
import { HelpCircle } from 'lucide-react';
1513

1614
/*
@@ -105,7 +103,7 @@ export default class Tutorial extends Component<TutorialProps, TutorialState> {
105103
},
106104
{
107105
title: 'Toggle Record Button',
108-
element: '#recordBtn',
106+
element: '.record-button-container',
109107
intro:
110108
'<ul><li>Toggle record button to pause state changes on target application</li></ul>',
111109
position: 'right',
@@ -195,31 +193,6 @@ export default class Tutorial extends Component<TutorialProps, TutorialState> {
195193
'<ul><li>Here we can analyze the render times of our app</li> <li>This is the current series of state changes within our app</li> <li>Mouse over the bargraph elements for details on each specific component</li></ul>',
196194
position: 'top',
197195
},
198-
{
199-
title: 'Saving Series & Actions',
200-
element: '#seriesname',
201-
intro: '<ul><li>We can now give our series a name or leave it at the default</li></ul>',
202-
position: 'top',
203-
},
204-
{
205-
title: 'Saving Series & Actions',
206-
element: '.actionname',
207-
intro:
208-
'<ul><li>If we wish to save a specific action to compare later, give it a name here</li></ul>',
209-
position: 'top',
210-
},
211-
212-
{
213-
title: 'Comparison Tab',
214-
element: '#router-link-performance-comparison',
215-
intro: "<ul><li>Now let's head over to the comparison tab</li></ul>",
216-
position: 'top',
217-
},
218-
{
219-
title: 'Comparing Series',
220-
intro: '<ul><li>Here we can select a saved series or action to compare</li></ul>',
221-
position: 'top',
222-
},
223196
];
224197
break;
225198
case 'webmetrics':

src/app/components/StateRoute/StateRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const StateRoute = (props: StateRouteProps) => {
7676
</NavLink>
7777
<NavLink
7878
className={(navData) =>
79-
navData.isActive ? 'is-active router-link map-tab' : 'router-link map-tab'
79+
navData.isActive ? 'is-active router-link performance' : 'router-link performance-tab'
8080
}
8181
to='/performance'
8282
>

src/app/styles/components/_buttons.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@
171171
display: flex;
172172
align-items: center;
173173
padding: 4px 16px;
174-
width: 100%;
175174
background: transparent;
176175
gap: 8px;
177176
}

0 commit comments

Comments
 (0)