fix(KB): cursor on Always/Manual ingest policy buttons (#927)

Tailwind v4 dropped the default `button { cursor: pointer }` preflight
rule. The Always/Manual toggle in the KB modal uses inline <button>
elements (not the StyledButton wrapper that sets cursor-pointer
explicitly), so hovering them shows the default arrow cursor instead of
a pointer like every other clickable in the modal. Reported on NOMAD1
during v1.32.0 dogfooding.

Add cursor-pointer when not pending; keep cursor-not-allowed when the
mutation is in flight.
This commit is contained in:
chriscrosstalk 2026-05-27 14:24:48 -07:00 committed by Jake Turner
parent 737e6784f0
commit 5bf5bc33b7
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ export default function KnowledgeBaseModal({ aiAssistantName = "AI Assistant", o
isActive
? 'bg-desert-green text-white'
: 'bg-surface-primary text-text-secondary hover:bg-surface-tertiary'
} ${updateIngestPolicyMutation.isPending ? 'opacity-50 cursor-not-allowed' : ''}`}
} ${updateIngestPolicyMutation.isPending ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer'}`}
>
{option}
</button>