As a user
I want to be restricted from selecting future dates when creating or updating transactions
In order to ensure that all transactions reflect actual past or present events.
Description
Acceptance Criteria
Users can only select dates up to and including today’s date.
The date picker will default to the current date for new transactions.
When editing a transaction, the date picker will show the previously selected date, but still limit future dates.
The interface should clearly indicate that future dates are not allowed.
This restriction applies to both the creation and editing of transactions.
[x] Configure the date picker component to allow only dates up to and including today’s date.
[x] Set the default date to today for new transactions.
[x] Disable or grey out future dates in the date picker.
[x] Ensure a validation rule is in place to prevent users from manually entering future dates.
[x] In the edit form: Prepopulate the date picker with the transaction’s existing date but maintain the restriction that prevents users from selecting future dates.
[x] Add clear visual cues indicating that future dates are not allowed.
Value Proposition
As a
user
I want tobe restricted from selecting future dates when creating or updating transactions
In order toensure that all transactions reflect actual past or present events
.Description
Acceptance Criteria
Tasks
feature/restrict-future-dates
.