Skip to content

feat(task-card): edit details and output rich-text fields in the UI#79

Merged
StephenTangCook merged 3 commits into
mainfrom
claude/upbeat-swartz-7c8e0c
May 20, 2026
Merged

feat(task-card): edit details and output rich-text fields in the UI#79
StephenTangCook merged 3 commits into
mainfrom
claude/upbeat-swartz-7c8e0c

Conversation

@StephenTangCook
Copy link
Copy Markdown
Contributor

Summary

  • The task_card block editor only exposed title, task_id, status, and sources. Slack's task_card block also accepts rich-text details and output fields, but the only way to populate them in this builder was to drop in a palette preset that already included them — once added, they couldn't be edited or removed.
  • Adds togglable rich-text sections for details and output to the Task Card editor, backed by the existing RichTextEditor (TipTap WYSIWYG with a structured fallback). Each starts as an "Add details" / "Add output" button when unset, and gains a remove affordance when present, mapping cleanly to the optional fields on the payload.

Test plan

  • pnpm run typecheck passes
  • pnpm test passes (113/113 non-browser tests; browser tests require local Playwright Chromium)
  • Manually verified in the demo: add a Task Card, open the editor, click "Add details" / "Add output", type text in each, and confirm the emitted JSON contains the expected details and output rich_text payloads.
  • Verified "Remove details" / "Remove output" drops the field from the block payload.

🤖 Generated with Claude Code

The task_card editor only exposed title, task_id, status, and sources.
Slack's task_card block also accepts rich-text `details` and `output`
fields, but the only way to set them was to drop in a palette variant
that already included them. Add togglable rich-text sections for both,
backed by the existing rich-text editor, with add/remove affordances
that map cleanly to the optional payload shape.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown
Contributor

cloudflare-workers-and-pages Bot commented May 20, 2026

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 2f94f2d Commit Preview URL

Branch Preview URL
May 20 2026, 09:10 PM

StephenTangCook and others added 2 commits May 20, 2026 14:06
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replace the editor's hand-written help strings with the exact phrasing
from docs.slack.dev so the menu reads like the upstream reference
(task_id, title, status, details, output, sources).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@StephenTangCook StephenTangCook merged commit de41c81 into main May 20, 2026
13 checks passed
@StephenTangCook StephenTangCook deleted the claude/upbeat-swartz-7c8e0c branch May 20, 2026 21:13
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.

1 participant