Skip to content

Commit 6d8ffce

Browse files
zimegClaude
andcommitted
refactor(block-kit): group dataTable DSL entry with the net-new blocks
Blocks.java keeps the recently-added blocks (Alert, Card, Carousel, Container, TaskCard) in a cluster at the end rather than slotting them alphabetically into the original core entries. Move the dataTable(...) builder into that cluster (after container, before taskCard) so a net-new block sits with its peers instead of splitting the old core from the new group. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent 715e9a2 commit 6d8ffce

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • slack-api-model/src/main/java/com/slack/api/model/block

‎slack-api-model/src/main/java/com/slack/api/model/block/Blocks.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,6 @@ public static SectionBlock section(ModelConfigurator<SectionBlock.SectionBlockBu
119119
return configurator.configure(SectionBlock.builder()).build();
120120
}
121121

122-
// DataTableBlock
123-
124-
public static DataTableBlock dataTable(ModelConfigurator<DataTableBlock.DataTableBlockBuilder> configurator) {
125-
return configurator.configure(DataTableBlock.builder()).build();
126-
}
127-
128122
// VideoBlock
129123
public static VideoBlock video(ModelConfigurator<VideoBlock.VideoBlockBuilder> configurator) {
130124
return configurator.configure(VideoBlock.builder()).build();
@@ -159,6 +153,12 @@ public static ContainerBlock container(ModelConfigurator<ContainerBlock.Containe
159153
return configurator.configure(ContainerBlock.builder()).build();
160154
}
161155

156+
// DataTableBlock
157+
158+
public static DataTableBlock dataTable(ModelConfigurator<DataTableBlock.DataTableBlockBuilder> configurator) {
159+
return configurator.configure(DataTableBlock.builder()).build();
160+
}
161+
162162
// TaskCardBlock
163163

164164
public static TaskCardBlock taskCard(ModelConfigurator<TaskCardBlock.TaskCardBlockBuilder> configurator) {

0 commit comments

Comments
 (0)