Skip to content

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

Merged
zimeg merged 4 commits into
mainfrom
feat/block-kit-table-example-wf
Aug 6, 2026
Merged

feat(block-kit): add table block example#100
zimeg merged 4 commits 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

@zimeg zimeg added enhancement New feature or request python Pull requests that update python code labels Aug 4, 2026
@zimeg zimeg self-assigned this Aug 4, 2026
@zimeg
zimeg marked this pull request as ready for review August 5, 2026 17:45
@zimeg
zimeg requested a review from a team as a code owner August 5, 2026 17:45
@zimeg

zimeg commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

🔭 Pending perhaps: slackapi/python-slack-sdk#1938

Edit: Will instead follow with enhancements following this linked issue!

zimeg and others added 4 commits August 5, 2026 20:24
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>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg force-pushed the feat/block-kit-table-example-wf branch from 9917ead to aeac9ab Compare August 6, 2026 03:25
@zimeg
zimeg merged commit fd0c9a9 into main Aug 6, 2026
6 checks passed
@zimeg
zimeg deleted the feat/block-kit-table-example-wf branch August 6, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant