Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function HomeDetailPanel({
variant="title-small"
className="min-w-0 flex-1 truncate text-[var(--content-default)]"
>
{item.title}
{item.title ?? item.summary}
</Typography>

{/* Go to Convo button — only when conversationId exists */}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { CATEGORY_STYLES, CATEGORY_ORDER } from "../home-feed-filter-bar.js";
import { CATEGORY_STYLES } from "../home-feed-filter-bar.js";
import { HomeMarkdownContent } from "./home-markdown-content.js";
import type { FeedItem, FeedItemCategory } from "../types.js";

function resolveStyle(category?: FeedItemCategory) {
if (category && CATEGORY_STYLES[category]) {
return CATEGORY_STYLES[category];
}
const fallback = CATEGORY_ORDER[0] ?? "security";
return CATEGORY_STYLES[fallback];
return CATEGORY_STYLES.system;
}

export interface HomeGenericDetailProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function HomeToolPermissionCard({
variant="body-medium-default"
className="text-[var(--content-secondary)]"
>
{item.title}
{item.title ?? item.summary}
</Typography>
);
}
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/domains/home/home-recap-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function HomeRecapRow({
"text-[var(--content-secondary)]",
)}
>
{item.title}
{item.title ?? item.summary}
</span>

{isHovering ? (
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/domains/home/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface FeedItem {
id: string;
type: FeedItemType;
priority: number;
title: string;
title?: string;
summary: string;
timestamp: string;
status: FeedItemStatus;
Expand Down