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

Fix #342 TypeScript: multi-select/radio button block elements are still unsupported #344

Merged
merged 3 commits into from
Dec 16, 2019

Conversation

seratch
Copy link
Member

@seratch seratch commented Dec 16, 2019

Summary

This pull request fixes #342 by adding the following types of block_actions in TypeScript.

(To be clear, JavaScript users don't need to wait for this fix to use newly added block elements)

Requirements (place an x in each [ ])

| OverflowAction
| DatepickerAction;
| DatepickerAction
| RadioButtonsAction;
Copy link
Member Author

Choose a reason for hiding this comment

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

radio_buttons were not added when it was added.

/**
* An action from a select menu with external data source
*/
export interface ExternalSelectAction extends BasicElementAction<'external_select'> {
selected_option?: Option;
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm afraid that this field has been missing since this interface was added.

Copy link
Member Author

Choose a reason for hiding this comment

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

This commit fixed #210

@codecov
Copy link

codecov bot commented Dec 16, 2019

Codecov Report

Merging #344 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #344   +/-   ##
=======================================
  Coverage   73.35%   73.35%           
=======================================
  Files           7        7           
  Lines         503      503           
  Branches      146      146           
=======================================
  Hits          369      369           
  Misses        102      102           
  Partials       32       32

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1845aa5...c058d8b. Read the comment docs.

@seratch seratch added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented enhancement M-T: A feature request for new functionality TypeScript-specific labels Dec 16, 2019
Copy link
Member

@stevengill stevengill left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for doing this @seratch!

@seratch seratch merged commit 4519546 into slackapi:master Dec 16, 2019
@seratch seratch deleted the more-block-elements branch December 16, 2019 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented enhancement M-T: A feature request for new functionality semver:minor TypeScript-specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript: multi-select/radio button block elements are still unsupported
3 participants