feat(backup): unified exclusions timeline #1379
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/exclusions-timeline"
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?
Design amendment 2026-10-25: the "Nicht in Memories" timeline becomes ONE list — local exclusions AND server-removed items (UPLOADED + shadowed lifecycle), each with its type-appropriate action: Wieder sichern (local), Wiederherstellen via the existing restore-intent queue (trashed), no button + honest re-add copy (permanently deleted). The separate Vom-Server-entfernt card on the backup screen is gone; the door row counts both halves together. Reconciler/data layer untouched. Tests: 869 green (app 697, core 172).
Design amendment 2026-10-25: ONE list for everything deliberately not in Memories, local or server-side. - ExclusionsViewModel merges the shadowed state rows (UPLOADED + server lifecycle trashed/permanently_deleted) into the same date-grouped sections. The state row's updatedAtEpochMillis is the honest removal- date proxy (the row records the last update, not the removal moment); rows without a timestamp fall under 'Früher'. A shadowed row whose MediaStore id also sits in the local ledger renders once (the local exclusion wins). - Type-appropriate actions: trashed → 'Wiederherstellen' records the same unconditional 'restore' intent (CAS on the tapped lifecycle state) the Entfernungs-Verlauf records — no new server endpoint, the C4-idempotent drain applies it and the next delta pull clears the row. Permanently deleted → NO button (ISSUE-193 honesty): the row shows the existing re-add hint copy. - Visual distinction: thumbnail from the local twin (content URI via the scan resolver; honest CloudOff placeholder when the file is gone) plus a 'Vom Server entfernt' tag line and the removed-history state line ('Im Papierkorb'/'Endgültig entfernt' — existing strings). - BackupScreen: the separate 'Vom Server entfernt' card is gone; the door row now counts excludedEntryCount + shadowedCount via the documented notInMemoriesCount property. The history link lives on the timeline's footer; BackupScreen drops its dead onOpenRemovedHistory. - Reconciler/BackupEngine/data layer untouched (view-only unification). Tests: 16 exclusion-VM tests (5 new: shadowed grouping/kind/tag, no double-listing, trashed→restore queued, purged→no action, queue-write failure) + door-row count test; suite 869 green (app 697, core 172).9e39fedddf2421816eb7