feat: add ContainerBlock layout block support - #1639
Open
srtaalej wants to merge 1 commit into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1639 +/- ##
============================================
- Coverage 72.84% 72.69% -0.15%
- Complexity 4533 4535 +2
============================================
Files 482 483 +1
Lines 14423 14454 +31
Branches 1512 1513 +1
============================================
+ Hits 10506 10508 +2
- Misses 3022 3051 +29
Partials 895 895
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
srtaalej
marked this pull request as ready for review
August 31, 2026 20:08
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.
Add support for the Container Block layout block type.
Changes
ContainerBlock.java— New layout block with all documented properties:title,rich_text_title,subtitle,child_blocks,width,icon,is_collapsible,default_collapsed,has_header_divider,block_idGsonLayoutBlockFactory— Registeredcontainertype for deserializationBlocks.java— Addedcontainer()static helperContainerBlockBuilder,LayoutBlockDsl.container(), andMultiLayoutBlockContainer.container()Example test app (App.java)
To run:
Subcommands:
/container-block,/container-block width,/container-block mrkdwn-subtitle,/container-block has-header-divider,/container-block default-collapsed,/container-block icon,/container-block rich-text-title,/container-block all-collapsible,/container-block all-divider,/container-block allCategory (place an
xin each of the[ ])Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.