Skip to content

Commit

Permalink
LCW Designer - Update mock chat, prevent API call (#551)
Browse files Browse the repository at this point in the history
* Prevent designer from trying to fetch postChatContext
* Update designer conversation per requirements

---------

Co-authored-by: Matan Hershberg <mhershberg@microsoft.com>
  • Loading branch information
matan-hershberg-nuance and Matan Hershberg authored Nov 20, 2024
1 parent 34ea4da commit 75a365c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGE_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ All notable changes to this project will be documented in this file.
## [Unreleased]

### Add

- Change LCW Designer default custom chat. Disable survey from LCW Designer mock.
- Fix to set the state of audio notification button through configuration props
- Fix to format the output when user do CTRL + COPY in transcript.html
- Add New adapter subscriber to ignore adaptive card message from rendering if it contains all invisible fields
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ export class DesignerChatAdapter extends MockAdapter {
super();

setTimeout(() => {
postBotMessageActivity(this.activityObserver, "Id venenatis a condimentum vitae?", undefined, 0);
this.postUserActivity("Diam donec adipiscing tristique risus nec feugiat in fermentum", 0);
postSystemMessageActivity(this.activityObserver, "We are finding the best agent for your inquiry, please hold ...", 100);
postBotMessageActivity(this.activityObserver, "Thank you for contacting us! How can I help you today?", undefined, 0);
this.postUserActivity("I need to change my address.", 0);
postBotMessageActivity(this.activityObserver, "Okay, let me connect you with a live agent.", undefined, 100);
postSystemMessageActivity(this.activityObserver, "John has joined the chat", 100);
postBotMessageActivity(this.activityObserver, "Neque viverra justo nec ultrices dui sapien eget mi proin", undefined, 100);
postBotMessageActivity(this.activityObserver, "I'd be happy to help you update your account.", undefined, 100);
}, 1000);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,13 @@ export class DesignerChatSDK extends MockChatSDK {
public createChatAdapter() {
return new DesignerChatAdapter();
}
}

public getLiveChatConfig() {
return {
LiveWSAndLiveChatEngJoin: {
msdyn_postconversationsurveyenable: "false",
msdyn_conversationmode: "192350000"
}
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class MockChatSDK {
return null;
}

public getLiveChatConfig() {
public getLiveChatConfig() {
return {
LiveWSAndLiveChatEngJoin: {
msdyn_postconversationsurveyenable: "true",
Expand Down

0 comments on commit 75a365c

Please sign in to comment.