Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Jul 19, 2024

Conversation

tillprochaska
Copy link
Contributor

@tillprochaska tillprochaska commented Jun 28, 2024

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:

Copy link
Contributor

@Rosencrantz Rosencrantz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such a small change!

@tillprochaska tillprochaska force-pushed the feature/status-page-timestamps branch 2 times, most recently from bf4c974 to 81bcc73 Compare July 4, 2024 09:34
@tillprochaska
Copy link
Contributor Author

@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:

  • The rendered relative times update constantly even if the actual values doesn’t change. For example, even if there has been no update to a collection, "last updated now" will become "last updated 3 seconds ago", …
  • The length of the rendered values changes frequently which can cause line breaks and layout shifts. This makes it more difficult to visually track a specific row/value, as it’s position on the page changes.

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
Copy link
Contributor Author

This can be merged as soon as alephdata/servicelayer#190 is released

@Rosencrantz
Copy link
Contributor

Nioce update. I approve!

With relative times, when looking at a full status page, there will be a lot of numbers that are constantly updated. For example, even if "last updated" hasn’t changed, how it is rendered will change over time (from "last updated now" to "last updated 5 seconds ago" etc.) In addition, the different lengths of the rendered strings can cause layout shifts/line breaks. This makes it more difficult to track a specific row and to identify values that have actually changed. Instead, I’m now displaying the absolute time (if the day is today) or the absolute date and time. This leads to a slightly less cluttered and noisy UI.
@tillprochaska tillprochaska force-pushed the feature/status-page-timestamps branch from 81bcc73 to e6a4dde Compare July 19, 2024 10:36
@stchris stchris merged commit f220131 into release/4.0.0 Jul 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants