Skip to content

feat(types): support action_cell cells in data_table rows - #2826

Draft
zimeg wants to merge 1 commit into
mainfrom
types-data-table-action-cell
Draft

zimeg wants to merge 1 commit into
mainfrom
types-data-table-action-cell

Conversation

@zimeg

@zimeg zimeg commented Nov 5, 2026

Copy link
Copy Markdown
Member

Summary

This pull request adds the action_cell cell type to data_table block rows.

  • Adds an ActionCellElement type with type: 'action_cell', a required element button, and an optional fallback of raw_text or raw_number, following the action_cell schema.
  • Allows ActionCellElement in DataTableBlock.rows only. TableBlock rows are unchanged, since action cells "can only be used in the data table block, not the table block".
  • Adds type tests for the docs example with and without fallback, an action_cell missing element, and an action_cell in a TableBlock row.
  • Adds a minor changeset for @slack/types.

Related: slackapi/java-slack-sdk#1613 and slackapi/python-slack-sdk#1900 add the same cell to the Java and Python SDKs.

Testing

  1. Build the package and run the type tests:

    npm run build --workspace=packages/types
    npm test --workspace=packages/types
  2. Post the docs example in a data_table row with chat.postMessage and confirm the button renders in the cell and sends a block_actions payload when clicked.

Requirements

🤖 Generated with Claude Code

@zimeg zimeg added this to the types@next milestone Nov 5, 2026
@zimeg zimeg added semver:minor enhancement M-T: A feature request for new functionality pkg:types applies to `@slack/types` labels Nov 5, 2026
@changeset-bot

changeset-bot Bot commented Nov 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 10c3f07

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@slack/types Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@zimeg zimeg self-assigned this Nov 5, 2026
@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.83%. Comparing base (822f6a4) to head (10c3f07).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2826      +/-   ##
==========================================
- Coverage   93.89%   93.83%   -0.07%     
==========================================
  Files          66       66              
  Lines       10571    10571              
  Branches      611      611              
==========================================
- Hits         9926     9919       -7     
- Misses        609      617       +8     
+ Partials       36       35       -1     
Flag Coverage Δ
cli-hooks 93.75% <ø> (ø)
cli-test 93.75% <ø> (ø)
logger 93.75% <ø> (ø)
oauth 93.75% <ø> (ø)
socket-mode 93.75% <ø> (ø)
web-api 93.75% <ø> (ø)
webhook 93.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality pkg:types applies to `@slack/types` semver:minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant