fix: Enhance daterange_picker range selection
There is currently no validation on the daterange_picker component. As a result users as select nonsensical ranges where the start date is after the end date. This MR addresses that as well as adds functionality to enable a date range limit too.
The originating issue where this requirement was brought up can be found here gitlab#119111 (closed)
Screen recordings
Selecting start date after end date | Selecting start date which results in max range being exceeded | Displaying max range |
---|---|---|
Select_from_date_after_to_date | Max_range_appied_after_selecting_violating_date | Max_range_10_days |
Edited by Brandon Labuschagne