Skip to content

Conversation

rubymignot
Copy link

@rubymignot rubymignot commented Sep 18, 2025

What kind of change does this PR introduce?

Feature: Add “Randomize minute” scheduling option (default ON), update CreatePostDto, and wire backend + frontend to support random minute within the selected hour.

Sans-titre-2025-09-18-0303

Why was this change needed?

  • Smoother posting cadence.
  • Gives explicit user control to disable randomization when precise minute is needed.
  • Keeps system consistent by persisting the final publishDate and using it for queue delays.

Key points:

  • Frontend:
    • ManageModal: add “Randomize minute” checkbox (default ON).
    • UX:
      • Unchecking immediately clamps the picker to :00 (visible to user).
      • Rechecking re-randomizes to a different minute.
      • Not showing modal if we're editing.

Other information

  • This is backward compatible for scheduled posting and cron/worker flows (they already rely on publishDate).
  • This is related to Randomize minute within scheduled hour #985
  • This is also my first contribution to open-source!!! Please be nice lol

Checklist

  • I have read the CONTRIBUTING guide.
  • I checked that there were not similar issues or PRs already open for this.
  • This PR fixes just ONE issue (adds random-minute scheduling with a UI toggle, plus DTO).

Copy link

vercel bot commented Sep 18, 2025

@rubymignot is attempting to deploy a commit to the Listinai Team on Vercel.

A member of the Team first needs to authorize it.

@rubymignot rubymignot changed the title Add randomization option for post scheduling in ManageModal and updat… Add randomization option for post scheduling Sep 18, 2025
@rubymignot rubymignot changed the title Add randomization option for post scheduling Add min randomization option for post scheduling Sep 18, 2025
@rubymignot rubymignot changed the title Add min randomization option for post scheduling feat: add minute randomization option for post scheduling Sep 19, 2025
@egelhaus
Copy link
Collaborator

@sentry review

Copy link

⚠️ We couldn't complete your request
Prevent AI only supports U.S. data storage at this time.
📘 Learn more about Prevent AI

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