Skip to content

feat(block): add alert block#1552

Merged
nlopes merged 1 commit into
masterfrom
nlopes-add-alert
Apr 22, 2026
Merged

feat(block): add alert block#1552
nlopes merged 1 commit into
masterfrom
nlopes-add-alert

Conversation

@nlopes

@nlopes nlopes commented Apr 18, 2026

Copy link
Copy Markdown
Member

Adds AlertBlock, the third agent-UI block from the April 16 Slack changelog. Uses the functional-options pattern (NewAlertBlock) with severity via AlertBlockOptionLevel (default/info/warning/error/success) and block ID via AlertBlockOptionBlockID. Wires into Blocks.UnmarshalJSON for round-trip fidelity and adds coverage in block_alert_test.go.

Adds `AlertBlock`, the third agent-UI block from the April 16 Slack
changelog. Uses the functional-options pattern (`NewAlertBlock`) with
severity via `AlertBlockOptionLevel` (default/info/warning/error/success)
and block ID via `AlertBlockOptionBlockID`. Wires into
`Blocks.UnmarshalJSON` for round-trip fidelity and adds coverage in
`block_alert_test.go`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@nlopes nlopes force-pushed the nlopes-add-alert branch from 1152247 to 3360933 Compare April 22, 2026 19:46
@nlopes nlopes marked this pull request as ready for review April 22, 2026 19:47
@nlopes nlopes self-assigned this Apr 22, 2026
@nlopes nlopes added this to the v0.23.0 milestone Apr 22, 2026
@nlopes nlopes merged commit ae59061 into master Apr 22, 2026
7 checks passed
@nlopes nlopes deleted the nlopes-add-alert branch April 22, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant