Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Tutorial Screen to show the label count #3421

Merged
merged 4 commits into from
Nov 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions public/javascripts/common/MissionStartTutorial.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Initializes a full screen carousel for the mission start tutorial.
* @param missionType mission type. Currently only VALIDATE mission is supported.
* @param labelType one of the seven label types for which the tutorial needs to be initialized.
* @param labelCount the number of labels to validate in the current mission (VALIDATE mission only).
* @param nLabels the number of labels to validate in the current mission (VALIDATE mission only).
* @param svvOrsvl the svvOrsvl SVValidate or SVLabel object to log interactions and perform other actions upon closing the tutorial.
* @param language Fdfadfda
*/
Expand Down Expand Up @@ -46,7 +46,7 @@ function MissionStartTutorial(missionType, labelType, data, svvOrsvl, language =
'CurbRamp': {
'missionInstruction1': i18next.t('validate:mission-start-tutorial.mst-instruction-1'),
'missionInstruction2': i18next.t('validate:mission-start-tutorial.mst-instruction-2',
{'nLabels': data.labelCount, 'labelType': i18next.t('common:curb-ramp')}),
{'nLabels': data.nLabels, 'labelType': i18next.t('common:curb-ramp')}),
'slides': [
{
'isExampleCorrect': true,
Expand Down Expand Up @@ -93,7 +93,7 @@ function MissionStartTutorial(missionType, labelType, data, svvOrsvl, language =
'NoCurbRamp': {
'missionInstruction1': i18next.t('validate:mission-start-tutorial.mst-instruction-1'),
'missionInstruction2': i18next.t('validate:mission-start-tutorial.mst-instruction-2',
{'nLabels': data.labelCount, 'labelType': i18next.t('common:no-curb-ramp')}),
{'nLabels': data.nLabels, 'labelType': i18next.t('common:no-curb-ramp')}),
'slides': [
{
'isExampleCorrect': true,
Expand Down Expand Up @@ -153,7 +153,7 @@ function MissionStartTutorial(missionType, labelType, data, svvOrsvl, language =
'Obstacle': {
'missionInstruction1': i18next.t('validate:mission-start-tutorial.mst-instruction-1'),
'missionInstruction2': i18next.t('validate:mission-start-tutorial.mst-instruction-2',
{'nLabels': data.labelCount, 'labelType': i18next.t('common:obstacle')}),
{'nLabels': data.nLabels, 'labelType': i18next.t('common:obstacle')}),
'slides': [
{
'isExampleCorrect': true,
Expand Down Expand Up @@ -213,7 +213,7 @@ function MissionStartTutorial(missionType, labelType, data, svvOrsvl, language =
'SurfaceProblem': {
'missionInstruction1': i18next.t('validate:mission-start-tutorial.mst-instruction-1'),
'missionInstruction2': i18next.t('validate:mission-start-tutorial.mst-instruction-2',
{'nLabels': data.labelCount, 'labelType': i18next.t('common:surface-problem')}),
{'nLabels': data.nLabels, 'labelType': i18next.t('common:surface-problem')}),
'slides': [
{
'isExampleCorrect': true,
Expand Down Expand Up @@ -260,7 +260,7 @@ function MissionStartTutorial(missionType, labelType, data, svvOrsvl, language =
'NoSidewalk': {
'missionInstruction1': i18next.t('validate:mission-start-tutorial.mst-instruction-1'),
'missionInstruction2': i18next.t('validate:mission-start-tutorial.mst-instruction-2',
{'nLabels': data.labelCount, 'labelType': i18next.t('common:no-sidewalk')}),
{'nLabels': data.nLabels, 'labelType': i18next.t('common:no-sidewalk')}),
'slides': [
{
'isExampleCorrect': true,
Expand Down Expand Up @@ -307,7 +307,7 @@ function MissionStartTutorial(missionType, labelType, data, svvOrsvl, language =
'Crosswalk': {
'missionInstruction1': i18next.t('validate:mission-start-tutorial.mst-instruction-1'),
'missionInstruction2': i18next.t('validate:mission-start-tutorial.mst-instruction-2',
{'nLabels': data.labelCount, 'labelType': i18next.t('common:crosswalk')}),
{'nLabels': data.nLabels, 'labelType': i18next.t('common:crosswalk')}),
'slides': [
{
'isExampleCorrect': true,
Expand Down Expand Up @@ -367,7 +367,7 @@ function MissionStartTutorial(missionType, labelType, data, svvOrsvl, language =
'Signal': {
'missionInstruction1': i18next.t('validate:mission-start-tutorial.mst-instruction-1'),
'missionInstruction2': i18next.t('validate:mission-start-tutorial.mst-instruction-2',
{'nLabels': data.labelCount, 'labelType': i18next.t('common:signal')}),
{'nLabels': data.nLabels, 'labelType': i18next.t('common:signal')}),
'slides': [
{
'isExampleCorrect': true,
Expand Down