From 65fd0be400b7cf8ec5e5eab0cb616e96cc7c561d Mon Sep 17 00:00:00 2001 From: Butterscotch! Date: Sat, 25 Mar 2023 17:43:18 -0400 Subject: [PATCH] Update AutoBone steps on the GUI to match the docs (#636) --- gui/public/i18n/en/translation.ftl | 28 +++++++++++----- .../body-proportions/AutomaticProportions.tsx | 4 +-- .../autobone-steps/Recording.tsx | 31 ++++++++--------- .../{Preparation.tsx => Requirements.tsx} | 33 ++++++++++--------- .../autobone-steps/StartRecording.tsx | 16 +++++++-- 5 files changed, 66 insertions(+), 46 deletions(-) rename gui/src/components/onboarding/pages/body-proportions/autobone-steps/{Preparation.tsx => Requirements.tsx} (58%) diff --git a/gui/public/i18n/en/translation.ftl b/gui/public/i18n/en/translation.ftl index 09715699f..d051e01de 100644 --- a/gui/public/i18n/en/translation.ftl +++ b/gui/public/i18n/en/translation.ftl @@ -633,22 +633,32 @@ onboarding-automatic_proportions-prev_step = Previous step onboarding-automatic_proportions-put_trackers_on-title = Put on your trackers onboarding-automatic_proportions-put_trackers_on-description = To calibrate your proportions, we're gonna use the trackers you just assigned. Put on all your trackers, you can see which are which in the figure to the right. onboarding-automatic_proportions-put_trackers_on-next = I have all my trackers on -onboarding-automatic_proportions-preparation-title = Preparation -onboarding-automatic_proportions-preparation-description = Place a chair directly behind you inside your play space. Be prepared to sit down during the autobone setup. -onboarding-automatic_proportions-preparation-next = I am in front of a chair +onboarding-automatic_proportions-requirements-title = Requirements +# Each line of text is a different list item +onboarding-automatic_proportions-requirements-description = + You have at least enough trackers to track your feet (generally 5 trackers). + You have your trackers and headset on. + You are wearing your trackers and headset. + Your trackers and headset are connected to the SlimeVR server. + Your trackers and headset are working properly within the SlimeVR server. + Your headset is reporting positional data to the SlimeVR server (this generally means having SteamVR running and connected to SlimeVR using SlimeVR's SteamVR driver). +onboarding-automatic_proportions-requirements-next = I have read the requirements onboarding-automatic_proportions-start_recording-title = Get ready to move onboarding-automatic_proportions-start_recording-description = We're now going to record some specific poses and moves. These will be prompted in the next screen. Be ready to start when the button is pressed! onboarding-automatic_proportions-start_recording-next = Start Recording onboarding-automatic_proportions-recording-title = REC onboarding-automatic_proportions-recording-description-p0 = Recording in progress... onboarding-automatic_proportions-recording-description-p1 = Make the moves shown below: -onboarding-automatic_proportions-recording-steps-0 = Bend knees a few times. -onboarding-automatic_proportions-recording-steps-1 = Sit on a chair then stand up. -onboarding-automatic_proportions-recording-steps-2 = Twist upper body left, then bend right. -onboarding-automatic_proportions-recording-steps-3 = Twist upper body right, then bend left. -onboarding-automatic_proportions-recording-steps-4 = Wiggle around until timer ends. +# Each line of text is a different list item +onboarding-automatic_proportions-recording-steps = + Standing up straight, roll your head in a circle. + Bend your back forwards and squat. While squatting, look to your left, then to your right. + Twist your upper body to the left (counter-clockwise), then reach down towards the ground. + Twist your upper body to the right (clockwise), then reach down towards the ground. + Roll your hips in a circular motion as if you're using a hula hoop. + If there is time left on the recording, you can repeat these steps until it's finished. onboarding-automatic_proportions-recording-processing = Processing the result -# $time (Number) - Seconds left for the automatic calibration recording to finish (max 15) +# $time (Number) - Seconds left for the automatic calibration recording to finish (max 20) onboarding-automatic_proportions-recording-timer = { $time -> [one] 1 second left *[other] { $time } seconds left diff --git a/gui/src/components/onboarding/pages/body-proportions/AutomaticProportions.tsx b/gui/src/components/onboarding/pages/body-proportions/AutomaticProportions.tsx index bc0a231ea..ec1551624 100644 --- a/gui/src/components/onboarding/pages/body-proportions/AutomaticProportions.tsx +++ b/gui/src/components/onboarding/pages/body-proportions/AutomaticProportions.tsx @@ -13,7 +13,7 @@ import { Button } from '../../../commons/Button'; import { Typography } from '../../../commons/Typography'; import { StepperSlider } from '../../StepperSlider'; import { DoneStep } from './autobone-steps/Done'; -import { PreparationStep } from './autobone-steps/Preparation'; +import { RequirementsStep } from './autobone-steps/Requirements'; import { PutTrackersOnStep } from './autobone-steps/PutTrackersOn'; import { Recording } from './autobone-steps/Recording'; import { StartRecording } from './autobone-steps/StartRecording'; @@ -69,7 +69,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: StartRecording }, { type: 'fullsize', component: Recording }, { type: 'numbered', component: VerifyResultsStep }, diff --git a/gui/src/components/onboarding/pages/body-proportions/autobone-steps/Recording.tsx b/gui/src/components/onboarding/pages/body-proportions/autobone-steps/Recording.tsx index 0bb2d5e83..247133f1e 100644 --- a/gui/src/components/onboarding/pages/body-proportions/autobone-steps/Recording.tsx +++ b/gui/src/components/onboarding/pages/body-proportions/autobone-steps/Recording.tsx @@ -35,23 +35,18 @@ export function Recording({ nextStep }: { nextStep: () => void }) { )} -
- - {l10n.getString('onboarding-automatic_proportions-recording-steps-0')} - - - {l10n.getString('onboarding-automatic_proportions-recording-steps-1')} - - - {l10n.getString('onboarding-automatic_proportions-recording-steps-2')} - - - {l10n.getString('onboarding-automatic_proportions-recording-steps-3')} - - - {l10n.getString('onboarding-automatic_proportions-recording-steps-4')} - -
+
    + <> + {l10n + .getString('onboarding-automatic_proportions-recording-steps') + .split('\n') + .map((line, i) => ( +
  1. + {line} +
  2. + ))} + +
{l10n.getString('tips-do_not_move_heels')}
@@ -65,7 +60,7 @@ export function Recording({ nextStep }: { nextStep: () => void }) { : l10n.getString( 'onboarding-automatic_proportions-recording-timer', { - time: 15, + time: 20, } )} diff --git a/gui/src/components/onboarding/pages/body-proportions/autobone-steps/Preparation.tsx b/gui/src/components/onboarding/pages/body-proportions/autobone-steps/Requirements.tsx similarity index 58% rename from gui/src/components/onboarding/pages/body-proportions/autobone-steps/Preparation.tsx rename to gui/src/components/onboarding/pages/body-proportions/autobone-steps/Requirements.tsx index 095027912..c6ab5b267 100644 --- a/gui/src/components/onboarding/pages/body-proportions/autobone-steps/Preparation.tsx +++ b/gui/src/components/onboarding/pages/body-proportions/autobone-steps/Requirements.tsx @@ -1,9 +1,8 @@ import { Button } from '../../../../commons/Button'; -import { FromtOfChairIcon } from '../../../../commons/icon/FrontOfChair'; import { Typography } from '../../../../commons/Typography'; import { useLocalization } from '@fluent/react'; -export function PreparationStep({ +export function RequirementsStep({ nextStep, prevStep, variant, @@ -17,19 +16,26 @@ export function PreparationStep({ return ( <>
-
+
{l10n.getString( - 'onboarding-automatic_proportions-preparation-title' + 'onboarding-automatic_proportions-requirements-title' )} -
- - {l10n.getString( - 'onboarding-automatic_proportions-preparation-description' - )} - -
+
    + <> + {l10n + .getString( + 'onboarding-automatic_proportions-requirements-description' + ) + .split('\n') + .map((line, i) => ( +
  • + {line} +
  • + ))} + +
@@ -41,14 +47,11 @@ export function PreparationStep({
-
- -
); } diff --git a/gui/src/components/onboarding/pages/body-proportions/autobone-steps/StartRecording.tsx b/gui/src/components/onboarding/pages/body-proportions/autobone-steps/StartRecording.tsx index 4706d99be..03e12d2ab 100644 --- a/gui/src/components/onboarding/pages/body-proportions/autobone-steps/StartRecording.tsx +++ b/gui/src/components/onboarding/pages/body-proportions/autobone-steps/StartRecording.tsx @@ -24,7 +24,7 @@ export function StartRecording({ return ( <>
-
+
{l10n.getString( 'onboarding-automatic_proportions-start_recording-title' @@ -37,8 +37,20 @@ export function StartRecording({ )}
+
    + <> + {l10n + .getString('onboarding-automatic_proportions-recording-steps') + .split('\n') + .map((line, i) => ( +
  1. + {line} +
  2. + ))} + +
- {l10n.getString('tips-find_tracker')} + {l10n.getString('tips-do_not_move_heels')}