Files
vibn-agent-runner/vibn-frontend/app/[workspace]/project/[projectId]/(home)/layout.tsx
mawkone 9092b9e549 fix(dashboard): remove Analytics, Marketing, Security, Integrations + fix build
- Deleted unused/stub routes: Security, Analytics, Marketing (+SEO/Social), Integrations
- Removed these routes from the Dashboard Sidebar menu
- Fixed Next.js build errors caused by duplicate component declarations (SectionHeader, KvRow) in overview, hosting, services, and infrastructure by relying fully on the unified dashboard-ui kit.
2026-06-13 11:13:37 -07:00

48 lines
1.2 KiB
TypeScript

/**
* Project shell — unified top bar (chat controls | section icons) and a
* split row below (conversation | artifact). No skinny workspace sidebar.
*/
import { ReactNode } from "react";
import { Toaster } from "sonner";
import { ChatPanel } from "@/components/vibn-chat/chat-panel";
import { ProjectStreamHandler } from "@/components/project/project-stream-handler";
import { DashboardSidebar } from "@/components/project/dashboard-sidebar";
export default async function ProjectShell({
children,
params,
}: {
children: ReactNode;
params: Promise<{ workspace: string; projectId: string }>;
}) {
const { workspace, projectId } = await params;
return (
<>
<ProjectStreamHandler projectId={projectId} />
<div style={pageWrap}>
<ChatPanel
structural
artifactSlot={
<DashboardSidebar workspace={workspace} projectId={projectId}>
{children}
</DashboardSidebar>
}
/>
</div>
<Toaster position="top-center" />
</>
);
}
const pageWrap: React.CSSProperties = {
display: "flex",
flexDirection: "column",
flex: 1,
minHeight: 0,
height: "100vh",
background: "#f9fafb",
overflow: "hidden",
};