This repository was archived by the owner on Jul 9, 2025. It is now read-only.
feat: support creating actions from ejected schema in Visual Editor#2806
Merged
cwhitten merged 19 commits intomicrosoft:masterfrom Apr 30, 2020
Merged
feat: support creating actions from ejected schema in Visual Editor#2806cwhitten merged 19 commits intomicrosoft:masterfrom
cwhitten merged 19 commits intomicrosoft:masterfrom
Conversation
a-b-r-o-w-n
reviewed
Apr 28, 2020
Composer/packages/extensions/visual-designer/src/components/menus/EdgeMenu.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/extensions/visual-designer/src/components/menus/EdgeMenu.tsx
Outdated
Show resolved
Hide resolved
| return actionGroup.map(({ title: $kind }) => ({ | ||
| key: $kind, | ||
| name: $kind, | ||
| $kind, |
Contributor
There was a problem hiding this comment.
This should be wrapped in a data object to conform to the menu item type.
Contributor
Author
There was a problem hiding this comment.
After the refactoring work, the EdgeMenu only emits the key of the item.
Usually, the emitted key is set to the action $kind.
The motivation of doing so is to avoid coupling DialogFactory in menu components
Contributor
Author
|
@a-b-r-o-w-n the discussion thread is under #2578. Just @ you there |
cwhitten
approved these changes
Apr 30, 2020
lei9444
pushed a commit
to lei9444/BotFramework-Composer-1
that referenced
this pull request
Jun 15, 2021
…icrosoft#2806) * bring 'Custom Actions' menu * move `createStepMenu` into visual editor * remove EventMenu (outdated) * refactor: EdgeMenu util * define 'oneOf' type * connect to global customSchemas * load customSchema files * create a schema hook * merge custom schemas in FormEditor * add comments * rename variable customSchemas * fix lint * revert some changes * calculate schema diff as custom schema * fix lint Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
fixes #2578
Enable creating custom actions in the fly-out action menu.
(Custom actions is calculated automatically based on the builtin sdk.schema and user ejected sdk.schema).
Users can follow these steps to enable custom schemas:
sdk.schema->definitions)titlefield in schemaProblems:
About Editor schema injection (custom the visual node appearance)
Not covered in this PR. Visual & Form Editor render those custom actions with their default widgets.
We can bring up a plan and then implement it in R10
@a-b-r-o-w-n
Task Item
#2578
Screenshots