refactor: add session and environment relationships to scenario run

- add sessionId optional column to ScenarioRunEntity
- add ManyToOne relationship to EnvironmentEntity (with eager loading)
- add ManyToOne relationship to SessionEntity (optional)
- update ScenarioRun client types to include session and environment data
- add environment name and session link to RunDetailPage
- update UI to display save session, environment, and session info
This commit is contained in:
2026-04-14 19:29:48 +03:00
parent 80d9af42b5
commit 5ec9fd0bc3
6 changed files with 30 additions and 6 deletions
@@ -559,9 +559,9 @@ export function ScenarioDetailPage() {
type="checkbox"
checked={saveSessionFlag}
onChange={(e) => setSaveSessionFlag(e.target.checked)}
disabled={running}
disabled
/>
<span>Save session for explore mode</span>
<span>Save session</span>
</label>
</>
)}