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(ui): polish sidebar, home chat header and brain tabs (#5924)

Harsh Kumar829e59f5f735
diff --git a/apps/screenpipe-app-tauri/app/(main)/home/page.tsx b/apps/screenpipe-app-tauri/app/(main)/home/page.tsx
index 3172d741a..828253552 100644
--- a/apps/screenpipe-app-tauri/app/(main)/home/page.tsx
+++ b/apps/screenpipe-app-tauri/app/(main)/home/page.tsx
@@ -1166,11 +1166,11 @@ function HomeContent() {
}
}}
className={cn(
- "relative w-full flex items-center gap-2.5 px-2.5 py-1.5 rounded-lg transition-all duration-150 text-left group",
+ "relative w-full flex items-center gap-2.5 px-2.5 py-1.5 rounded-lg border border-transparent transition-all duration-150 text-left group",
isActive
? isTranslucent
? "vibrant-nav-active"
- : "bg-card shadow-sm border border-border text-foreground"
+ : "bg-card shadow-sm border-border text-foreground"
: isTranslucent
? "vibrant-nav-item vibrant-nav-hover"
: "hover:bg-card/50 text-muted-foreground hover:text-foreground",
diff --git a/apps/screenpipe-app-tauri/components/chat/standalone/standalone-chat-header.tsx b/apps/screenpipe-app-tauri/components/chat/standalone/standalone-chat-header.tsx
index 6a6e02aed..0e8f62367 100644
--- a/apps/screenpipe-app-tauri/components/chat/standalone/standalone-chat-header.tsx
+++ b/apps/screenpipe-app-tauri/components/chat/standalone/standalone-chat-header.tsx
@@ -24,6 +24,7 @@ interface StandaloneChatHeaderProps {
isMac: boolean;
isFullscreen: boolean;
hideInlineHistory?: boolean;
+ hasRightActions?: boolean;
showHistory: boolean;
settings: {
disabledShortcuts: string[];
@@ -46,6 +47,7 @@ export function StandaloneChatHeader({
isMac,
isFullscreen,
hideInlineHistory,
+ hasRightActions,
showHistory,
settings,
reloadStore,
@@ -76,6 +78,16 @@ export function StandaloneChatHeader({
? storeTitle
: derivedTitle || (hasMessages ? "untitled" : ""));
const useCompactHeaderPadding = !className || Boolean(conversationId && visibleTitle);
+ // With inline history hidden (main window) the row can end up with the title
+ // menu suppressed and no right actions — an empty strip. Nothing to show and
+ // nothing to drag (dragging is disabled whenever className is set), so drop
+ // the row entirely instead of leaving a bordered band of dead space.
+ const isEmpty =
+ Boolean(hideInlineHistory) &&
+ !(conversationId && visibleTitle) &&
+ !hasRightActions;
+
+ if (isEmpty) return null;
return (
<div
diff --git a/apps/screenpipe-app-tauri/components/settings/brain-section.tsx b/apps/screenpipe-app-tauri/components/settings/brain-section.tsx
index 63a932304..6efce8f60 100644
--- a/apps/screenpipe-app-tauri/components/settings/brain-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/brain-section.tsx
@@ -179,6 +179,12 @@ type UnifiedItem =
| { kind: "artifact"; data: UnifiedArtifact; sortDate: number };
type TypeFilter = "overview" | "memories" | "artifacts";
+
+const BRAIN_TAB_DESCRIPTIONS: Record<TypeFilter, string> = {
+ overview: "live dashboards the AI builds from your activity, updated as you work",
+ memories: "what the AI has learned about you from your activity",
+ artifacts: "documents, pages and files the AI has generated for you",
+};
type SelectedBrainItem =
| { kind: "memory"; key: string }
| { kind: "artifact"; key: string };
@@ -1471,18 +1477,15 @@ export function BrainSection() {
<div data-testid="section-brain" className="h-full overflow-hidden">
<div
data-testid="brain-content"
- className={`mx-auto flex h-full flex-col px-3 pb-6 sm:px-6 ${
+ className={`mx-auto flex h-full flex-col px-3 pb-6 pt-10 sm:px-6 ${
typeFilter === "overview"
- ? "max-w-none space-y-2 pt-8"
- : "max-w-6xl space-y-4 pt-10"
+ ? "max-w-none space-y-2"
+ : "max-w-6xl space-y-4"
}`}
>
- {typeFilter !== "overview" && (
- <p className="mb-4 text-sm text-muted-foreground">
- what the AI has learned from your activity and what it has generated
- for you
- </p>
- )}
+ <p className="mb-4 text-sm text-muted-foreground">
+ {BRAIN_TAB_DESCRIPTIONS[typeFilter]}
+ </p>
{/* stale memories warning */}
{typeFilter === "memories" && isStale && (
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index d87e78f68..43f4c5cc5 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -1342,6 +1342,7 @@ export function StandaloneChat({
isMac={isMac}
isFullscreen={isFullscreen}
hideInlineHistory={hideInlineHistory}
+ hasRightActions={inspectorHasContent || sidePanelHasContent}
showHistory={showHistory}
settings={settings}
reloadStore={reloadStore}