From fc8ae623b58946155ca364d2130867c6593786ec Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Wed, 15 May 2024 13:53:04 +0100 Subject: [PATCH] improved diff button text --- .../evaluations/evaluationCompare/EvaluationCompare.tsx | 7 ++++++- .../evaluationScenarios/EvaluationScenarios.tsx | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/agenta-web/src/components/pages/evaluations/evaluationCompare/EvaluationCompare.tsx b/agenta-web/src/components/pages/evaluations/evaluationCompare/EvaluationCompare.tsx index d831563932..be9a2d5ad3 100644 --- a/agenta-web/src/components/pages/evaluations/evaluationCompare/EvaluationCompare.tsx +++ b/agenta-web/src/components/pages/evaluations/evaluationCompare/EvaluationCompare.tsx @@ -473,7 +473,12 @@ const EvaluationCompareMode: React.FC = () => { ), }))} - buttonText={removeCorrectAnswerPrefix(selectedCorrectAnswer[0])} + buttonText={ + removeCorrectAnswerPrefix(selectedCorrectAnswer[0]) === + "noDiffColumnIsSelected" + ? "Select Ground Truth" + : removeCorrectAnswerPrefix(selectedCorrectAnswer[0]) + } isOpen={isDiffDropdownOpen} handleOpenChange={handleOpenChangeDiff} shownCols={selectedCorrectAnswer} diff --git a/agenta-web/src/components/pages/evaluations/evaluationScenarios/EvaluationScenarios.tsx b/agenta-web/src/components/pages/evaluations/evaluationScenarios/EvaluationScenarios.tsx index 0720d49135..908ada0e0c 100644 --- a/agenta-web/src/components/pages/evaluations/evaluationScenarios/EvaluationScenarios.tsx +++ b/agenta-web/src/components/pages/evaluations/evaluationScenarios/EvaluationScenarios.tsx @@ -331,7 +331,11 @@ const EvaluationScenarios: React.FC = () => { ), }))} - buttonText={selectedCorrectAnswer[0]} + buttonText={ + selectedCorrectAnswer[0] === "noDiffColumnIsSelected" + ? "Select Ground Truth" + : selectedCorrectAnswer[0] + } isOpen={isDiffDropdownOpen} handleOpenChange={handleOpenChangeDiff} shownCols={selectedCorrectAnswer}