-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Show agent avatars in chat history nav #8010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Show agent avatars in chat history nav #8010
Conversation
This change displays agent avatars in the chat history navigation list instead of using the generic feather icon for all agents. It improves the visual identification of different agents in the conversation list. - Updated EndpointIcon to handle agent avatar information - Modified MinimalIcon to display agent avatars properly - Updated ConvoLink components to pass agent data - Added proper styling for rounded avatar images
if (!agentsData?.data) { | ||
return {}; | ||
} | ||
return agentsData.data.reduce((acc, agent) => { |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
return {}; | ||
} | ||
return agentsData.data.reduce((acc, agent) => { | ||
acc[agent.id] = agent; |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
} | ||
return agentsData.data.reduce((acc, agent) => { | ||
acc[agent.id] = agent; | ||
return acc; |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
return agentsData.data.reduce((acc, agent) => { | ||
acc[agent.id] = agent; | ||
return acc; | ||
}, {} as Record<string, any>); |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
const agent = isAgentsEndpoint(endpoint) | ||
? agentsMap?.[conversation?.agent_id ?? ''] | ||
: null; |
Check failure
Code scanning / ESLint
Ensure code is properly formatted, use insertion, deletion, or replacement to obtain desired formatting. Error
This change displays agent avatars in the chat history navigation list instead of using the generic feather icon for all agents. It improves the visual identification of different agents in the conversation list.
The PR adds the following improvements:
This PR helps users visually identify different agents in their conversation history.