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

Custom Activity Editor #2213

Merged
merged 11 commits into from
Dec 30, 2020
Merged

Custom Activity Editor #2213

merged 11 commits into from
Dec 30, 2020

Conversation

tonyanziano
Copy link
Contributor

@tonyanziano tonyanziano commented Dec 22, 2020

Custom Activity Editor

Summary

Adds a new option to the "Conversation -> Send activity" menu that opens a dialog with an embedded JSON editor to allow the user to send custom activity payloads to their bot through the Emulator.

Includes a JSON schema based on the Bot Framework activity documentation in the OBI repo.

The JSON editor validates the content of the editor against this schema to ensure that no malformed activity payloads can be sent. (Can refine this as it gets more use.)

Fixes #2174, #1700

Possible features

  • Preset activity "templates" selectable from a dropdown to populate the editor with boilerplate keys for different activity types (message, event, etc.)
  • Postman-esque collections feature that allows you to save and load previously sent activity payloads

Screenshots

Using the editor

act1

act2

act3

Validation

act6

Theming
act4

act5

@coveralls
Copy link

coveralls commented Dec 22, 2020

Coverage Status

Coverage decreased (-0.1%) to 67.785% when pulling 791de99 on toanzian/feat/custom-activity into 402ac60 on main.

Copy link
Contributor

@srinaath srinaath left a comment

Choose a reason for hiding this comment

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

Looks great! Just minor comments.

@tonyanziano tonyanziano merged commit 7cb5a86 into main Dec 30, 2020
@tonyanziano tonyanziano deleted the toanzian/feat/custom-activity branch December 30, 2020 22:14
@jrpavoncello
Copy link

Thank you so much for this feature! This makes development so much faster since we would normally have to hook our local bot into another local application just to develop/test event related features.

@tonyanziano
Copy link
Contributor Author

Glad I could help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Be able to send arbitrary event/invoke with a JSON Payload
4 participants