Skip to content

feat(polls): add duration presets and poll preview in composer#373

Open
dmnyc wants to merge 2 commits into
mainfrom
feat/poll-end-date-presets
Open

feat(polls): add duration presets and poll preview in composer#373
dmnyc wants to merge 2 commits into
mainfrom
feat/poll-end-date-presets

Conversation

@dmnyc

@dmnyc dmnyc commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Replaces the bare DatePicker with a chip row of preset durations — 1h / 6h / 12h / 1d / 3d / 7d / ∞ — defaulting to 1 day
  • A "Custom end date" toggle below the chip row reveals a DatePicker for arbitrary date/time selection
  • Poll options now render in the composer preview card so the author can see the full poll before publishing

Closes #371 · Follow-up to #367

Screenshots

image image

Test plan

  • Create a standard poll — confirm the chip row appears and defaults to 1d
  • Tap each preset and confirm the "Ends …" label updates accordingly
  • Tap ∞ — confirm the "Ends …" label disappears
  • Enable "Custom end date" — confirm the chip row deselects and the DatePicker appears
  • Pick a custom date — confirm the "Ends …" label reflects the chosen time
  • Toggle "Custom end date" off — confirm it snaps back to 1d
  • Add two poll options and confirm they appear in the preview card below the composer

dmnyc added 2 commits June 14, 2026 21:00
Replace the single DatePicker with a chip row of preset durations
(1h / 6h / 12h / 1d / 3d / 7d / ∞), defaulting to 1 day. A
"Custom end date" toggle below the row reveals a DatePicker for
arbitrary dates. Poll options are now rendered in the composer
preview card so the user can see the full poll before publishing.

Closes #371
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.

ux(composer): polls should default to a 1-day end date with preset duration picker

1 participant