diff --git a/README.md b/README.md index 450aa06..6bf0b4f 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,17 @@ - **🛠️ 强大的 Agent 技能拓展**: 基于核心 `nanobot`框架(`OpenClaw`的精简版)构建。支持通过斜杠命令 (`/`) 快速调用自定义工具 (Skills),完美贴合特定业务逻辑。 - **📊 可定制仪表盘 (Dashboard)**: 一键将对话中生成的图表固定到看板,拖拽布局,随时查看核心指标。 -
+*** + +## 📸 界面预览
- - +

对话式分析界面

+ +
+
+

可定制仪表盘

+

diff --git a/README_en.md b/README_en.md index 0da47ef..df5e519 100644 --- a/README_en.md +++ b/README_en.md @@ -22,11 +22,17 @@ Whether you're querying a massive Supabase/PostgreSQL database or just tossing i - **🛠️ Extensible Agent Skills**: Built on top of the powerful `nanobot` framework (a lightweight version of `OpenClaw`). Add custom tools and slash commands (`/`) to tailor the agent to your specific business logic. - **📊 Customizable Dashboards**: Pin your favorite chat-generated charts to a drag-and-drop dashboard for quick access. -
+*** + +## 📸 Screenshots
- - +

Chat Interface

+ +
+
+

Customizable Dashboard

+

diff --git a/examples/dashboard.png b/examples/dashboard.png index 7530378..02add4f 100644 Binary files a/examples/dashboard.png and b/examples/dashboard.png differ diff --git a/examples/index.png b/examples/index.png index 78b179e..72f03b2 100644 Binary files a/examples/index.png and b/examples/index.png differ diff --git a/frontend/src/components/ChatInterface.tsx b/frontend/src/components/ChatInterface.tsx index 6f7d175..23eb468 100644 --- a/frontend/src/components/ChatInterface.tsx +++ b/frontend/src/components/ChatInterface.tsx @@ -812,7 +812,7 @@ export function ChatInterface() { - +
{/* Left Column: Data Source */}
diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index 29f3450..c6101b1 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -250,10 +250,10 @@ export function Dashboard() { return (
- +
- {chart.title} - + {chart.title} + {chart.type === "table" ? t('tableRowColDesc', { rowCount: rows.length, colCount: columns.length }) : `${chart.type.toUpperCase()} Chart`} @@ -262,13 +262,13 @@ export function Dashboard() { - + {(() => { if (chart.type === "table") { if (rows.length === 0) { @@ -286,11 +286,11 @@ export function Dashboard() { ); } return ( -
-
+
+
{isTableTruncated ? t('previewTableRows', { previewLimit: TABLE_PREVIEW_LIMIT, rowCount: rows.length, colCount: columns.length }) : t('totalTableRows', { rowCount: rows.length, colCount: columns.length })}
- + @@ -313,7 +313,7 @@ export function Dashboard() { } if (chart.chartSpec && rows.length > 0) { return ( -
+
);