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
5 changes: 5 additions & 0 deletions .changeset/large-words-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inkeep/agents-manage-ui": patch
---

fix max height for card content on traces conversation page
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export default function ConversationDetail({

return (
<Card
className="shadow-none bg-background"
className="shadow-none bg-background max-h-[280px] flex flex-col"
title={
conversation.conversationStartTime
? `Start: ${formatDateTime(conversation.conversationStartTime, { local: true })}${showEndTime && conversation.conversationEndTime ? `\nEnd: ${formatDateTime(conversation.conversationEndTime, { local: true })}` : ''}`
Expand Down Expand Up @@ -310,12 +310,12 @@ export default function ConversationDetail({
})()}

{/* AI Calls summary grouped by model */}
<Card className="shadow-none bg-background">
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
<Card className="shadow-none bg-background max-h-[280px] flex flex-col">
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2 flex-shrink-0">
<CardTitle className="text-sm font-medium text-foreground">AI Calls</CardTitle>
<MessageSquare className="h-4 w-4 text-muted-foreground" />
</CardHeader>
<CardContent>
<CardContent className="flex-1 min-h-0 overflow-y-auto">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💭 Consider: Scrollbar styling for consistency

Issue: This scrollable CardContent doesn't include the scrollbar styling classes used elsewhere in the traces components.

Why: The codebase has an established pattern of styled scrollbars (scrollbar-thin scrollbar-thumb-muted-foreground/30 scrollbar-track-transparent dark:scrollbar-thumb-muted-foreground/50) for a more refined look. Adding them here would match the pattern in activity-details-sidepane.tsx and tool-calls-by-server-card.tsx.

Fix: Consider adding scrollbar classes:

<CardContent className="flex-1 min-h-0 overflow-y-auto scrollbar-thin scrollbar-thumb-muted-foreground/30 scrollbar-track-transparent dark:scrollbar-thumb-muted-foreground/50">

Refs:

{(() => {
const ai = conversation?.activities?.filter(
(a: ActivityItem) =>
Expand Down Expand Up @@ -370,8 +370,8 @@ export default function ConversationDetail({
<MCPBreakdownCard conversation={conversation} />

{/* Alerts */}
<Card className="shadow-none bg-background">
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
<Card className="shadow-none bg-background max-h-[280px] flex flex-col">
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2 flex-shrink-0">
<CardTitle className="text-sm font-medium text-foreground">Alerts</CardTitle>
<TriangleAlert className="h-4 w-4 text-muted-foreground" />
</CardHeader>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function MCPBreakdownCard({ conversation }: MCPBreakdownCardProps) {
}, [conversation]);

return (
<Card className="shadow-none bg-background flex flex-col">
<Card className="shadow-none bg-background flex flex-col max-h-[280px]">
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2 flex-shrink-0">
<CardTitle className="text-sm font-medium text-foreground"> MCP Tool Calls</CardTitle>
<Wrench className="h-4 w-4 text-muted-foreground" />
Expand Down