feat(block-kit): add container block example - #165
Draft
zimeg wants to merge 1 commit into
Draft
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
containerBlock Kit example to theblock-kitcollection, filling the last remaining gap among the released blocks on the reference page.example01models the container block reference page's sample: a collapsible bulk update container groupingsection,divider,context, andactionschild blocks.block-kit/src/blocks/container.js—example01()returns aContainerBlock.block-kit/tests/blocks/container.test.js— deep-equality assertion.The example references
import('@slack/types').ContainerBlock, which is not yet exported by@slack/types(verified against@slack/types@3.0.0). Sonpm run checkfails: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/typesshipsContainerBlock. Runtime tests (npm test) and lint (npm run lint) both pass.Related
@slack/typesexportingContainerBlock(SDK follow-up).🤖 Generated with Claude Code