feat(web): recent operations (uploads + reprocess) in activity dialog #973

Merged
chris merged 1 commit from feat/processing-operations-web into main 2026-09-30 21:58:34 +02:00
Owner

What

Adds a ProcessingOperation type + optional operations field on the processing summary (frozen contract with the backend lane) and a Recent operations section in the activity dialog:

  • Per-operation card: label + state pill (running=sky, completed=neutral, failed=red)
  • Locale-grouped progress text ("8,000 of 20,000 processed · 12 failed")
  • Thin emerald progress bar while running/completed
  • "View list" link only when failedTotal > 0 (reuses onOpenIncompleteMedia)
  • Legacy batch-activity cards remain as fallback when the backend supplies no operations (old deployments unchanged); hidden when operations are present
  • showEmpty guarded so the empty-state text never renders under a populated operations list

Verification

  • svelte-check --threshold error: 0 errors (6 pre-existing vitest-resolution errors are gone from this tree after sync; 22 pre-existing warnings unchanged)
  • No changes to badge logic, apps/api, or the props contract

Contract

{ key, label, kind, state, enqueuedTotal, processedTotal, failedTotal, startedAt, updatedAt } — matches the parallel backend lane (domain_reprocess_runs + ProcessingSummary.operations) reviewed together before merge.

Deploy note: needs the backend lane merged first for real data; UI is backward compatible on its own.

## What Adds a `ProcessingOperation` type + optional `operations` field on the processing summary (frozen contract with the backend lane) and a **Recent operations** section in the activity dialog: - Per-operation card: label + state pill (running=sky, completed=neutral, failed=red) - Locale-grouped progress text ("8,000 of 20,000 processed · 12 failed") - Thin emerald progress bar while running/completed - "View list" link only when failedTotal > 0 (reuses onOpenIncompleteMedia) - Legacy batch-activity cards remain as fallback when the backend supplies no operations (old deployments unchanged); hidden when operations are present - showEmpty guarded so the empty-state text never renders under a populated operations list ## Verification - `svelte-check --threshold error`: 0 errors (6 pre-existing vitest-resolution errors are gone from this tree after sync; 22 pre-existing warnings unchanged) - No changes to badge logic, apps/api, or the props contract ## Contract `{ key, label, kind, state, enqueuedTotal, processedTotal, failedTotal, startedAt, updatedAt }` — matches the parallel backend lane (domain_reprocess_runs + ProcessingSummary.operations) reviewed together before merge. Deploy note: needs the backend lane merged first for real data; UI is backward compatible on its own.
feat(web): show recent operations (uploads + reprocess runs) in activity dialog
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 5s
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 / Build plants worker image (push) Has been skipped
Build and Deploy / Build converter worker image (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 postgres 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 / Deploy API (push) Has been skipped
Build and Deploy / Build web image (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 2m24s
9f245f8175
Adds a ProcessingOperation type and optional `operations` field on the
processing summary (frozen contract with the backend lane) and a
"Recent operations" section in the activity dialog: per-operation card
with state pill (running/completed/failed), locale-grouped progress
text, thin progress bar, and a failed-only 'View list' link.

The legacy batch-activity cards render only when the backend does not
supply operations, keeping old deployments unchanged. Fixes the gap
where a bulk reprocess showed only in the badge count.
chris merged commit c891ab52d6 into main 2026-09-30 21:58:34 +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!973
No description provided.