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
fix: meeting bar visual + clean up transcript panel header
Louis Beaumont338382882a3e
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsxindex 7542a4fc3..af6aa8a2a 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx@@ -1316,9 +1316,9 @@ export default function Timeline() {</div>)}- {/* Meeting Bar - between frame area and timeline slider */}+ {/* Meeting Bar - thin accent lines just above the timeline slider */}{meetings.length > 0 && frames.length > 0 && (- <div className="absolute bottom-[88px] left-0 right-0 z-[38] pointer-events-auto">+ <div className="absolute bottom-[84px] left-0 right-0 z-[41] pointer-events-auto"><MeetingBarmeetings={meetings}frames={frames}diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsxindex 04bef3329..f46d149e0 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx@@ -439,34 +439,32 @@ export function AudioTranscript({</div><div className="flex items-center gap-1">- {/* Tab toggle: Nearby / Full meeting */}- <Button- variant={tabMode === "nearby" ? "secondary" : "ghost"}- size="sm"- className="h-6 px-2 text-xs gap-1"- onClick={() => setTabMode("nearby")}- title="Nearby audio (30s window)"- >- <MessageSquare className="h-3 w-3" />- <span className="hidden sm:inline">nearby</span>- </Button>- {activeMeeting && (- <Button- variant={tabMode === "meeting" ? "secondary" : "ghost"}- size="sm"- className="h-6 px-2 text-xs gap-1"- onClick={() => setTabMode("meeting")}- title="Full meeting transcript"- >- <Users className="h-3 w-3" />- <span className="hidden sm:inline">full meeting</span>- </Button>- )}-- {/* View mode toggle (only in nearby tab) */}- {tabMode === "nearby" && (+ {activeMeeting ? (+ <>+ {/* Tab toggle: only shown when a meeting is active */}+ <Button+ variant={tabMode === "nearby" ? "secondary" : "ghost"}+ size="sm"+ className="h-6 px-2 text-xs gap-1"+ onClick={() => setTabMode("nearby")}+ title="Nearby audio (30s window)"+ >+ nearby+ </Button>+ <Button+ variant={tabMode === "meeting" ? "secondary" : "ghost"}+ size="sm"+ className="h-6 px-2 text-xs gap-1"+ onClick={() => setTabMode("meeting")}+ title="Full meeting transcript"+ >+ <Users className="h-3 w-3" />+ full meeting+ </Button>+ </>+ ) : (<>- <div className="w-px h-4 bg-border mx-0.5" />+ {/* Device/thread toggle: only when no meeting active */}<Buttonvariant={viewMode === "device" ? "secondary" : "ghost"}size="sm"diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/meeting-bar.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/meeting-bar.tsxindex 282c626e4..f1037208f 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline/meeting-bar.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/meeting-bar.tsx@@ -6,7 +6,6 @@ import { memo, useMemo, useState } from "react";import { createPortal } from "react-dom";import { Meeting } from "@/lib/hooks/use-meetings";import { StreamTimeSeriesResponse } from "@/components/rewind/timeline";-import { Mic } from "lucide-react";import { cn } from "@/lib/utils";interface MeetingBarProps {@@ -36,10 +35,9 @@ export const MeetingBar = memo(function MeetingBar({onMeetingClick,}: MeetingBarProps) {const [hoveredMeeting, setHoveredMeeting] = useState<string | null>(null);- const [hoverRect, setHoverRect] = useState<{- x: number;- y: number;- } | null>(null);+ const [hoverRect, setHoverRect] = useState<{ x: number; y: number } | null>(+ null+ );// Compute time range from frames (frames are newest-first)const timeRange = useMemo(() => {@@ -67,75 +65,51 @@ export const MeetingBar = memo(function MeetingBar({if (totalMs <= 0) return null;return (- <div className="relative w-full h-7 bg-card/60 backdrop-blur-sm border-t border-b border-border flex items-center px-2">- {/* Label */}- <div className="flex items-center gap-1 text-[10px] text-muted-foreground mr-2 shrink-0">- <Mic className="w-3 h-3" />- </div>-- {/* Meeting blocks container */}- <div className="relative flex-1 h-full">- {meetings.map((meeting) => {- const leftPct =- ((meeting.startTime.getTime() - timeRange.start.getTime()) /- totalMs) *- 100;- const widthPct =- ((meeting.endTime.getTime() - meeting.startTime.getTime()) /- totalMs) *- 100;-- // Ensure minimum clickable width- const minWidthPx = 20;- const isCurrent = meeting.id === currentMeetingId;- const isHovered = meeting.id === hoveredMeeting;- const speakerCount = meeting.speakers.size;-- return (- <div- key={meeting.id}- className={cn(- "absolute top-1 bottom-1 cursor-pointer transition-all duration-150",- "border border-border hover:border-foreground/40",- isCurrent- ? "bg-foreground/20 border-foreground/50"- : "bg-foreground/8 hover:bg-foreground/15"- )}- style={{- left: `${leftPct}%`,- width: `max(${minWidthPx}px, ${widthPct}%)`,- }}- onClick={() => onMeetingClick(meeting)}- onMouseEnter={(e) => {- const rect = e.currentTarget.getBoundingClientRect();- setHoveredMeeting(meeting.id);- setHoverRect({- x: rect.left + rect.width / 2,- y: rect.top,- });- }}- onMouseLeave={() => {- setHoveredMeeting(null);- setHoverRect(null);- }}- >- {/* Inner content — only show if block is wide enough */}- {widthPct > 3 && (- <div className="flex items-center h-full px-1.5 gap-1 overflow-hidden">- <span className="text-[9px] text-foreground/70 whitespace-nowrap truncate">- {formatTime(meeting.startTime)}- </span>- {widthPct > 8 && (- <span className="text-[9px] text-muted-foreground whitespace-nowrap">- · {speakerCount} {speakerCount === 1 ? "speaker" : "speakers"}- </span>- )}- </div>- )}- </div>- );- })}- </div>+ <div className="relative w-full h-3 flex items-end">+ {/* Meeting blocks — thin accent lines */}+ {meetings.map((meeting) => {+ const leftPct =+ ((meeting.startTime.getTime() - timeRange.start.getTime()) /+ totalMs) *+ 100;+ const widthPct =+ ((meeting.endTime.getTime() - meeting.startTime.getTime()) /+ totalMs) *+ 100;++ const isCurrent = meeting.id === currentMeetingId;+ const isHovered = meeting.id === hoveredMeeting;++ return (+ <div+ key={meeting.id}+ className={cn(+ "absolute bottom-0 h-1.5 cursor-pointer transition-all duration-150",+ isCurrent || isHovered+ ? "bg-foreground/60 h-2.5"+ : "bg-foreground/25 hover:bg-foreground/40 hover:h-2"+ )}+ style={{+ left: `${leftPct}%`,+ width: `max(6px, ${widthPct}%)`,+ borderRadius: "1px 1px 0 0",+ }}+ onClick={() => onMeetingClick(meeting)}+ onMouseEnter={(e) => {+ const rect = e.currentTarget.getBoundingClientRect();+ setHoveredMeeting(meeting.id);+ setHoverRect({+ x: rect.left + rect.width / 2,+ y: rect.top,+ });+ }}+ onMouseLeave={() => {+ setHoveredMeeting(null);+ setHoverRect(null);+ }}+ />+ );+ })}{/* Hover tooltip via portal */}{hoveredMeeting &&