Skip to content

Commit

Permalink
Update create new bot templates (microsoft#418)
Browse files Browse the repository at this point in the history
* Update templates

1. Update the three templates
2. fix todo bot lg refer issue.

* copy full dir when create new\save as bot

* main -> Main

* main->Main

* Fix E2E

* Fix E2E

* Fix E2E
  • Loading branch information
luhan2017 authored and boydc2014 committed Jun 28, 2019
1 parent df17164 commit 7c0bb6e
Show file tree
Hide file tree
Showing 50 changed files with 12,103 additions and 748 deletions.
2 changes: 1 addition & 1 deletion Composer/cypress/integration/CreateNewBot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ context('Creating a new bot', () => {
cy.get('input[data-testid="NewBotProjectInput"]').type('__TestNewProject');
cy.get('input[data-testid="NewBotProjectInput"]').type('{enter}');
cy.get('[data-testid="ProjectTree"]').within(() => {
cy.getByText('__TestNewProject.main').should('exist');
cy.getByText('Main').should('exist');
cy.getByText('AddToDo').should('exist');
cy.getByText('ClearToDos').should('exist');
cy.getByText('DeleteToDo').should('exist');
Expand Down
6 changes: 3 additions & 3 deletions Composer/cypress/integration/LGPage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ context('check language generation page', () => {
cy.visit(Cypress.env('COMPOSER_URL') + '/language-generation');

// left nav tree
cy.contains('ToDoBot');
cy.contains('Main');
cy.contains('All');

cy.get('.toggleEditMode button').as('switchButton');
Expand All @@ -24,8 +24,8 @@ context('check language generation page', () => {
// back to table view
cy.get('@switchButton').click();

// nav to ToDoBot.main dialog
cy.get('.dialogNavTree button[title="ToDoBot"]').click();
// nav to Main dialog
cy.get('.dialogNavTree button[title="Main"]').click();
cy.wait(300);

// dialog filter, edit mode button is disabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@
"title": "LogStep"
},
"Microsoft.LuisRecognizer": {
"title": false,
"description": false
"title": "Language Understanding",
"description": "To understand what the user says, your dialog needs a 'Recognizer', that includes example words and sentences that users may use"
},
"Microsoft.MostSpecificSelector": {
"title": "MostSpecificSelector"
},
"Microsoft.MultiLanguageRecognizer": {
"title": false,
"description": false
"title": "Language Understanding",
"description": "To understand what the user says, your dialog needs a 'Recognizer', that includes example words and sentences that users may use"
},
"Microsoft.NumberInput": {
"title": "NumberInput"
Expand Down
3,834 changes: 3,834 additions & 0 deletions Composer/packages/server/assets/projects/EchoBot/.schemas/sdk.schema

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"services": [],
"schemas": {
"editor": ".schemas/editor.schema",
"sdk": ".schemas/sdk.schema"
},
"entry": "Main.dialog"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"name": "EchoBot",
"description": "<Fill in the description of your bot here>"
},
"generator": "common.lg",
"steps": [
{
"$type": "Microsoft.TextInput",
Expand Down
File renamed without changes.
12 changes: 0 additions & 12 deletions Composer/packages/server/assets/projects/EchoBot/bot.botproj

This file was deleted.

Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"fieldTemplateOverrides": {
"BaseField": {
"title": false,
"description": false
},
"RulesField": {
"title": "Tasks",
"description": "Tasks describe the capabilities of the bot/dialog."
},
"StepsField": {
"description": "Steps describe the process involved in code to accomplish the functionality of the dialog."
}
},
"SDKOverrides": {
"Microsoft.AdaptiveDialog": {
"title": "AdaptiveDialog"
},
"Microsoft.BeginDialog": {
"title": "BeginDialog"
},
"Microsoft.CancelAllDialogs": {
"title": "CancelAllDialogs"
},
"Microsoft.ChoiceInput": {
"title": "ChoiceInput"
},
"Microsoft.ConditionalSelector": {
"title": "ConditionalSelector"
},
"Microsoft.ConfirmInput": {
"title": "ConfirmInput"
},
"Microsoft.DebugBreak": {
"title": "DebugBreak"
},
"Microsoft.DeleteProperty": {
"title": "DeleteProperty"
},
"Microsoft.EditArray": {
"title": "EditArray"
},
"Microsoft.EmitEvent": {
"title": "EmitEvent"
},
"Microsoft.EndDialog": {
"title": "EndDialog"
},
"Microsoft.EndTurn": {
"title": "EndTurn"
},
"Microsoft.EventRule": {
"title": "EventRule"
},
"Microsoft.FirstSelector": {
"title": "FirstSelector"
},
"Microsoft.HttpRequest": {
"title": "HttpRequest"
},
"Microsoft.IfCondition": {
"title": "IfCondition"
},
"Microsoft.InitProperty": {
"title": "InitProperty"
},
"Microsoft.IntentRule": {
"title": "IntentRule"
},
"Microsoft.LanguagePolicy": {
"title": "LanguagePolicy"
},
"Microsoft.LogStep": {
"title": "LogStep"
},
"Microsoft.LuisRecognizer": {
"title": "Language Understanding",
"description": "To understand what the user says, your dialog needs a 'Recognizer', that includes example words and sentences that users may use"
},
"Microsoft.MostSpecificSelector": {
"title": "MostSpecificSelector"
},
"Microsoft.MultiLanguageRecognizer": {
"title": "Language Understanding",
"description": "To understand what the user says, your dialog needs a 'Recognizer', that includes example words and sentences that users may use"
},
"Microsoft.NumberInput": {
"title": "NumberInput"
},
"Microsoft.QnAMakerDialog": {
"title": "QnAMakerDialog"
},
"Microsoft.RandomSelector": {
"title": "RandomSelector"
},
"Microsoft.RegexRecognizer": {
"title": false,
"description": false
},
"Microsoft.RepeatDialog": {
"title": "RepeatDialog"
},
"Microsoft.ReplaceDialog": {
"title": "ReplaceDialog"
},
"Microsoft.Rule": {
"title": "Rule"
},
"Microsoft.SaveEntity": {
"title": "SaveEntity"
},
"Microsoft.SendActivity": {
"title": "SendActivity"
},
"Microsoft.SetProperty": {
"title": "SetProperty"
},
"Microsoft.SwitchCondition": {
"title": "SwitchCondition"
},
"Microsoft.TextInput": {
"title": "TextInput"
},
"Microsoft.TraceActivity": {
"title": "TraceActivity"
},
"Microsoft.TrueSelector": {
"title": "TrueSelector"
},
"Microsoft.UnknownIntentRule": {
"title": "UnknownIntentRule"
}
}
}
Loading

0 comments on commit 7c0bb6e

Please sign in to comment.