Skip to content

Commit bf0eb96

Browse files
committed
refactor(frontend): update onboarding tour step for adding exercise
- Rename `AddNewExercise` tour step target to `ClickOnAddAnExerciseButton` - Update tour step target in onboarding configuration - Modify button class to match new tour step identifier
1 parent aacce71 commit bf0eb96

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/frontend/app/lib/state/general.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export enum OnboardingTourStepTargets {
6363
OpenFitnessSidebar = "tour-step-open-fitness-sidebar",
6464
OpenWorkoutsSection = "tour-step-open-workouts-section",
6565
AddNewWorkout = "tour-step-add-new-workout",
66-
AddNewExercise = "tour-step-add-new-exercise",
66+
ClickOnAddAnExerciseButton = "tour-step-click-on-add-an-exercise-button",
6767
}
6868

6969
const onboardingTourAtom = atomWithStorage<
@@ -255,7 +255,7 @@ export const useOnboardingTour = () => {
255255
"This is the workouts section. Let's start by adding a new workout.",
256256
},
257257
{
258-
target: OnboardingTourStepTargets.AddNewExercise,
258+
target: OnboardingTourStepTargets.ClickOnAddAnExerciseButton,
259259
content:
260260
"You have started with an empty workout. Let's add a new exercise to it.",
261261
},

apps/frontend/app/routes/_dashboard.fitness.$action.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,9 @@ export default function Page() {
704704
variant="subtle"
705705
onClick={advanceTourStep}
706706
to={$path("/fitness/exercises/list")}
707-
className={OnboardingTourStepTargets.AddNewExercise}
707+
className={
708+
OnboardingTourStepTargets.ClickOnAddAnExerciseButton
709+
}
708710
>
709711
Add an exercise
710712
</Button>

0 commit comments

Comments
 (0)