Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@benbrown
Copy link
Contributor

@benbrown benbrown commented Mar 10, 2021

Description

This is the first step of allowing the get started widget to intelligently display "Next steps" for a user

This detects the need for LUIS and QNA, then detects whether they are currently configured. This uses the same mechanism as the validation system.

Then, it displays "tasks" in the get started section.

EXPECTED BEHAVIOR:

  • When you create a new bot, you will land on the design page and the GET STARTED panel will fly out
  • If your bot project requires LUIS and/or QNA, these will be highlighted as REQUIRED tasks
  • If your bot project does not yet have a publish profile, this will be highlighted as a RECOMMEND task
  • Additional tasks will appear in the OPTIONAL list
  • Clicking LUIS or QNA will lead to a flow where you can choose one, create one, or generate a request to send to your Azure admin
  • Once all the required tasks are completed, the START BOT button will be highlighted

The panel will only fly out at CREATE time, but the tasks will continue to be present

NOTE: Currently, tasks do not disappear once completed. We are investigating a method for doing this in a sensible manner.

INCLUDES:

  • New LUIS select/create experience
  • New QNA select/create experience
  • Updated location and behavior of get started widget

Task Item

Fixes #6269
fixes #5827
fixes #6263
Fixes #5896
fixes #6364
fixes #6365
fixes #6546

Screenshots

Screen Shot 2021-03-22 at 4 46 44 PM

uWOMhz4ASJ

@benbrown benbrown added this to the R13 milestone Mar 10, 2021
@coveralls
Copy link

coveralls commented Mar 10, 2021

Coverage Status

Coverage decreased (-1.0%) to 51.109% when pulling 45688d6 on benbrown/getsmarted into 586d33d on main.

@benbrown benbrown changed the title feat: allow get started widget to detect luis/qna feat: updated "Get started" flow available on every page Mar 16, 2021
@benbrown benbrown marked this pull request as ready for review March 22, 2021 22:14
Copy link
Contributor

@beyackle beyackle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor comments, but mostly this looks good.

Comment on lines +111 to +116
const hasLUIS =
botProject?.setting?.luis?.authoringKey && botProject?.setting?.luis?.authoringRegion ? true : false;
const hasQNA = botProject?.setting?.qna?.subscriptionKey ? true : false;

const hasPublishingProfile =
botProject?.setting?.publishTargets && botProject?.setting?.publishTargets?.length > 0 ? true : false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wary of type-unsafe stuff like this, but in this case I think it's okay - I won't block the PR on it since I think there are no cases where those values could be real but falsey.

"message": "Clear all"
},
"click_start_and_your_bot_will_be_up_and_running_on_424c29da": {
"message": "Click start and your bot will be up and running. Once it’s running, you can select “Open in WebChat” to test."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hooray for curly quotes in appropriate places!

@@ -0,0 +1,680 @@
// Copyright (c) Microsoft Corporation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. It looks like ManageLuis and ManageQnA share a lot in common, so they could be refactored somehow.

hatpick
hatpick previously approved these changes Mar 31, 2021
beyackle
beyackle previously approved these changes Mar 31, 2021
cwhitten
cwhitten previously approved these changes Mar 31, 2021
@benbrown benbrown dismissed stale reviews from cwhitten, beyackle, and hatpick via dcc79e5 March 31, 2021 21:48
@benbrown benbrown merged commit 10ed1f4 into main Mar 31, 2021
@benbrown benbrown deleted the benbrown/getsmarted branch March 31, 2021 22:39
@cwhitten cwhitten mentioned this pull request May 20, 2021
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
)

* Enable the get started widget to intelligently determine if LUIS or QNA is needed/configured

* define nextsteps as an array that gets rendered

* adjsut formating

* move get started to top blue bar
remove get started from bot project settings page

* Add placeholder mvp luis keys modal

* add placeholder mvp qna key modal
chain modals togethert

* introduce ProvisionHandoff component, to display customized instructions for creating azure components

* luis widget

* updated styles and content for get started

* clean up code

* add support for qnamaker provisioning

* merge main

* remove unused css

* clean up unused vars

* add final confirmation step to luis

* updated ux for luis

* fix button disabled state

* ux fixes for luis

* ux fixes for qna

* magic teaching bubbs

* cleanup

* fix weird issue

* Wrapping up UI for provisioning hand off modal

* revised links and buttons in get started

* remove unused styles

* improve behavior of teaching bubbles during creation flow

* highglight start bot when no steps are left

* nav to page when opening modal

* remove delete bot from settings page (still in toolbar)

* make pane scrollable

* delete unused ref

* address issue with type mismatch in qna

* fix mock

* fix test

* update syntax for accessing lufiles and qnafiles

* address pull request feedback

* locale

* fix merge conflict

Co-authored-by: Patrick Volum <pavolum@microsoft.com>
Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

9 participants