feat(block-kit): add table block example#94
Closed
zimeg wants to merge 2 commits into
Closed
Conversation
Mirror the official docs alert block example in the Python block-kit showcase. Alert blocks display notification messages within modals. Docs: https://docs.slack.dev/reference/block-kit/blocks/alert-block Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Mirrors the official table block docs example with header, text, link, and number cells alongside column settings. https://docs.slack.dev/reference/block-kit/blocks/table-block Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Member
Author
|
Closing as duplicate of #100 (same table block example) — consolidating to one PR per block. |
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
tableBlock Kit example to theblock-kitsample, mirroring the official docs example. The example demonstrates a table withraw_textheader cells, arich_textlink cell, araw_numbercell, and per-columncolumn_settings(alignment and wrapping).block-kit/src/blocks/table.py—example01()returning aslack_sdk.models.blocks.TableBlockblock-kit/tests/blocks/test_table.py— asserts the produced block deep-equals the expected literalblock-kit/README.md— adds the alphabetical Table bullet with docs + implementation linksDocs
https://docs.slack.dev/reference/block-kit/blocks/table-block
Validation
Run from
block-kit/against the repo's pinned tooling:pytest tests/blocks/test_table.py— 1 passedpytest(full block-kit suite, excluding unrelated in-flight work) — 33 passedruff check src/blocks/table.py tests/blocks/test_table.py— all checks passedmypy src/blocks/table.py— success, no issuesCo-Authored-By: Claude svc-devxp-claude@slack-corp.com