alephdata / aleph

Search and browse documents and data; find the people and companies you look for.
http://docs.aleph.occrp.org
MIT License
1.97k stars 263 forks source link

Display start and last updated timestamp on system status page #3788

Open tillprochaska opened 2 weeks ago

tillprochaska commented 2 weeks ago

This exposes the two timestamps (that are already returned per collection by the status API) in the UI. Times are relative (for example "45 seconds ago"), but hovering over them displays the full date/time (for example "Fri, Jun 28, 2024, 5:05 PM").

Screen Shot 2024-06-28 at 17 06 20

Todos:

tillprochaska commented 1 week ago

@Rosencrantz I’ve pushed a small update. When testing this with a few larger datasets, I found that the relative times would add a lot of noise. Specifically:

Instead, I’m now displaying just the absolute time (if the date is today) or otherwise the date and time:

Screen Shot 2024-07-04 at 11 19 02

tillprochaska commented 1 week ago

This can be merged as soon as https://github.com/alephdata/servicelayer/pull/190 is released

Rosencrantz commented 1 week ago

Nioce update. I approve!