mirror of
https://github.com/temetro/temetro.git
synced 2026-08-21 15:36:47 +00:00
eb94c1549a
- Fix clinic onboarding loop: refresh session after setActive before navigating, surface setActive errors, and guard AppAuthGuard's onboarding redirect race (#1) - Add a mobile-only floating top-right SidebarTrigger so the sidebar is reachable when the offcanvas sidebar is closed on phones (#5) - Make notifications clickable: navigate to the source (conversation/patient) and mark read; MessagesView/PatientsView honor ?conversation= / ?file= deep links (#6) - Analysis page: add an Overview header with a time-range segmented control and a Customize popover that shows/hides sections; range slices month-based charts (#10) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
26 lines
780 B
TypeScript
26 lines
780 B
TypeScript
import { AppAuthGuard } from "@/components/auth/app-auth-guard";
|
|
import { CommandPaletteProvider } from "@/components/command-palette";
|
|
import { DashboardSidebar } from "@/components/sidebar-02/app-sidebar";
|
|
import { MobileSidebarTrigger } from "@/components/sidebar-02/mobile-sidebar-trigger";
|
|
import { SidebarProvider } from "@/components/ui/sidebar";
|
|
|
|
export default function AppLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<AppAuthGuard>
|
|
<CommandPaletteProvider>
|
|
<SidebarProvider>
|
|
<div className="relative flex h-dvh w-full">
|
|
<DashboardSidebar />
|
|
<MobileSidebarTrigger />
|
|
{children}
|
|
</div>
|
|
</SidebarProvider>
|
|
</CommandPaletteProvider>
|
|
</AppAuthGuard>
|
|
);
|
|
}
|