feat(web): admin Logs terminal view with tailing and error details #878

Merged
chris merged 1 commit from feat/admin-logs-terminal into main 2026-09-25 22:36:23 +02:00
Owner

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

  • npm run check: 0 errors in changed files (20 pre-existing warnings elsewhere).
  • npm run build: pass.
  • PLAYWRIGHT_PREVIEW_PORT=4273 node node_modules/@playwright/test/cli.js test admin-operator.spec.ts: 10/10 pass (desktop+mobile).
## 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 - npm run check: 0 errors in changed files (20 pre-existing warnings elsewhere). - npm run build: pass. - PLAYWRIGHT_PREVIEW_PORT=4273 node node_modules/@playwright/test/cli.js test admin-operator.spec.ts: 10/10 pass (desktop+mobile).
feat(web): admin Logs terminal view with tailing and error details
All checks were successful
Wiki Sync / Sync wiki from docs (push) Has been skipped
Build and Deploy / Detect changed services and test scopes (push) Successful in 4s
Build and Deploy / Build postgres image (push) Has been skipped
Build and Deploy / Android unit tests and debug APK (push) Has been skipped
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Smoke people worker (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Deploy postgres (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
Build and Deploy / Run scoped PR tests (push) Successful in 4m6s
67186e3627
chris merged commit a0ea777cbb into main 2026-09-25 22:36:23 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chris/memories!878
No description provided.