coronasafe / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
186 stars 348 forks source link

Sort log update events by taken at time rather than event created at time #8046

Open khavinshankar opened 1 week ago

khavinshankar commented 1 week ago

Describe the issue

When users are entering historical log updates into the system, they are often confused by the event log. The confusion arises because events are currently sorted by the date and time they were triggered, rather than by the "measured at" timestamp entered by the users during the log update. This makes it difficult for users to distinguish between past data and the latest changes.

To Replicate

  1. File a log update with the measured at date as today
  2. File a log update with the measured at date as yesterday or any past date
  3. See the events, it's currently sorted based on event creation date, which might be unintuitive for a normal user.

Screenshots

image

Suggested Solution

cc: @nihal467 @sainak @gigincg @aparnacoronasafe

Issue reported by athul doctor