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: duplicate React key in search time facet chips
Louis Beaumont817dbf2e2343
diff --git a/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx b/apps/screenpipe-app-tauri/components/rewind/search-modal.tsxindex 472e1f6ef..131d42ab3 100644--- a/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx@@ -334,10 +334,9 @@ export function SearchModal({ isOpen, onClose, onNavigateToTimestamp, embedded =const [facetTimeRanges, setFacetTimeRanges] = useState<{ label: string; dateKey: string; timestamp: string; count: number }[]>([]);// Build time range labels from raw rows- const buildTimeRanges = useCallback((rows: { timestamp: string; count: number }[]) => {+ const buildTimeRanges = useCallback((rows: { dateKey: string; timestamp: string; count: number }[]) => {return rows.map(r => {const d = new Date(r.timestamp);- const dateKey = format(d, "yyyy-MM-dd");let label: string;if (isToday(d)) {label = format(d, "h a");@@ -346,7 +345,7 @@ export function SearchModal({ isOpen, onClose, onNavigateToTimestamp, embedded =} else {label = format(d, "MMM d");}- return { label, dateKey, timestamp: r.timestamp, count: r.count };+ return { label, dateKey: r.dateKey, timestamp: r.timestamp, count: r.count };}).slice(0, 10);}, []);@@ -440,7 +439,7 @@ export function SearchModal({ isOpen, onClose, onNavigateToTimestamp, embedded =) GROUP BY d ORDER BY d DESC LIMIT 30`).then((rows: { d: string; ts: string; cnt: number }[]) => {if (cancelled) return;- setFacetTimeRanges(buildTimeRanges(rows.map(r => ({ timestamp: r.ts, count: r.cnt }))));+ setFacetTimeRanges(buildTimeRanges(rows.map(r => ({ dateKey: r.d, timestamp: r.ts, count: r.cnt }))));}).catch(() => {});return () => { cancelled = true; };