fix(insights): suppress AI credentials warning during loading state

The warning was showing briefly on every page load because
`!aiConfigQuery.data?.configured` evaluated to true while the query
was still in-flight (data === undefined). Guard with `!isLoading` so
the amber box only appears after the query resolves with configured=false.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 09:05:00 +02:00
parent a9ad1ed8b6
commit bdb55f23d3
@@ -243,7 +243,7 @@ export function InsightsPanel() {
Project Narrative
</h2>
{!aiConfigQuery.data?.configured ? (
{!aiConfigQuery.isLoading && !aiConfigQuery.data?.configured ? (
<div className="rounded-xl border border-amber-200 bg-amber-50 p-4 dark:border-amber-900 dark:bg-amber-950/30">
<p className="text-sm text-amber-800 dark:text-amber-300">
AI is not configured.{" "}