Show SQL description (#66)

This commit is contained in:
Will Chen
2025-05-01 23:04:58 -07:00
committed by GitHub
parent 1327e64e52
commit b72d1927c8
2 changed files with 5 additions and 1 deletions

View File

@@ -43,7 +43,10 @@ export const DyadExecuteSql: React.FC<DyadExecuteSqlProps> = ({
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<Database size={16} /> <Database size={16} />
<span className="text-gray-700 dark:text-gray-300 font-medium text-sm"> <span className="text-gray-700 dark:text-gray-300 font-medium text-sm">
{queryDescription || "SQL Query"} <span className="font-bold mr-2 outline-2 outline-gray-200 dark:outline-gray-700 bg-gray-100 dark:bg-gray-800 rounded-md px-1">
SQL
</span>
{queryDescription}
</span> </span>
{inProgress && ( {inProgress && (
<div className="flex items-center text-amber-600 text-xs"> <div className="flex items-center text-amber-600 text-xs">

View File

@@ -299,6 +299,7 @@ function renderCustomTag(
node={{ node={{
properties: { properties: {
state: getState({ isStreaming, inProgress }), state: getState({ isStreaming, inProgress }),
description: attributes.description || "",
}, },
}} }}
> >