frontend: one-time AI setup notice above the chat input

Show a single, dismissible heads-up on a fresh chat when no AI provider (an
API key or a local Ollama endpoint) is configured, linking to Settings → AI.
It only renders on the empty state, so it clears itself once the first message
is sent.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Khalid Abdi
2026-06-27 21:33:43 +03:00
parent 8cabd17cdd
commit 6237cc29d0
2 changed files with 75 additions and 0 deletions
+4
View File
@@ -54,6 +54,7 @@ import {
ToolOutput,
} from "@/components/ai-elements/tool";
import { ActionPreviewCard } from "@/components/chat/action-preview-card";
import { AiSetupNotice } from "@/components/chat/ai-setup-notice";
import { AnalyticsCard } from "@/components/chat/analytics-card";
import { BatchActionPreviewCard } from "@/components/chat/batch-action-preview-card";
import { ChatHistoryPanel } from "@/components/chat/chat-history-panel";
@@ -722,6 +723,9 @@ export function ChatPanel() {
<div className="flex w-full flex-col gap-3">
{errorAlert}
{veilGate}
{/* One-time setup heads-up — only on the empty state, so it clears
itself once the first message is sent. */}
<AiSetupNotice />
{promptInput}
<Suggestions className="justify-center pt-1">
{suggestions.map((s) => (