Skip to content

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

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

feat(block-kit): add container block example#165
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, filling the last remaining gap among the released blocks on the reference page. example01 models the container block reference page's sample: a collapsible bulk update container grouping section, divider, context, and actions child blocks.

  • New: block-kit/src/blocks/container.jsexample01() returns a ContainerBlock.
  • New: block-kit/tests/blocks/container.test.js — deep-equality assertion.
  • README: added a Container bullet under "### Blocks" (alphabetical).

⚠️ Draft — CI (typecheck) fails by design

The example references import('@slack/types').ContainerBlock, which is not yet exported by @slack/types (verified against @slack/types@3.0.0). So npm run check fails:

error TS2694: Namespace '@slack/types' has no exported member 'ContainerBlock'.

This is intentional. The example uses the real SDK type instead of hand-rolling one, so the red CI is an honest signal that the SDK is missing the type — the PR unblocks (and can merge) once @slack/types ships ContainerBlock. Runtime tests (npm test) and lint (npm run lint) both pass.

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.

The example references `import('@slack/types').ContainerBlock`, which is
not yet exported by @slack/types, so `npm run check` (typecheck) fails
by design. This is intentional: the example uses the real SDK type
rather than hand-rolling one, so CI stays red until @slack/types ships
ContainerBlock. Runtime tests and lint pass.

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
@zimeg zimeg added the javascript Pull requests that update javascript code label 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 javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant