From b72d1927c8a69a5f34dec3601db5717b2dde437f Mon Sep 17 00:00:00 2001 From: Will Chen Date: Thu, 1 May 2025 23:04:58 -0700 Subject: [PATCH] Show SQL description (#66) --- src/components/chat/DyadExecuteSql.tsx | 5 ++++- src/components/chat/DyadMarkdownParser.tsx | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/chat/DyadExecuteSql.tsx b/src/components/chat/DyadExecuteSql.tsx index 50b7ad3..6e19afd 100644 --- a/src/components/chat/DyadExecuteSql.tsx +++ b/src/components/chat/DyadExecuteSql.tsx @@ -43,7 +43,10 @@ export const DyadExecuteSql: React.FC = ({
- {queryDescription || "SQL Query"} + + SQL + + {queryDescription} {inProgress && (
diff --git a/src/components/chat/DyadMarkdownParser.tsx b/src/components/chat/DyadMarkdownParser.tsx index 86114fc..f2bc499 100644 --- a/src/components/chat/DyadMarkdownParser.tsx +++ b/src/components/chat/DyadMarkdownParser.tsx @@ -299,6 +299,7 @@ function renderCustomTag( node={{ properties: { state: getState({ isStreaming, inProgress }), + description: attributes.description || "", }, }} >