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 #497 Add types of state.values on modal submission #879

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

seratch
Copy link
Member

@seratch seratch commented Apr 14, 2021

Summary

This pull request resolves #497 by adding complete types for the elements in view.state.values in view_submission payloads

Requirements (place an x in each [ ])

@seratch seratch added enhancement M-T: A feature request for new functionality semver:minor TypeScript-specific labels Apr 14, 2021
@seratch seratch added this to the 3.4.0 milestone Apr 14, 2021
@seratch seratch self-assigned this Apr 14, 2021
export interface ViewOutput {
id: string;
callback_id: string;
team_id: string;
app_installed_team_id?: string;
Copy link
Member Author

Choose a reason for hiding this comment

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

While doing the tests for this pull request changes, I found this field is missing.

selected_channel?: string | null;
selected_user?: string | null;
selected_option?: ViewStateSelectedOption | null;
selected_conversations?: string[];
Copy link
Member Author

Choose a reason for hiding this comment

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

As far as I know, there is no pattern to have null for the array ones.

@codecov
Copy link

codecov bot commented Apr 14, 2021

Codecov Report

Merging #879 (ce2c39b) into main (23b4f80) will not change coverage.
The diff coverage is n/a.

❗ Current head ce2c39b differs from pull request most recent head b5f5978. Consider uploading reports for the commit b5f5978 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main     #879   +/-   ##
=======================================
  Coverage   66.08%   66.08%           
=======================================
  Files          13       13           
  Lines        1200     1200           
  Branches      353      353           
=======================================
  Hits          793      793           
  Misses        338      338           
  Partials       69       69           

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 23b4f80...b5f5978. Read the comment docs.

Copy link
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

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

🎉 Very nice addition!

@seratch seratch merged commit 42e731e into slackapi:main Apr 14, 2021
@seratch seratch deleted the issue-497-state-values branch April 14, 2021 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

Add types of state.values on modal submission
2 participants