Show last listing update time next to connection status in header

Add last_updated timestamp to /api/status endpoint by querying
MAX(last_seen) across both listing tables. Display it in the
HealthIndicator as relative time (e.g. "2h ago") with full
date/time in the tooltip on hover.
This commit is contained in:
Viktor Barzin 2026-02-17 19:54:15 +00:00
parent 7833bd3ecf
commit 2d6726dcd7
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 55 additions and 5 deletions

View file

@ -16,7 +16,8 @@ class TestStatusEndpoint:
"""Test that status endpoint returns OK status."""
response = await async_client.get("/api/status")
assert response.status_code == 200
assert response.json() == {"status": "OK"}
assert response.json()["status"] == "OK"
assert "last_updated" in response.json()
class TestListingEndpoint: