Skip to content

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

UI fixes: home page, timeline controls, meetings section, bump app to v2.2.140

Louis Beaumont339baf0216d9
diff --git a/apps/screenpipe-app-tauri/app/home/page.tsx b/apps/screenpipe-app-tauri/app/home/page.tsx
index a8d908aeb..6788a7f38 100644
--- a/apps/screenpipe-app-tauri/app/home/page.tsx
+++ b/apps/screenpipe-app-tauri/app/home/page.tsx
@@ -177,6 +177,51 @@ function SettingsPageContent() {
return () => { cancelled = true; clearInterval(interval); };
}, []);
+ // Manual meeting toggle state — synced with server
+ const [manualMeeting, setManualMeeting] = useState(false);
+ const [meetingLoading, setMeetingLoading] = useState(false);
+
+ // Poll server for active manual meeting on mount + interval
+ useEffect(() => {
+ let cancelled = false;
+ const check = () => {
+ fetch("http://localhost:3030/meetings?limit=5")
+ .then((r) => r.ok ? r.json() : [])
+ .then((meetings: { meeting_end: string | null; detection_source: string }[]) => {
+ if (cancelled) return;
+ const hasActive = meetings.some(
+ (m) => m.meeting_end === null && m.detection_source === "manual"
+ );
+ setManualMeeting(hasActive);
+ })
+ .catch(() => {});
+ };
+ check();
+ const interval = setInterval(check, 5000);
+ return () => { cancelled = true; clearInterval(interval); };
+ }, []);
+
+ const toggleMeeting = useCallback(async () => {
+ setMeetingLoading(true);
+ try {
+ if (manualMeeting) {
+ await fetch("http://localhost:3030/meetings/stop", { method: "POST" });
+ setManualMeeting(false);
+ } else {
+ await fetch("http://localhost:3030/meetings/start", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ app: "manual" }),
+ });
+ setManualMeeting(true);
+ }
+ } catch (e) {
+ console.error("meeting toggle failed:", e);
+ } finally {
+ setMeetingLoading(false);
+ }
+ }, [manualMeeting]);
+
// Watch pipe: navigate to chat when user clicks "watch" on a running pipe
useEffect(() => {
let unlisten: (() => void) | null = null;
@@ -345,6 +390,17 @@ function SettingsPageContent() {
</span>
));
})()}
+ <button
+ onClick={toggleMeeting}
+ disabled={meetingLoading}
+ className="relative flex items-center justify-center h-5 w-5 text-muted-foreground hover:text-foreground transition-colors"
+ title={manualMeeting ? "stop meeting" : "start meeting"}
+ >
+ {manualMeeting && (
+ <span className="absolute -top-0.5 -right-0.5 h-1.5 w-1.5 rounded-full bg-red-500 animate-pulse" />
+ )}
+ <Phone className="h-3.5 w-3.5" />
+ </button>
<Tooltip>
<TooltipTrigger asChild>
<button
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx
index 14cd548cc..201ba97c5 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx
@@ -5,7 +5,7 @@
"use client";
import { Button } from "@/components/ui/button";
-import { ChevronLeft, ChevronRight, RefreshCw, CalendarIcon, Search, Play, Pause, Loader2, Mic, Volume2, Phone, PhoneOff } from "lucide-react";
+import { ChevronLeft, ChevronRight, RefreshCw, CalendarIcon, Search, Play, Pause, Loader2, Mic, Volume2 } from "lucide-react";
import {
format,
isAfter,
@@ -14,7 +14,7 @@ import {
subDays,
} from "date-fns";
import { cn } from "@/lib/utils";
-import { useMemo, useState, useCallback } from "react";
+import { useMemo, useState } from "react";
import { usePlatform } from "@/lib/hooks/use-platform";
import { useSettings } from "@/lib/hooks/use-settings";
import { Calendar } from "@/components/ui/calendar";
@@ -132,30 +132,6 @@ export function TimelineControls({
const { isMac } = usePlatform();
const { settings } = useSettings();
const [calendarOpen, setCalendarOpen] = useState(false);
- const [manualMeeting, setManualMeeting] = useState(false);
- const [meetingLoading, setMeetingLoading] = useState(false);
-
- const toggleMeeting = useCallback(async () => {
- setMeetingLoading(true);
- try {
- if (manualMeeting) {
- await fetch("http://localhost:3030/meetings/stop", { method: "POST" });
- setManualMeeting(false);
- } else {
- await fetch("http://localhost:3030/meetings/start", {
- method: "POST",
- headers: { "Content-Type": "application/json" },
- body: JSON.stringify({ app: "manual" }),
- });
- setManualMeeting(true);
- }
- } catch (e) {
- console.error("meeting toggle failed:", e);
- } finally {
- setMeetingLoading(false);
- }
- }, [manualMeeting]);
-
const searchShortcutDisplay = useMemo(
() => formatShortcutForDisplay(settings.searchShortcut || (isMac ? "Control+Super+K" : "Alt+K"), isMac),
[settings.searchShortcut, isMac]
@@ -339,34 +315,6 @@ export function TimelineControls({
</div>
)}
- <button
- type="button"
- onClick={toggleMeeting}
- disabled={meetingLoading}
- className={cn(
- "flex items-center h-10 gap-1.5 border px-3 font-mono text-xs transition-colors duration-150 cursor-pointer",
- manualMeeting
- ? "bg-red-500/10 border-red-500/30 text-red-600 hover:bg-red-500/20"
- : "bg-background border-border text-foreground hover:bg-foreground hover:text-background"
- )}
- title={manualMeeting ? "Stop meeting" : "Start meeting"}
- >
- {meetingLoading ? (
- <Loader2 className="h-3 w-3 animate-spin" />
- ) : manualMeeting ? (
- <>
- <span className="h-2 w-2 rounded-full bg-red-500 animate-pulse" />
- <PhoneOff className="h-3 w-3" />
- <span>stop</span>
- </>
- ) : (
- <>
- <Phone className="h-3 w-3" />
- <span>meeting</span>
- </>
- )}
- </button>
-
{onSearchClick && (
embedded ? (
<Button
diff --git a/apps/screenpipe-app-tauri/components/settings/meetings-section.tsx b/apps/screenpipe-app-tauri/components/settings/meetings-section.tsx
index 6072dfb83..4372c0df6 100644
--- a/apps/screenpipe-app-tauri/components/settings/meetings-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/meetings-section.tsx
@@ -67,6 +67,7 @@ export function MeetingsSection() {
});
const [savingId, setSavingId] = useState<number | null>(null);
const [deletingId, setDeletingId] = useState<number | null>(null);
+ const [confirmDeleteId, setConfirmDeleteId] = useState<number | null>(null);
const [merging, setMerging] = useState(false);
const fetchMeetings = useCallback(async () => {
@@ -146,8 +147,8 @@ export function MeetingsSection() {
};
const deleteMeeting = async (id: number) => {
- if (!window.confirm("delete this meeting?")) return;
setDeletingId(id);
+ setConfirmDeleteId(null);
try {
const res = await fetch(`http://localhost:3030/meetings/${id}`, {
method: "DELETE",
@@ -379,20 +380,48 @@ export function MeetingsSection() {
>
<Pencil className="h-3.5 w-3.5 text-muted-foreground" />
</Button>
- <Button
- size="icon"
- variant="ghost"
- className="h-7 w-7 opacity-0 group-hover:opacity-100 transition-opacity"
- onClick={() => deleteMeeting(meeting.id)}
- disabled={isDeleting}
- title="delete"
- >
- {isDeleting ? (
- <Loader2 className="h-3.5 w-3.5 animate-spin" />
- ) : (
- <Trash2 className="h-3.5 w-3.5 text-destructive" />
- )}
- </Button>
+ {confirmDeleteId === meeting.id ? (
+ <div className="flex items-center gap-0.5">
+ <Button
+ size="icon"
+ variant="ghost"
+ className="h-7 w-7"
+ onClick={() => deleteMeeting(meeting.id)}
+ disabled={isDeleting}
+ title="confirm delete"
+ >
+ {isDeleting ? (
+ <Loader2 className="h-3.5 w-3.5 animate-spin" />
+ ) : (
+ <Check className="h-3.5 w-3.5 text-destructive" />
+ )}
+ </Button>
+ <Button
+ size="icon"
+ variant="ghost"
+ className="h-7 w-7"
+ onClick={() => setConfirmDeleteId(null)}
+ title="cancel"
+ >
+ <X className="h-3.5 w-3.5 text-muted-foreground" />
+ </Button>
+ </div>
+ ) : (
+ <Button
+ size="icon"
+ variant="ghost"
+ className="h-7 w-7 opacity-0 group-hover:opacity-100 transition-opacity"
+ onClick={() => setConfirmDeleteId(meeting.id)}
+ disabled={isDeleting}
+ title="delete"
+ >
+ {isDeleting ? (
+ <Loader2 className="h-3.5 w-3.5 animate-spin" />
+ ) : (
+ <Trash2 className="h-3.5 w-3.5 text-destructive" />
+ )}
+ </Button>
+ )}
</>
)}
</div>
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 09de236f6..cec8aa401 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -9329,7 +9329,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.2.139"
+version = "2.2.140"
dependencies = [
"anyhow",
"arboard",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 2ecfbbad6..a16cc34d9 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.2.139"
+version = "2.2.140"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""