fix: show env status warning in survey tab + add alert on survey failure
- Add isEnvAlive check on mount via /api/simulation/env-status - Show warning banner when simulation env is not running - Add alert() on survey failure for visibility - Add envNotRunning translation key for th/en/zh
This commit is contained in:
@@ -75,7 +75,13 @@
|
||||
"layoutGraph": "Graph",
|
||||
"layoutSplit": "Split",
|
||||
"layoutWorkbench": "Workbench",
|
||||
"stepNames": ["Graph Build", "Env Setup", "Run Simulation", "Report Generation", "Deep Interaction"]
|
||||
"stepNames": [
|
||||
"Graph Build",
|
||||
"Env Setup",
|
||||
"Run Simulation",
|
||||
"Report Generation",
|
||||
"Deep Interaction"
|
||||
]
|
||||
},
|
||||
"step1": {
|
||||
"ontologyGeneration": "Ontology Generation",
|
||||
@@ -282,7 +288,8 @@
|
||||
"errorOccurred": "Sorry, an error occurred: {error}",
|
||||
"noResponse": "No response",
|
||||
"requestFailed": "Request failed",
|
||||
"selectAgentFirst": "Please select a simulated individual first"
|
||||
"selectAgentFirst": "Please select a simulated individual first",
|
||||
"envNotRunning": "Simulation environment is not running. Survey requires an active simulation environment."
|
||||
},
|
||||
"graph": {
|
||||
"panelTitle": "Graph Relationship Visualization",
|
||||
@@ -662,4 +669,4 @@
|
||||
"generateInterviewQuestionsFailed": "Failed to generate interview questions: {error}",
|
||||
"generateInterviewSummaryFailed": "Failed to generate interview summary: {error}"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -75,7 +75,13 @@
|
||||
"layoutGraph": "กราฟ",
|
||||
"layoutSplit": "แบ่งหน้าจอ",
|
||||
"layoutWorkbench": "พื้นที่ทำงาน",
|
||||
"stepNames": ["สร้างกราฟ", "ตั้งค่าสภาพแวดล้อม", "จำลอง", "สร้างรายงาน", "โต้ตอบเชิงลึก"]
|
||||
"stepNames": [
|
||||
"สร้างกราฟ",
|
||||
"ตั้งค่าสภาพแวดล้อม",
|
||||
"จำลอง",
|
||||
"สร้างรายงาน",
|
||||
"โต้ตอบเชิงลึก"
|
||||
]
|
||||
},
|
||||
"step1": {
|
||||
"ontologyGeneration": "การสร้างออนโทโลยี",
|
||||
@@ -282,7 +288,8 @@
|
||||
"errorOccurred": "ขออภัย เกิดข้อผิดพลาด: {error}",
|
||||
"noResponse": "ไม่มีคำตอบ",
|
||||
"requestFailed": "คำขอล้มเหลว",
|
||||
"selectAgentFirst": "กรุณาเลือกบุคคลที่จำลองก่อน"
|
||||
"selectAgentFirst": "กรุณาเลือกบุคคลที่จำลองก่อน",
|
||||
"envNotRunning": "สภาพแวดล้อมจำลองไม่ได้ทำงานอยู่ แบบสำรวจต้องการสภาพแวดล้อมจำลองที่ยังทำงานอยู่"
|
||||
},
|
||||
"graph": {
|
||||
"panelTitle": "การแสดงผลความสัมพันธ์กราฟ",
|
||||
|
||||
@@ -75,7 +75,13 @@
|
||||
"layoutGraph": "图谱",
|
||||
"layoutSplit": "双栏",
|
||||
"layoutWorkbench": "工作台",
|
||||
"stepNames": ["图谱构建", "环境搭建", "开始模拟", "报告生成", "深度互动"]
|
||||
"stepNames": [
|
||||
"图谱构建",
|
||||
"环境搭建",
|
||||
"开始模拟",
|
||||
"报告生成",
|
||||
"深度互动"
|
||||
]
|
||||
},
|
||||
"step1": {
|
||||
"ontologyGeneration": "本体生成",
|
||||
@@ -282,7 +288,8 @@
|
||||
"errorOccurred": "抱歉,发生了错误: {error}",
|
||||
"noResponse": "无响应",
|
||||
"requestFailed": "请求失败",
|
||||
"selectAgentFirst": "请先选择一个模拟个体"
|
||||
"selectAgentFirst": "请先选择一个模拟个体",
|
||||
"envNotRunning": "模拟环境未运行。问卷调查需要模拟环境处于运行状态。"
|
||||
},
|
||||
"graph": {
|
||||
"panelTitle": "Graph Relationship Visualization",
|
||||
@@ -662,4 +669,4 @@
|
||||
"generateInterviewQuestionsFailed": "生成采访问题失败: {error}",
|
||||
"generateInterviewSummaryFailed": "生成采访摘要失败: {error}"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user