Enhance job logging and UI updates

- Implement job logging functionality to track progress and events for each job.
- Add a new section in the job card to display session logs with detailed entries.
- Update job statistics to include pages fetched, pages found, and assets processed.
- Modify the UI theme and text for better clarity and aesthetics.
- Adjust tests to validate new logging features and ensure proper event handling.
This commit is contained in:
kstyagi23
2026-09-05 07:36:34 +05:30
parent 8f9210d6be
commit 2059c275c2
10 changed files with 762 additions and 593 deletions
+3 -1
View File
@@ -255,7 +255,7 @@ class Database:
FROM job_events
WHERE job_id = ? AND id > ?
ORDER BY id ASC
LIMIT 100
LIMIT 250
""",
(job_id, after_id),
).fetchall()
@@ -382,6 +382,7 @@ class Database:
message: str,
stats: dict[str, int],
warnings: list[str] | None = None,
detail: dict[str, object] | None = None,
) -> bool:
now = utcnow()
values = {
@@ -426,6 +427,7 @@ class Database:
"message": message,
"stats": stats,
"warnings": warnings or [],
"detail": detail,
},
)
return True