Skip to content

feat: add new Block Kit blocks and elements (alert, card, carousel, context_actions, workflow button, file input)#363

Merged
abdolence merged 2 commits into
masterfrom
feature/block-kit-new-blocks-and-elements
May 16, 2026
Merged

feat: add new Block Kit blocks and elements (alert, card, carousel, context_actions, workflow button, file input)#363
abdolence merged 2 commits into
masterfrom
feature/block-kit-new-blocks-and-elements

Conversation

@abdolence
Copy link
Copy Markdown
Owner

  • feat: add new Block Kit blocks and elements (alert, card, carousel, context_actions, workflow button, file input)
  • fix: use SlackDispatchActionTrigger enum for trigger_actions_on instead of Vec

abdolence added 2 commits May 16, 2026 14:37
…ontext_actions, workflow button, file input)

- Add SlackAlertBlock with SlackAlertLevel enum
- Add SlackCardBlock with title, subtitle, body, hero_image, icon, actions
- Add SlackCarouselBlock
- Add SlackContextActionsBlock with SlackBlockIconButtonElement and SlackBlockFeedbackButtonsElement
- Add SlackBlockFileInputElement and SlackInputBlockElement::FileInput variant
- Add workflow button types in new workflow.rs module (SlackWorkflow, SlackWorkflowTrigger, SlackBlockWorkflowButtonElement)
- Add WorkflowButton variant to SlackSectionBlockElement and SlackActionBlockElement
- Add SlackBlockButtonStyle enum (Primary, Danger) replacing Option<String> on button elements
- Add SlackAccessibilityLabel newtype used on button and icon button elements
- Add SlackDispatchActionConfig and dispatch_action_config field on SlackBlockPlainTextInputElement
- Add expand field to SlackSectionBlock
- Add accessibility_label field to SlackBlockButtonElement
- Add fixture JSON files and roundtrip tests for all new blocks
- Update socket_mode example to exercise new types
@abdolence abdolence merged commit 4f69294 into master May 16, 2026
7 checks passed
@abdolence abdolence deleted the feature/block-kit-new-blocks-and-elements branch May 16, 2026 12:42
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.

1 participant