feat(frontend): add canvas agent empty state with server-driven starters

Render a CanvasAgentEmptyState in the Agent panel that fetches localized
starter content from the new agent-starters endpoint, with local defaults
as fallback. Clicking a starter focuses the prompt composer (new focus
handle). Includes accompanying UI polish: side-nav cleanup, animated
prompt examples, and canvas panel spacing tweaks.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-10 22:19:22 +08:00
parent c94b163540
commit 71a1b3ace4
16 changed files with 472 additions and 77 deletions
+13
View File
@@ -147,6 +147,19 @@ export type QuickAction = {
icon: string;
};
export type AgentStarter = {
id: string;
label: string;
prompt: string;
};
export type AgentStarterConfig = {
title: string;
description: string;
previewImages: string[];
starters: AgentStarter[];
};
export type InspirationItem = {
id: string;
title: string;