feat(scenarios): show last run status and timestamp on scenarios list

- extend findAll to join latest run per scenario via correlated subquery
- return lastRunStatus and lastRunAt fields in GET /scenarios response
- add Last Run column with badge and timestamp to ScenariosPage
- add integration tests for null and populated lastRunStatus
This commit is contained in:
ars9 committed 2026-04-17 15:13:28 +03:00
1 parent 8c6158e8e3
commit 4e494ce4fd
5 files changed
+101 -2

No files matched your search

+2
View File
@@ -90,6 +90,8 @@ export interface Scenario {
environment?: Pick<Environment, 'id' | 'name'>;
steps?: ScenarioStep[];
scenarioCredentials?: ScenarioCredential[];
lastRunStatus?: ScenarioRunStatus | null;
lastRunAt?: string | null;
createdAt: string;
updatedAt: string;
}