mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
- Added editor panel state management using Jotai atoms. - Integrated editor panel into the right panel and documents sidebar. - Updated DocumentsTableShell to open the editor panel on edit action. - Enhanced NewChatPage to close the editor panel when navigating away. - Improved context menu actions for document editing and deletion.
8 lines
284 B
TypeScript
8 lines
284 B
TypeScript
import { atom } from "jotai";
|
|
|
|
export type RightPanelTab = "sources" | "report" | "editor";
|
|
|
|
export const rightPanelTabAtom = atom<RightPanelTab>("sources");
|
|
|
|
/** Whether the right panel is collapsed (hidden but state preserved) */
|
|
export const rightPanelCollapsedAtom = atom(false);
|