Skip to content

fix(types): add agent prompt and visibility fields to the Button block element - #2798

Merged
mwbrooks merged 1 commit into
mainfrom
mwbrooks-button-agent-prompt-fields
Oct 29, 2026
Merged

mwbrooks merged 1 commit into
mainfrom
mwbrooks-button-agent-prompt-fields

Conversation

@mwbrooks

Copy link
Copy Markdown
Member

Summary

This pull request lets TypeScript developers set the agent_prompt, agent_prompt_display, and visible_to_user_ids fields on a Button block element. Until now, a typed button with any of these documented fields failed to compile.

Requirements

@mwbrooks mwbrooks added this to the types@next milestone Oct 28, 2026
@mwbrooks mwbrooks added bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented semver:patch pkg:types applies to `@slack/types` labels Oct 28, 2026
@mwbrooks mwbrooks self-assigned this Oct 28, 2026
@changeset-bot

changeset-bot Bot commented Oct 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8994bce

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@slack/types Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.32%. Comparing base (4483395) to head (8994bce).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2798   +/-   ##
=======================================
  Coverage   89.32%   89.32%           
=======================================
  Files          65       65           
  Lines       10548    10548           
  Branches      480      480           
=======================================
  Hits         9422     9422           
  Misses       1094     1094           
  Partials       32       32           
Flag Coverage Δ
cli-hooks 89.28% <ø> (ø)
cli-test 89.28% <ø> (ø)
logger 89.28% <ø> (ø)
oauth 89.28% <ø> (ø)
socket-mode 89.28% <ø> (ø)
web-api 89.28% <ø> (ø)
webhook 89.28% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mwbrooks
mwbrooks marked this pull request as ready for review October 28, 2026 17:09
@mwbrooks
mwbrooks requested a review from a team as a code owner October 28, 2026 17:09

@zimeg zimeg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@mwbrooks LGTM! Thanks for keeping blocks more current ❤️ 🧱 🎇

@mwbrooks
mwbrooks requested a review from a team October 28, 2026 17:19
@mwbrooks
mwbrooks merged commit 6f6fbd1 into main Oct 29, 2026
22 checks passed
@mwbrooks
mwbrooks deleted the mwbrooks-button-agent-prompt-fields branch October 29, 2026 17:34
@mwbrooks

Copy link
Copy Markdown
Member Author

Thanks @zimeg for the quick review! 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented pkg:types applies to `@slack/types` semver:patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants