Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

feat(frontend): move chat source icon beside timestamp and desaturate it (#13303)

Abhimanyu Yadav1480e809527f
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatOriginIcon/ChatOriginIcon.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatOriginIcon/ChatOriginIcon.tsx
index b43c670a41..8c90fe6e78 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatOriginIcon/ChatOriginIcon.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatOriginIcon/ChatOriginIcon.tsx
@@ -16,16 +16,16 @@ export function ChatOriginIcon({ sourcePlatform }: Props) {
return (
<span
- className="inline-flex size-4 shrink-0 items-center justify-center"
+ className="inline-flex size-3.5 shrink-0 items-center justify-center"
title={`From ${logo.name}`}
>
<Image
src={logo.src}
alt={logo.name}
- width={16}
- height={16}
+ width={14}
+ height={14}
loading="lazy"
- className="size-4 object-contain"
+ className="size-3.5 object-contain opacity-80 grayscale"
onError={() => setBrokenSrc(logo.src)}
/>
</span>
diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSessionBlock/ChatSessionBlock.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSessionBlock/ChatSessionBlock.tsx
index f9206658ab..734b700c2e 100644
--- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSessionBlock/ChatSessionBlock.tsx
+++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatSessionBlock/ChatSessionBlock.tsx
@@ -64,7 +64,6 @@ export function ChatSessionBlock({
<div
className={cn("flex min-w-0 max-w-full items-center gap-2", className)}
>
- <ChatOriginIcon sourcePlatform={sourcePlatform} />
<div className="min-w-0 flex-1">
<div className="flex min-w-0 items-center">
<Text
@@ -77,9 +76,12 @@ export function ChatSessionBlock({
{titleContent || displayTitle}
</Text>
</div>
- <Text variant="small" className="text-neutral-400">
- {formatDate(updatedAt)}
- </Text>
+ <div className="flex items-center gap-1.5">
+ <Text variant="small" className="text-neutral-400">
+ {formatDate(updatedAt)}
+ </Text>
+ <ChatOriginIcon sourcePlatform={sourcePlatform} />
+ </div>
</div>
{chatStatus === "running" ? (
<span