mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-02-16 23:35:46 +00:00
fix: show agent descriptions (#6219)
This commit is contained in:
@@ -27,25 +27,30 @@ export default function WelcomeMessage() {
|
||||
"mb-6"
|
||||
)}
|
||||
>
|
||||
<div className="flex items-center">
|
||||
{isDefaultAgent ? (
|
||||
<div
|
||||
data-testid="onyx-logo"
|
||||
className="flex flex-row items-center gap-4"
|
||||
>
|
||||
<Logo size="default" />
|
||||
<Text headingH2>{greeting}</Text>
|
||||
</div>
|
||||
) : (
|
||||
<div
|
||||
data-testid="assistant-name-display"
|
||||
className="flex flex-row items-center justify-center gap-3"
|
||||
>
|
||||
{isDefaultAgent ? (
|
||||
<div
|
||||
data-testid="onyx-logo"
|
||||
className="flex flex-row items-center gap-4"
|
||||
>
|
||||
<Logo size="default" />
|
||||
<Text headingH2>{greeting}</Text>
|
||||
</div>
|
||||
) : (
|
||||
<div
|
||||
data-testid="assistant-name-display"
|
||||
className="flex flex-col items-center gap-3 w-full max-w-[50rem]"
|
||||
>
|
||||
<div className="flex flex-row items-center gap-3">
|
||||
<AgentIcon agent={currentAgent} />
|
||||
<Text headingH2>{currentAgent.name}</Text>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{currentAgent.description && (
|
||||
<Text secondaryBody text03>
|
||||
{currentAgent.description}
|
||||
</Text>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user