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

chore: Update trigger wizard #2917

Merged
merged 1 commit into from
May 6, 2020

Conversation

liweitian
Copy link
Contributor

Description

update trigger wizard due to schema changed. Further modification may be needed.

Task Item

@@ -42,7 +42,7 @@ export const intentTypeKey: string = SDKKinds.OnIntent;
export const activityTypeKey: string = SDKKinds.OnActivity;
export const messageTypeKey: string = SDKKinds.OnMessageEventActivity;
export const regexRecognizerKey: string = SDKKinds.RegexRecognizer;

export const customerTypeKey: string = SDKKinds.OnCustomEvent;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export const customerTypeKey: string = SDKKinds.OnCustomEvent;
export const customEventTypeKey: string = SDKKinds.OnCustomEvent;

@@ -27,6 +27,7 @@ import {
intentTypeKey,
activityTypeKey,
messageTypeKey,
customerTypeKey,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
customerTypeKey,
customEventTypeKey,

@@ -145,7 +146,11 @@ export const TriggerCreationModal: React.FC<TriggerCreationModalProps> = props =
};

const onSelectTriggerType = (e, option) => {
setFormData({ ...initialFormData, $kind: option.key });
if (option.key === customerTypeKey) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (option.key === customerTypeKey) {
if (option.key === customEventTypeKey) {

@a-b-r-o-w-n a-b-r-o-w-n self-assigned this May 6, 2020
@a-b-r-o-w-n a-b-r-o-w-n merged commit 297109e into microsoft:luhan/rc1 May 6, 2020
cwhitten added a commit that referenced this pull request May 8, 2020
* package and schema update for 4.9-RC1

* update trigger wizard (#2917)

* rename variable

* update SDKKinds enum

* fix references to removed kinds

* fix schema resolution for property editor

* do not title case the schema title

* add ability to type custom event name in trigger creation

* fix autoEndDialog type in samples

* generate sdk enum with all definitions

* Revert changes to ui schema and label map

* update ActivityTemplate to IActivityTemplate for lg fields

* resolve schema in order to determine stacking

* remove test types from sdk enum

* fix failing tests

* skip failing test

* update sdk packages and schema to rc4

* update bot start up to not use HostContext

* Update some enum to lower case and removed the recognizerset sample because it is no longer valid

* update deprecated method

Co-authored-by: liweitian <liweitian93@outlook.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* package and schema update for 4.9-RC1

* update trigger wizard (microsoft#2917)

* rename variable

* update SDKKinds enum

* fix references to removed kinds

* fix schema resolution for property editor

* do not title case the schema title

* add ability to type custom event name in trigger creation

* fix autoEndDialog type in samples

* generate sdk enum with all definitions

* Revert changes to ui schema and label map

* update ActivityTemplate to IActivityTemplate for lg fields

* resolve schema in order to determine stacking

* remove test types from sdk enum

* fix failing tests

* skip failing test

* update sdk packages and schema to rc4

* update bot start up to not use HostContext

* Update some enum to lower case and removed the recognizerset sample because it is no longer valid

* update deprecated method

Co-authored-by: liweitian <liweitian93@outlook.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Not Targetting Main a pull request created not against main
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants