Skip to content

feat(block-kit): add table block example#100

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

feat(block-kit): add table block example#100
zimeg wants to merge 1 commit into
mainfrom
feat/block-kit-table-example-wf

Conversation

@zimeg

@zimeg zimeg commented Jun 27, 2026

Copy link
Copy Markdown
Member

Summary

Adds a Bolt for Python Block Kit example for the table block, mirroring the official docs example.

  • New example block-kit/src/blocks/table.py with example01() returning a TableBlock imported from slack_sdk.models.blocks.
  • The table has a header row plus two data rows: column 1 uses raw_text cells (wrapped), column 2 uses rich_text link cells (right-aligned), matching the docs JSON exactly.
  • Matching test block-kit/tests/blocks/test_table.py asserts the produced block deep-equals the expected literal.
  • README bullet added alphabetically (between Section and Task card) with docs + implementation links.

Docs reference: https://docs.slack.dev/reference/block-kit/blocks/table-block

Validation

Run in block-kit/ with the repo .venv:

  • pytest tests/blocks/test_table.py — PASS (1 passed)
  • ruff check src/blocks/table.py tests/blocks/test_table.py — PASS (all checks passed)
  • ruff format --check ... — PASS (already formatted)
  • mypy src/blocks/table.py — PASS (no issues)

TableBlock is already shipped in the pinned slack_sdk==3.42.0, so no SDK dependency is pending. This examples repo does not use changesets, so none was added.

Co-Authored-By: Claude svc-devxp-claude@slack-corp.com

Add a Bolt for Python Block Kit example for the table block, mirroring
the official docs example. Imports TableBlock from slack_sdk and renders
a header row plus two data rows with raw_text and rich_text link cells.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
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