Skip to content

docs: align Block Kit surface metadata with Slack's blocks.json#95

Merged
StephenTangCook merged 3 commits into
mainfrom
claude/competent-lalande-5e3b53
Jul 1, 2026
Merged

docs: align Block Kit surface metadata with Slack's blocks.json#95
StephenTangCook merged 3 commits into
mainfrom
claude/competent-lalande-5e3b53

Conversation

@StephenTangCook

Copy link
Copy Markdown
Collaborator

What

Reconciles the Block Kit surface JSDoc in src/types/layout.ts against Slack's canonical blocks.json. Resolves ENG-5107.

Pure documentation change — no runtime behavior changes. tsc passes.

Corrected surfaces

block was now (canonical)
alert Messages Modals
card Messages Modals, Messages, Home tabs
carousel Messages Messages, Home tabs
table Messages Messages, Home tabs

Added missing surface JSDoc

context_actions, markdown, plan, task_card — all Messages per canonical, previously had no surface docs.

data_table

Intentionally not modeled/rendered. Documented the decision inline near the Block union: it relies on interactive pagination/sorting/filtering this static renderer cannot reproduce, so it is out of scope until a caller actually needs it (canonical surfaces recorded in the comment for whoever picks it up).

Verified against blocks.json

All other blocks (container, data_visualization, file, and the Modals/Messages/Home-tabs set) already matched canonical — left untouched.

🤖 Generated with Claude Code

Reconciles the surface JSDoc against Slack's canonical
https://docs.slack.dev/blocks.json (ENG-5107):

- alert: Messages → Modals
- card: Messages → Modals, Messages, Home tabs
- carousel: Messages → Messages, Home tabs
- table: Messages → Messages, Home tabs
- add missing surface JSDoc for context_actions, markdown, plan, task_card
- document why data_table is intentionally not modeled

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

👋 Thanks for the PR, @StephenTangCook!

You can try these changes live, before any release — no install needed.
Once the preview build finishes (see the pkg-pr-new bot comment), open the playground and load this PR's build:

🛝 Playground: https://slack-block-to-jsx-playground.vercel.app/
📦 This PR's build: https://pkg.pr.new/slack-blocks-to-jsx@95

Paste the build URL into the Library package field (or hit the pkg.pr #95 preset) and click Load build — your blocks render against this exact PR. 🎉

@pkg-pr-new

pkg-pr-new Bot commented Jul 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/slack-blocks-to-jsx@95

commit: b942885

…esting)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Comment thread src/types/layout.ts Outdated
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@StephenTangCook StephenTangCook merged commit d9aff24 into main Jul 1, 2026
6 checks passed
@StephenTangCook StephenTangCook deleted the claude/competent-lalande-5e3b53 branch July 1, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant