SurfSense/surfsense_web/atoms/layout/right-panel.atom.ts
Anish Sarkar 39ce597907 feat: add HITL edit panel functionality and integrate with existing components
- Introduced HITL edit panel atom for managing state.
- Implemented HITL edit panel component for both desktop and mobile views.
- Updated right panel to include HITL edit tab and handle its visibility.
- Enhanced NewChatPage to incorporate the HITL edit panel for improved user interaction.
2026-03-17 23:33:22 +05:30

8 lines
298 B
TypeScript

import { atom } from "jotai";
export type RightPanelTab = "sources" | "report" | "editor" | "hitl-edit";
export const rightPanelTabAtom = atom<RightPanelTab>("sources");
/** Whether the right panel is collapsed (hidden but state preserved) */
export const rightPanelCollapsedAtom = atom(false);