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(app): connections strip — bigger icons, no clipping, button on right
Louis Beaumontb8946c14e429
diff --git a/apps/screenpipe-app-tauri/components/pipe-store.tsx b/apps/screenpipe-app-tauri/components/pipe-store.tsxindex ea1c30bc6..546e35c37 100644--- a/apps/screenpipe-app-tauri/components/pipe-store.tsx+++ b/apps/screenpipe-app-tauri/components/pipe-store.tsx@@ -264,44 +264,55 @@ function ConnectionsStrip() {const disconnected = integrations.filter((i) => !i.connected);const sorted = [...connected, ...disconnected];+ const openConnections = () => {+ window.dispatchEvent(+ new CustomEvent("open-settings", {+ detail: { section: "connections" },+ })+ );+ };+return (<TooltipProvider delayDuration={200}>- <div className="flex items-center gap-1.5 mb-4 overflow-x-auto scrollbar-hide">- <span className="text-[10px] text-muted-foreground font-medium mr-1 uppercase tracking-wider shrink-0">+ <div className="flex items-center gap-2 mb-4">+ <div className="flex-1 overflow-x-auto scrollbar-hide">+ <div className="flex items-center gap-1.5 py-1">+ {sorted.map((integration) => (+ <Tooltip key={integration.id}>+ <TooltipTrigger asChild>+ <button+ onClick={() => {+ sessionStorage.setItem("openConnection", integration.id);+ openConnections();+ }}+ className={cn(+ "relative flex items-center justify-center w-8 h-8 shrink-0 border rounded transition-colors",+ integration.connected+ ? "border-foreground/20 hover:border-foreground/40"+ : "border-dashed border-muted-foreground/20 opacity-40 hover:opacity-70"+ )}+ >+ <IntegrationIcon icon={integration.icon} />+ {integration.connected && (+ <div className="absolute -bottom-0.5 -right-0.5 w-2 h-2 rounded-full bg-foreground" />+ )}+ </button>+ </TooltipTrigger>+ <TooltipContent side="bottom" className="text-xs">+ {integration.name}+ {integration.connected ? " · connected" : " · not set up"}+ </TooltipContent>+ </Tooltip>+ ))}+ </div>+ </div>+ <button+ onClick={openConnections}+ className="shrink-0 flex items-center gap-1.5 px-3 py-1.5 text-[10px] font-medium uppercase tracking-wider border border-foreground/20 rounded hover:bg-foreground/5 transition-colors"+ >+ <Plug className="w-3 h-3" />connections- </span>- {sorted.map((integration) => (- <Tooltip key={integration.id}>- <TooltipTrigger asChild>- <button- onClick={() => {- sessionStorage.setItem("openConnection", integration.id);- // trigger settings modal to connections section- window.dispatchEvent(- new CustomEvent("open-settings", {- detail: { section: "connections" },- })- );- }}- className={cn(- "relative flex items-center justify-center w-7 h-7 border rounded transition-colors",- integration.connected- ? "border-foreground/20 hover:border-foreground/40"- : "border-dashed border-muted-foreground/20 opacity-50 hover:opacity-80"- )}- >- <IntegrationIcon icon={integration.icon} />- {integration.connected && (- <div className="absolute -bottom-0.5 -right-0.5 w-2 h-2 rounded-full bg-foreground" />- )}- </button>- </TooltipTrigger>- <TooltipContent side="bottom" className="text-xs">- {integration.name}- {integration.connected ? " · connected" : " · not set up"}- </TooltipContent>- </Tooltip>- ))}+ </button></div></TooltipProvider>);