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(pipes): color pipe icons and fix recents empty state (#5485)

Harsh Kumar0f29cb720c78
diff --git a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx b/apps/screenpipe-app-tauri/components/chat-sidebar.tsx
index 9c46a466a..bdc633785 100644
--- a/apps/screenpipe-app-tauri/components/chat-sidebar.tsx
+++ b/apps/screenpipe-app-tauri/components/chat-sidebar.tsx
@@ -934,6 +934,10 @@ export function ChatSidebar({ className, onViewAll }: ChatSidebarProps) {
const openAllCollapsed = recentsCollapsed && (archived.length === 0 || archivedCollapsed);
const recentsLoading = !diskHydrated && recents.length === 0 && pipes.length === 0;
+ // "view all" opens the history view (chats / pipes / archived tabs) — pointless
+ // to offer when there is nothing anywhere to look at.
+ const hasAnythingToView =
+ recents.length > 0 || pinned.length > 0 || pipes.length > 0 || archived.length > 0;
const recentsCap = SIDEBAR_CAP;
const visibleGroupedSections = useMemo(
@@ -1254,7 +1258,7 @@ export function ChatSidebar({ className, onViewAll }: ChatSidebarProps) {
"ml-auto inline-flex items-center gap-0.5 select-none",
"text-[10px] uppercase tracking-wider transition-colors",
"opacity-0 group-hover/recents:opacity-100",
- recentsCollapsed && "hidden",
+ (recentsCollapsed || !hasAnythingToView) && "hidden",
onViewAll
? "text-muted-foreground/70 hover:text-muted-foreground cursor-pointer"
: "text-muted-foreground/30 cursor-default"
@@ -1285,9 +1289,11 @@ export function ChatSidebar({ className, onViewAll }: ChatSidebarProps) {
<Skeleton key={i} className="h-6 w-full rounded-md" />
))}
</div>
- ) : recents.length === 0 && pipes.length === 0 ? (
+ ) : recents.length === 0 ? (
<div className="px-2.5 py-2 text-xs text-muted-foreground/70 italic">
- {pinned.length === 0 ? "no chats yet — click + to start" : "no recent chats"}
+ {pinned.length === 0 && pipes.length === 0
+ ? "no chats yet — click + to start"
+ : "no recent chats"}
</div>
) : (
<RecentsBody
diff --git a/apps/screenpipe-app-tauri/components/pipe-store.tsx b/apps/screenpipe-app-tauri/components/pipe-store.tsx
index 7796791ba..56ab0f136 100644
--- a/apps/screenpipe-app-tauri/components/pipe-store.tsx
+++ b/apps/screenpipe-app-tauri/components/pipe-store.tsx
@@ -1135,7 +1135,7 @@ function PipeCard({
>
{/* Header: icon + action */}
<div className="flex items-start justify-between gap-3">
- <div className="text-xl bg-muted rounded-none h-10 w-10 flex items-center justify-center flex-shrink-0 grayscale">
+ <div className="text-xl bg-muted rounded-none h-10 w-10 flex items-center justify-center flex-shrink-0">
{pipe.icon || "🔧"}
</div>
<Button