BotBuilder-Location icon indicating copy to clipboard operation
BotBuilder-Location copied to clipboard

Improvements for Prompt Interfaces

Open weiligao opened this issue 8 years ago • 1 comments
trafficstars

I would like to suggest following improvements for the prompts:

  1. Use the default confirm prompt from BotBuilder for the "SingleResultFound" prompt with the "yes"/"no" buttons.
  2. Add a button "Select" under each one of the herocards for selection of the right location in case multple results are found. Add a button "Detailed View" under each hero card as well to open a bigger version of the map.
  3. Change the text of the "MultipleResultFound" prompt to "Is one of these your address? Use one of the 'select' buttons to choose an location, or type 'No' to modify your search.". Move the prompt to be above the herocards.
  4. Drop the "ConfirmationAsk" prompt if all required fields have already been filled the first time, as it will just ask to confirm the same address that was already shown in the selected herocard.
  5. Make the prompt choices/special commands easily localizable via botbuilder-location.json instead of having to change common.ts, confirm-dialog.ts, and choice-dialog.ts.

weiligao avatar Jan 15 '17 21:01 weiligao

All good feedback. 2. We had a long debate about this one. The problem is that once the dialog has done its work, clicking on the select button becomes misleading. The argument was to limit the use of buttons when they are not related to the current context (i.e. the user can go back and click on them at anytime and they would still have a purpose). 3. Every developer will have a different preference for the strings. We are providing the default ones that make sense to us but letting you to override them. If we decided to put a select button then we will change them to reflect that. 4. we need to keep this but we can give the developer an option to skip it. 5. #11 is tracking this.

kgrashad avatar Jan 19 '17 08:01 kgrashad