- Remove tw-animate-css import + dead src/components/ui shadcn tree - Convert 7 orphaned components (moderation, analysis, guild-selector, voice/activity-timeline, shared/empty+error) to new primitives - Add missing moderation/view.tsx; analysis uses SearchPanel directly - globals.css now uses new signal-driven ops-console tokens - tsc --noEmit clean, next build green (11 routes), local smoke 200
26 lines
731 B
TypeScript
26 lines
731 B
TypeScript
/**
|
|
* Moderation — Server Component.
|
|
* Seeds moderation stats + action log for SSR first paint; live via WS.
|
|
*/
|
|
import { getModerationActions, getModerationStats } from "@/lib/api/server";
|
|
import ModerationView from "./view";
|
|
|
|
export default async function ModerationPage() {
|
|
const [stats, actions] = await Promise.allSettled([
|
|
getModerationStats().catch(() => undefined),
|
|
getModerationActions(100).catch(() => undefined),
|
|
]);
|
|
return (
|
|
<ModerationView
|
|
initialStats={
|
|
stats.status === "fulfilled" && stats.value ? stats.value : undefined
|
|
}
|
|
initialActions={
|
|
actions.status === "fulfilled" && actions.value
|
|
? actions.value
|
|
: undefined
|
|
}
|
|
/>
|
|
);
|
|
}
|