feat: implement file deletion functionality and enhance deployment script

This commit is contained in:
Anders Böttcher
2026-05-13 12:35:58 +02:00
parent cf23467be6
commit 9dbbf814b4
10 changed files with 229 additions and 50 deletions
+7 -2
View File
@@ -1,9 +1,14 @@
import Link from "next/link";
import { readMeta, listGroups } from "@/lib/store";
import { getSession } from "@/lib/session";
import BrowseClient from "./BrowseClient";
export default async function BrowsePage() {
const [allRecords, groups] = await Promise.all([readMeta(), listGroups()]);
const [allRecords, groups, session] = await Promise.all([
readMeta(),
listGroups(),
getSession(),
]);
return (
<div className="mx-auto max-w-5xl px-6 py-16">
@@ -31,7 +36,7 @@ export default async function BrowsePage() {
</div>
{/* Client section: search + filter + cards */}
<BrowseClient records={allRecords} groups={groups} />
<BrowseClient records={allRecords} groups={groups} isAdmin={session?.role === "admin"} />
</div>
);
}