diff --git a/ui/desktop/.goosehints b/ui/desktop/.goosehints index 342bb417..ab102a4c 100644 --- a/ui/desktop/.goosehints +++ b/ui/desktop/.goosehints @@ -81,3 +81,5 @@ The Goose Desktop App is an Electron application built with TypeScript, React, a 5. Test your changes in both development and production builds By following these instructions, you should be able to navigate the codebase, understand its structure, and start contributing new features or modifications. + + diff --git a/ui/desktop/src/App.tsx b/ui/desktop/src/App.tsx index a1678a50..12cc3439 100644 --- a/ui/desktop/src/App.tsx +++ b/ui/desktop/src/App.tsx @@ -10,6 +10,7 @@ import ErrorScreen from './components/ErrorScreen'; import { ConfirmationModal } from './components/ui/ConfirmationModal'; import { ToastContainer } from 'react-toastify'; import { extractExtensionName } from './components/settings/extensions/utils'; +import { GoosehintsModal } from './components/GoosehintsModal'; import WelcomeView from './components/WelcomeView'; import ChatView from './components/ChatView'; @@ -49,6 +50,7 @@ export default function App() { view: 'welcome', viewOptions: {}, }); + const [isGoosehintsModalOpen, setIsGoosehintsModalOpen] = useState(false); const { switchModel } = useModel(); const { addRecentModel } = useRecentModels(); @@ -248,10 +250,22 @@ export default function App() { {view === 'alphaConfigureProviders' && ( setView('chat')} /> )} - {view === 'chat' && } + {view === 'chat' && ( + + )} {view === 'sessions' && } + {isGoosehintsModalOpen && ( + + )} ); } diff --git a/ui/desktop/src/components/BottomMenu.tsx b/ui/desktop/src/components/BottomMenu.tsx index 8d92e787..bc8e1132 100644 --- a/ui/desktop/src/components/BottomMenu.tsx +++ b/ui/desktop/src/components/BottomMenu.tsx @@ -5,7 +5,6 @@ import { Sliders } from 'lucide-react'; import { ModelRadioList } from './settings/models/ModelRadioList'; import { Document, ChevronUp, ChevronDown } from './icons'; import type { View } from '../ChatWindow'; -import { ConfigureGooseHints } from './ConfigureGooseHints'; export default function BottomMenu({ hasMessages, @@ -77,10 +76,6 @@ export default function BottomMenu({ -
- -
- {/* Model Selector Dropdown - Only in development */}
) => void; viewOptions?: Record; + setIsGoosehintsModalOpen: (isOpen: boolean) => void; }) { // Check if we're resuming a session const resumedSession = viewOptions?.resumedSession; @@ -228,7 +230,7 @@ export default function ChatView({ return (
- +
{messages.length === 0 ? ( diff --git a/ui/desktop/src/components/ConfigureGooseHints.tsx b/ui/desktop/src/components/GoosehintsModal.tsx similarity index 86% rename from ui/desktop/src/components/ConfigureGooseHints.tsx rename to ui/desktop/src/components/GoosehintsModal.tsx index 3142b74a..a5669d4d 100644 --- a/ui/desktop/src/components/ConfigureGooseHints.tsx +++ b/ui/desktop/src/components/GoosehintsModal.tsx @@ -4,7 +4,7 @@ import { Button } from './ui/button'; import { Check } from './icons'; const Modal = ({ children }) => ( -
+
{children}
@@ -87,7 +87,8 @@ type GoosehintsModalProps = { directory: string; setIsGoosehintsModalOpen: (isOpen: boolean) => void; }; -const GoosehintsModal = ({ directory, setIsGoosehintsModalOpen }: GoosehintsModalProps) => { + +export const GoosehintsModal = ({ directory, setIsGoosehintsModalOpen }: GoosehintsModalProps) => { const goosehintsFilePath = `${directory}/.goosehints`; const [goosehintsFile, setGoosehintsFile] = useState(null); const [goosehintsFileFound, setGoosehintsFileFound] = useState(false); @@ -125,7 +126,7 @@ const GoosehintsModal = ({ directory, setIsGoosehintsModalOpen }: GoosehintsModa