You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 43e03d1
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(block-kit): share the TableCell cell model across table + data_table
The data_table cells (raw_text / raw_number / rich_text) are the same
cell model the table block uses. Rather than ship a parallel
DataTableCell family, adopt the shared TableCell interface and its
RawTextTableCell / RawNumberTableCell implementations in
com.slack.api.model.block.composition, deserialized by a single
GsonTableCellFactory:
- Remove DataTableCell, RawTextDataTableCell, RawNumberDataTableCell,
and GsonDataTableCellFactory.
- Add TableCell, RawTextTableCell, RawNumberTableCell (in ...block.composition)
and GsonTableCellFactory (in ...util.json).
- DataTableBlock.rows is now List<List<TableCell>>; RichTextBlock
implements TableCell; the client and model-test GsonFactory register
TableCell -> GsonTableCellFactory.
This is the same cell model the sibling table-block PR (#1611)
introduces, placed in the same package with identical definitions, so
whichever of the two lands second drops the now-duplicate files in a
trivial merge. Mirrors how node (@slack/types composition objects) and
python (slack_sdk basic_components) also share one cell model across
both blocks.
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
0 commit comments