feat(posts): schedule posts from both composers#6283
Open
idoshamun wants to merge 1 commit into
Open
Conversation
Add an optional schedule to post creation. A calendar button next to the submit button opens a popover (desktop) / drawer (mobile) with a datetime picker; the submit label flips to "Schedule". - Scheduling is single-source and non-moderated only (per the API). - New composer supports all post types; scheduledAt is sent on the dedicated single-source mutations (createFreeformPost, createPollPost, submitExternalLink, sharePost). Multi-source never schedules. - Legacy composer covers new posts and polls; the schedule control mirrors the submit button (footer on desktop, FormWrapper header on mobile). - Validation matches the backend: future and within 14 days.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
What
Adds an optional schedule to post creation. A calendar button next to the submit button opens a popover (desktop) / drawer (mobile) with a datetime picker; the submit button label flips to Schedule once a time is set.
Pairs with the daily-api branch
codex/schedule-all-post-types.Scope
SmartComposerModal): all post types.scheduledAtis sent on the dedicated single-source mutations (createFreeformPost,createPollPost,submitExternalLink,sharePost).postInMultipleSourcesnever carriesscheduledAt.squads/create): new posts + polls. The schedule control mirrors the submit button — footer on desktop,FormWrapperheader on mobile. Share is intentionally left to the new composer (its preview-driven flow makes clean scheduling costly).Notes
scheduledAtis stripped on all moderation paths.Test
scheduledPost.spec.ts): future + 14-day cap.scheduledAtand the post doesn't appear in the feed immediately.Preview domain
https://feat-schedule-posts.preview.app.daily.dev