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
testing the new update UX (small improvement on data table)
Louis Beaumontcfc78d113974
diff --git a/pipes/data-table/package.json b/pipes/data-table/package.jsonindex cea193714..d74ca2532 100644--- a/pipes/data-table/package.json+++ b/pipes/data-table/package.json@@ -1,6 +1,6 @@{"name": "data-table",- "version": "0.1.9",+ "version": "0.1.11","private": true,"scripts": {"dev": "next dev --turbopack",diff --git a/pipes/data-table/src/components/audio-transcriptions-table.tsx b/pipes/data-table/src/components/audio-transcriptions-table.tsxindex 5c132da28..aa6557422 100644--- a/pipes/data-table/src/components/audio-transcriptions-table.tsx+++ b/pipes/data-table/src/components/audio-transcriptions-table.tsx@@ -50,6 +50,12 @@ import {SelectTrigger,SelectValue,} from "@/components/ui/select";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";interface AudioTranscription {id: number;@@ -115,9 +121,10 @@ const columns: ColumnDef<AudioTranscription>[] = [);},cell: ({ row }) => (- <div className="max-w-[500px] truncate font-mono">- {row.getValue("transcription")}- </div>+ <CellContent+ value={row.getValue("transcription")}+ className="max-w-[500px] truncate font-mono"+ />),},{@@ -200,6 +207,40 @@ const columns: ColumnDef<AudioTranscription>[] = [},];+// Component for cell content with click support+interface CellContentProps {+ value: string | null;+ className?: string;+}++function CellContent({ value, className }: CellContentProps) {+ const [isDialogOpen, setIsDialogOpen] = React.useState(false);+ const displayValue = value || "N/A";++ return (+ <>+ <div+ className={className}+ onClick={() => setIsDialogOpen(true)}+ style={{ cursor: "pointer" }}+ >+ {displayValue}+ </div>++ <Dialog open={isDialogOpen} onOpenChange={setIsDialogOpen}>+ <DialogContent className="sm:max-w-[700px] max-h-[80vh]">+ <DialogHeader>+ <DialogTitle>cell content</DialogTitle>+ </DialogHeader>+ <div className="overflow-auto max-h-[60vh] font-mono p-4 border rounded-md bg-muted/50 whitespace-pre-wrap">+ {displayValue}+ </div>+ </DialogContent>+ </Dialog>+ </>+ );+}+export function AudioTranscriptionsTable() {const [data, setData] = React.useState<AudioTranscription[]>([]);const [sorting, setSorting] = React.useState<SortingState>([]);diff --git a/pipes/data-table/src/components/database-sidebar.tsx b/pipes/data-table/src/components/database-sidebar.tsxindex def6a5e69..e215b543a 100644--- a/pipes/data-table/src/components/database-sidebar.tsx+++ b/pipes/data-table/src/components/database-sidebar.tsx@@ -19,12 +19,12 @@ const allTables: TableItem[] = [},{name: "video_chunks",- displayName: "Video chunks",+ displayName: "Video files",icon: <Database className="h-4 w-4" />,},{name: "ocr_text",- displayName: "OCR text",+ displayName: "OCR",icon: <Database className="h-4 w-4" />,},{diff --git a/pipes/data-table/src/components/ocr-data-table.tsx b/pipes/data-table/src/components/ocr-data-table.tsxindex 42a132d29..73708b68e 100644--- a/pipes/data-table/src/components/ocr-data-table.tsx+++ b/pipes/data-table/src/components/ocr-data-table.tsx@@ -19,6 +19,7 @@ import {MoreHorizontal,RefreshCw,Search,+ X,} from "lucide-react";import { Button } from "@/components/ui/button";@@ -41,6 +42,12 @@ import {} from "@/components/ui/table";import { Badge } from "@/components/ui/badge";import { SqlAutocompleteInput } from "./sql-autocomplete-input";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";interface OcrText {frame_id: number;@@ -50,6 +57,42 @@ interface OcrText {// ocr_engine: string;window_name: string | null;// focused: boolean;+ timestamp: string;+ browser_url: string | null;+}++// Component for cell content with click support+interface CellContentProps {+ value: string | null;+ className?: string;+}++function CellContent({ value, className }: CellContentProps) {+ const [isDialogOpen, setIsDialogOpen] = React.useState(false);+ const displayValue = value || "N/A";++ return (+ <>+ <div+ className={className}+ onClick={() => setIsDialogOpen(true)}+ style={{ cursor: "pointer" }}+ >+ {displayValue}+ </div>++ <Dialog open={isDialogOpen} onOpenChange={setIsDialogOpen}>+ <DialogContent className="sm:max-w-[700px] max-h-[80vh]">+ <DialogHeader>+ <DialogTitle>cell content</DialogTitle>+ </DialogHeader>+ <div className="overflow-auto max-h-[60vh] font-mono p-4 border rounded-md bg-muted/50 whitespace-pre-wrap">+ {displayValue}+ </div>+ </DialogContent>+ </Dialog>+ </>+ );}const columns: ColumnDef<OcrText>[] = [@@ -67,6 +110,25 @@ const columns: ColumnDef<OcrText>[] = [);},},+ {+ accessorKey: "timestamp",+ header: ({ column }) => {+ return (+ <Button+ variant="ghost"+ onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}+ >+ Time+ <ArrowUpDown className="ml-2 h-4 w-4" />+ </Button>+ );+ },+ cell: ({ row }) => (+ <div className="whitespace-nowrap">+ {new Date(row.getValue("timestamp")).toLocaleString()}+ </div>+ ),+ },{accessorKey: "text",header: ({ column }) => {@@ -81,9 +143,10 @@ const columns: ColumnDef<OcrText>[] = [);},cell: ({ row }) => (- <div className="max-w-[500px] truncate font-mono">- {row.getValue("text")}- </div>+ <CellContent+ value={row.getValue("text")}+ className="max-w-[500px] truncate font-mono"+ />),},{@@ -117,9 +180,30 @@ const columns: ColumnDef<OcrText>[] = [);},cell: ({ row }) => (- <div className="max-w-[200px] truncate">- {row.getValue("window_name") || "N/A"}- </div>+ <CellContent+ value={row.getValue("window_name")}+ className="max-w-[200px] truncate"+ />+ ),+ },+ {+ accessorKey: "browser_url",+ header: ({ column }) => {+ return (+ <Button+ variant="ghost"+ onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}+ >+ URL+ <ArrowUpDown className="ml-2 h-4 w-4" />+ </Button>+ );+ },+ cell: ({ row }) => (+ <CellContent+ value={row.getValue("browser_url")}+ className="max-w-[200px] truncate"+ />),},// {@@ -244,16 +328,19 @@ export function OcrDataTable() {body: JSON.stringify({query: `SELECT- frame_id,- text,- text_json,- app_name,- ocr_engine,- window_name,- focused+ ocr_text.frame_id,+ ocr_text.text,+ ocr_text.text_json,+ ocr_text.app_name,+ ocr_text.ocr_engine,+ ocr_text.window_name,+ ocr_text.focused,+ frames.timestamp,+ frames.browser_urlFROM ocr_text+ LEFT JOIN frames ON ocr_text.frame_id = frames.idWHERE ${filterClauses}- ORDER BY frame_id DESC+ ORDER BY ocr_text.frame_id DESCLIMIT ${pageSize}OFFSET ${pageIndex * pageSize}`,diff --git a/pipes/data-table/src/components/ui-monitoring-table.tsx b/pipes/data-table/src/components/ui-monitoring-table.tsxindex e1b761210..d0f4b3f1d 100644--- a/pipes/data-table/src/components/ui-monitoring-table.tsx+++ b/pipes/data-table/src/components/ui-monitoring-table.tsx@@ -41,6 +41,12 @@ import {} from "@/components/ui/table";import { Badge } from "@/components/ui/badge";import { SqlAutocompleteInput } from "./sql-autocomplete-input";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";interface UiMonitoring {id: number;@@ -80,9 +86,10 @@ const columns: ColumnDef<UiMonitoring>[] = [);},cell: ({ row }) => (- <div className="max-w-[500px] truncate font-mono">- {row.getValue("text_output")}- </div>+ <CellContent+ value={row.getValue("text_output")}+ className="max-w-[500px] truncate font-mono"+ />),},{@@ -114,9 +121,10 @@ const columns: ColumnDef<UiMonitoring>[] = [);},cell: ({ row }) => (- <div className="max-w-[200px] truncate">- {row.getValue("window") || "N/A"}- </div>+ <CellContent+ value={row.getValue("window")}+ className="max-w-[200px] truncate"+ />),},{@@ -175,6 +183,40 @@ const columns: ColumnDef<UiMonitoring>[] = [},];+// Component for cell content with click support+interface CellContentProps {+ value: string | null;+ className?: string;+}++function CellContent({ value, className }: CellContentProps) {+ const [isDialogOpen, setIsDialogOpen] = React.useState(false);+ const displayValue = value || "N/A";++ return (+ <>+ <div+ className={className}+ onClick={() => setIsDialogOpen(true)}+ style={{ cursor: "pointer" }}+ >+ {displayValue}+ </div>++ <Dialog open={isDialogOpen} onOpenChange={setIsDialogOpen}>+ <DialogContent className="sm:max-w-[700px] max-h-[80vh]">+ <DialogHeader>+ <DialogTitle>cell content</DialogTitle>+ </DialogHeader>+ <div className="overflow-auto max-h-[60vh] font-mono p-4 border rounded-md bg-muted/50 whitespace-pre-wrap">+ {displayValue}+ </div>+ </DialogContent>+ </Dialog>+ </>+ );+}+export function UiMonitoringTable() {const [data, setData] = React.useState<UiMonitoring[]>([]);const [sorting, setSorting] = React.useState<SortingState>([]);diff --git a/pipes/data-table/src/components/video-chunks-table.tsx b/pipes/data-table/src/components/video-chunks-table.tsxindex 3f96521dc..af799efce 100644--- a/pipes/data-table/src/components/video-chunks-table.tsx+++ b/pipes/data-table/src/components/video-chunks-table.tsx@@ -21,6 +21,12 @@ import {Search,Monitor,} from "lucide-react";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog";import { Button } from "@/components/ui/button";import {@@ -64,6 +70,40 @@ interface MonitorDevice {height: number;}+// Component for cell content with click support+interface CellContentProps {+ value: string | null;+ className?: string;+}++function CellContent({ value, className }: CellContentProps) {+ const [isDialogOpen, setIsDialogOpen] = React.useState(false);+ const displayValue = value || "N/A";++ return (+ <>+ <div+ className={className}+ onClick={() => setIsDialogOpen(true)}+ style={{ cursor: "pointer" }}+ >+ {displayValue}+ </div>++ <Dialog open={isDialogOpen} onOpenChange={setIsDialogOpen}>+ <DialogContent className="sm:max-w-[700px] max-h-[80vh]">+ <DialogHeader>+ <DialogTitle>cell content</DialogTitle>+ </DialogHeader>+ <div className="overflow-auto max-h-[60vh] font-mono p-4 border rounded-md bg-muted/50 whitespace-pre-wrap">+ {displayValue}+ </div>+ </DialogContent>+ </Dialog>+ </>+ );+}+const columns: ColumnDef<VideoChunk>[] = [{accessorKey: "id",@@ -92,6 +132,12 @@ const columns: ColumnDef<VideoChunk>[] = [</Button>);},+ cell: ({ row }) => (+ <CellContent+ value={row.getValue("file_path")}+ className="max-w-[500px] truncate"+ />+ ),},{accessorKey: "device_name",@@ -106,6 +152,12 @@ const columns: ColumnDef<VideoChunk>[] = [</Button>);},+ cell: ({ row }) => (+ <CellContent+ value={row.getValue("device_name")}+ className="max-w-[200px] truncate"+ />+ ),},{id: "actions",