From 9f49d030315c9d38a5111ba82b4efa6aabbfc13b Mon Sep 17 00:00:00 2001 From: Bhanu Prakash Sai Potteri Date: Sat, 4 Jul 2026 18:22:50 +0530 Subject: [PATCH] sync AI-employee rename from sandbox (682ee61) --- src/api/config.ts | 4 ++-- src/components/activities/DocumentsBody.tsx | 2 +- src/components/core/Avatar.tsx | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api/config.ts b/src/api/config.ts index e01d236..b8104eb 100644 --- a/src/api/config.ts +++ b/src/api/config.ts @@ -127,9 +127,9 @@ export const ACTIVITY_NAME_BY_UID: Record = { // AI employees (user_id -> identity). Used to label the decision stream and // to attribute the "owner" of an in-flight lead. export const AI_EMPLOYEES: Record = { - '29180': { name: 'Aria', role: 'Lead Qualifier' }, + '29180': { name: 'Aria Qualify', role: 'Lead Qualifier' }, '29181': { name: 'Aria Engage', role: 'Calls & Scheduling' }, - '29182': { name: 'Aria Underwrite', role: 'Underwriting' }, + '29182': { name: 'Aria Eligibility', role: 'Eligibility' }, '29188': { name: 'Aria Advisor', role: 'Product Recommendation' }, }; diff --git a/src/components/activities/DocumentsBody.tsx b/src/components/activities/DocumentsBody.tsx index 9796854..2083437 100644 --- a/src/components/activities/DocumentsBody.tsx +++ b/src/components/activities/DocumentsBody.tsx @@ -215,7 +215,7 @@ export function DocumentsBody({ instanceId, record, onSuccess }: ActivityBodyPro
KYC for {record.lead_name ?? `Lead ${record.instance_id}`} · #{record.instance_id}
-
Collected by Aria Underwrite · {record.current_state_name}
+
Collected by Aria Eligibility · {record.current_state_name}
) : ( diff --git a/src/components/core/Avatar.tsx b/src/components/core/Avatar.tsx index a9135c9..01b2274 100644 --- a/src/components/core/Avatar.tsx +++ b/src/components/core/Avatar.tsx @@ -28,11 +28,11 @@ function initials(name = ''): string { // Each AI employee does something distinct, so each gets its own glyph + glow // instead of one shared orange bot. Matched by name; unrecognised AI actors -// (and plain "Aria", the Qualifier) fall back to the sunrise Sparkles look. +// (and "Aria Qualify", the Qualifier) fall back to the sunrise Sparkles look. type AiPersona = { Icon: LucideIcon; bg: string; shadow: string; color: string }; const AI_PERSONAS: Array<{ match: RegExp } & AiPersona> = [ { match: /engage/i, Icon: Phone, bg: 'linear-gradient(135deg,#19C2A8,#0E9466)', shadow: '0 2px 10px rgba(14,148,102,.45)', color: '#0E9466' }, - { match: /underwrite/i, Icon: ShieldCheck, bg: 'linear-gradient(135deg,#4F9BF5,#2480DB)', shadow: '0 2px 10px rgba(36,128,219,.45)', color: '#2480DB' }, + { match: /eligibility|underwrite/i, Icon: ShieldCheck, bg: 'linear-gradient(135deg,#4F9BF5,#2480DB)', shadow: '0 2px 10px rgba(36,128,219,.45)', color: '#2480DB' }, { match: /advisor/i, Icon: Lightbulb, bg: 'linear-gradient(135deg,#9B7BE8,#7C5BD6)', shadow: '0 2px 10px rgba(124,91,214,.45)', color: '#7C5BD6' }, ]; function aiPersona(name: string): AiPersona | null { @@ -40,7 +40,7 @@ function aiPersona(name: string): AiPersona | null { } /** Solid accent color for an AI employee, matched by name. Falls back to the - * shared sunrise orange for unrecognised actors (and plain "Aria"). */ + * shared sunrise orange for unrecognised actors (and "Aria Qualify"). */ export function aiEmployeeColor(name = ''): string { return aiPersona(name)?.color ?? 'var(--sunrise-600, #F26B3A)'; }