Skip to content

Setting goals in the past #7

Description

@yarmolya

Currently, the calendar component in your application allows users to set goals with dates in the past. This behavior can lead to confusion and inaccuracies in goal tracking and management. To improve user experience and data integrity, I propose the following enhancements:

- Add minDate to Calendar Component:
Implement a minDate property in the calendar component to restrict users from selecting dates earlier than the current date.
This property should be configurable to allow for flexibility in different use cases.

- Implement Error Message for Past Dates:
If a user tries to set a goal with a date in the past, display a clear and concise error message informing them that past dates are not allowed.

Expected behaviour:
When a user interacts with the calendar to set a goal, dates prior to the current date should be either disabled or not selectable.
If a user somehow manages to select or input a past date (e.g., via manual entry), an error message should be triggered, preventing the creation of the goal and prompting the user to choose a future date.

Best wishes
Olha Yarmolenko

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions