chore: clean diagnostics and prepare for designer structural refactor (stub legacy useActiveStudy)

This commit is contained in:
2025-08-11 16:38:29 -04:00
parent 524eff89fd
commit 779c639465
33 changed files with 5147 additions and 882 deletions

View File

@@ -35,8 +35,12 @@ export default async function DashboardLayout({
const cookieStore = await cookies();
const defaultOpen = cookieStore.get("sidebar_state")?.value === "true";
// Pre-seed selected study from cookie (SSR) to avoid client flash
const selectedStudyCookie =
cookieStore.get("hristudio_selected_study")?.value ?? null;
return (
<StudyProvider>
<StudyProvider initialStudyId={selectedStudyCookie}>
<BreadcrumbProvider>
<SidebarProvider defaultOpen={defaultOpen}>
<AppSidebar userRole={userRole} />