Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

[Web Test Harness] Pass the authenticated user ID into web chat & update UI #472

Merged
merged 2 commits into from
Dec 19, 2018

Conversation

ryanisgrig
Copy link
Collaborator

@ryanisgrig ryanisgrig commented Dec 18, 2018

Description

I've updated the Web Test Harness to apply the fix microsoft/BotFramework-WebChat#1447, which allows the test harness to pass an authenticated user's id to the bot conversation. This enables linked accounts to be demoed in web chat.

Since the Web Test solution may be used in customer demos, I've also applied some skinning to the UI matching the CSS stylesheet provided by the "F5" page in the bot templates. This, along with some additional content, should better tell the story of using the test harness.

I've also added a "Copy" button to easily copy the user id to the clipboard. This will remove some minor friction for presenters.

image
image

Note: This still has an issue with the Onboarding Dialog, in that the ConversationUpdate Activity via Direct Line uses the Conversation.Id as the From.Id property. Subsequent messages to the bot use the provided user id.

Related Issue

#470
#471
#473

Testing Steps

Run the Web Test solution with a working bot, link your account and then navigate to the web chat tab. In that conversation if you trigger a skill requiring authentication you should skip the bot asking for you to sign on.

Ping me and I can provide a working appsettings using the BFVirtualAssistant demo environment.

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the appropriate unit tests
  • I have updated related documentation

If this contains changes that needs to be replicated between the Enterprise Template <-> Virtual Assistant

Passing user id derived from authenticated user into web chat to demonstrate linked accounts functionality in web chat.
@ryanisgrig ryanisgrig added this to the Vanadium milestone Dec 18, 2018
@darrenj darrenj merged commit d575461 into master Dec 19, 2018
@ryanisgrig ryanisgrig deleted the ryanlengel/webtest_webchat_user branch February 10, 2019 17:34
lauren-mills pushed a commit that referenced this pull request Apr 18, 2019
…ate UI (#472)

* Updated UI for more consistent experience in customer demos, using the F5 stylesheet from Bot Builder samples.

* Cleaned up styling to only use applicable classes in web test.
Passing user id derived from authenticated user into web chat to demonstrate linked accounts functionality in web chat.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants