2026-02-16 13:32:04 -06:00
|
|
|
import { Outlet } from "react-router-dom";
|
|
|
|
|
import { Sidebar } from "./Sidebar";
|
Overhaul UI with shadcn components and new pages
Add shadcn/ui components (badge, button, card, input, select,
separator). Add company context provider. New pages: Activity,
Approvals, Companies, Costs, Org chart. Restyle existing pages
(Dashboard, Agents, Issues, Goals, Projects) with shadcn components
and dark theme. Update layout, sidebar navigation, and routing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:32 -06:00
|
|
|
import { useCompany } from "../context/CompanyContext";
|
|
|
|
|
import {
|
|
|
|
|
Select,
|
|
|
|
|
SelectContent,
|
|
|
|
|
SelectItem,
|
|
|
|
|
SelectTrigger,
|
|
|
|
|
SelectValue,
|
|
|
|
|
} from "@/components/ui/select";
|
2026-02-16 13:32:04 -06:00
|
|
|
|
|
|
|
|
export function Layout() {
|
Overhaul UI with shadcn components and new pages
Add shadcn/ui components (badge, button, card, input, select,
separator). Add company context provider. New pages: Activity,
Approvals, Companies, Costs, Org chart. Restyle existing pages
(Dashboard, Agents, Issues, Goals, Projects) with shadcn components
and dark theme. Update layout, sidebar navigation, and routing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:32 -06:00
|
|
|
const { companies, selectedCompanyId, setSelectedCompanyId } = useCompany();
|
|
|
|
|
|
2026-02-16 13:32:04 -06:00
|
|
|
return (
|
Overhaul UI with shadcn components and new pages
Add shadcn/ui components (badge, button, card, input, select,
separator). Add company context provider. New pages: Activity,
Approvals, Companies, Costs, Org chart. Restyle existing pages
(Dashboard, Agents, Issues, Goals, Projects) with shadcn components
and dark theme. Update layout, sidebar navigation, and routing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:32 -06:00
|
|
|
<div className="flex h-screen bg-background text-foreground">
|
2026-02-16 13:32:04 -06:00
|
|
|
<Sidebar />
|
Overhaul UI with shadcn components and new pages
Add shadcn/ui components (badge, button, card, input, select,
separator). Add company context provider. New pages: Activity,
Approvals, Companies, Costs, Org chart. Restyle existing pages
(Dashboard, Agents, Issues, Goals, Projects) with shadcn components
and dark theme. Update layout, sidebar navigation, and routing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:32 -06:00
|
|
|
<div className="flex-1 overflow-auto">
|
|
|
|
|
<header className="bg-card border-b border-border px-8 py-3 flex items-center justify-end">
|
|
|
|
|
<label className="text-xs text-muted-foreground mr-2">Company</label>
|
|
|
|
|
<Select
|
|
|
|
|
value={selectedCompanyId ?? ""}
|
|
|
|
|
onValueChange={(value) => setSelectedCompanyId(value)}
|
|
|
|
|
>
|
|
|
|
|
<SelectTrigger className="w-48 h-8 text-sm">
|
|
|
|
|
<SelectValue placeholder="No companies" />
|
|
|
|
|
</SelectTrigger>
|
|
|
|
|
<SelectContent>
|
|
|
|
|
{companies.map((company) => (
|
|
|
|
|
<SelectItem key={company.id} value={company.id}>
|
|
|
|
|
{company.name}
|
|
|
|
|
</SelectItem>
|
|
|
|
|
))}
|
|
|
|
|
</SelectContent>
|
|
|
|
|
</Select>
|
|
|
|
|
</header>
|
|
|
|
|
<main className="p-8">
|
|
|
|
|
<Outlet />
|
|
|
|
|
</main>
|
|
|
|
|
</div>
|
2026-02-16 13:32:04 -06:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|