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
+3
View File
@@ -98,8 +98,11 @@ export interface ScenarioRun {
id: string;
scenarioId: string;
environmentId: string;
sessionId?: string | null;
saveSession: boolean;
scenario?: Pick<Scenario, 'id' | 'name'>;
environment?: Pick<Environment, 'id' | 'name'>;
session?: { id: string; sessionName: string };
status: ScenarioRunStatus;
stepRuns?: ScenarioRunStep[];
createdAt: string;