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
feat(nav): promote Connections from Settings to main sidebar
Louis Beaumonta16b76ce8af7
diff --git a/apps/screenpipe-app-tauri/app/home/page.tsx b/apps/screenpipe-app-tauri/app/home/page.tsxindex ee831c3f2..31f65bd9c 100644--- a/apps/screenpipe-app-tauri/app/home/page.tsx+++ b/apps/screenpipe-app-tauri/app/home/page.tsx@@ -20,6 +20,7 @@ import {Search,Sparkles,Phone,+ Plug,X,} from "lucide-react";import { emit } from "@tauri-apps/api/event";@@ -31,6 +32,7 @@ import { usePlatform } from "@/lib/hooks/use-platform";import { FeedbackSection } from "@/components/settings/feedback-section";import { PipeStoreView } from "@/components/pipe-store";import { MemoriesSection } from "@/components/settings/memories-section";+import { ConnectionsSection } from "@/components/settings/connections-section";import { StandaloneChat } from "@/components/standalone-chat";import { ChatSidebar } from "@/components/chat-sidebar";import { mountPiEventRouter } from "@/lib/stores/pi-event-router";@@ -57,18 +59,18 @@ import {TooltipTrigger,} from "@/components/ui/tooltip";-type MainSection = "home" | "timeline" | "memories" | "pipes" | "help";+type MainSection = "home" | "timeline" | "memories" | "pipes" | "connections" | "help";// All valid URL sections for the home pageconst ALL_SECTIONS = [- "home", "timeline", "pipes", "help", "memories",+ "home", "timeline", "pipes", "help", "memories", "connections","feedback", // backwards compat → maps to "help"];// Settings sections that should redirect to /settingsconst SETTINGS_SECTIONS = new Set<string>(["account", "recording", "ai", "general", "display", "shortcuts", "notifications",- "connections", "privacy", "storage", "meetings", "team", "referral", "usage", "speakers",+ "privacy", "storage", "meetings", "team", "referral", "usage", "speakers","disk-usage", "cloud-archive", "cloud-sync", // backwards compat → maps to "storage"]);@@ -343,11 +345,17 @@ function HomeContent() {useEffect(() => {const handler = (e: Event) => {const detail = (e as CustomEvent).detail;- openSettings(detail?.section ?? "general");+ const section = detail?.section ?? "general";+ // connections is a top-level main-sidebar section now, not in settings+ if (section === "connections") {+ setActiveSection("connections");+ return;+ }+ openSettings(section);};window.addEventListener("open-settings", handler);return () => window.removeEventListener("open-settings", handler);- }, [openSettings]);+ }, [openSettings, setActiveSection]);const renderMainSection = () => {if (isSectionHidden(activeSection) && activeSection !== "help") {@@ -370,6 +378,8 @@ function HomeContent() {return <MemoriesSection />;case "pipes":return <PipeStoreView />;+ case "connections":+ return <ConnectionsSection />;case "help":return <FeedbackSection />;default:@@ -391,6 +401,7 @@ function HomeContent() {{ id: "pipes", label: "Pipes", icon: <Workflow className="h-3.5 w-3.5" /> },{ id: "timeline", label: "Timeline", icon: <Clock className="h-3.5 w-3.5" /> },{ id: "memories", label: "Memories", icon: <Sparkles className="h-3.5 w-3.5" /> },+ { id: "connections", label: "Connections", icon: <Plug className="h-3.5 w-3.5" /> },].filter((s) => !isSectionHidden(s.id));// Listen for navigation events from other windows (e.g. tray, Rust-side links)diff --git a/apps/screenpipe-app-tauri/app/settings/page.tsx b/apps/screenpipe-app-tauri/app/settings/page.tsxindex 39dd1e62f..99ab937db 100644--- a/apps/screenpipe-app-tauri/app/settings/page.tsx+++ b/apps/screenpipe-app-tauri/app/settings/page.tsx@@ -11,7 +11,6 @@ import {User,Settings as SettingsIcon,HardDrive,- Plug,Shield,Layout,Users,@@ -31,7 +30,6 @@ import ShortcutSection from "@/components/settings/shortcut-section";import { AIPresets } from "@/components/settings/ai-presets";import { RecordingSettings } from "@/components/settings/recording-settings";import GeneralSettings from "@/components/settings/general-settings";-import { ConnectionsSection } from "@/components/settings/connections-section";import { TeamSection } from "@/components/settings/team-section";import { DisplaySection } from "@/components/settings/display-section";import { PrivacySection } from "@/components/settings/privacy-section";@@ -52,7 +50,6 @@ type SettingsSection =| "general"| "display"| "shortcuts"- | "connections"| "privacy"| "storage"| "meetings"@@ -64,7 +61,7 @@ type SettingsSection =const ALL_SETTINGS_SECTIONS: SettingsSection[] = ["display", "general", "ai", "recording", "shortcuts", "notifications",- "usage", "privacy", "storage", "meetings", "speakers", "connections",+ "usage", "privacy", "storage", "meetings", "speakers","team", "account", "referral",];@@ -181,6 +178,12 @@ function SettingsContent() {serialize: (v) => v,});+ // Connections moved to the main sidebar — redirect any old deep-link to home.+ useEffect(() => {+ const raw = new URLSearchParams(window.location.search).get("section");+ if (raw === "connections") router.replace("/?section=connections");+ }, [router]);+// Enterprise guard: if the active section is hidden by policy, redirect to the// first visible section. Prevents direct-URL bypass of enterprise restrictions.useEffect(() => {@@ -209,7 +212,6 @@ function SettingsContent() {{ id: "storage" as const, label: "Storage", icon: <HardDrive className="h-4 w-4" /> },{ id: "meetings" as const, label: "Meetings", icon: <Phone className="h-4 w-4" /> },{ id: "speakers" as const, label: "Speakers", icon: <Mic className="h-4 w-4" /> },- { id: "connections" as const, label: "Connections", icon: <Plug className="h-4 w-4" /> },].filter((s) => !isSectionHidden(s.id)),},{@@ -237,7 +239,6 @@ function SettingsContent() {case "privacy": return <PrivacySection />;case "storage": return <StorageSection />;case "meetings": return <MeetingsSection />;- case "connections": return <ConnectionsSection />;case "team": return <TeamSection />;case "notifications": return <NotificationsSettings />;case "referral": return <ReferralSection />;@@ -305,7 +306,7 @@ function SettingsContent() {)}>{item.icon}</div>- <span className={cn("text-sm truncate", section === item.id && isTranslucent ? "font-semibold vibrant-sidebar-fg" : "font-medium")}>+ <span className={cn("text-xs truncate", section === item.id && isTranslucent ? "font-semibold vibrant-sidebar-fg" : "font-medium")}>{item.label}</span></button>