From 5a60e8326132e0373ebd7e470ce3075b34a3e3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Strzali=C5=84ski?= Date: Wed, 6 Nov 2024 15:15:24 +0100 Subject: [PATCH] A/B - UI - Swap columns in the difference table (#955) The first column should be "Expected" value, the first connector value, AKA "A" value. Screenshot 2024-11-06 at 14 43 06 --- quesma/quesma/ui/ab_testing.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/quesma/quesma/ui/ab_testing.go b/quesma/quesma/ui/ab_testing.go index 14dea3839..417aff867 100644 --- a/quesma/quesma/ui/ab_testing.go +++ b/quesma/quesma/ui/ab_testing.go @@ -920,8 +920,12 @@ func (qmc *QuesmaManagementConsole) generateABSingleRequest(requestId string) [] buffer.Html(``) buffer.Html(`Message`) buffer.Html(`Path`) - buffer.Html(`Actual`) - buffer.Html(`Expected`) + buffer.Html(`Expected (`) + buffer.Text(fmtAny(row.responseAName)) + buffer.Html(`)`) + buffer.Html(`Actual (`) + buffer.Text(fmtAny(row.responseBName)) + buffer.Html(`)`) buffer.Html("") for _, m := range mismaches { @@ -933,10 +937,10 @@ func (qmc *QuesmaManagementConsole) generateABSingleRequest(requestId string) [] buffer.Text(m.Path) buffer.Html(``) buffer.Html(``) - buffer.Text(m.Actual) + buffer.Text(m.Expected) buffer.Html(``) buffer.Html(``) - buffer.Text(m.Expected) + buffer.Text(m.Actual) buffer.Html(``) buffer.Html("") }