Add soft-delete (tombstone) functionality for particles #149
Reference in New Issue
Block a user
Delete Branch "claude/resolve-issue-146-JZGBg"
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
Implements soft-delete functionality for particles, allowing creators to delete their particles while keeping the Firestore document in place. Concurrent viewers see a "This particle was deleted" tombstone message instead of being jumped to the next particle.
Key Changes
New Components:
DeleteParticleOverlay: Modal dialog for confirming particle deletion with keyboard support (Esc to close)DeletedParticleView: Displays a tombstone view for deleted particles with deleter attribution, auto-advances after 2 seconds when not pausedType System Updates:
TombstoneFieldsto particle schema (deleted_at,deleted_by_human_id) for non-container particlesisParticleDeleted()utility function to check if a particle has been soft-deletedBackend Integration:
softDeleteParticle()function to update particle with deletion metadata (idempotent operation)UI Integration:
Implementation Details
https://claude.ai/code/session_01M2ShnZPvWfQzzvuu3Xm8b9