Skip to content

Commit

Permalink
Feat 124 update face name association task (#127)
Browse files Browse the repository at this point in the history
* feat: added stimulus set and counter balance

* feat: finished face name association task

* fix: fixing timings for prod
  • Loading branch information
nicoalee authored Nov 30, 2024
1 parent 7888686 commit 422d61b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 104 deletions.
2 changes: 1 addition & 1 deletion populate-scripts/update/2-update-finger-tapping-game.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ UPDATE tasks set
"fr": "Droitier"
},
"value": "RIGHT"
}
]
}
},
Expand Down
135 changes: 32 additions & 103 deletions populate-scripts/update/52-face-name-association.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,20 @@ UPDATE tasks SET
description = "Participants learn a set of face-name pairs and are then tested on these pairs",
external_url = "",
config = '{
"taskConfig": {},
"taskConfig": {
"counterBalanceGroups": {
"1": 1,
"2": 2
}
},
"metadata": [
{
"componentName": "DISPLAYCOMPONENT",
"componentConfig": {
"title": {
"en": "Welcome to the Face-Name Memory Game",
"fr": "Bienvenue au Jeu de Mémoire des Visages et Noms"
},
},
"sections": [
{
"sectionType": "text",
Expand All @@ -40,7 +45,7 @@ UPDATE tasks SET
}
],
"buttons": {
"isStart": true,
"isStart": false,
"previousDisabled": true,
"nextDisabled": false
}
Expand All @@ -49,7 +54,7 @@ UPDATE tasks SET
{
"componentName": "DISPLAYCOMPONENT",
"componentConfig": {
"title": ""
"title": "",
"sections": [
{
"sectionType": "text",
Expand All @@ -58,6 +63,12 @@ UPDATE tasks SET
"fr": "Une séries de paires de visages et de noms sera affichée à l’écran, comme ceci:"
}
},
{
"sectionType": "image-horizontal",
"imageAlignment": "center",
"injection": "counterbalance",
"imagePath": "/assets/images/instructions/face-name-association/???/instructions.jpg"
},
{
"sectionType": "text",
"textContent": {
Expand All @@ -81,16 +92,16 @@ UPDATE tasks SET
}
],
"buttons": {
"isStart": true,
"previousDisabled": true,
"isStart": false,
"previousDisabled": false,
"nextDisabled": false
}
}
},
{
"componentName": "DISPLAYCOMPONENT",
"componentConfig": {
"title": ""
"title": "",
"sections": [
{
"sectionType": "text",
Expand All @@ -109,7 +120,7 @@ UPDATE tasks SET
],
"buttons": {
"isStart": true,
"previousDisabled": true,
"previousDisabled": false,
"nextDisabled": false
}
}
Expand All @@ -120,8 +131,8 @@ UPDATE tasks SET
"isPractice": true,
"phase": "learning-phase",
"maxResponseTime": 10000,
"stimulusSet": 1,
"interTrialDelay": 500,
"blockNum": 1,
"durationStimulusPresented": 3000,
"stimuliConfig": {
"type": "generated",
Expand All @@ -144,35 +155,8 @@ UPDATE tasks SET
{
"sectionType": "text",
"textContent": {
"en": "While you wait, please do this short keyboard test:",
"fr": "En attendant, veuillez effectuer ce court test de clavier:"
}
},
{
"sectionType": "text",
"textContent": {
"en": "Press 6 on your keyboard:",
"fr": "Appuyez sur le 6 sur votre clavier:"
}
}
],
"buttons": {
"isStart": true,
"previousDisabled": true,
"nextDisabled": false
}
}
},
{
"componentName": "DISPLAYCOMPONENT",
"componentConfig": {
"title": "",
"sections": [
{
"sectionType": "text",
"textContent": {
"en": "Press 1 on your keyboard:",
"fr": "Appuyez sur le 1 sur votre clavier:"
"en": "While you wait, please do this short keyboard test.",
"fr": "En attendant, veuillez effectuer ce court test de clavier."
}
}
],
Expand All @@ -184,23 +168,10 @@ UPDATE tasks SET
}
},
{
"componentName": "DISPLAYCOMPONENT",
"componentName": "ATTENTIONCHECKCOMPONENT",
"componentConfig": {
"title": "",
"sections": [
{
"sectionType": "text",
"textContent": {
"en": "Press 4 on your keyboard:",
"fr": "Appuyez sur le 4 sur votre clavier:"
}
}
],
"buttons": {
"isStart": true,
"previousDisabled": true,
"nextDisabled": false
}
"numbersDisplayed": [ 6, 1, 4 ],
"maxResponseTime": 10000
}
},
{
Expand All @@ -221,7 +192,7 @@ UPDATE tasks SET
"en": "You will see all the faces and names again. Try to remember the name that goes with each face.",
"fr": "Vous verrez à nouveau les visages et les noms. Essayez de mémoriser le nom associé à chaque visage."
}
},
}
],
"buttons": {
"isStart": true,
Expand All @@ -236,7 +207,6 @@ UPDATE tasks SET
"isPractice": true,
"phase": "learning-phase",
"maxResponseTime": 10000,
"stimulusSet": 1,
"interTrialDelay": 500,
"durationStimulusPresented": 3000,
"stimuliConfig": {
Expand All @@ -263,33 +233,6 @@ UPDATE tasks SET
"en": "While you wait, please do this short keyboard test:",
"fr": "En attendant, veuillez effectuer ce court test de clavier:"
}
},
{
"sectionType": "text",
"textContent": {
"en": "Press 3 on your keyboard:",
"fr": "Appuyez sur le 3 sur votre clavier:"
}
}
],
"buttons": {
"isStart": true,
"previousDisabled": true,
"nextDisabled": false
}
}
},
{
"componentName": "DISPLAYCOMPONENT",
"componentConfig": {
"title": "",
"sections": [
{
"sectionType": "text",
"textContent": {
"en": "Press 8 on your keyboard:",
"fr": "Appuyez sur le 8 sur votre clavier:"
}
}
],
"buttons": {
Expand All @@ -300,29 +243,16 @@ UPDATE tasks SET
}
},
{
"componentName": "DISPLAYCOMPONENT",
"componentName": "ATTENTIONCHECKCOMPONENT",
"componentConfig": {
"title": "",
"sections": [
{
"sectionType": "text",
"textContent": {
"en": "Press 5 on your keyboard:",
"fr": "Appuyez sur le 5 sur votre clavier:"
}
}
],
"buttons": {
"isStart": true,
"previousDisabled": true,
"nextDisabled": false
}
"numbersDisplayed": [ 3, 8, 5 ],
"maxResponseTime": 10000
}
},
{
"componentName": "DISPLAYCOMPONENT",
"componentConfig": {
"title": "Testing phase"
"title": "Testing phase",
"sections": [
{
"sectionType": "text",
Expand All @@ -341,8 +271,8 @@ UPDATE tasks SET
{
"sectionType": "text",
"textContent": {
"en": "Click \\"NEXT\\" to start",
"fr": "Cliquez sur \\"SUIVANT\\" pour commencer"
"en": "Click \\"START\\" to start",
"fr": "Cliquez sur \\"Commencer\\" pour commencer"
}
}
],
Expand All @@ -359,7 +289,6 @@ UPDATE tasks SET
"isPractice": false,
"phase": "test-phase",
"maxResponseTime": 10000,
"stimulusSet": 1,
"interTrialDelay": 500,
"durationStimulusPresented": 3000,
"stimuliConfig": {
Expand Down

0 comments on commit 422d61b

Please sign in to comment.