wastewater-intelligence-network / win-mobile-rn

1 stars 1 forks source link

Mark error on sample status page #27

Closed upperwal closed 2 years ago

upperwal commented 2 years ago

Related to #20

Sample log list now has message and error string. Use these to show error in the 3 step details on the sample status fragment

{
    "statusLog": [
            {
                "timestamp": "2022-03-23T13:10:19.617Z",
                "status": "sample_collected"
            },
            {
                "timestamp": "2022-03-23T17:41:51.942Z",
                "status": "sample_in_transit",
                "message": "This sample is not marked for this step",
                "error": "step_skipped"
            },
            {
                "timestamp": "2022-03-23T17:41:51.942Z",
                "status": "sample_received_in_lab"
            }
        ]
}
ahar101 commented 2 years ago

@upperwal Please suggest where we have to integrate this.