feat: add ChatEmptyState component and integrate it into ChatMessageList for improved user experience

This commit is contained in:
duanshuwen
2026-04-21 20:57:03 +08:00
parent a259907d12
commit 41c1949a2e
8 changed files with 172 additions and 34 deletions

View File

@@ -23,6 +23,25 @@
"assistantBadge": "AI",
"userBadge": "Me"
},
"emptyState": {
"title": "What can I help you with?",
"subtitle": "Ask a question, shape an idea, or bring in notes and files to get started.",
"tipLabel": "Try one of these",
"suggestions": {
"task": {
"title": "Handle tasks",
"description": "Work through a concrete goal, break it down, and move the task forward step by step."
},
"continuous": {
"title": "Continuous execution",
"description": "Keep context across steps, continue execution, and follow through on each stage of the work."
},
"parallel": {
"title": "Multi-agent parallelism",
"description": "Split independent subtasks across multiple agents to increase collaboration and execution speed."
}
}
},
"historyPanel": {
"expandSidebar": "Expand sidebar",
"collapseSidebar": "Collapse sidebar",

View File

@@ -23,6 +23,25 @@
"assistantBadge": "AI",
"userBadge": "ฉัน"
},
"emptyState": {
"title": "มีอะไรให้ฉันช่วยคุณได้บ้าง",
"subtitle": "เริ่มได้ด้วยการถามคำถาม จัดระเบียบไอเดีย หรือแนบบันทึกและไฟล์ที่ต้องการ",
"tipLabel": "ลองเริ่มจากสิ่งเหล่านี้",
"suggestions": {
"task": {
"title": "จัดการงาน",
"description": "ขับเคลื่อนงานตามเป้าหมายที่ชัดเจน แยกขั้นตอน และผลักดันงานให้เดินหน้าต่อ"
},
"continuous": {
"title": "ดำเนินการต่อเนื่อง",
"description": "รักษาบริบทเดิมไว้ ทำงานต่อเป็นลำดับ และติดตามผลในแต่ละช่วงของงาน"
},
"parallel": {
"title": "หลายเอเจนต์ทำงานขนานกัน",
"description": "แบ่งงานย่อยที่เป็นอิสระให้หลายเอเจนต์ทำพร้อมกัน เพื่อเพิ่มประสิทธิภาพการทำงานร่วมกัน"
}
}
},
"historyPanel": {
"expandSidebar": "ขยายแถบด้านข้าง",
"collapseSidebar": "ยุบแถบด้านข้าง",

View File

@@ -23,6 +23,25 @@
"assistantBadge": "AI",
"userBadge": "我"
},
"emptyState": {
"title": "我能为你做什么?",
"subtitle": "你可以提问、整理想法,或带上笔记和文件开始。",
"tipLabel": "不妨试试这些",
"suggestions": {
"task": {
"title": "处理任务",
"description": "围绕具体目标安排步骤、拆解工作,并推进当前任务落地。"
},
"continuous": {
"title": "持续执行",
"description": "保持上下文连续推进,按阶段执行并跟进每一步结果。"
},
"parallel": {
"title": "多智能体并行",
"description": "将不同子任务并行分工处理,提升整体协作和执行效率。"
}
}
},
"historyPanel": {
"expandSidebar": "展开侧栏",
"collapseSidebar": "收起侧栏",