Skip to content

feat(block-kit): add container block example - #161

Draft
zimeg wants to merge 1 commit into
mainfrom
feat/block-kit-container-example
Draft

feat(block-kit): add container block example#161
zimeg wants to merge 1 commit into
mainfrom
feat/block-kit-container-example

Conversation

@zimeg

@zimeg zimeg commented Aug 1, 2026

Copy link
Copy Markdown
Member

Summary

Adds a container Block Kit example to the block-kit collection, closing the last block-coverage gap for Python (the JS collection already has one via slack-samples/bolt-js-examples#165). example01 models the container block reference page: a collapsible bulk update container grouping section, divider, context, and actions child blocks (all built with slack_sdk model classes).

  • New: block-kit/src/blocks/container.pyexample01() returns a ContainerBlock.
  • New: block-kit/tests/blocks/test_container.pyto_dict() assertion.
  • README: added a Container bullet under "### Blocks" (alphabetical).

⚠️ Draft — CI fails by design

slack_sdk does not yet export ContainerBlock (verified against slack_sdk==3.42.0), so:

  • mypy: Module "slack_sdk.models.blocks" has no attribute "ContainerBlock"
  • pytest: ImportError on collection

This is intentional — the example imports the real (unshipped) block class rather than hand-rolling one, so the red CI is an honest signal the SDK is missing the type. The child blocks (section/divider/context/actions) all use real slack_sdk model classes. Ruff check + format pass. Unblocks once slack_sdk ships ContainerBlock.

Related

🤖 Generated with Claude Code

Add a container block example (example01) modeled on the container
block reference page: a collapsible bulk-update summary grouping section,
divider, context, and actions child blocks (all built with slack_sdk
model classes).

slack_sdk does not yet export ContainerBlock, so mypy and pytest
(collection) fail by design on the missing import — the honest signal
that the block is not yet available, unblocking when the SDK ships it.
Ruff and formatting pass. Mirrors the JS container example
(slack-samples/bolt-js-examples#165).

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg zimeg added the enhancement New feature or request label Aug 1, 2026
@zimeg zimeg self-assigned this Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant