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(timeline): show the time in the date pill (#4327)
Louis Beaumontc2012b4e9da4
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsxindex ca47d345a..1ab4eaeba 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx@@ -1227,6 +1227,7 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {<div ref={navBarRef} className={`absolute top-0 left-0 right-0 z-40 px-4 pb-4 ${embedded ? "pt-2" : "pt-[calc(env(safe-area-inset-top)+16px)]"}`}><TimelineControlscurrentDate={currentDate}+ currentTime={currentFrame ? new Date(currentFrame.timestamp) : null}startAndEndDates={startAndEndDates}onDateChange={handleDateChange}onJumpToday={handleJumpToday}diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline-controls.tsxindex 4ef7d73a2..77f5c1520 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 } from "lucide-react";+import { ChevronLeft, ChevronRight, ChevronDown, RefreshCw, CalendarIcon, Search, Play, Pause, Loader2, Mic, Volume2 } from "lucide-react";import {format,isAfter,@@ -34,6 +34,10 @@ interface TimeRange {interface TimelineControlsProps {startAndEndDates: TimeRange;currentDate: Date;+ // Timestamp of the frame currently under the playhead. Drives the time+ // shown in the date pill so the label tracks the cursor minute-to-minute+ // (currentDate only changes when the day changes). Null until frames load.+ currentTime?: Date | null;onDateChange: (date: Date) => Promise<any>;onJumpToday: () => void;onSearchClick?: () => void;@@ -54,6 +58,7 @@ interface TimelineControlsProps {export function TimelineControls({startAndEndDates,currentDate,+ currentTime,onDateChange,onJumpToday,onSearchClick,@@ -170,7 +175,12 @@ export function TimelineControls({) : (<CalendarIcon className="h-3 w-3" />)}- <span>{format(currentDate, "d MMM yyyy")}</span>+ {/* Always show the date + cursor time, e.g. "Jan 6 16:18".+ Prefer the timestamp of the frame under the playhead;+ fall back to currentDate during the brief load window+ before the first frame arrives. */}+ <span>{format(currentTime ?? currentDate, "MMM d HH:mm")}</span>+ <ChevronDown className="h-3 w-3 opacity-60" /></button></PopoverTrigger><PopoverContent