sync AI-employee rename from sandbox (682ee61)

This commit is contained in:
Bhanu Prakash Sai Potteri 2026-07-04 18:22:50 +05:30
parent 0e57372fc0
commit 9f49d03031
3 changed files with 6 additions and 6 deletions

View File

@ -127,9 +127,9 @@ export const ACTIVITY_NAME_BY_UID: Record<string, string> = {
// AI employees (user_id -> identity). Used to label the decision stream and // AI employees (user_id -> identity). Used to label the decision stream and
// to attribute the "owner" of an in-flight lead. // to attribute the "owner" of an in-flight lead.
export const AI_EMPLOYEES: Record<string, { name: string; role: string }> = { export const AI_EMPLOYEES: Record<string, { name: string; role: string }> = {
'29180': { name: 'Aria', role: 'Lead Qualifier' }, '29180': { name: 'Aria Qualify', role: 'Lead Qualifier' },
'29181': { name: 'Aria Engage', role: 'Calls & Scheduling' }, '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' }, '29188': { name: 'Aria Advisor', role: 'Product Recommendation' },
}; };

View File

@ -215,7 +215,7 @@ export function DocumentsBody({ instanceId, record, onSuccess }: ActivityBodyPro
<div className="text-base font-bold text-strong"> <div className="text-base font-bold text-strong">
KYC for {record.lead_name ?? `Lead ${record.instance_id}`} · #{record.instance_id} KYC for {record.lead_name ?? `Lead ${record.instance_id}`} · #{record.instance_id}
</div> </div>
<div className="text-xs text-faint">Collected by Aria Underwrite · {record.current_state_name}</div> <div className="text-xs text-faint">Collected by Aria Eligibility · {record.current_state_name}</div>
</div> </div>
</> </>
) : ( ) : (

View File

@ -28,11 +28,11 @@ function initials(name = ''): string {
// Each AI employee does something distinct, so each gets its own glyph + glow // 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 // 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 }; type AiPersona = { Icon: LucideIcon; bg: string; shadow: string; color: string };
const AI_PERSONAS: Array<{ match: RegExp } & AiPersona> = [ 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: /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' }, { 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 { 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 /** 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 { export function aiEmployeeColor(name = ''): string {
return aiPersona(name)?.color ?? 'var(--sunrise-600, #F26B3A)'; return aiPersona(name)?.color ?? 'var(--sunrise-600, #F26B3A)';
} }