feat: Selective article restore from snapshot #58
Reference in New Issue
Block a user
Delete Branch "%!s()"
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
Allow users to browse articles inside a snapshot and selectively restore individual articles rather than restoring the entire content type.
UI
Why
Often a user only needs to recover a single article that was accidentally deleted or corrupted. Full replace mode is too destructive, and merge mode restores everything. Selective restore fills this gap.
Files
src/Engine/SnapshotRestoreEngine.php— addrestoreSelectedArticles(int $snapshotId, array $articleIds)methodsrc/Controller/SnapshotsController.php— addbrowse()andrestoreSelected()actionstmpl/snapshots/— browse modal or sub-view