microsoft / microsoft/BotFramework-WebChat

Expose dispatch action type constants

Open
#2,372 5 comments 3 reactions 1 assignee View on GitHub

@compulim is already working on this.

Since Sep 18, 2019.

backlog Bot Services customer-replied-to customer-reported feature-request front-burner p2 size-l
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Feature Request

Describe the suggestion or request in detail

In webchat customization scenarios, to set dispatch events or to intercept events using a middleware, the type has to be set to a string like WEB_CHAT/SET_TEXT.
It would be great if you could expose the list of supported events as part of a constant so that we don't have strings sprayed across the project and devs can check which events are supported.
Also, If the text associated with a particular event is changed here for some reason, devs wouldn't have to update it in their projects too.

[Enhancement]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.