feat(ui): show relative timestamps on Dashboard and Downloads tables

Converts the Source Health last-check column and the Downloads created-at
column from locale date strings to human-relative times ("6 hours ago").
The absolute timestamp is preserved as a native browser tooltip so full
precision is still one hover away; detail modals keep the absolute form.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-18 15:07:19 -04:00
parent 9f8ce67084
commit ae140dbb0a
4 changed files with 45 additions and 9 deletions
+3 -1
View File
@@ -128,10 +128,12 @@ async def retry_download(download_id: int):
if download.status != DownloadStatus.FAILED:
return jsonify({"error": "Can only retry failed downloads"}), 400
# Reset status to queued
# Reset status to queued and clear prior-run timestamps
download.status = DownloadStatus.QUEUED
download.error_type = None
download.error_message = None
download.started_at = None
download.completed_at = None
await session.commit()
# Queue Celery task to retry the download