Skip to content

Commit 4f726b1

Browse files
committed
feat: Enhance tour functionality by stopping at step 11 and improving tooltip interactivity
1 parent 58e48b4 commit 4f726b1

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

DashAI/front/src/components/models/CreateSessionSteps.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ function CreateSessionSteps({
192192
variant: "success",
193193
});
194194

195+
if (tourContext?.run && tourContext?.stepIndex === 11) {
196+
tourContext.stopTour();
197+
}
198+
195199
if (handleSessionCreated) {
196200
handleSessionCreated(response);
197201
}

DashAI/front/src/components/tour/CustomTooltip.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const CustomTooltip = ({
9999
</Button>
100100
)}
101101

102-
{isInteractive && !isLastStep ? (
102+
{isInteractive ? (
103103
<Typography
104104
variant="caption"
105105
sx={{

DashAI/front/src/constants/tours/modelsTour.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ export const modelsTourSteps = [
9999
<strong>Regression:</strong> Predict continuous values (e.g., house
100100
prices)
101101
</li>
102-
<li>
103-
<strong>Time Series:</strong> Forecast future values over time
104-
</li>
105102
</ul>
106103
<p>
107104
<strong>Click on this task to continue the tour!</strong>
@@ -169,13 +166,13 @@ export const modelsTourSteps = [
169166
the requirements of your chosen task.
170167
</p>
171168
<p>
172-
<strong>Green (Success):</strong> Your columns are correctly
173-
configured and ready for training.
169+
<strong style={{ color: "#2e7d32" }}>Green (Success):</strong> Your
170+
columns are correctly configured and ready for training.
174171
</p>
175172
<p>
176-
<strong>Red (Error):</strong> The columns don't match the task
177-
requirements. Don't worry! You can adjust your column selection in the
178-
next steps to fix this.
173+
<strong style={{ color: "#d32f2f" }}>Red (Error):</strong> The columns
174+
don't match the task requirements. Don't worry! You can adjust your
175+
column selection in the next steps to fix this.
179176
</p>
180177
<p>
181178
The alert explains what types and how many columns are needed for
@@ -305,6 +302,8 @@ export const modelsTourSteps = [
305302
),
306303
placement: "top",
307304
disableBeacon: true,
305+
spotlightClicks: true,
306+
isInteractive: true,
308307
},
309308
];
310309

0 commit comments

Comments
 (0)