Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(writers-room): collapse button now lives inside LibraryPane header
Adam Eivy7b0b6e5874e0
diff --git a/client/src/components/writers-room/LibraryPane.jsx b/client/src/components/writers-room/LibraryPane.jsxindex f53ca473e6..4fd51d17f6 100644--- a/client/src/components/writers-room/LibraryPane.jsx+++ b/client/src/components/writers-room/LibraryPane.jsx@@ -1,5 +1,5 @@import { useCallback, useEffect, useMemo, useRef, useState } from 'react';-import { Folder, FolderPlus, FilePlus, FileText, ChevronDown, ChevronRight, Trash2, GripVertical } from 'lucide-react';+import { Folder, FolderPlus, FilePlus, FileText, ChevronDown, ChevronRight, Trash2, GripVertical, PanelLeftClose } from 'lucide-react';import { DndContext, DragOverlay, PointerSensor, useDraggable, useDroppable, useSensor, useSensors } from '@dnd-kit/core';import toast from '../ui/Toast';import {@@ -13,7 +13,7 @@ import { KIND_LABELS } from './labels';const UNFILED_DROP_ID = 'wr-unfiled';-export default function LibraryPane({ folders, works, activeWorkId, onSelectWork, onRefresh }) {+export default function LibraryPane({ folders, works, activeWorkId, onSelectWork, onRefresh, onCollapse }) {const [openFolders, setOpenFolders] = useState({});const [creatingFolder, setCreatingFolder] = useState(false);const [folderName, setFolderName] = useState('');@@ -164,6 +164,16 @@ export default function LibraryPane({ folders, works, activeWorkId, onSelectWork><FilePlus size={14} /></button>+ {onCollapse && (+ <button+ onClick={onCollapse}+ className="hidden md:inline-flex p-1 text-gray-400 hover:text-white"+ title="Hide library"+ aria-label="Hide library"+ >+ <PanelLeftClose size={14} />+ </button>+ )}</div></div>diff --git a/client/src/pages/WritersRoom.jsx b/client/src/pages/WritersRoom.jsxindex cdebee166e..3bedfb4219 100644--- a/client/src/pages/WritersRoom.jsx+++ b/client/src/pages/WritersRoom.jsx@@ -147,21 +147,14 @@ export default function WritersRoom() {</button></aside>) : (- <aside className="border-b md:border-b-0 md:border-r border-port-border bg-port-card/40 px-3 py-3 overflow-y-auto max-h-64 md:max-h-none relative">- <button- onClick={toggleLibrary}- className="hidden md:inline-flex absolute top-2 right-2 p-1 text-gray-500 hover:text-white"- title="Hide library"- aria-label="Hide library"- >- <PanelLeftClose size={14} />- </button>+ <aside className="border-b md:border-b-0 md:border-r border-port-border bg-port-card/40 px-3 py-3 overflow-y-auto max-h-64 md:max-h-none"><LibraryPanefolders={folders}works={works}activeWorkId={activeWork?.id}onSelectWork={selectWork}onRefresh={refreshLibrary}+ onCollapse={toggleLibrary}/></aside>)}