fix(desktop): simplify inbox header layout

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Thomas Petersen
2026-05-11 15:58:04 -04:00
parent 37625df695
commit 27b2be3da0
3 changed files with 6 additions and 26 deletions

View File

@@ -4,7 +4,7 @@ import {
CircleDot,
FileText,
Hash,
Home,
Inbox,
Lock,
Zap,
} from "lucide-react";
@@ -37,7 +37,7 @@ function ChannelIcon({
mode?: "home" | "channel" | "agents" | "workflows" | "pulse";
}) {
if (mode === "home") {
return <Home className={HEADER_ICON_CLASS} />;
return <Inbox className={HEADER_ICON_CLASS} />;
}
if (mode === "agents") {
@@ -111,14 +111,6 @@ export function ChatHeader({
</div>
) : null}
</div>
{trimmedDescription ? (
<p
className="truncate text-sm text-muted-foreground"
data-testid="chat-description"
>
{trimmedDescription}
</p>
) : null}
</div>
{actions ? <div className="shrink-0">{actions}</div> : null}

View File

@@ -21,7 +21,7 @@ export function HomeScreen({
description="Personalized activity feed for mentions, reminders, channel activity, and agent work."
mode="home"
overlaysContent
title="Home"
title="Inbox"
/>
<div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden">

View File

@@ -1,4 +1,4 @@
import { Inbox, Search } from "lucide-react";
import { Search } from "lucide-react";
import type { InboxFilter, InboxItem } from "@/features/home/lib/inbox";
import { cn } from "@/shared/lib/cn";
@@ -38,21 +38,9 @@ export function InboxListPane({
return (
<section className="flex min-h-0 min-w-0 flex-col overflow-hidden border-r border-border/70 bg-background">
<div
className="border-b border-border/70 px-4 pb-4 pt-8"
className="border-b border-border/70 px-4 pb-4 pt-3"
data-tauri-drag-region
>
<div
className="mb-4 flex min-w-0 items-center gap-2"
data-tauri-drag-region
>
<Inbox className="h-5 w-5 shrink-0 text-primary" />
<h1
className="min-w-0 truncate text-lg font-semibold tracking-tight"
data-testid="chat-title"
>
Inbox
</h1>
</div>
<div className="relative">
<Search className="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
<Input
@@ -97,7 +85,7 @@ export function InboxListPane({
</div>
</div>
) : (
<div className="divide-y divide-border/60">
<div>
{items.map((item) => {
const isSelected = item.id === selectedId;
const isDone = doneSet.has(item.id);