Add daily snapshots system (7 days)

This commit is contained in:
root
2026-02-22 16:39:12 +00:00
parent f29a2b9714
commit 98334847dc
@@ -64,6 +64,7 @@ const sidebarCategories: SidebarCategory[] = [
]},
{ id: "memory", name: "Memory", icon: "🧠", items: [
{ id: "logs", name: "Session Logs", icon: "📝", category: "memory" },
{ id: "snapshots", name: "Snapshots", icon: "📸", category: "snapshots" },
]},
{ id: "docs", name: "Docs", icon: "📚", items: [
{ id: "docs-index", name: "Documentation", icon: "📚", category: "docs" },
@@ -411,6 +412,45 @@ export default function MissionControlDashboard({ onLogout }: MissionControlDash
</div>
)}
{currentItem?.category === "snapshots" && (
<div className="rounded-xl border border-white/10 bg-white/5 p-6">
<div className="flex items-center justify-between mb-4">
<h3 className="text-lg font-semibold">📸 Daily Snapshots</h3>
<span className="text-xs text-white/50">Last 7 days</span>
</div>
<p className="text-white/60 mb-4">Weekly snapshots of Mission Control state</p>
<div className="space-y-2">
<div className="p-3 rounded-lg bg-white/5 border border-white/10">
<div className="flex items-center justify-between">
<span className="text-sm font-medium">2026-02-22</span>
<span className="text-xs text-green-400">✓ Saved</span>
</div>
</div>
<div className="p-3 rounded-lg bg-white/5 border border-white/10">
<div className="flex items-center justify-between">
<span className="text-sm font-medium">2026-02-21</span>
<span className="text-xs text-green-400">✓ Saved</span>
</div>
</div>
<div className="p-3 rounded-lg bg-white/5 border border-white/10">
<div className="flex items-center justify-between">
<span className="text-sm font-medium">2026-02-20</span>
<span className="text-xs text-green-400">✓ Saved</span>
</div>
</div>
<div className="p-3 rounded-lg bg-white/5 border border-white/10 opacity-50">
<div className="flex items-center justify-between">
<span className="text-sm font-medium">2026-02-19</span>
<span className="text-xs text-white/40">-</span>
</div>
</div>
</div>
<p className="text-xs text-white/40 mt-4 text-center">
Snapshots taken daily at midnight. Max 7 days retained.
</p>
</div>
)}
{currentItem?.category === "docs" && (
<div className="rounded-xl border border-white/10 bg-white/5 p-6">
<h3 className="text-lg font-semibold mb-4">📚 Documentation</h3>