Skip to content

Fix Activity Date Selector: Replace Yesterday with Tomorrow and Enable Custom Date Selection #299

Description

@srush0

Type

  • Bug Fix
  • Enhancement

Problem

The Activity date selector currently provides the options:

  • Today
  • Yesterday
  • Custom

For activity creation, having a Tomorrow option is more useful than Yesterday.

Additionally, the Custom date option is available in the selector, but the user should be able to open the date picker and select or change a custom date properly.

Expected Behavior

The Activity date selector should provide:

  • Today → selects today's date
  • Tomorrow → selects tomorrow's date
  • Custom → opens a date picker where the user can select any date

The selected custom date should be applied to the activity and should remain changeable by selecting Custom again.

Changes

  • Replace the Yesterday option with Tomorrow.
  • Update the date calculation and selection logic accordingly.
  • Ensure the Custom option opens the date picker correctly.
  • Allow users to change the selected custom date.
  • Preserve the existing date change and activity-saving behavior.

Testing

  • Verify Today selects today's date.
  • Verify Tomorrow selects tomorrow's date.
  • Verify Custom opens the date picker.
  • Verify a custom date can be selected.
  • Verify the custom date can be changed again.
  • Verify the selected date is saved correctly with the activity.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions