Skip to content

Commit

Permalink
A/B - UI - Swap columns in the difference table (#955)
Browse files Browse the repository at this point in the history
The first column should be "Expected" value, the first connector value,
AKA "A" value.

<img width="1259" alt="Screenshot 2024-11-06 at 14 43 06"
src="https://github.com/user-attachments/assets/ef06b773-1b7a-4114-8729-98972f2b55fe">
  • Loading branch information
nablaone authored Nov 6, 2024
1 parent bfb5ab8 commit 5a60e83
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions quesma/quesma/ui/ab_testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,12 @@ func (qmc *QuesmaManagementConsole) generateABSingleRequest(requestId string) []
buffer.Html(`<tr>`)
buffer.Html(`<th>Message</th>`)
buffer.Html(`<th>Path</th>`)
buffer.Html(`<th>Actual</th>`)
buffer.Html(`<th>Expected</th>`)
buffer.Html(`<th>Expected (`)
buffer.Text(fmtAny(row.responseAName))
buffer.Html(`)</th>`)
buffer.Html(`<th>Actual (`)
buffer.Text(fmtAny(row.responseBName))
buffer.Html(`)</th>`)
buffer.Html("</tr>")

for _, m := range mismaches {
Expand All @@ -933,10 +937,10 @@ func (qmc *QuesmaManagementConsole) generateABSingleRequest(requestId string) []
buffer.Text(m.Path)
buffer.Html(`</td>`)
buffer.Html(`<td>`)
buffer.Text(m.Actual)
buffer.Text(m.Expected)
buffer.Html(`</td>`)
buffer.Html(`<td>`)
buffer.Text(m.Expected)
buffer.Text(m.Actual)
buffer.Html(`</td>`)
buffer.Html("</tr>")
}
Expand Down

0 comments on commit 5a60e83

Please sign in to comment.