PythonDataScience24 / GymGenie

Advance Python Project
MIT License
0 stars 0 forks source link

Setting goals in the past #7

Open yarmolya opened 2 months ago

yarmolya commented 2 months ago

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