feat(block-kit): add alert block example - #66
Conversation
zimeg
left a comment
There was a problem hiding this comment.
@srtaalej Would it be possible to include a test with this?
https://github.com/slack-samples/bolt-java-examples/tree/main/block-kit/src/test/java/blocks
|
thanks for the review @zimeg! tests and README have been updated 😁 |
zimeg
left a comment
There was a problem hiding this comment.
@srtaalej Thanks so much for a complete example for reference! After this merges we should highlight and celebrate it on https://docs.slack.dev/reference/block-kit/blocks/alert-block 🪬 ✨
| Blocks.alert(a -> a.text(BlockCompositions.markdownText("The work is mysterious and important.")) | ||
| .level("info")); |
| "text": { | ||
| "type": "mrkdwn", | ||
| "text": "The work is mysterious and important." | ||
| }, |
There was a problem hiding this comment.
👁️🗨️ question: I notice the verbatim field from plain JSON example isn't included here or in earlier changes of python which makes me wonder if it's another field of mrkdwn text for follow up?
zimeg
left a comment
There was a problem hiding this comment.
🌚 Another comment but still LGTM for whenever's right to merge!
Co-authored-by: Eden Zimbelman <eden.zimbelman@salesforce.com>
Adds Alert.java with an info-level alert example matching the docs JSON.