feat(model): add carousel Block Kit block#1614
Draft
zimeg wants to merge 1 commit into
Draft
Conversation
Add the carousel layout block, a horizontally scrollable collection of card blocks (1-10 cards). - CarouselBlock model (TYPE "carousel", elements: List<CardBlock>, blockId) - Blocks.carousel(...) factory - GsonLayoutBlockFactory carousel case for (de)serialization - BlockKitTest parse + build/round-trip coverage Ref: https://docs.slack.dev/reference/block-kit/blocks/carousel-block Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## chore/block-kit-card #1614 +/- ##
==========================================================
+ Coverage 73.29% 73.32% +0.03%
- Complexity 4521 4523 +2
==========================================================
Files 478 478
Lines 14302 14304 +2
Branches 1490 1490
==========================================================
+ Hits 10482 10488 +6
+ Misses 2932 2924 -8
- Partials 888 892 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
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
Adds only the
carouselBlock Kit layout block (one block, one PR). A carousel is a horizontally scrollable collection ofcardblocks (1-10 cards).Changes:
CarouselBlockmodel —TYPE = "carousel",elements: List<CardBlock>(1-10),blockIdBlocks.carousel(...)builder factoryGsonLayoutBlockFactorycarousel case for (de)serializationBlockKitTestparse + build/round-trip coverageDocs: https://docs.slack.dev/reference/block-kit/blocks/carousel-block
Dependency
CarouselBlock.elementsis aList<CardBlock>, so this depends on the card block from #1609 (chore/block-kit-card). This PR is based onchore/block-kit-card, notmain. Once #1609 merges tomain, rebase this branch ontomainand retarget the base tomain.This replaces the carousel half of the now-superseded #1608 (which bundled card + carousel). #1608 will be closed separately.
Validation
./mvnw -pl slack-api-model -Dtest=BlockKitTest test→ Tests run: 47, Failures: 0, Errors: 0, Skipped: 0 — BUILD SUCCESS🤖 Generated with Claude Code