Skip to content

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

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

zimeg wants to merge 1 commit into
mainfrom
feat-block-kit-table

Conversation

@zimeg

@zimeg zimeg commented Nov 6, 2026

Copy link
Copy Markdown
Member

Summary

This pull request adds the table block example to the Block Kit examples.

  • blocks/Table.java: a table block via the Blocks.table(...) DSL, matching the docs example: column_settings that wrap the first column and right align the second, with raw_text header and label cells and rich_text link cells.
  • blocks/TableTest.java: a serialization round-trip test asserting the docs example JSON, matching the pattern of the sibling block examples.
  • block-kit/README.md: a "Table" entry, alphabetically between Section and Task card.

Depends on the SDK: TableBlock, TableBlock.ColumnSetting and Blocks.table(...) are added in slackapi/java-slack-sdk#1611 and are not yet in a published slack-api-model release. The block-kit module pins the published version (1.54.0), so this example compiles once #1611 lands and releases. Verified locally against a 1.54.1-SNAPSHOT build of the #1611 branch (all block-kit tests pass, including TableTest).

Draft until the SDK support is released.

Testing

  • Build the #1611 branch of java-slack-sdk and install slack-api-model + slack-api-client to your local ~/.m2 (they build as 1.54.1-SNAPSHOT).
  • Temporarily bump the two com.slack.api versions in block-kit/pom.xml to 1.54.1-SNAPSHOT.
  • From block-kit/, run mvn test: the module compiles the Table example and TableTest passes (round-trips the block to the expected table JSON).
  • Revert the pom.xml version bump before merging (keep the published version).

🤖 Generated with Claude Code

@zimeg zimeg added enhancement New feature or request update PR only - an update or maintenance is being made to an existing app java Pull requests that update java code labels Nov 6, 2026
@zimeg zimeg self-assigned this Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request java Pull requests that update java code update PR only - an update or maintenance is being made to an existing app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant