Skip to content

feat: accept rich_text_input min_lines and max_lines with slack-block-kit-validator 0.1.20 - #247

Merged
StephenTangCook merged 1 commit into
mainfrom
claude/youthful-mccarthy-3ljyal
Oct 17, 2026
Merged

StephenTangCook merged 1 commit into
mainfrom
claude/youthful-mccarthy-3ljyal

Conversation

@StephenTangCook

@StephenTangCook StephenTangCook commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Bumps @tightknitai/slack-block-kit-validator ^0.1.19 -> ^0.1.20 (TightknitAI/slack-block-kit-validator#116, released in TightknitAI/slack-block-kit-validator#117). The new version accepts the optional min_lines / max_lines fields (integers, 1-100) on rich_text_input.

Why

Slack now documents min_lines / max_lines on the rich text input element. On 0.1.19 the schema's additionalProperties: false flagged either field as an unknown property, so a valid modal using them showed a validation error and disabled Send.

Part of ENG-6395
Support min_lines / max_lines on Slack rich_text_input element

Test plan

  • pnpm typecheck
  • pnpm lint
  • pnpm test: 731 passed, Storybook browser project included
  • Spot-checked in pnpm storybook (if UI changed): no UI change

New test/rich-text-input.test.ts runs the palette's rich text input through toSlackBlocks and the validator on a modal:

  • toSlackBlocks keeps min_lines / max_lines in the payload sent to Slack.
  • {1, 100}, {3, 20}, min_lines alone and max_lines alone validate clean. All four of these fail on 0.1.19 and pass on 0.1.20.
  • min_lines: 0, max_lines: 101 and min_lines: 2.5 are still rejected.

Notes for reviewer

  • The upstream type change (slack-edge/slack-web-api-client#113) is merged but not on npm yet: the latest release, slack-web-api-client@1.1.15, predates it. So this PR doesn't touch the slack-web-api-client dependency, and the input editor doesn't get Min lines / Max lines fields yet. Both can come once a release that includes chore(deps): Bump the production-dependencies group with 4 updates #113 is published. Until then, the fields can be set from the View JSON drawer.
  • Local hook note: the pre-push hook was skipped because this container lacks the Playwright chromium-1243 build. The full suite above was run against the preinstalled Chromium through a throwaway config instead.

Generated by Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…-kit-validator 0.1.20

Bumps the validator ^0.1.19 -> ^0.1.20, which allows the optional
min_lines / max_lines (integers, 1-100) on rich_text_input. Previously a
payload carrying either field was flagged as an unknown property and
disabled Send. Tests cover accepted values, the 0/101/non-integer
rejections, and that toSlackBlocks keeps both fields.

Refs ENG-6395

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KtEQi8UpxDwUAahvmWnLVU
@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
block-kitchen fb6471d Commit Preview URL

Branch Preview URL
Oct 17 2026, 04:29 AM

@github-actions

Copy link
Copy Markdown
Contributor

Cloudflare preview

✅ Deployed fb6471d · Branch preview · Commit preview · Build logs

@StephenTangCook
StephenTangCook merged commit 83e6c3b into main Oct 17, 2026
13 checks passed
@StephenTangCook
StephenTangCook deleted the claude/youthful-mccarthy-3ljyal branch October 17, 2026 04:44
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.

2 participants