Skip to content

feat: double freeform post content length to 20000#6282

Merged
idoshamun merged 1 commit into
mainfrom
eng-1823-double-the-post-content-length
Jul 2, 2026
Merged

feat: double freeform post content length to 20000#6282
idoshamun merged 1 commit into
mainfrom
eng-1823-double-the-post-content-length

Conversation

@idoshamun

@idoshamun idoshamun commented Jul 2, 2026

Copy link
Copy Markdown
Member

Doubles the freeform post composer body limit from 10,000 to 20,000 characters.

Changes

  • Bump BODY_MAX_LENGTH from 10_000 to 20_000 in packages/shared/src/components/post/composer/TextForm.tsx. This value is passed as maxInputLength to the rich text editor, so both the hard input cap and the "characters remaining" counter update automatically.

Key decisions

  • The client cap must stay numerically identical to the backend limit (MAX_CONTENT_LENGTH in daily-api, changed in a parallel PR) to preserve the client/server invariant — a client-only bump would let users write text the API rejects.
  • Scope is the freeform post body only; post title and other limits are unchanged.
  • No new test added on the apps side: BODY_MAX_LENGTH drives maxInputLength (and its counter) directly, and the shared testing philosophy keeps the correctness guarantee at the API boundary. Verified via strict typecheck, ESLint, and the existing SmartComposerModal spec that renders the composer.

Closes ENG-1823


Created by Huginn 🐦‍⬛

Preview domain

https://eng-1823-double-the-post-content.preview.app.daily.dev

Raise BODY_MAX_LENGTH from 10,000 to 20,000 characters so the composer's
maxInputLength (and its remaining-characters counter) stays in sync with
the daily-api limit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Jul 2, 2026 1:40pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Jul 2, 2026 1:40pm

Request Review

@idoshamun idoshamun merged commit 6800431 into main Jul 2, 2026
12 checks passed
@idoshamun idoshamun deleted the eng-1823-double-the-post-content-length branch July 2, 2026 13:42
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