diff --git a/gui/public/i18n/en/translation.ftl b/gui/public/i18n/en/translation.ftl index 86fbae4cd..0117beb91 100644 --- a/gui/public/i18n/en/translation.ftl +++ b/gui/public/i18n/en/translation.ftl @@ -817,6 +817,8 @@ onboarding-automatic_proportions-check_height-title = Check your height onboarding-automatic_proportions-check_height-description = We use your height as a basis of our measurements by using the headset's (HMD) height as an approximation of your actual height, but it's better to check if they are right yourself! # All the text is in bold! onboarding-automatic_proportions-check_height-calculation_warning = Please press the button while standing upright to calculate your height. You have 3 seconds after you press the button! +onboarding-automatic_proportions-check_height-guardian_tip = If you are using a standalone VR headset, make sure to have your guardian/ + boundary turned on so that your height is correct! onboarding-automatic_proportions-check_height-fetch_height = I'm standing! # Context is that the height is unknown onboarding-automatic_proportions-check_height-unknown = Unknown diff --git a/gui/src/components/onboarding/pages/body-proportions/AutomaticProportions.tsx b/gui/src/components/onboarding/pages/body-proportions/AutomaticProportions.tsx index af6b7fb7b..629353e2d 100644 --- a/gui/src/components/onboarding/pages/body-proportions/AutomaticProportions.tsx +++ b/gui/src/components/onboarding/pages/body-proportions/AutomaticProportions.tsx @@ -14,6 +14,7 @@ import { StartRecording } from './autobone-steps/StartRecording'; import { VerifyResultsStep } from './autobone-steps/VerifyResults'; import { useCountdown } from '@/hooks/countdown'; import { CheckHeight } from './autobone-steps/СheckHeight'; +import { PreparationStep } from './autobone-steps/Preparation'; export function AutomaticProportionsPage() { const { l10n } = useLocalization(); @@ -50,6 +51,7 @@ export function AutomaticProportionsPage() { variant={state.alonePage ? 'alone' : 'onboarding'} steps={[ { type: 'numbered', component: PutTrackersOnStep }, + { type: 'numbered', component: PreparationStep }, { type: 'numbered', component: RequirementsStep }, { type: 'numbered', component: CheckHeight }, { type: 'numbered', component: StartRecording }, diff --git a/gui/src/components/onboarding/pages/body-proportions/autobone-steps/Preparation.tsx b/gui/src/components/onboarding/pages/body-proportions/autobone-steps/Preparation.tsx new file mode 100644 index 000000000..81f9300a8 --- /dev/null +++ b/gui/src/components/onboarding/pages/body-proportions/autobone-steps/Preparation.tsx @@ -0,0 +1,70 @@ +import { ResetType } from 'solarxr-protocol'; +import { Button } from '@/components/commons/Button'; +import { Typography } from '@/components/commons/Typography'; +import { ResetButton } from '@/components/home/ResetButton'; +import { useLocalization } from '@fluent/react'; +import { useBreakpoint } from '@/hooks/breakpoint'; + +export function PreparationStep({ + nextStep, + prevStep, + variant, +}: { + nextStep: () => void; + prevStep: () => void; + variant: 'onboarding' | 'alone'; +}) { + const { isMobile } = useBreakpoint('mobile'); + const { l10n } = useLocalization(); + + return ( +
+
+
+ + {l10n.getString('onboarding-automatic_mounting-preparation-title')} + +
+ + {l10n.getString( + 'onboarding-automatic_mounting-preparation-step-0' + )} + + + {l10n.getString( + 'onboarding-automatic_mounting-preparation-step-1' + )} + +
+
+ {isMobile && ( +
+ Reset position +
+ )} +
+ + +
+
+ {!isMobile && ( +
+ Reset position +
+ )} +
+ ); +} diff --git a/gui/src/components/onboarding/pages/body-proportions/autobone-steps/СheckHeight.tsx b/gui/src/components/onboarding/pages/body-proportions/autobone-steps/СheckHeight.tsx index 185eac9d6..1bed346ae 100644 --- a/gui/src/components/onboarding/pages/body-proportions/autobone-steps/СheckHeight.tsx +++ b/gui/src/components/onboarding/pages/body-proportions/autobone-steps/СheckHeight.tsx @@ -18,6 +18,7 @@ import { } from '@/components/onboarding/pages/body-proportions/ProportionsChoose'; import { useLocaleConfig } from '@/i18n/config'; import { useCountdown } from '@/hooks/countdown'; +import { TipBox } from '@/components/commons/TipBox'; interface HeightForm { height: number; @@ -104,18 +105,24 @@ export function CheckHeight({ - +
+ + + {l10n.getString( + 'onboarding-automatic_proportions-check_height-guardian_tip' + )} + +