Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@liweitian
Copy link
Contributor

@liweitian liweitian commented Mar 3, 2020

Description

  1. fix bug which block users to create some kinds of trigger.
  2. update regEx UI.
  3. message received type is added

Task Item

Closes #2193
Closes #2158
Closes #1911

Screenshots

aaaaa

@liweitian liweitian changed the title fix bug fix: trigger creation bug Mar 3, 2020
@liweitian liweitian force-pushed the trggerCreationBugFix branch from 556dc2a to 3baabd1 Compare March 3, 2020 08:33
@hibrenda
Copy link
Contributor

hibrenda commented Mar 4, 2020

#2158

@boydc2014
Copy link
Contributor

can you add a gif? how did you add regex back?

@liweitian liweitian requested a review from luhan2017 as a code owner March 4, 2020 07:18
@alanlong9278 alanlong9278 force-pushed the trggerCreationBugFix branch from 0a5aee8 to d584c7d Compare March 4, 2020 08:17
@a-b-r-o-w-n a-b-r-o-w-n linked an issue Mar 9, 2020 that may be closed by this pull request
@cwhitten
Copy link
Member

cwhitten commented Mar 9, 2020

nice work @liweitian & @alanlong9278 !

}

set(content, path, current);
export function createNewTrigger(dialog: DialogInfo, data: TriggerFormData): DialogInfo {
Copy link
Contributor

Choose a reason for hiding this comment

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

The return type DialogInfo I believe is an indexed dialog type, but here you didn't
reindex it, and seems no need to reindex it. So I would suggest return content: string.

}

return content;
export function createRegExIntent(dialog: DialogInfo, intent: string, pattern: string): DialogInfo {
Copy link
Contributor

Choose a reason for hiding this comment

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

see above.

@cwhitten cwhitten mentioned this pull request Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to create non OnIntent trigger

6 participants