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:
Kunthawat Greethong
2026-06-17 21:35:08 +07:00
parent fa3160f67e
commit 55a430db62
4 changed files with 58 additions and 10 deletions

View File

@@ -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}"
}
}
}