From 8ce30480a0c0b10c2d89930188e434f4c4c59ced Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Mon, 9 Jun 2025 13:50:42 +0200 Subject: [PATCH] Refactor test run logic and enhance activity response handling Introduced new properties in `TestActivityResponse` to better manage activity state and payload. Updated the test run UI to display detailed status, state, outcomes, and outputs using separate data panels. Refactored backend logic to improve data organization and ensure a clear separation of responsibility within the `UpdateDataModels` method. --- .../Elsa.Api.Client/Resources/Tests/TestActivityResponse.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/clients/Elsa.Api.Client/Resources/Tests/TestActivityResponse.cs b/src/clients/Elsa.Api.Client/Resources/Tests/TestActivityResponse.cs index 2830e7431..4bad8555a 100644 --- a/src/clients/Elsa.Api.Client/Resources/Tests/TestActivityResponse.cs +++ b/src/clients/Elsa.Api.Client/Resources/Tests/TestActivityResponse.cs @@ -5,8 +5,9 @@ namespace Elsa.Api.Client.Resources.Tests; public class TestActivityResponse { + public IDictionary ActivityState { get; set; } = new Dictionary(); + public IDictionary? Payload { get; set; } public IDictionary? Outputs { get; set; } - public ICollection? Outcomes { get; set; } public ExceptionState? Exception { get; set; } public ActivityStatus Status { get; set; } } \ No newline at end of file