feat(palette): ship alert block in default palette#72
Merged
Conversation
The Slack alert block was wired through the type system, editor, and preview but excluded from the default palette to mirror Slack's own Block Kit Builder sidebar. Add it back as a first-class section (Bell icon) with all five severity variants (default, info, warning, error, success) so users can drag it onto the surface without configuring a custom palette. `extraAlertVariant` is retained for backward compatibility with consumers who previously spread it onto a custom palette; its JSDoc now notes the duplicate `alert_warning` id and that the alert ships in the default palette. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
block-kitchen | 5d855d1 | Commit Preview URL Branch Preview URL |
May 19 2026, 10:30 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the Slack alert block to
defaultPaletteas a first-class section (Bell icon) with all five severity variants — Default, Info, Warning, Error, Success — sitting between Structure and Rich Text.Why
The alert block was already wired through the type system (
AlertBlock,AlertLevel), had its own editor (AlertEditor), validated against the schema, and rendered in the preview — but was intentionally excluded fromdefaultPaletteto mirror Slack's own Block Kit Builder sidebar (which doesn't list it because alerts are modal-only). Consumers had to spreadextraAlertVariantonto a custom palette to surface a single variant. With this change, anyone using the default palette gets the alert block out of the box, and the showcase covers every severity level rather than justwarning.extraAlertVariantstays exported for backward compatibility; its JSDoc now flags the duplicatealert_warningid (same handling pattern aslegacyInputVariants).Note: the validator's surface-compatibility check still surfaces "alert not allowed on message surface" if a user drops one onto the default message surface — that's correct behavior, since Slack only accepts alerts on modals.
Test plan
pnpm test— 217 tests pass, including the palette factory schema-validation guardpnpm --dir demo exec vite) — Alert section renders with all 5 variants, no console errorspnpm typecheckpnpm lint🤖 Generated with Claude Code