MemoryCleanupPanel
Panel for reviewing and pruning stale or low-confidence memory entries in bulk.
Preview
- Dormantunused 41d
User was exploring React Query v4 migration path for the XFA dashboard.
- Low confidence32% conf
Joey mentioned wanting to try Bun for the build pipeline.
- Expiredexpired 18d ago
Q1 sprint planning complete — shipping authentication redesign.
- Duplicateduplicates f-001
User prefers TypeScript (duplicate of f-001 with lower confidence).
Variants
Empty state
Memory is tidy — nothing flagged.
Props
| Prop | Type | Description |
|---|---|---|
| candidates* | CleanupCandidate[] | Facts flagged for cleanup. Empty array renders the "memory is tidy" state. |
| onPurge | (id: string) => void | Called with the candidate ID after the user confirms a single purge. |
| onPurgeAll | () => void | Called after the user confirms "Purge all". Only shown when candidates is non-empty. |
| className | string | Additional CSS classes for the section root. |
* required.
Usage
import { MemoryCleanupPanel } from "@/components/memory/memory-cleanup-panel";
<MemoryCleanupPanel
candidates={flaggedFacts}
onPurge={(id) => removeFact(id)}
onPurgeAll={() => removeAll()}
/>