feat: add server column to global activity log

This commit is contained in:
2026-03-23 22:12:10 +01:00
parent 36c31fa790
commit 2d85b63775
5 changed files with 81 additions and 64 deletions

View File

@@ -1,13 +1,16 @@
import { requireAuth } from '@/lib/auth/server';
import { getServers } from '@/lib/api/server/servers';
import { ActivityLogTable } from '@/components/activityLog/ActivityLogTable';
export default async function ActivityLogPage() {
await requireAuth();
const session = await requireAuth();
const servers = await getServers(session.token!);
const serverOptions = servers.map((s) => ({ id: s.id, name: s.name }));
return (
<main className="p-5">
<h1 className="mb-5 text-lg font-semibold text-primary">Activity Log</h1>
<ActivityLogTable />
<ActivityLogTable servers={serverOptions} />
</main>
);
}