Skip to content

Commit

Permalink
Switch all to auto during onboarding but keep manual when using the n…
Browse files Browse the repository at this point in the history
…avbar
  • Loading branch information
loucass003 committed Feb 3, 2025
1 parent 2cfda22 commit 9d5264c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gui/public/i18n/en/translation.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ onboarding-wifi_creds-password =
onboarding-reset_tutorial-back = Go Back to Mounting calibration
onboarding-reset_tutorial = Reset tutorial
onboarding-reset_tutorial-explanation = While you use your trackers they might get out of alignment because of IMU yaw drift, or because you might have moved them physically. You have several ways to fix this.
onboarding-reset_tutorial-skip = Skip step
onboarding-reset_tutorial-next = Got it!
# Cares about multiline
onboarding-reset_tutorial-0 = Tap { $taps } times the highlighted tracker for triggering yaw reset.
Expand Down
4 changes: 2 additions & 2 deletions gui/src/components/onboarding/pages/ResetTutorial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ export function ResetTutorialPage() {
setCurIndex(curIndex + 1);
}}
>
{l10n.getString('onboarding-reset_tutorial-skip')}
{l10n.getString('onboarding-reset_tutorial-next')}
</Button>

<Button
variant="primary"
to="/onboarding/body-proportions/choose"
to="/onboarding/body-proportions/auto"
className={classNames(
'ml-auto',
order.length > curIndex + 1 && 'hidden'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ export function PutTrackersOnStep({
<div className="flex gap-3 mobile:justify-between">
<Button
variant={variant === 'onboarding' ? 'secondary' : 'tertiary'}
to="/onboarding/body-proportions/choose"
to={
variant === 'alone'
? '/onboarding/body-proportions/choose'
: '/onboarding/reset-tutorial'
}
state={{ alonePage: variant === 'alone' }}
>
{l10n.getString('onboarding-automatic_proportions-prev_step')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ export function PutTrackersOnStep({
<div className="flex gap-3 mobile:justify-between">
<Button
variant={variant === 'onboarding' ? 'secondary' : 'tertiary'}
to="/onboarding/mounting/choose"
to={
variant === 'alone'
? '/onboarding/mounting/choose'
: '/onboarding/trackers-assign'
}
state={{ alonePage: variant === 'alone' }}
>
{l10n.getString('onboarding-automatic_mounting-prev_step')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export function TrackersAssignPage() {
</Button>
<Button
variant="primary"
to="/onboarding/mounting/choose"
to="/onboarding/mounting/auto"
disabled={
assignedTrackers.length === 0 && trackers.length > 0
}
Expand Down

0 comments on commit 9d5264c

Please sign in to comment.