Skip to content

Commit 7ad2bb3

Browse files
committed
Merge branch 'macae-v3-dev-v2-vip' into macae-v3-fr-dev-92
2 parents 703a43c + 9e73d9c commit 7ad2bb3

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/frontend/src/components/content/streaming/StreamingAgentMessage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ const useStyles = makeStyles({
7373
},
7474
humanBubble: {
7575
backgroundColor: 'var(--colorBrandBackground)',
76-
color: 'var(--colorNeutralForegroundInverted)',
76+
color: 'white !important', // Force white text in both light and dark modes
7777
maxWidth: '80%',
78+
padding: '12px 16px',
79+
lineHeight: '1.5',
7880
alignSelf: 'flex-end'
7981
},
8082
botBubble: {
@@ -88,7 +90,7 @@ const useStyles = makeStyles({
8890
clarificationBubble: {
8991
backgroundColor: 'var(--colorNeutralBackground2)',
9092
color: 'var(--colorNeutralForeground1)',
91-
padding: '6px 8px', // Reduced from 12px 16px
93+
padding: '6px 8px',
9294
borderRadius: '8px',
9395
fontSize: '14px',
9496
lineHeight: '1.5',

src/frontend/src/utils/agentIconUtils.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,17 @@ export const getAgentDisplayName = (agentName: string): string => {
320320
// Remove "Agent" suffix if it exists (case insensitive)
321321
cleanName = cleanName.replace(/\s*agent\s*$/gi, '').trim();
322322

323+
// Convert to proper case
324+
cleanName = cleanName
325+
.replace(/\bHRHelper\b/gi, 'HR Helper')
326+
.replace(/\bHR([A-Z])/g, 'HR $1') // Add space after HR before capital letter
327+
.replace(/\bIT([A-Z])/g, 'IT $1') // Add space after IT before capital letter
328+
.replace(/\bAPI([A-Z])/g, 'API $1'); // Add space after API before capital letter
329+
323330
// Convert to proper case
324331
cleanName = cleanName.replace(/\b\w/g, l => l.toUpperCase());
325332

333+
326334
// Handle special cases for better readability
327335
cleanName = cleanName
328336
.replace(/\bKb\b/g, 'KB') // KB instead of Kb

0 commit comments

Comments
 (0)