diff --git a/RELEASE_CHECKLIST.md b/RELEASE_CHECKLIST.md index e031d00c0c..d25d7c00bc 100644 --- a/RELEASE_CHECKLIST.md +++ b/RELEASE_CHECKLIST.md @@ -35,7 +35,7 @@ Test various ways to start a conversation: - [ ] Ask "what is your working directory?" - [ ] Response should match the new directory - [ ] Open a new window, click chat in left side for new chat -- [ ] Click "create a tamagotchi game" in popular chat topics to test developer extension +- [ ] Type "create a tamagotchi game" in the chat input to test developer extension ### Recipes diff --git a/ui/desktop/src/components/BaseChat.tsx b/ui/desktop/src/components/BaseChat.tsx index a72f5984de..1da20b8cdd 100644 --- a/ui/desktop/src/components/BaseChat.tsx +++ b/ui/desktop/src/components/BaseChat.tsx @@ -10,7 +10,6 @@ import { defineMessages, useIntl } from '../i18n'; import { useLocation, useNavigate } from 'react-router-dom'; import { SearchView } from './conversation/SearchView'; import LoadingGoose from './LoadingGoose'; -import PopularChatTopics from './PopularChatTopics'; import ProgressiveMessageList from './ProgressiveMessageList'; import { MainPanelLayout } from './Layout/MainPanelLayout'; import ChatInput from './ChatInput'; @@ -71,7 +70,6 @@ interface BaseChatProps { customMainLayoutProps?: Record; contentClassName?: string; disableSearch?: boolean; - showPopularTopics?: boolean; suppressEmptyState: boolean; sessionId: string; isActiveSession: boolean; @@ -320,9 +318,6 @@ export default function BaseChat({ }); }; - const showPopularTopics = - messages.length === 0 && !initialMessage && chatState === ChatState.Idle; - const chat: ChatType = { messages, recipe, @@ -461,10 +456,6 @@ export default function BaseChat({
- ) : !recipe && showPopularTopics ? ( - handleSubmit({ msg: text, images: [] })} - /> ) : null} diff --git a/ui/desktop/src/components/PopularChatTopics.tsx b/ui/desktop/src/components/PopularChatTopics.tsx deleted file mode 100644 index a265156180..0000000000 --- a/ui/desktop/src/components/PopularChatTopics.tsx +++ /dev/null @@ -1,104 +0,0 @@ -import React from 'react'; -import { FolderTree, MessageSquare, Code } from 'lucide-react'; -import { defineMessages, useIntl } from '../i18n'; - -interface PopularChatTopicsProps { - append: (text: string) => void; -} - -interface ChatTopic { - id: string; - icon: React.ReactNode; - description: string; - prompt: string; -} - -const i18n = defineMessages({ - heading: { - id: 'popularChatTopics.heading', - defaultMessage: 'Popular chat topics', - }, - start: { - id: 'popularChatTopics.start', - defaultMessage: 'Start', - }, - organizePhotos: { - id: 'popularChatTopics.organizePhotos', - defaultMessage: - 'Organize the photos on my desktop into neat little folders by subject matter', - }, - governmentForms: { - id: 'popularChatTopics.governmentForms', - defaultMessage: - 'Describe in detail how various forms of government works and rank each by units of geese', - }, - tamagotchiGame: { - id: 'popularChatTopics.tamagotchiGame', - defaultMessage: - 'Develop a tamagotchi game that lives on my computer and follows a pixelated styling', - }, -}); - -export default function PopularChatTopics({ append }: PopularChatTopicsProps) { - const intl = useIntl(); - - const POPULAR_TOPICS: ChatTopic[] = [ - { - id: 'organize-photos', - icon: , - description: intl.formatMessage(i18n.organizePhotos), - prompt: intl.formatMessage(i18n.organizePhotos), - }, - { - id: 'government-forms', - icon: , - description: intl.formatMessage(i18n.governmentForms), - prompt: intl.formatMessage(i18n.governmentForms), - }, - { - id: 'tamagotchi-game', - icon: , - description: intl.formatMessage(i18n.tamagotchiGame), - prompt: intl.formatMessage(i18n.tamagotchiGame), - }, - ]; - - const handleTopicClick = (prompt: string) => { - append(prompt); - }; - - return ( -
-

- {intl.formatMessage(i18n.heading)} -

-
- {POPULAR_TOPICS.map((topic) => ( -
handleTopicClick(topic.prompt)} - > -
-
{topic.icon}
-
-

{topic.description}

-
-
-
- -
-
- ))} -
-
- ); -} diff --git a/ui/desktop/src/i18n/messages/en.json b/ui/desktop/src/i18n/messages/en.json index 7f4e8c02ee..f8386d5b13 100644 --- a/ui/desktop/src/i18n/messages/en.json +++ b/ui/desktop/src/i18n/messages/en.json @@ -314,7 +314,6 @@ "costTracker.pricingUnavailable": { "defaultMessage": "Pricing data unavailable for {model}" }, - "costTracker.totalSessionCost": { "defaultMessage": "Total session cost: {cost}" }, @@ -2655,21 +2654,6 @@ "permissionSetting.permissionRulesDescription": { "defaultMessage": "Hidden instructions that will be passed to the provider to help direct and add context to your responses." }, - "popularChatTopics.governmentForms": { - "defaultMessage": "Describe in detail how various forms of government works and rank each by units of geese" - }, - "popularChatTopics.heading": { - "defaultMessage": "Popular chat topics" - }, - "popularChatTopics.organizePhotos": { - "defaultMessage": "Organize the photos on my desktop into neat little folders by subject matter" - }, - "popularChatTopics.start": { - "defaultMessage": "Start" - }, - "popularChatTopics.tamagotchiGame": { - "defaultMessage": "Develop a tamagotchi game that lives on my computer and follows a pixelated styling" - }, "privacyInfoModal.collectErrors": { "defaultMessage": "Error types (e.g., \"rate_limit\", \"auth\" - no details)" }, diff --git a/ui/desktop/src/i18n/messages/zh-CN.json b/ui/desktop/src/i18n/messages/zh-CN.json index db6cfeeab6..a6e1239f4d 100644 --- a/ui/desktop/src/i18n/messages/zh-CN.json +++ b/ui/desktop/src/i18n/messages/zh-CN.json @@ -2597,21 +2597,6 @@ "permissionSetting.permissionRulesDescription": { "defaultMessage": "传给提供商的隐藏指令,用于引导并为回复补充上下文。" }, - "popularChatTopics.governmentForms": { - "defaultMessage": "详细介绍各种政府形式的运作方式,并按“鹅”的单位对每种进行排名" - }, - "popularChatTopics.heading": { - "defaultMessage": "热门聊天话题" - }, - "popularChatTopics.organizePhotos": { - "defaultMessage": "按主题把我桌面上的照片整理成一些整洁的小文件夹" - }, - "popularChatTopics.start": { - "defaultMessage": "开始" - }, - "popularChatTopics.tamagotchiGame": { - "defaultMessage": "开发一个住在我电脑里、像素风的电子宠物游戏" - }, "privacyInfoModal.collectErrors": { "defaultMessage": "错误类型(例如“rate_limit”“auth”——不含详情)" },