Repository navigation
feat(block-kit): add url_source element example - #127
Merged
Merged
Conversation
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
mwbrooks
approved these changes
Nov 13, 2026
| import java.util.List; | ||
|
|
||
| /** | ||
| * Displays a URL source for referencing within a task card block. |
Member
There was a problem hiding this comment.
suggestion (non-blocking): Since icon_url is gone, could we update the summary in the docs page frontmatter too? Then this Javadoc, the README, and the Python and JS examples all match the docs again, the way AGENTS.md asks.
Member
Author
There was a problem hiding this comment.
📚 thanks @mwbrooks, agreed! the docs page summary is the source of truth, so we'll fix it there and drop the stale icon mention. the new summary matches what this Javadoc, the README line, and the Python and JS examples already say:
Displays a URL source for referencing within a task card block.
so once that lands, everything matches the docs again with no example changes needed.
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 a
url_sourceelement example that matches the URL source element docs payloads.UrlSource.javabuildsexample01()as a singleUrlSourceElementandexample02()as a task card block with two URL sources, mirroring the Python and JS examples.UrlSourceTest.javaasserts the serialized JSON for both examples.The docs page frontmatter still reads "Displays a URL source with optional icon.", left over from before
icon_urlwas removed. The Javadoc and README use "Displays a URL source for referencing within a task card block." to match the Python and JS examples.Testing
mvn test -Dtest=elements.UrlSourceTestinblock-kit.UrlSource.example02()withchat.postMessageand confirm both sources render as links on the task card.🤖 Generated with Claude Code