diff --git a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx index 59ce835d..0f316698 100644 --- a/src/interface/web/app/components/chatInputArea/chatInputArea.tsx +++ b/src/interface/web/app/components/chatInputArea/chatInputArea.tsx @@ -138,6 +138,7 @@ export const ChatInputArea = forwardRef((pr useEffect(() => { if (props.prefillMessage) { setMessage(props.prefillMessage); + chatInputRef?.current?.focus(); } }, [props.prefillMessage]); diff --git a/src/interface/web/app/components/suggestions/suggestionCard.tsx b/src/interface/web/app/components/suggestions/suggestionCard.tsx index 8bff1ba4..b1d885d6 100644 --- a/src/interface/web/app/components/suggestions/suggestionCard.tsx +++ b/src/interface/web/app/components/suggestions/suggestionCard.tsx @@ -3,7 +3,7 @@ import { Card, CardContent, CardDescription } from "@/components/ui/card"; import styles from "./suggestions.module.css"; import { convertSuggestionTitleToIconClass } from "./suggestionsData"; -import { ArrowLeft, ArrowRight } from "@phosphor-icons/react"; +import { ArrowLeft, ArrowRight, MagicWand } from "@phosphor-icons/react"; interface StepOneSuggestionCardProps { title: string; @@ -47,10 +47,10 @@ export function StepTwoSuggestionCard(data: StepTwoSuggestionCardProps) { return (
- - +
)} -
- {stepTwoSuggestionOptions.length == 0 && - stepOneSuggestionOptions.map((suggestion, index) => ( + {stepTwoSuggestionOptions.length == 0 && ( +
+ {stepOneSuggestionOptions.map((suggestion, index) => (
{ @@ -348,7 +348,8 @@ function ChatBodyData(props: ChatBodyDataProps) { />
))} -
+
+ )} {stepTwoSuggestionOptions.length == 0 && stepOneSuggestionOptions.length < stepOneSuggestions.length && (
@@ -369,6 +370,7 @@ function ChatBodyData(props: ChatBodyDataProps) { setSelectedStepOneSuggestion(null); setStepTwoSuggestionOptions([]); setChatInputFocus(ChatInputFocus.MESSAGE); + setPrefilledMessage(""); }} /> )}