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 @@ -73,8 +73,10 @@ const useStyles = makeStyles({
},
humanBubble: {
backgroundColor: 'var(--colorBrandBackground)',
color: 'var(--colorNeutralForegroundInverted)',
color: 'white !important', // Force white text in both light and dark modes
maxWidth: '80%',
padding: '12px 16px',
lineHeight: '1.5',
alignSelf: 'flex-end'
},
botBubble: {
Expand All @@ -88,7 +90,7 @@ const useStyles = makeStyles({
clarificationBubble: {
backgroundColor: 'var(--colorNeutralBackground2)',
color: 'var(--colorNeutralForeground1)',
padding: '6px 8px', // Reduced from 12px 16px
padding: '6px 8px',
borderRadius: '8px',
fontSize: '14px',
lineHeight: '1.5',
Expand Down
8 changes: 8 additions & 0 deletions src/frontend/src/utils/agentIconUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,17 @@ export const getAgentDisplayName = (agentName: string): string => {
// Remove "Agent" suffix if it exists (case insensitive)
cleanName = cleanName.replace(/\s*agent\s*$/gi, '').trim();

// Convert to proper case
cleanName = cleanName
.replace(/\bHRHelper\b/gi, 'HR Helper')
.replace(/\bHR([A-Z])/g, 'HR $1') // Add space after HR before capital letter
.replace(/\bIT([A-Z])/g, 'IT $1') // Add space after IT before capital letter
.replace(/\bAPI([A-Z])/g, 'API $1'); // Add space after API before capital letter

// Convert to proper case
cleanName = cleanName.replace(/\b\w/g, l => l.toUpperCase());


// Handle special cases for better readability
cleanName = cleanName
.replace(/\bKb\b/g, 'KB') // KB instead of Kb
Expand Down
Loading