YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
style(sidebar): move search icon next to collapse button
Louis Beaumont7e7bb3c60376
diff --git a/apps/screenpipe-app-tauri/app/home/page.tsx b/apps/screenpipe-app-tauri/app/home/page.tsxindex c067c1c41..3f9e08ed3 100644--- a/apps/screenpipe-app-tauri/app/home/page.tsx+++ b/apps/screenpipe-app-tauri/app/home/page.tsx@@ -17,6 +17,7 @@ import {Volume2,PanelLeftClose,PanelLeftOpen,+ Search,Sparkles,Phone,X,@@ -435,6 +436,36 @@ function HomeContent() {</TooltipContent></Tooltip>+ {/* Search — sits to the right of the collapse icon, same+ row as the macOS traffic lights. Removes the duplicate+ search button that used to live inside the embedded+ timeline's controls. Click → switch to Timeline (so the+ modal has a host) and emit open-search; the standalone+ Search window flow stays via the standalone timeline+ button. */}+ <Tooltip>+ <TooltipTrigger asChild>+ <button+ onClick={() => {+ setActiveSection("timeline");+ void emit("open-search");+ }}+ aria-label="search"+ className={cn(+ "absolute top-2 z-20 p-1 rounded-md transition-colors",+ // 28px right of the collapse icon (icon 16 + gap 8 + small breathing).+ isMac ? "left-[110px]" : "left-9",+ isTranslucent ? "vibrant-nav-item" : "text-muted-foreground hover:text-foreground hover:bg-muted/50"+ )}+ >+ <Search className="h-4 w-4" />+ </button>+ </TooltipTrigger>+ <TooltipContent side="bottom" className="text-xs">+ search <kbd className="ml-1 px-1 py-0.5 bg-muted rounded text-[10px]">⌘K</kbd>+ </TooltipContent>+ </Tooltip>+<div className={cn(isTranslucent ? "vibrant-sidebar-border" : "", "border-b", sidebarCollapsed ? "px-2 py-3" : "px-4 py-3")}>{/* Row 1: name (collapse moved out — pinned top-left nextto the traffic lights, see above). */}diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsxindex aa400f820..82cbbebbf 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx@@ -475,6 +475,19 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {};}, [navigateToTimestamp]);+ // Open the search modal in response to the AppSidebar's top-bar+ // search button (embedded mode only — standalone window has its+ // own button in TimelineControls).+ useEffect(() => {+ if (!embedded) return;+ const unlisten = listen("open-search", () => {+ setShowSearchModal(true);+ });+ return () => {+ unlisten.then((fn) => fn());+ };+ }, [embedded]);+// Listen for navigate-to-frame events (deep link: screenpipe://frame/12345)useEffect(() => {const fetchFrameMetadata = async (id: string, retries = 3): Promise<{ timestamp?: string } | null> => {@@ -1162,13 +1175,16 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {startAndEndDates={startAndEndDates}onDateChange={handleDateChange}onJumpToday={handleJumpToday}- onSearchClick={() => {- if (embedded) {- setShowSearchModal(true);- } else {- commands.showWindow({ Search: { query: null } });- }- }}+ // Embedded timeline no longer renders a search button+ // here — the AppSidebar's top bar (next to the macOS+ // traffic lights) owns search now and emits an+ // `open-search` event that the listener below picks+ // up. Standalone timeline window keeps its button.+ onSearchClick={+ embedded+ ? undefined+ : () => commands.showWindow({ Search: { query: null } })+ }onChatClick={embedded ? undefined : () => commands.showWindow("Chat")}embedded={embedded}isPlaying={isPlaying}diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 93c6af146..4fa974a87 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.4.79"+version = "2.4.80"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""