feat(web): admin Logs terminal view with tailing and error details #878
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/admin-logs-terminal"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Replaces the admin Logs table with a real log terminal: monospace lines, 5s tailing, filters, and full error text for failed jobs.
Changes
apps/web/src/lib/components/admin/AdminLogsTab.svelte: terminal (role=log, aria-live=polite, focusable scroll region), newest-last rendering, auto-scroll when pinned, "N new ↓" pill when scrolled up, Load older via nextBefore keyset cursor with scroll preservation, status/jobType filters, compact scheduler summary strip reusing existing jobRuns prop, reduced-motion aware auto-scroll.apps/web/src/lib/api/jobEvents.ts: typed client for GET /api/admin/job-events (limit/jobType/status/before).apps/web/tests/admin-operator.spec.ts: rewritten Logs assertions (full dbscan_error message visible, filters, Load older) + new tailing test (poll appends unseen event, no duplicates).Depends on backend endpoint from the parallel API lane (contract: events[], hasMore, nextBefore).
Verification