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
show calendar connections when opening calendars from meeting notes (#3745)
Harsh Kumar47a947c85a87
diff --git a/apps/screenpipe-app-tauri/app/home/page.tsx b/apps/screenpipe-app-tauri/app/home/page.tsxindex 8aef5beab..3885f75a8 100644--- a/apps/screenpipe-app-tauri/app/home/page.tsx+++ b/apps/screenpipe-app-tauri/app/home/page.tsx@@ -77,7 +77,11 @@ import {} from "@/components/ui/tooltip";type MainSection = "home" | "timeline" | "memories" | "pipes" | "connections" | "meetings" | "help";-type ConnectionFocusRequest = { id: string | null; requestId: number };+type ConnectionFocusRequest = {+ id: string | null;+ category: string | null;+ requestId: number;+};// All valid URL sections for the home pageconst ALL_SECTIONS = [@@ -719,6 +723,9 @@ function HomeContent() {const openSettings = useCallback((section: string = "general") => {router.push(`/settings?section=${section}`);}, [router]);+ const clearConnectionFocusRequest = useCallback(() => {+ setConnectionFocusRequest(null);+ }, []);// Listen for open-settings events from child components (e.g. connections strip)useEffect(() => {@@ -729,6 +736,7 @@ function HomeContent() {if (section === "connections") {setConnectionFocusRequest({id: typeof detail?.connectionId === "string" ? detail.connectionId : null,+ category: typeof detail?.category === "string" ? detail.category : null,requestId: Date.now(),});setActiveSection("connections");@@ -765,7 +773,9 @@ function HomeContent() {return (<ConnectionsSectionfocusConnectionId={connectionFocusRequest?.id ?? null}+ focusCategory={connectionFocusRequest?.category ?? null}focusRequestId={connectionFocusRequest?.requestId ?? 0}+ onFocusRequestConsumed={clearConnectionFocusRequest}/>);case "meetings":diff --git a/apps/screenpipe-app-tauri/components/meeting-notes/index.tsx b/apps/screenpipe-app-tauri/components/meeting-notes/index.tsxindex 115b9a8dc..dbfb492f3 100644--- a/apps/screenpipe-app-tauri/components/meeting-notes/index.tsx+++ b/apps/screenpipe-app-tauri/components/meeting-notes/index.tsx@@ -517,7 +517,7 @@ export function MeetingNotesSection({const openCalendarConnections = useCallback(() => {window.dispatchEvent(new CustomEvent("open-settings", {- detail: { section: "connections" },+ detail: { section: "connections", category: "Calendar" },}),);}, []);diff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsxindex c5b8b9204..0541f77d4 100644--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx@@ -2249,10 +2249,17 @@ function ApiIntegrationPanel({ integration, onRefresh }: {interface ConnectionsSectionProps {focusConnectionId?: string | null;+ focusCategory?: string | null;focusRequestId?: number;+ onFocusRequestConsumed?: () => void;}-export function ConnectionsSection({ focusConnectionId, focusRequestId = 0 }: ConnectionsSectionProps = {}) {+export function ConnectionsSection({+ focusConnectionId,+ focusCategory,+ focusRequestId = 0,+ onFocusRequestConsumed,+}: ConnectionsSectionProps = {}) {const [search, setSearch] = useState("");const [categoryFilter, setCategoryFilter] = useState(ALL_CONNECTION_CATEGORIES);const [sortBy, setSortBy] = useState<ConnectionSort>("default");@@ -2272,7 +2279,15 @@ export function ConnectionsSection({ focusConnectionId, focusRequestId = 0 }: CouseEffect(() => {if (!focusRequestId) return;setSelected(focusConnectionId || null);- }, [focusConnectionId, focusRequestId]);+ setCategoryFilter(+ focusCategory+ ? normalizeConnectionCategory(focusCategory)+ : ALL_CONNECTION_CATEGORIES,+ );+ setSearch("");+ setSortBy("default");+ onFocusRequestConsumed?.();+ }, [focusCategory, focusConnectionId, focusRequestId, onFocusRequestConsumed]);// Hardcoded connection statusconst [claudeInstalled, setClaudeInstalled] = useState(false);diff --git a/crates/screenpipe-engine/src/connections_api.rs b/crates/screenpipe-engine/src/connections_api.rsindex 51dd5db7c..388d0bfd5 100644--- a/crates/screenpipe-engine/src/connections_api.rs+++ b/crates/screenpipe-engine/src/connections_api.rs@@ -296,7 +296,7 @@ async fn list_connections(State(state): State<ConnectionsState>) -> Json<Value>"id": "apple-calendar","name": "Apple Calendar","icon": "apple-calendar",- "category": "productivity",+ "category": "calendar","description": format!("Read-only access to your native {} calendar. \Query events via GET /connections/calendar/events?hours_back=1&hours_ahead=8",