Show SQL description (#66)
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -299,6 +299,7 @@ function renderCustomTag(
|
|||||||
node={{
|
node={{
|
||||||
properties: {
|
properties: {
|
||||||
state: getState({ isStreaming, inProgress }),
|
state: getState({ isStreaming, inProgress }),
|
||||||
|
description: attributes.description || "",
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user