From 442ef2be9816896dd273e9e898ff4cfef930d351 Mon Sep 17 00:00:00 2001 From: Lifei Zhou Date: Fri, 6 Feb 2026 11:18:05 +1100 Subject: [PATCH] polish ui --- .../RecipeBuilder/RecipeBuilderChat.tsx | 137 ++++++++++-------- .../RecipeBuilder/RecipeBuilderHeader.tsx | 2 +- .../RecipeBuilder/RecipeBuilderTest.tsx | 135 +++++++++-------- 3 files changed, 156 insertions(+), 118 deletions(-) diff --git a/ui/desktop/src/components/recipes/RecipeBuilder/RecipeBuilderChat.tsx b/ui/desktop/src/components/recipes/RecipeBuilder/RecipeBuilderChat.tsx index 4246ff8c72..2582e6469d 100644 --- a/ui/desktop/src/components/recipes/RecipeBuilder/RecipeBuilderChat.tsx +++ b/ui/desktop/src/components/recipes/RecipeBuilder/RecipeBuilderChat.tsx @@ -10,7 +10,8 @@ import { recipeBuilderRecipe } from './recipeBuilderRecipe'; import { extractYamlFromMessage, parseYamlToRecipe } from './recipeExtractor'; import { getInitialWorkingDir } from '../../../utils/workingDir'; import { UserInput } from '../../../types/message'; -import { Send } from 'lucide-react'; +import { Send } from '../../icons'; +import Stop from '../../ui/Stop'; import { Button } from '../../ui/button'; import { RecipeBuilderChatProps } from './types'; @@ -156,69 +157,89 @@ export default function RecipeBuilderChat({ recipe, onRecipeChange }: RecipeBuil ); } - if (isLoading) { - return ( -
- -
- ); - } + const showLoadingIndicator = isLoading || isStreaming; return (
- -
- {messages.length === 0 ? ( -
-

Recipe Builder

-

- Tell me what kind of recipe you'd like to create, and I'll help you build it. -

-
- ) : ( - - )} - {isStreaming && ( -
- -
- )} -
-
- -
-
-