diff --git a/src/components/EmbedLayout.tsx b/src/components/EmbedLayout.tsx index 714ecdf..03659c4 100644 --- a/src/components/EmbedLayout.tsx +++ b/src/components/EmbedLayout.tsx @@ -7,15 +7,16 @@ interface EmbedLayoutProps { export const EmbedLayout: Component = (props) => { return (
-
+
{props.children}
+
); diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index b9e659e..c5f7b69 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,6 +1,6 @@ import { type Component, type JSX, createSignal, createEffect, Show, lazy, Suspense, onMount, onCleanup } from "solid-js"; import { Sidebar, BottomNav, ContextSwitcher } from "./Navigation"; -import { store, setStore, activeTaskId, setActiveTaskId } from "@/store"; +import { store, setStore, activeTaskId, setActiveTaskId, requestImmediateNotesMetadataLoad } from "@/store"; import { PanelLeftOpen, PanelLeftClose } from "lucide-solid"; const TaskDetail = lazy(() => import("./TaskDetail").then(m => ({ default: m.TaskDetail }))); @@ -54,6 +54,12 @@ export const Layout: Component = (props) => { // Derived active task for the detail view const activeTask = () => store.tasks.find(t => t.id === activeTaskId()); + createEffect(() => { + if (store.isNotepadMode) { + void requestImmediateNotesMetadataLoad(); + } + }); + return (
{/* Desktop UI Container */} @@ -189,25 +195,20 @@ export const Layout: Component = (props) => {
{/* Sync Progress Bar Overlay */} - +
{/* Main Content Area */} -
+
diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx index f17f876..d14018c 100644 --- a/src/components/Navigation.tsx +++ b/src/components/Navigation.tsx @@ -58,7 +58,13 @@ export const BottomNav: Component<{ currentView: string; setView: (v: string) => }; return ( -
}> + {store.isNotesLoading ? "Loading notes..." : "No notes found."}
}> {(note) => (