Skip to content

Commit f83ff6b

Browse files
committed
ESCALATE_TO_SUPPORT
1 parent 8fcd823 commit f83ff6b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

services/static-webserver/client/source/class/osparc/support/Conversation.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ qx.Class.define("osparc.support.Conversation", {
5858
SYSTEM_MESSAGE_TYPE: {
5959
ASK_A_QUESTION: "askAQuestion",
6060
BOOK_A_CALL: "bookACall",
61+
ESCALATE_TO_SUPPORT: "escalateToSupport",
6162
REPORT_OEC: "reportOEC",
6263
FOLLOW_UP: "followUp",
6364
},
@@ -306,6 +307,9 @@ qx.Class.define("osparc.support.Conversation", {
306307
case osparc.support.Conversation.SYSTEM_MESSAGE_TYPE.BOOK_A_CALL:
307308
msg = greet + "Let us know what your availability is and we will get back to you shortly to schedule a meeting.";
308309
break;
310+
case osparc.support.Conversation.SYSTEM_MESSAGE_TYPE.ESCALATE_TO_SUPPORT:
311+
msg = greet + "Our support team will take it from here — please confirm or edit your question below to get started.";
312+
break;
309313
case osparc.support.Conversation.SYSTEM_MESSAGE_TYPE.FOLLOW_UP:
310314
msg = "A support ticket has been created.\nOur team will review your request and contact you soon.";
311315
break;

services/static-webserver/client/source/class/osparc/support/ConversationPage.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ qx.Class.define("osparc.support.ConversationPage", {
174174
case osparc.support.Conversation.SYSTEM_MESSAGE_TYPE.BOOK_A_CALL:
175175
title.setValue(this.tr("Book a Call"));
176176
break;
177+
case osparc.support.Conversation.SYSTEM_MESSAGE_TYPE.ESCALATE_TO_SUPPORT:
178+
title.setValue(this.tr("Ask a Question"));
179+
break;
177180
case osparc.support.Conversation.SYSTEM_MESSAGE_TYPE.REPORT_OEC:
178181
title.setValue(this.tr("Report an Error"));
179182
break;

services/static-webserver/client/source/class/osparc/widget/PersistentIframe.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,10 @@ qx.Class.define("osparc.widget.PersistentIframe", {
363363
const supportCenterWindow = osparc.support.SupportCenter.openWindow();
364364
// for now prefill the text box with the question
365365
if (data["message"] && data["message"]["question"]) {
366-
supportCenterWindow.proposeConversation(null, data["message"]["question"]);
366+
supportCenterWindow.proposeConversation(
367+
osparc.support.Conversation.SYSTEM_MESSAGE_TYPE.ESCALATE_TO_SUPPORT,
368+
`From your last question: "${data["message"]["question"]}"`
369+
);
367370
}
368371
break;
369372
}

0 commit comments

Comments
 (0)