Files
GMW/services/frontend/src/app/(dashboard)/messages/page.tsx
T
asepharyana 392db8eba1 feat(frontend): Ambient/WebGL console revamp + lint/type cleanup
Ground-up rebuild of the GMW frontend as an Ambient Field console:
- WebGL ambient background (Three.js shader, drifting motes, reduced-motion aware)
- Glassmorphism dark cyber theme across all 8 routes
- SSR page + client view split with SWR fallback; realtime via WebSocket
- Command palette (Cmd+K), chatbot FAB, guild/channel pickers
- Chart primitives: donut, radial-gauge, area-activity, sparkline, equalizer

Cleanup (review pass):
- Remove stray Puppeteer nav-test/nav-debug scripts
- Replace non-null assertions with guards (dashboard/moderation)
- Drop unused useGuilds fetches in messages/voice views
- Type implicit-any `let` declarations across pages
- Add a11y roles/labels to SVG charts and audio, tidy imports
2026-08-15 20:03:55 +07:00

21 lines
565 B
TypeScript

import { getConfig, getGuilds } from "@/lib/api/server";
import { MessagesView } from "./view";
export const dynamic = "force-dynamic";
export default async function MessagesPage() {
let config: import("@/lib/types/guild").AppConfig | undefined;
let guilds: import("@/lib/types").Guild[] | undefined;
try {
[config, guilds] = await Promise.all([getConfig(), getGuilds()]);
} catch {
/* client hooks surface errors */
}
return (
<MessagesView
initialGuilds={guilds}
initialGuildId={config?.monitorGuildId ?? null}
/>
);
}