Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FOR REVIEW] Visual Studio Extension for managing Bot Configuration #174

Open
wants to merge 54 commits into
base: main
Choose a base branch
from

Conversation

gasper-az
Copy link

@gasper-az gasper-az commented Feb 15, 2019

Related to #173

Proposed Changes

Adds a Visual Studio Extension project for managing Bot Configuration in any VS Project file.
The extensions consist of a Wizard tool which allows the users adding a .bot file into a specific VS Project, where they can:

  • define the Bot Name
  • declare one Bot Endpoints, specifying its Name, URL, AppID, AppPassword (it will scale for allowing to add more than one)
  • Encrypt the .bot file

Future features:

  • Add more than one Endpoint
  • Add more than one Service (QnA, Luis, Dispatch, etc)
  • Store the Bot Configuration information in an appsettings.json file (for the non sensitive information) along with secret.json (using secret manager) for the sensitive information (appPasswords)

Here are some Screenshots of the extension Wizard:

  • Here the user will specify additional information like the bot configuration filename.
    image

  • Endpoints: allows defining multiple endpoints for the bot configuration file, specifying the name, URL, appID & appPassword (these last two might be optional)
    image

  • Services window: similar to the previous one, but allows adding any kind of service (QnA, Luis, etc)
    image

  • Encryption: allows users to encrypt the bot configuration. If they decided to do it, the encryption key will be shown only once.
    image

Testing

First, go to {your repository directory}/generators/vsix-vs-win/BotConfigurationWizard and open the BotFileCreator.sln solution
Then, there are two alternatives

Alternative A

  • Build the VSIX project
  • Go to bin/debug folder under your project's directory and run the BotFileCreator.vsix file to install the extension in your Visual Studio (NOTE: first, ensure your Visual Studio instance is closed)
  • Once the extension is installed, open any VS project file
  • After the project is loaded, right-click on it and select the Create Bot File option in the context menu. It will open the VSIX Wizard

Alternative B

  • Build the VSIX project
  • Run the project. It will open a Visual Studio Experimental Instance
  • In the Experimental instance, open any VS Project file.
  • After the project is loaded, right-click on it and select the Create Bot File option in the context menu. It will open the VSIX Wizard

This picture shows the context menu option for starting the Extension's Wizard:
image

gasper-az and others added 30 commits January 18, 2019 12:08
Move using to namespaces
Enable Wizard toolbar
-Add menu context
-Add menu items
-Add panels for the item selected by the user
-Update style of the buttons create and cancel
-Add behavior of menu items
-Remove in-Line Styles from menu items
-Remove in-Line Styles from grid
- Update CLHelper class
- Add MSBotCommandEncrypt class
- Add BotConfigurationViewModel
- Add UIElements to encryption module
- Add behavior after encrypting bot file.
@iscaltritti iscaltritti changed the base branch from master to main August 24, 2020 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants