feat(floating-ai): step 2 — create section registry + FloatingChatContext

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Roberto Musso
2026-02-27 22:43:05 +01:00
parent 78b4df1028
commit b4e97e14f3
3 changed files with 181 additions and 2 deletions

View File

@@ -56,6 +56,7 @@ import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/button';
import { AIChatPanel } from '@/components/ai/AIChatPanel';
import { useTheme } from '@/components/theme-provider';
import { FloatingChatProvider } from '@/context/FloatingChatContext';
const NAV_ITEMS = [
{ to: '/', icon: House, label: 'Home' },
@@ -208,6 +209,7 @@ export function AppShell({ children }: AppShellProps) {
}, [openCurtain, closeCurtain]);
return (
<FloatingChatProvider>
<>
<SidebarProvider open={open} onOpenChange={handleOpenChange}>
<AppSidebar
@@ -299,6 +301,7 @@ export function AppShell({ children }: AppShellProps) {
</DialogContent>
</Dialog>
</>
</FloatingChatProvider>
);
}