feat: implement session snapshot creation and history viewing with new pages and components.

This commit is contained in:
Michael committed 2026-02-22 13:29:12 +01:00
1 parent 7765f97a1f
commit c9cf83d4c7
7 files changed
+309 -22

No files matched your search

@@ -0,0 +1,15 @@
"use server";
import { db } from "@/db";
import { sessionSnapshots } from "@/db/schema";
import { eq } from "drizzle-orm";
export async function deleteSnapshot(id: number) {
try {
await db.delete(sessionSnapshots).where(eq(sessionSnapshots.id, id));
return { success: true };
} catch (err) {
console.error(err);
return { success: false, error: "Delete failed" };
}
}