From aeefa09dafa17dde1cff6e81a7770597e0488881 Mon Sep 17 00:00:00 2001 From: Zane Staggs Date: Thu, 11 Sep 2025 11:02:21 -0700 Subject: [PATCH] always show recipe activities at the top when recipe accepted and active --- ui/desktop/src/components/BaseChat.tsx | 40 +++++++++++--------------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/ui/desktop/src/components/BaseChat.tsx b/ui/desktop/src/components/BaseChat.tsx index aace7068a8f0..0e5a51633eec 100644 --- a/ui/desktop/src/components/BaseChat.tsx +++ b/ui/desktop/src/components/BaseChat.tsx @@ -370,30 +370,22 @@ function BaseChatContent({ {/* Custom content before messages */} {renderBeforeMessages && renderBeforeMessages()} - {/* Messages or RecipeActivities or Popular Topics */} + {/* Recipe Activities - always show when recipe is active and accepted */} + {recipeConfig && recipeAccepted && !suppressEmptyState && ( +
+ appendWithTracking(text)} + activities={ + Array.isArray(recipeConfig.activities) ? recipeConfig.activities : null + } + title={recipeConfig.title} + /> +
+ )} + + {/* Messages or Popular Topics */} { - // Check if we should show splash instead of messages - // Show splash if we have a recipe and user hasn't started using it yet, and recipe has been accepted - loadingChat ? null : recipeConfig && - recipeAccepted && - !hasStartedUsingRecipe && - !suppressEmptyState ? ( - <> - {/* Show RecipeActivities when we have a recipe config and user hasn't started using it */} - {recipeConfig ? ( - appendWithTracking(text)} - activities={ - Array.isArray(recipeConfig.activities) ? recipeConfig.activities : null - } - title={recipeConfig.title} - /> - ) : showPopularTopics ? ( - /* Show PopularChatTopics when no real messages, no recipe, and showPopularTopics is true (Pair view) */ - appendWithTracking(text)} /> - ) : null} - - ) : filteredMessages.length > 0 || + loadingChat ? null : filteredMessages.length > 0 || (recipeConfig && recipeAccepted && hasStartedUsingRecipe) ? ( <> {disableSearch ? ( @@ -473,7 +465,7 @@ function BaseChatContent({
- ) : showPopularTopics ? ( + ) : !recipeConfig && showPopularTopics ? ( /* Show PopularChatTopics when no messages, no recipe, and showPopularTopics is true (Pair view) */ append(text)} /> ) : null /* Show nothing when messages.length === 0 && suppressEmptyState === true */