multica/apps/web/app/layout.tsx
Jiayuan Zhang 78f4d88aa1 feat(web): integrate frontend with live API and add auth context
- Replace all mock data with real API calls across pages (issues, agents, inbox, settings)
- Add AuthProvider context with JWT login/logout, member/agent name resolution
- Implement login page with email-based auth flow
- Add settings page with workspace editing and member list
- Wire up real-time WebSocket for live issue updates

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 11:50:14 +08:00

33 lines
805 B
TypeScript

import type { Metadata } from "next";
import { ThemeProvider } from "@multica/ui/components/theme-provider";
import { AuthProvider } from "../lib/auth-context";
import { WSProvider } from "../lib/ws-context";
import "./globals.css";
export const metadata: Metadata = {
title: "Multica",
description: "AI-native task management",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en" suppressHydrationWarning>
<body>
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<AuthProvider>
<WSProvider>{children}</WSProvider>
</AuthProvider>
</ThemeProvider>
</body>
</html>
);
}