Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-1846

Refactor today option in SimpleSearch date selection

    XMLWordPrintable

    Details

    • Template:
    • Development Team:
      Bienenvolk

      Description

      This component is getting slightly unwieldy.

      • It may be better to reimagine this as "SimpleSearchDatePicker" (Or "TokenisedDatePicker" or something like that)
        • a single field
        • internal controls for translating between tokens and dates
        • dealing with initialValues in a smarter way.

      This is more work, but will be a nicer component, and clean up the Form considerably

      • Similar approach will be wanted for the Internal Contact UUID filter
      • (replaces the current approach of hidden fields to track relative vs absolute)
      • Changes needed to initialValues functions etc
      • Remove custom css and instead use the Layout component instead

       

      This will allow us to reuse this component as a "relative date selector" elsewhere should we wish to with minimum effort.

      We also need to create an RTL test for this component, which might as well wait for this work

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                jag.goraya Jag Goraya
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    TestRail: Runs

                      TestRail: Cases