Skip to content

feat(block-kit): add alert block example - #95

Draft
zimeg wants to merge 4 commits into
mainfrom
feat/block-kit-alert-example
Draft

feat(block-kit): add alert block example#95
zimeg wants to merge 4 commits into
mainfrom
feat/block-kit-alert-example

Conversation

@zimeg

@zimeg zimeg commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

Adds an alert Block Kit example to the Python block-kit showcase, mirroring the official docs example. Alert blocks display notification messages within modals.

  • block-kit/src/blocks/alert.pyexample01() returns an AlertBlock (mrkdwn text, info level), mirroring the docs JSON.
  • block-kit/tests/blocks/test_alert.py — asserts the produced block deep-equals the expected literal.
  • block-kit/README.md — adds the Alert bullet (alphabetical, with docs + implementation links).

Docs

https://docs.slack.dev/reference/block-kit/blocks/alert-block

Validation

Run from block-kit/ against slack_sdk==3.42.0 (per requirements.txt):

  • pytest tests/blocks/test_alert.py — 1 passed
  • pytest (full suite) — 33 passed
  • ruff check / ruff format --check — clean
  • mypy src/blocks/alert.py — no issues

Co-Authored-By: Claude svc-devxp-claude@slack-corp.com

zimeg and others added 2 commits June 26, 2026 16:54
Mirror the official docs alert block example in the Python block-kit
showcase. Alert blocks display notification messages within modals.

Docs: https://docs.slack.dev/reference/block-kit/blocks/alert-block

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg zimeg added enhancement New feature or request python Pull requests that update python code labels Aug 4, 2026
@zimeg zimeg self-assigned this Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant