feat(web): activity dialog rows are actions, process types become details #1398

Merged
chris merged 1 commit from feat/activity-dialog-causes into main 2026-10-25 23:29:56 +01:00
Owner

Summary

Follow-up to #1391 implementing product-owner feedback: top-level dialog entries must be the ACTION that caused processing ("Upload von Bildern", "Einstellung geändert", "Manueller Reprocess: ..."), never the process type. Codes against the API contract from the processing-operations PR (optional cause field on operations; the dialog degrades gracefully against today's backend without it).

  • Top level = actions only: upload row (unchanged) + one row per non-upload operation with localized cause titles ("Pflanzenerkennung zurückgesetzt", "Personen neu clustern", "Videovorschauen nachgenerieren", ...). Unknown server labels render verbatim; missing cause = today's behavior.
  • Lifetime lanes are never top-level anymore: lanes with accumulated failures render in a visually separated flat "Benötigt Aufmerksamkeit" section (muted lines, red counters — historical failures without a cause, e.g. the 2260 plants failures). Lanes with active unclaimed work collapse into ONE "Hintergrundverarbeitung" group row (spinner + pulsing bar, details on expand).
  • Defensive fixes: batch lanes are only claimed when an upload operation actually renders them (old-backend recentBatch-without-operations no longer swallows lanes); the group row rebuilds reactively.
  • i18n: 19 new keys x de/en/da; paraglide compiled.

Validation

  • npm run check: 0 errors
  • vitest (activity, dialog spec, i18n guards, stores): 87 passed
  • npm run build + playwright desktop (activity-dialog, upload-status): 12 passed
## Summary Follow-up to #1391 implementing product-owner feedback: top-level dialog entries must be the ACTION that caused processing ("Upload von Bildern", "Einstellung geändert", "Manueller Reprocess: ..."), never the process type. Codes against the API contract from the processing-operations PR (optional `cause` field on operations; the dialog degrades gracefully against today's backend without it). - **Top level = actions only**: upload row (unchanged) + one row per non-upload operation with localized cause titles ("Pflanzenerkennung zurückgesetzt", "Personen neu clustern", "Videovorschauen nachgenerieren", ...). Unknown server labels render verbatim; missing cause = today's behavior. - **Lifetime lanes are never top-level anymore**: lanes with accumulated failures render in a visually separated flat "Benötigt Aufmerksamkeit" section (muted lines, red counters — historical failures without a cause, e.g. the 2260 plants failures). Lanes with active unclaimed work collapse into ONE "Hintergrundverarbeitung" group row (spinner + pulsing bar, details on expand). - Defensive fixes: batch lanes are only claimed when an upload operation actually renders them (old-backend recentBatch-without-operations no longer swallows lanes); the group row rebuilds reactively. - i18n: 19 new keys x de/en/da; paraglide compiled. ## Validation - `npm run check`: 0 errors - vitest (activity, dialog spec, i18n guards, stores): 87 passed - `npm run build` + playwright desktop (activity-dialog, upload-status): 12 passed
feat(web): make activity rows action-based with needs-attention section
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 3s
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 postgres image (push) Has been skipped
Build and Deploy / Build Android CI image (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 / Android unit tests and debug APK (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 / Deploy review instance (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 8m21s
a02ae92ee9
Top-level rows are now the ACTION that caused processing, never the
process type. Non-upload operations get titles composed from the new
optional ProcessingOperation.cause/label contract (manual_reprocess ->
"<Domain> reprocess", known settings/backfill labels map to localized
titles via substring heuristics with honest raw-label fallback).

Lifetime lanes NEVER render as top-level rows anymore:
- failed-only inactive lanes flatten into a visually separated
  "Needs attention" section (red counts, no spinner, no accent);
- active unclaimed lanes (old-backend fallback) group under ONE
  collapsed "Background processing" row with spinner + pulsing bar;
- lanes with failures AND active work join the background group only
  (no double-listing); batch lanes are claimed only when an upload
  operation actually renders them.

Dialog works unchanged against today's backend (no cause fields):
server labels stay as titles, lanes flow to background/attention blocks.

New i18n keys (de/en/da): activityAttentionHeading,
activityBackgroundGroupTitle, 17 cause-title messages. Specs updated to
the new model (35 unit/component cases) and e2e adjusted for the
grouping (12 playwright cases).
chris merged commit 1a16d2a18d into main 2026-10-25 23:29:56 +01: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!1398
No description provided.