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
chore: improve app analytics
Louis Beaumonte6a4d5c9d917
diff --git a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsxindex cea0556d7..bbb29e1aa 100644--- a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx+++ b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx@@ -134,7 +134,7 @@ export function ChatList({setIsLoading(true);setError(null);- posthog?.capture("send_message", {+ posthog.capture("send_message", {userId: settings.userId,inputMessage,});diff --git a/examples/apps/screenpipe-app-tauri/components/meeting-summarized.tsx b/examples/apps/screenpipe-app-tauri/components/meeting-summarized.tsxindex 5e7c725f4..fd82d4367 100644--- a/examples/apps/screenpipe-app-tauri/components/meeting-summarized.tsx+++ b/examples/apps/screenpipe-app-tauri/components/meeting-summarized.tsx@@ -2,8 +2,6 @@ import React, { useState, useEffect, useRef } from "react";import { Button } from "@/components/ui/button";import { useSettings } from "@/lib/hooks/use-settings";import { z } from "zod";-import { Input } from "./ui/input";-import { Card, CardContent } from "./ui/card";import { Separator } from "./ui/separator";import { Pipe } from "@/lib/hooks/use-pipes";import { CheckIcon, CopyIcon } from "lucide-react";@@ -17,6 +15,7 @@ import { ChatMessage } from "./chat-message-v2";import { Switch } from "./ui/switch";import { Label } from "./ui/label";import { Badge } from "./ui/badge";+import { usePostHog } from "posthog-js/react";const screenpipeQuery = z.object({q: z@@ -109,7 +108,6 @@ const filterTranscriptErrors = (transcript: string): string => {export const MeetingSummarizer = ({ pipe }: { pipe: Pipe }) => {const [meetingStartTime, setMeetingStartTime] = useState<Date | null>(null);- const [manualEndTime, setManualEndTime] = useState("");const [transcript, setTranscript] = useState<string>("");const [isStreaming, setIsStreaming] = useState(false);const [processedTranscript, setProcessedTranscript] = useState<string>("");@@ -126,6 +124,7 @@ export const MeetingSummarizer = ({ pipe }: { pipe: Pipe }) => {const transcriptQueueRef = useRef<string[]>([]);const processingPromiseRef = useRef<Promise<void> | null>(null);const [useAi, setUseAi] = useState(false);+ const posthog = usePostHog();const handleStartMeeting = () => {const startDate = new Date();@@ -134,14 +133,15 @@ export const MeetingSummarizer = ({ pipe }: { pipe: Pipe }) => {setIsStreaming(true);setTranscript("");setProcessedTranscript("");- setManualEndTime("");setLastProcessedTimestamp(null);+ posthog.capture("meeting_started", {+ userId: settings.userId,+ });};const handleStopMeeting = () => {setIsStreaming(false);setMeetingStartTime(null);- setManualEndTime("");};const processTranscriptChunk = async (chunk: string) => {diff --git a/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex bc4acd33f..f2c859e5c 100755--- a/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/examples/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -21,7 +21,6 @@ use tauri_plugin_store::{with_store, StoreCollection};use tauri_plugin_autostart::MacosLauncher;use tauri_plugin_autostart::ManagerExt;-use tauri::image::Image;use tauri::{menu::{MenuBuilder, MenuItemBuilder},tray::{MouseButton, MouseButtonState, TrayIconBuilder, TrayIconEvent},