Skip to content

feat(block-kit): add plan block example - #108

Open
zimeg wants to merge 3 commits into
mainfrom
feat-block-kit-plan
Open

zimeg wants to merge 3 commits into
mainfrom
feat-block-kit-plan

Conversation

@zimeg

@zimeg zimeg commented Nov 9, 2026

Copy link
Copy Markdown
Member

Summary

This pull request adds a plan block example that matches the plan block docs payload.

  • Plan.java builds the docs example with Blocks.plan and three Blocks.taskCard tasks.
  • PlanTest.java asserts the serialized JSON. Each task serializes with "type": "task_card", the same as the Python example.
  • README entry under Blocks.

Depends on slackapi/java-slack-sdk#1680, so CI stays red until a release with PlanBlock ships and the SDK version is bumped.

Testing

  1. Install feat(model): add plan block slackapi/java-slack-sdk#1680 locally with ./scripts/install_local.sh.
  2. Point block-kit/pom.xml at 1.54.1-SNAPSHOT and run mvn test -Dtest=blocks.PlanTest.
  3. Optionally post Plan.example01() with chat.postMessage and confirm the three tasks render under "Thinking completed".

🤖 Generated with Claude Code

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg zimeg added the enhancement New feature or request label Nov 9, 2026
@zimeg zimeg self-assigned this Nov 9, 2026
@zimeg
zimeg marked this pull request as ready for review November 9, 2026 23:01
@zimeg
zimeg requested a review from a team as a code owner November 9, 2026 23:01
* A plan block with multiple task cards in various states.
*/
public static PlanBlock example01() {
PlanBlock block = Blocks.plan(p -> p.title("Thinking completed")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: Matches the TaskCard example and the docs payload 👌 The block-kit build fails until a java-slack-sdk release with PlanBlock lands and the pom is bumped to it, so let's merge once that's in.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants