mirror of
https://github.com/temetro/temetro.git
synced 2026-09-04 14:55:28 +00:00
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:
@@ -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) => (
|
||||
|
||||
Reference in New Issue
Block a user