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

feat(timeline): enable clickable URLs in frame view

Louis Beaumonteccfd9d5eb7d
diff --git a/screenpipe-app-tauri/components/text-overlay.tsx b/screenpipe-app-tauri/components/text-overlay.tsx
index 5e08b098e..97c88c51f 100644
--- a/screenpipe-app-tauri/components/text-overlay.tsx
+++ b/screenpipe-app-tauri/components/text-overlay.tsx
@@ -97,8 +97,8 @@ export const TextOverlay = memo(function TextOverlay({
debug = false,
clickableUrls = true,
}: TextOverlayProps) {
- // TEMPORARILY DISABLED: Text selection is buggy, disable for now
- const isDisabled = true;
+ // Text selection is disabled due to buggy UX, but URLs remain clickable
+ const textSelectionDisabled = true;
// Scale and filter text positions, detect URLs
// Note: OCR bounds are normalized (0-1 range), so we multiply directly by displayed dimensions
@@ -151,12 +151,12 @@ export const TextOverlay = memo(function TextOverlay({
window.open(url, "_blank", "noopener,noreferrer");
}, []);
- // Early return for disabled state (must be after all hooks)
- if (isDisabled) {
- return null;
- }
+ // Filter to only URLs if text selection is disabled
+ const positionsToRender = textSelectionDisabled
+ ? scaledPositions.filter((pos) => pos.isUrl && pos.normalizedUrl)
+ : scaledPositions;
- if (scaledPositions.length === 0) {
+ if (positionsToRender.length === 0) {
return null;
}
@@ -171,7 +171,7 @@ export const TextOverlay = memo(function TextOverlay({
height: displayedHeight,
}}
>
- {scaledPositions.map((pos, index) => {
+ {positionsToRender.map((pos, index) => {
const isClickableUrl = clickableUrls && pos.isUrl && pos.normalizedUrl;
if (isClickableUrl) {