Skip to content

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

Closed
zimeg wants to merge 2 commits into
mainfrom
feat/block-kit-table-example
Closed

feat(block-kit): add table block example#94
zimeg wants to merge 2 commits into
mainfrom
feat/block-kit-table-example

Conversation

@zimeg

@zimeg zimeg commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

Adds a table Block Kit example to the block-kit sample, mirroring the official docs example. The example demonstrates a table with raw_text header cells, a rich_text link cell, a raw_number cell, and per-column column_settings (alignment and wrapping).

  • block-kit/src/blocks/table.pyexample01() returning a slack_sdk.models.blocks.TableBlock
  • block-kit/tests/blocks/test_table.py — asserts the produced block deep-equals the expected literal
  • block-kit/README.md — adds the alphabetical Table bullet with docs + implementation links

Docs

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 passed
  • pytest (full block-kit suite, excluding unrelated in-flight work) — 33 passed
  • ruff check src/blocks/table.py tests/blocks/test_table.py — all checks passed
  • mypy src/blocks/table.py — success, no issues

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

zimeg and others added 2 commits June 26, 2026 16:53
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>
@zimeg

zimeg commented Jun 27, 2026

Copy link
Copy Markdown
Member Author

Closing as duplicate of #100 (same table block example) — consolidating to one PR per block.

@zimeg zimeg closed this Jun 27, 2026
@zimeg zimeg deleted the feat/block-kit-table-example branch June 27, 2026 00:24
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