From 219c96aee1fd5579cb0f5893a8bf48bc630019fb Mon Sep 17 00:00:00 2001 From: Joel Date: Mon, 21 Jul 2025 15:42:50 +0800 Subject: [PATCH] feat: code gen result highlight --- .../config/automatic/get-automatic-res.tsx | 2 +- .../configuration/config/automatic/result.tsx | 23 +++++++++++++++---- .../code-generator/get-code-generator-res.tsx | 4 ++-- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx b/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx index 7c11510399..f75cc42433 100644 --- a/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx +++ b/web/app/components/app/configuration/config/automatic/get-automatic-res.tsx @@ -364,7 +364,7 @@ const GetAutomaticRes: FC = ({ {(!isLoading && current) && ( -
+
= ({ const isGeneratorPrompt = generatorType === GeneratorType.prompt return ( -
-
+
+
{t('appDebug.generate.resTitle')}
= ({
{ current?.message && ( - + ) } -
{current?.modified}
+
+ {isGeneratorPrompt ? ( +
+ {current?.modified} +
+ ) : ( + + )} +
) } diff --git a/web/app/components/app/configuration/config/code-generator/get-code-generator-res.tsx b/web/app/components/app/configuration/config/code-generator/get-code-generator-res.tsx index 066fb774c9..f4e5801634 100644 --- a/web/app/components/app/configuration/config/code-generator/get-code-generator-res.tsx +++ b/web/app/components/app/configuration/config/code-generator/get-code-generator-res.tsx @@ -247,14 +247,14 @@ export const GetCodeGeneratorResModal: FC = ( {isLoading && renderLoading} {!isLoading && !current && renderNoData} {(!isLoading && current) && ( -
+
)}