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: hide broken image icons + add 2s loading overlay for search nav

Louis Beaumontae352034fe37
diff --git a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
index 0e9daa3f8..05e148461 100644
--- a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
@@ -917,6 +917,7 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
style={{ zIndex: 2 }}
alt="Current frame"
draggable={false}
+ onError={(e) => { (e.target as HTMLImageElement).style.display = "none"; }}
/>
)}
@@ -929,6 +930,7 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
style={{ zIndex: 2 }}
alt="Current frame"
draggable={false}
+ onError={(e) => { (e.target as HTMLImageElement).style.display = "none"; }}
/>
)}
@@ -990,35 +992,6 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
userToken={settings.user?.token ?? null}
/>
- {/* URL chips — bottom of frame, always shown when URLs are detected.
- Previously gated on textPositions.length === 0 which hid chips whenever
- OCR was available — but the inline clickable URLs in TextOverlay are now
- below the SelectableTextLayer (z-index 7 vs 6), so chips are the only
- reliable way to surface URLs. */}
- {!isLoading && !hasError && detectedUrls.length > 0 && (
- <div className="absolute bottom-2 left-1/2 -translate-x-1/2 z-20 flex gap-1.5 max-w-[90%] overflow-x-auto">
- {detectedUrls.map((url) => (
- <button
- key={url.normalized}
- type="button"
- onClick={async () => {
- try {
- const { open } = await import("@tauri-apps/plugin-shell");
- await open(url.normalized);
- } catch {
- window.open(url.normalized, "_blank");
- }
- }}
- className="flex items-center gap-1 px-2 py-1 text-[11px] font-mono bg-black/60 hover:bg-black/80 text-white/80 hover:text-white rounded-sm whitespace-nowrap transition-colors max-w-[200px]"
- title={url.normalized}
- >
- <ExternalLink className="w-3 h-3 shrink-0" />
- <span className="truncate">{url.display}</span>
- </button>
- ))}
- </div>
- )}
-
</div>
);
};
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
index 28ae461ed..5a701181f 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
@@ -227,6 +227,10 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {
// Ref to hold navigateToSearchResult so arrow-key effect doesn't depend on it directly
const navigateToSearchResultRef = useRef<(index: number) => void>(() => {});
+ // Loading overlay for search result navigation — minimum 2s display
+ const [searchNavLoading, setSearchNavLoading] = useState(false);
+ const searchNavLoadingTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
+
// Get timeline selection for chat context
const { selectionRange, loadTagsForFrames, tags } = useTimelineSelection();
const { promptPipes } = usePipes();
@@ -1461,6 +1465,11 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {
const result = searchResults[index];
if (!result) return;
+ // Show loading overlay with minimum 2s display
+ setSearchNavLoading(true);
+ if (searchNavLoadingTimerRef.current) clearTimeout(searchNavLoadingTimerRef.current);
+ searchNavLoadingTimerRef.current = setTimeout(() => setSearchNavLoading(false), 2000);
+
// Update highlight to new frame
setHighlight(highlightTerms, result.frame_id);
@@ -1739,13 +1748,20 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {
/>
) : null}
+ {/* Search result loading overlay */}
+ {searchNavLoading && inSearchReviewMode && (
+ <div className="absolute inset-0 z-40 flex items-center justify-center bg-black/40 backdrop-blur-[2px] transition-opacity duration-300">
+ <Loader2 className="w-8 h-8 text-white animate-spin" />
+ </div>
+ )}
+
{/* Search result navigation indicator */}
{inSearchReviewMode && (
<div className="absolute bottom-24 left-1/2 -translate-x-1/2 z-50 flex items-center gap-3 px-4 py-2 rounded-full bg-black/70 backdrop-blur-sm border border-white/10 text-white text-sm shadow-lg">
<span className="text-white/60 truncate max-w-[120px]">&ldquo;{searchQuery}&rdquo;</span>
<button
className="px-1.5 hover:text-white/80 disabled:text-white/30"
- disabled={searchResultIndex <= 0}
+ disabled={searchResultIndex <= 0 || searchNavLoading}
onClick={() => navigateToSearchResult(searchResultIndex - 1)}
>
&#9664;
@@ -1755,7 +1771,7 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {
</span>
<button
className="px-1.5 hover:text-white/80 disabled:text-white/30"
- disabled={searchResultIndex >= searchResults.length - 1}
+ disabled={searchResultIndex >= searchResults.length - 1 || searchNavLoading}
onClick={() => navigateToSearchResult(searchResultIndex + 1)}
>
&#9654;