Repository navigation
Conversation
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
This pull request adds the
tableblock example to the Block Kit examples.blocks/Table.java: atableblock via theBlocks.table(...)DSL, matching the docs example:column_settingsthat wrap the first column and right align the second, withraw_textheader and label cells andrich_textlink 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.ColumnSettingandBlocks.table(...)are added in slackapi/java-slack-sdk#1611 and are not yet in a publishedslack-api-modelrelease. Theblock-kitmodule pins the published version (1.54.0), so this example compiles once #1611 lands and releases. Verified locally against a1.54.1-SNAPSHOTbuild of the #1611 branch (all block-kit tests pass, includingTableTest).Draft until the SDK support is released.
Testing
java-slack-sdkandinstallslack-api-model+slack-api-clientto your local~/.m2(they build as1.54.1-SNAPSHOT).com.slack.apiversions inblock-kit/pom.xmlto1.54.1-SNAPSHOT.block-kit/, runmvn test: the module compiles theTableexample andTableTestpasses (round-trips the block to the expectedtableJSON).pom.xmlversion bump before merging (keep the published version).🤖 Generated with Claude Code