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

feat: Managed LU sample - updates to TodoBotWithLuis #2284

Merged
merged 19 commits into from
Mar 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Composer/cypress/integration/Onboarding.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ context('Onboarding', () => {

//enable onboarding setting
cy.visitPage('Settings');

cy.wait(1000);
cy.findByText('Onboarding').click();
cy.findByTestId('onboardingToggle').click();
cy.visitPage('Design Flow');
Expand Down
2 changes: 1 addition & 1 deletion Composer/cypress/integration/SaveAs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ context('Saving As', () => {

cy.findByTestId('ProjectTree').within(() => {
cy.findByText('__TestSaveAs.Main').should('exist');
cy.findByText('ViewCollection').should('exist');
cy.findByText('View').should('exist');
});
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"$type": "Microsoft.AdaptiveDialog",
"$designer": {
"name": "AddItem",
"id": "225905"
},
"autoEndDialog": "true",
"defaultResultProperty": "dialog.result",
"triggers": [
{
"$type": "Microsoft.OnBeginDialog",
"$designer": {
"name": "BeginDialog",
"id": "479346"
},
"actions": [
{
"$type": "Microsoft.SetProperties",
"$designer": {
"id": "811190",
"name": "Set properties"
},
"assignments": [
{
"property": "dialog.itemTitle",
"value": "=coalesce(@itemTite, $itemTitle)"
vishwacsena marked this conversation as resolved.
Show resolved Hide resolved
},
{
"property": "dialog.listType",
"value": "=coalesce(@listType, $listType)"
}
]
},
{
"$type": "Microsoft.TextInput",
"$designer": {
"id": "282825",
"name": "AskForTitle"
},
"prompt": "${bfdprompt-282825()}",
"maxTurnCount": "3",
"property": "dialog.itemTitle",
"value": "=coalesce(@itemTitle, $itemTitle)",
"allowInterruptions": "!@itemTitle && #_Interruption.Score >= 0.9"
},
{
"$type": "Microsoft.ChoiceInput",
"$designer": {
"id": "878594",
"name": "AskForListType"
},
"prompt": "${bfdprompt-878594()}",
"maxTurnCount": "3",
"property": "dialog.listType",
"value": "=@listType",
"allowInterruptions": "!@listType",
"outputFormat": "value",
"choices": [
{
"value": "todo",
"synonyms": [
"to do"
]
},
{
"value": "grocery",
"synonyms": [
"groceries"
]
},
{
"value": "shopping",
"synonyms": [
"shoppers"
]
}
],
"appendChoices": "true",
"defaultLocale": "en-us",
"style": "Auto",
"choiceOptions": {
"inlineSeparator": ", ",
"inlineOr": " or ",
"inlineOrMore": ", or ",
"includeNumbers": true
},
"recognizerOptions": {
"noValue": false
}
},
{
"$type": "Microsoft.EditArray",
"$designer": {
"id": "733511",
"name": "Edit an Array property"
},
"changeType": "Push",
"itemsProperty": "user.lists[dialog.listType]",
"value": "=$itemTitle"
},
{
"$type": "Microsoft.SendActivity",
"$designer": {
"id": "139532",
"name": "Send a response"
},
"activity": "${bfdactivity-139532()}"
}
]
}
],
"generator": "AddItem.lg",
"recognizer": "AddItem.lu"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[import](common.lg)

# bfdprompt-282825()
- What would you like to add?

# bfdprompt-878594()
- Pick a list to add the item to..

# bfdactivity-139532()
- Sure. I've added **${dialog.itemTitle}** to **${dialog.listType}** list. You have ${count(user.lists[dialog.listType])} items in your list.



Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@

# TextInput.response-282825
- Please remind me to {itemTitle=buy milk}
- Please remember that I need to {itemTitle=buy milk}
- I need you to remember that {itemTitle=my wife's birthday is Jan 9th}
- Add a todo named {itemTitle=send report over this weekend}
- Add {itemTitle=get a new car} to the todo list
- Add {itemTitle=write a spec} to the list
- Add {itemTitle=finish this demo} to my todo list
- add a todo item {itemTitle=vacuuming by october 3rd}
- add {itemTitle=call my mother} to my todo list
- add {itemTitle=due date august to peanut butter jelly bread milk} on todos list
- add {itemTitle=go running} to my todos
- add to my todos list {itemTitle=mail the insurance forms out by saturday}
- can i add {itemTitle=shirts} on the todos list
- could i add {itemTitle=medicine} to the todos list
- would you add {itemTitle=heavy cream} to the todos list
- add a to do that {itemTitle=purchase a nice sweater}
- add a to do to {itemTitle=buy shoes}
- add an task of {itemTitle=chores to do around the house}
- add {itemTitle=go to whole foods} in my to do list
- add {itemTitle=reading} to my to do list
- add this thing in to do list
- add to my to do list {itemTitle=pick up clothes}
- add to my to do list {itemTitle=print papers for 10 copies this afternoon}
- create to do that {itemTitle=read a book tonight}
- create to do to {itemTitle=go running in the park}
- put {itemTitle=hikes} on my to do list
- remind me to {itemTitle = pick up dry cleaning}
> Add patterns
- Please remember [to] {itemTitle}
- I need you to remember [that] {itemTitle}
- Add a todo named {itemTitle}
- Add {itemTitle} to the list
- [Please] add {itemTitle} to the todo list
- Add {itemTitle} to my todo
- add {itemTitle} to my to do list
- add {itemTitle} to my to dos
- add a to do that buy {itemTitle}
- add a to do that purchase {itemTitle}
- add a to do that shop {itemTitle}
- add a to do to {itemTitle}
- add to do that {itemTitle}
- add to do to {itemTitle}
- create a to do to {itemTitle}
- create to do to {itemTitle}
- remind me to {itemTitle}
- add {itemTitle} to my todo list

@ ml itemTitle







# ChoiceInput.response-878594
- todo list
- shopping list
- how about the to do list?

@ list listType =
- todo :
- to do
- todos
- laundry
- grocery :
- groceries
- fruits
- vegetables
- household items
- house hold items
- shopping :
- shopping
- shop
- shoppers
Loading