Skip to content

Commit 469ef96

Browse files
authored
Emmersion update (#387)
handle new emmersion flow
1 parent c07993e commit 469ef96

34 files changed

+96
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "traitify-widgets",
3-
"version": "3.9.0",
3+
"version": "3.9.1",
44
"description": "Traitiy Widgets",
55
"repository": {
66
"type": "git",

src/lib/common/order-from-query.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import dig from "lib/common/object/dig";
44
export function assessmentFromQuery(response) {
55
const record = {
66
completed: !!(response.completed || response.completed_at || response.completedAt),
7-
link: response.assessmentTakerUrl,
7+
link: response.signInUrl || response.assessmentTakerUrl,
88
loaded: true,
99
loading: false,
1010
profileID: response.profile_id || response.profileId || dig(response, "profile_ids", 0),
@@ -106,7 +106,7 @@ export function orderFromRecommendation(response) {
106106
assessments.push({
107107
completed: assessment.status === "COMPLETE",
108108
id: assessment.assessmentId,
109-
link: assessment.assessmentTakerUrl,
109+
link: assessment.signInUrl || assessment.assessmentTakerUrl,
110110
skipped: assessment.isSkipped,
111111
surveyID: assessment.surveyId,
112112
surveyName: assessment.surveyName,

src/lib/graphql/external.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const get = `
1212
passFailResult
1313
profileId
1414
resultUrl
15+
signInUrl
1516
surveyKey
1617
surveyType
1718
surveyName
@@ -35,6 +36,7 @@ export const skip = `
3536
passFailResult
3637
profileId
3738
resultUrl
39+
signInUrl
3840
surveyKey
3941
surveyType
4042
surveyName

src/lib/graphql/xavier.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const recommendation = `
4848
assessmentId
4949
assessmentTakerUrl
5050
isSkipped
51+
signInUrl
5152
status
5253
surveyId
5354
surveyName
@@ -89,6 +90,7 @@ export const skipRecommendation = `
8990
assessmentId
9091
assessmentTakerUrl
9192
isSkipped
93+
signInUrl
9294
status
9395
surveyId
9496
surveyName

src/lib/i18n-data/de-de.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@
153153
"skill_name_for_working_from_home": "Empfehlungen für effektives Arbeiten im Homeoffice",
154154
"slide_error": "Im Moment können keine weiteren Folien geladen werden",
155155
"sort": "Sortieren",
156+
"status": {
157+
"text": "Im Rahmen Ihrer Bewerbung möchten wir Sie bitten, die folgenden Bewertungen durchzuführen. Bitte klicken Sie auf die Schaltfläche neben dem Namen der Bewertung. Dadurch gelangen Sie zu dem Ort, an dem Sie die Bewertung(en) durchführen können. Bitte kehren Sie hierher zurück, sobald Sie alle Bewertungen abgeschlossen haben."
158+
},
156159
"submit": "Senden",
157160
"success_skills": "Kompetenzen für Erfolg",
158161
"tip_type_for_caution_zone": "Warnzone",

src/lib/i18n-data/en-gb.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@
153153
"skill_name_for_working_from_home": "Working From Home Tips",
154154
"slide_error": "Unable to load more slides at this time",
155155
"sort": "Sort",
156+
"status": {
157+
"text": "As part of your application, we'd like to ask you to complete the following assessments. Please click on the button next to the assessment name. This will take you to where you'll complete the assessment(s). Please return here once you've completed all assessments."
158+
},
156159
"submit": "Submit",
157160
"success_skills": "Success Skills",
158161
"tip_type_for_caution_zone": "Caution Zone",

src/lib/i18n-data/en-us.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"careers_link_heading": "View your personalized career recommendations",
1515
"careers_link_heading_third_person": "View their personalized career recommendations",
1616
"close": "Close",
17-
"complete": "Complete",
1817
"cognitive_alert_skip": "You are unable to skip the practice questions",
1918
"cognitive_confirm_button": "Confirm",
2019
"cognitive_confirm_retry": "Would you like to attempt the questions you skipped?",
@@ -56,6 +55,7 @@
5655
"cognitive_skip_button": "Skip",
5756
"cognitive_skipped_questions": "Skipped Questions",
5857
"complements": "Complements",
58+
"complete": "Complete",
5959
"conflicts": "Conflicts",
6060
"dimension_description": "The dimension score is calculated from your responses to items that together measure the underlying components of each dimension. Overall, an individual has either a High, Medium, or Low level of each.",
6161
"dimension_heading": "What does my %{level} %{name} mean for me?",
@@ -104,8 +104,8 @@
104104
"input_label": "What can we help you with?",
105105
"input_placeholder": "Write a reply...",
106106
"message_required": "Please enter a message",
107-
"submitted": "Message Submitted",
108107
"submit": "Send",
108+
"submitted": "Message Submitted",
109109
"trigger": "Need Help"
110110
},
111111
"instructions": "Instructions",
@@ -173,6 +173,13 @@
173173
"heading": "Cognitive Breakdown"
174174
}
175175
},
176+
"generic": {
177+
"breakdown": "Breakdown",
178+
"breakdown_description": "Here is the breakdown of the questions you answered in the assessment",
179+
"correct": "Correct",
180+
"incorrect": "Incorrect",
181+
"overall_score": "Overall Score"
182+
},
176183
"reports": {
177184
"candidate": "Candidate Report",
178185
"employee": "Engage Employee Report",
@@ -183,6 +190,7 @@
183190
"salary_mean": "Salary Mean",
184191
"salary_mean_html": "The wage at which half of the workers in the occupation earned more than that amount and half earned less. Median wage data is from <a href=\"http://www.onetonline.org\" target=\"_blank\">ONet Online</a>.",
185192
"search": "Search",
193+
"show_hide_all": "Show/Hide All",
186194
"show_less": "Show Less",
187195
"show_more": "Show More",
188196
"skill_heading_for_communication": "Speaking, writing, and sharing ideas are important. Try these tips to communicate well.",
@@ -207,7 +215,7 @@
207215
"heading": "Your Application Assessments",
208216
"loading": "Loading your assessment",
209217
"start": "Start Assessment",
210-
"text": "As part of your application, we'd like to ask you to complete the following assessments. Please click on the button next to the assessment name. This will take you to where you'll complete the assessment and either be returned to this page if you have multiple assessments to complete or taken to the next stage of the process.",
218+
"text": "As part of your application, we'd like to ask you to complete the following assessments. Please click on the button next to the assessment name. This will take you to where you'll complete the assessment(s). Please return here once you've completed all assessments.",
211219
"timeout": "Loading timed out",
212220
"try_again": "Let's Try Again"
213221
},
@@ -234,4 +242,4 @@
234242
"try_again": "Click Here to Try Again",
235243
"view_on_onet": "View Career Details on O*Net",
236244
"yes": "Yes"
237-
}
245+
}

src/lib/i18n-data/es-ec.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@
153153
"skill_name_for_working_from_home": "Consejos para trabajar desde casa",
154154
"slide_error": "No se pueden cargar más diapositivas en este momento",
155155
"sort": "Ordenar",
156+
"status": {
157+
"text": "Como parte de su solicitud, nos gustaría pedirle que complete las siguientes evaluaciones. Por favor, haga clic en el botón junto al nombre de la evaluación. Esto lo llevará al lugar donde completará la(s) evaluación(es). Por favor, regrese aquí una vez que haya completado todas las evaluaciones."
158+
},
156159
"submit": "Enviar",
157160
"success_skills": "Habilidades para alcanzar el éxito",
158161
"tip_type_for_caution_zone": "Zona de precaución",

src/lib/i18n-data/es-pr.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@
153153
"skill_name_for_working_from_home": "Consejos para trabajar desde casa",
154154
"slide_error": "No se pueden cargar más diapositivas en este momento",
155155
"sort": "Ordenar",
156+
"status": {
157+
"text": "Como parte de su solicitud, nos gustaría pedirle que complete las siguientes evaluaciones. Por favor, haga clic en el botón junto al nombre de la evaluación. Esto lo llevará al lugar donde completará la(s) evaluación(es). Por favor, regrese aquí una vez que haya completado todas las evaluaciones."
158+
},
156159
"submit": "Enviar",
157160
"success_skills": "Habilidades para alcanzar el éxito",
158161
"tip_type_for_caution_zone": "Zona de precaución",

src/lib/i18n-data/es-us.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@
153153
"skill_name_for_working_from_home": "Consejos para trabajar desde casa",
154154
"slide_error": "No se pueden cargar más diapositivas en este momento",
155155
"sort": "Ordenar",
156+
"status": {
157+
"text": "Como parte de su solicitud, nos gustaría pedirle que complete las siguientes evaluaciones. Por favor, haga clic en el botón junto al nombre de la evaluación. Esto lo llevará al lugar donde completará la(s) evaluación(es). Por favor, regrese aquí una vez que haya completado todas las evaluaciones."
158+
},
156159
"submit": "Enviar",
157160
"success_skills": "Habilidades para alcanzar el éxito",
158161
"tip_type_for_caution_zone": "Zona de precaución",

0 commit comments

Comments
 (0)