diff --git a/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx b/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx index e51867ca8..a35d26a75 100644 --- a/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx +++ b/src/Explorer/QueryCopilot/QueryCopilotPromptbar.tsx @@ -303,6 +303,16 @@ export const QueryCopilotPromptbar: React.FC = ({ resetButtonState(); }; + const getAriaLabel = () => { + if (isGeneratingQuery === null) { + return " "; + } else if (isGeneratingQuery) { + return "Content is loading"; + } else { + return "Content is updated"; + } + }; + React.useEffect(() => { showTeachingBubble(); useTabs.getState().setIsQueryErrorThrown(false); @@ -379,7 +389,9 @@ export const QueryCopilotPromptbar: React.FC = ({ onClick={() => startGenerateQueryProcess()} aria-label="Send" /> - {isGeneratingQuery && } +
+ {isGeneratingQuery && } +
{showSamplePrompts && ( ({ correlationId: "", query: "SELECT * FROM c", selectedQuery: "", - isGeneratingQuery: false, + isGeneratingQuery: null, isGeneratingExplanation: false, isExecuting: false, dislikeQuery: undefined,