Awesome Reviewers

Adopt maintainable UI code style rules:

1) Avoid explicit any / lint ignores—use real types

2) Don’t hardcode Tailwind arbitrary hex colors

3) Keyboard handlers: make behavior explicit

Example patterns:

// 1) Prefer typed/narrowed data over `any`
type AssistantMessagePart = { type: 'text'; text: string };

function extractTextPart(parts: unknown): string | null {
  if (!Array.isArray(parts)) return null;
  const part = parts.find(
    (p): p is AssistantMessagePart =>
      typeof p === 'object' && p !== null && (p as any).type === 'text'
  );
  return part?.text ?? null;
}

// 2) Theme token instead of arbitrary hex (example)
// Bad: className="bg-[#1F2428] ..."
// Good: className="bg-surface ..." (token defined in theme)

// 3) Keyboard handler with explicit default prevention
function onKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {
  if (e.key === 'Enter' && !e.shiftKey) {
    e.preventDefault();
    // submit/send
  }
}

Use this as a default in UI components: typed data, tokenized styles, and explicit event behavior.