nexus/ui/src/lib/agent-role-colors.ts
Nexus Dev 6567ea700a feat(22-00): DB migration, shared types, react-virtual, agent-role-colors, CSS animation
- Add updatedAt column to chat_messages schema (nullable)
- Create migration 0048_add_chat_messages_updated_at.sql
- Add updatedAt: string | null to ChatMessage shared type
- Install @tanstack/react-virtual in ui workspace
- Create agent-role-colors.ts with 11 distinct themed roles (THEME-03)
- Add agent-role-colors.test.ts (4 tests all passing)
- Add cursor-blink CSS animation with prefers-reduced-motion guard
2026-04-02 15:08:50 +00:00

17 lines
753 B
TypeScript

import type { AgentRole } from "@paperclipai/shared";
export const agentRoleColors: Record<AgentRole, string> = {
pm: "text-blue-600 dark:text-blue-400",
engineer: "text-violet-600 dark:text-violet-400",
ceo: "text-amber-600 dark:text-amber-400",
general: "text-slate-600 dark:text-slate-400",
designer: "text-pink-600 dark:text-pink-400",
qa: "text-orange-600 dark:text-orange-400",
researcher: "text-teal-600 dark:text-teal-400",
devops: "text-emerald-600 dark:text-emerald-400",
cto: "text-indigo-600 dark:text-indigo-400",
cmo: "text-rose-600 dark:text-rose-400",
cfo: "text-cyan-600 dark:text-cyan-400",
};
export const agentRoleColorDefault = "text-muted-foreground";