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

fix: move monitor dots inside TimelineSlider so they're visible

Louis Beaumont5d0db741a45f
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
index 37ae8076f..70a274572 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
@@ -1646,28 +1646,6 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {
{/* Meeting bar removed — meeting detection handled inside transcript panel */}
- {/* Monitor filter dots — above timeline, only when 2+ monitors */}
- {allDeviceIds.length > 1 && (
- <div className="absolute bottom-[72px] left-1/2 -translate-x-1/2 z-40 flex items-center gap-1.5 pointer-events-auto">
- {allDeviceIds.map((id) => (
- <button
- key={id}
- onClick={() => handleDeviceChange(selectedDeviceId === id ? "all" : id)}
- className="group relative w-2.5 h-2.5 rounded-full transition-all duration-200"
- style={{
- backgroundColor: selectedDeviceId === id
- ? "hsl(var(--foreground))"
- : selectedDeviceId === "all"
- ? "hsl(var(--foreground) / 0.5)"
- : "hsl(var(--foreground) / 0.2)",
- transform: selectedDeviceId === id ? "scale(1.3)" : "scale(1)",
- }}
- title={`${id.replace("monitor_", "monitor ")}${selectedDeviceId === id ? " (click to show all)" : ""}`}
- />
- ))}
- </div>
- )}
-
{/* Bottom Timeline - Overlay that doesn't cut off image */}
<div className="absolute bottom-0 left-0 right-0 z-40 pointer-events-auto">
{frames.length > 0 ? (
@@ -1695,6 +1673,8 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {
isPlaying={isPlaying}
onTogglePlayPause={togglePlayPause}
selectedDeviceId={selectedDeviceId}
+ allDeviceIds={allDeviceIds}
+ onDeviceChange={handleDeviceChange}
/>
) : (
<div className="bg-card/80 backdrop-blur-sm p-4 border-t border-border">
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
index 147c84181..e780930c5 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx
@@ -63,6 +63,8 @@ interface TimelineSliderProps {
isPlaying?: boolean; // Whether audio playback is active
onTogglePlayPause?: () => void; // Toggle audio playback (Space key)
selectedDeviceId?: string; // "all" or a specific device_id — dims non-matching bars
+ allDeviceIds?: string[]; // All unique device IDs for monitor dot indicators
+ onDeviceChange?: (deviceId: string) => void; // Callback when a monitor dot is clicked
}
interface AppGroup {
@@ -179,6 +181,8 @@ export const TimelineSlider = ({
isPlaying = false,
onTogglePlayPause,
selectedDeviceId = "all",
+ allDeviceIds = [],
+ onDeviceChange,
}: TimelineSliderProps) => {
const containerRef = useRef<HTMLDivElement>(null);
const observerTargetRef = useRef<HTMLDivElement>(null);
@@ -625,6 +629,28 @@ export const TimelineSlider = ({
className="absolute top-0 h-1 bg-foreground/30"
style={{ width: lineWidth }}
/>
+ {/* Monitor filter dots — centered above bars, only with 2+ monitors */}
+ {allDeviceIds.length > 1 && onDeviceChange && (
+ <div className="absolute top-1 left-1/2 -translate-x-1/2 z-30 flex items-center gap-1.5" dir="ltr">
+ {allDeviceIds.map((id) => (
+ <button
+ key={id}
+ onClick={() => onDeviceChange(selectedDeviceId === id ? "all" : id)}
+ className="rounded-full transition-all duration-200"
+ style={{
+ width: selectedDeviceId === id ? 8 : 6,
+ height: selectedDeviceId === id ? 8 : 6,
+ backgroundColor: selectedDeviceId === id
+ ? "hsl(var(--foreground))"
+ : selectedDeviceId === "all"
+ ? "hsl(var(--foreground) / 0.4)"
+ : "hsl(var(--foreground) / 0.15)",
+ }}
+ title={`${id.replace("monitor_", "monitor ")}${selectedDeviceId === id ? " (click to show all)" : ""}`}
+ />
+ ))}
+ </div>
+ )}
{/* Zoom controls - floating on left side */}
<div className="absolute left-3 top-1/2 -translate-y-1/2 z-30 flex flex-col gap-1 bg-background/80 backdrop-blur-sm border border-border rounded-lg p-1">
<button