minvws / nl-kat-coordination

Repo nl-kat-coordination for minvws
European Union Public License 1.2
123 stars 55 forks source link

Human readable time on Object table page #3221

Closed stephanie0x00 closed 1 month ago

stephanie0x00 commented 1 month ago

Describe the feature PR #3186 introduces the 'When' column in the Last observed by table to show when an object was last identified. The current timestamp is not human readable, but is already an improvement. A better human readable time stamp would be nicer to the user. For example 2024-10-31 13:37:37 or another time format. I suppose it would also be nice if the user can choose his/her preference for the timestamp formatting.

To Reproduce Steps to reproduce the behavior:

  1. Make sure you have some data in the interface.
  2. Click on Objects > Open any object.
  3. Scroll down to the 'Last observed by' section and view the timestamp

Expected behavior A human readable timestamp for the user.

Screenshots image

OpenKAT version main

ammar92 commented 1 month ago

This is not a bug (since it’s clearly human-readable) but a feature request (for a better format). If the timestamp were missing or incorrect, then it would be a bug.

ammar92 commented 1 month ago

I agree with the suggested format you made. Perhaps we could also use what we already do in other tables, such as the task and report lists, to keep consistency?

underdarknl commented 1 month ago

Ideally I'd also add a warning-state to this table row if the last run was too old. Eg, "warning: this specific Boefje has produces this proof 2 weeks ago, this might be stale data. check the Boefje's task list for errors."