feat(blocks): add Card, Carousel, and Alert block types#1865
Open
feat(blocks): add Card, Carousel, and Alert block types#1865
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1865 +/- ##
==========================================
+ Coverage 84.00% 84.09% +0.08%
==========================================
Files 117 117
Lines 13257 13325 +68
==========================================
+ Hits 11137 11205 +68
Misses 2120 2120 ☔ View full report in Codecov by Sentry. |
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
CardBlock— a rich display block for presenting structured content (hero image, icon, title, subtitle, body, actions)CarouselBlock— a horizontally scrollable collection of card blocks (1–10 cards)AlertBlock— a prominent notice block for warnings, status updates, or important information with severity levels (default, info, warning, error, success)All three blocks include deserialization support via
Block.parse(), exports in__init__.py, and round-trip tests.Test plan
Test app.py (sends carousel + cards via chat_postMessage on startup)
Test shortcut handler (opens modal with alert blocks via global shortcut)
Block.parse()deserialization testsCardBlockto SlackCarouselBlockto SlackAlertBlockin Slack (alert blocks are only supported in modal views)🤖 Generated with Claude Code