Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: www_lsst_io
-
Labels:None
-
Story Points:6.7
-
Epic Link:
-
Team:SQuaRE
-
Urgent?:No
Description
We want to be able to filter documents by their creation dates (and update dates). We can use https://www.npmjs.com/package/react-date-picker to create a UI that allows a user to specify start/end dates.
This PR enables a user filter by both update and creation timestamps that are now captured by ook since
DM-31674. These new refinements are based on the react-datetime-picker. The date-based filters are implemented with an opt-in button (through RefinementOptIn) because if the date attribute is not present in the record the resource would be immediately excluded from any result, even if the user didn't explicitly initiate a date-based filter. The RefinementOptIn component essentially mounts the refinement component in the virtual DOM only when the user selects it.