ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

feat(datepicker): add support for disabling past dates

Open ShivaGupta-14 opened this issue 1 year ago • 2 comments

Feature Request: Consistent and Valid Date Rules for Tasks

Is your feature request related to a problem? Please describe.

Some task dates can currently be selected in invalid or illogical ways. Examples include:

  • Selecting a due date in the past
  • Selecting an end date that happens before start or entry
  • Lack of clarity around editing entry date
    This leads to inconsistent or impossible task timelines.

Describe the solution you'd like

Introduce consistent date-selection rules across the app:

1. Due Date

  • Allow selecting today or any future date only
  • Prevent choosing past dates

2. End Date

  • End date must be on or after the later of:
    • Start Date
    • Entry Date
  • This prevents invalid timelines like ending before starting.

3. Start Date

  • Start date should be on or after Entry Date

4. Entry Date (clarification needed)

  • Should users be allowed to change Entry Date to any past date?
  • Or should Entry stay fixed as “date task was created”?

5. Wait Date (clarification needed)

  • Need guidance on expected behavior:
    • Does it mean: “task should not begin / remain hidden until this date”?
    • Should past wait dates be allowed?

Describe alternatives you've considered

  • Validating dates only when saving the task (less intuitive)
  • Allowing all selections and only showing warnings (still allows mistakes)

Additional context

We already parse Taskwarrior timestamps and use DatePicker components.
Implementing these rules will prevent incorrect data entry and create a more intuitive user experience.

Screenshots : Image Image

  • [x] I want to work on this issue.

ShivaGupta-14 avatar Nov 20 '25 17:11 ShivaGupta-14

@its-me-abhishek

I’ve already implemented the parts I’m sure about (due date + end date rules). I just need clarity on Entry Date and Wait Date. Once that’s confirmed, I’ll finish the rest and open a PR.

Please assign this issue to me.

ShivaGupta-14 avatar Nov 20 '25 17:11 ShivaGupta-14

Closed as Discussed on Zulip

its-me-abhishek avatar Nov 20 '25 17:11 its-me-abhishek