@@ -4,11 +4,6 @@ import { AppSidebar } from "./AppSidebar";
44import { Toaster } from "sonner" ;
55import { useNavigationStore } from "@/stores/navigationStore" ;
66import { PanelGroup , Panel , PanelResizeHandle } from "react-resizable-panels" ;
7- import {
8- ResizableHandle ,
9- ResizablePanel ,
10- ResizablePanelGroup ,
11- } from "@/components/ui/resizable" ;
127import {
138 FileExplorerPanel ,
149 McpPanel ,
@@ -20,18 +15,16 @@ import AgentsView from "@/views/AgentsView";
2015import { WebPreview } from "../WebPreview" ;
2116import { useLayoutStore } from "@/stores" ;
2217import { DiffViewer } from "../filetree/DiffViewer" ;
23- import { NoteList , NoteEditor } from "../notes" ;
24- import { useNoteStore } from "@/stores/useNoteStore" ;
2518import LoginView from "@/views/LoginView" ;
2619import { SkillsView } from "../skills/SkillsView" ;
2720import { HomeView } from "@/views/HomeView" ;
21+ import { NoteView } from "@/views/NoteView" ;
2822
2923export function Layout ( ) {
3024 const { mainView, rightView, setRightView, setMainView } =
3125 useNavigationStore ( ) ;
3226 const { webPreviewUrl, setWebPreviewUrl, diffFile, selectedFile } =
3327 useLayoutStore ( ) ;
34- const { showNoteList } = useNoteStore ( ) ;
3528
3629 const handleTabChange = ( view : string ) => {
3730 setMainView ( view as any ) ;
@@ -77,7 +70,7 @@ export function Layout() {
7770 { mainView === "codex" && < ChatView /> }
7871 { mainView === "agents-editor" && < AgentsView /> }
7972 { mainView === "login" && < LoginView /> }
80- { mainView === "prompt" && < NoteList /> }
73+ { mainView === "prompt" && < NoteView /> }
8174 { mainView === "mcp" && < McpPanel /> }
8275 { mainView === "skills" && < SkillsView /> }
8376 { mainView === "usage" && < UsagePanel /> }
@@ -98,38 +91,7 @@ export function Layout() {
9891 minSize = { 20 }
9992 className = "overflow-hidden"
10093 >
101- { rightView === "notepad" ? (
102- < ResizablePanelGroup
103- direction = "horizontal"
104- className = "h-full w-full overflow-hidden"
105- >
106- { showNoteList && (
107- < >
108- < ResizablePanel
109- id = "notepad-list"
110- order = { 1 }
111- defaultSize = { 30 }
112- minSize = { 0 }
113- className = "min-w-0 overflow-hidden"
114- >
115- < div className = "h-full w-full overflow-auto" >
116- < NoteList />
117- </ div >
118- </ ResizablePanel >
119- < ResizableHandle withHandle />
120- </ >
121- ) }
122- < ResizablePanel
123- id = "notepad-editor"
124- order = { showNoteList ? 2 : 1 }
125- defaultSize = { showNoteList ? 70 : 100 }
126- minSize = { 50 }
127- className = "min-w-0 overflow-hidden"
128- >
129- < NoteEditor />
130- </ ResizablePanel >
131- </ ResizablePanelGroup >
132- ) : rightView === "webPreview" ? (
94+ { rightView === "webPreview" ? (
13395 < div className = "h-full overflow-auto" >
13496 < WebPreview
13597 url = { webPreviewUrl || "" }
0 commit comments