diff --git a/src/renderer/src/components/settings/MobileSettingsPane.tsx b/src/renderer/src/components/settings/MobileSettingsPane.tsx index cc2473e44..8cf1ac365 100644 --- a/src/renderer/src/components/settings/MobileSettingsPane.tsx +++ b/src/renderer/src/components/settings/MobileSettingsPane.tsx @@ -10,7 +10,7 @@ const ORCA_ANDROID_RELEASE_URL = 'https://github.com/stablyai/orca/releases/tag/ const MOBILE_ENABLE_SEARCH_ENTRY: SettingsSearchEntry = { title: 'Mobile', - description: 'Pair a mobile device to control Orca remotely.', + description: 'Control terminals and agents from your phone.', keywords: [ 'mobile', 'phone', @@ -49,7 +49,7 @@ export function MobileSettingsPane({ {showEnableSetting ? ( diff --git a/src/renderer/src/components/settings/Settings.tsx b/src/renderer/src/components/settings/Settings.tsx index 6e907c6af..3310fedc6 100644 --- a/src/renderer/src/components/settings/Settings.tsx +++ b/src/renderer/src/components/settings/Settings.tsx @@ -274,7 +274,7 @@ function Settings(): React.JSX.Element { ) useEffect(() => { - if (!settingsNavigationTarget) { + if (!settings || !settingsNavigationTarget) { return } @@ -285,7 +285,7 @@ function Settings(): React.JSX.Element { pendingNavSectionRef.current = paneSectionId pendingScrollTargetRef.current = settingsNavigationTarget.sectionId ?? paneSectionId clearSettingsTarget() - }, [clearSettingsTarget, settingsNavigationTarget]) + }, [clearSettingsTarget, settings, settingsNavigationTarget]) useEffect(() => { if (terminalFontsLoadedRef.current) { @@ -436,7 +436,7 @@ function Settings(): React.JSX.Element { { id: 'mobile', title: 'Mobile', - description: 'Pair and manage mobile devices.', + description: 'Control terminals and agents from your phone.', icon: Smartphone, searchEntries: MOBILE_SETTINGS_PANE_SEARCH_ENTRIES, badge: 'Beta' @@ -795,7 +795,7 @@ function Settings(): React.JSX.Element { id="mobile" title="Mobile" badge="Beta" - description="Pair and manage mobile devices." + description="Control terminals and agents from your phone." searchEntries={MOBILE_SETTINGS_PANE_SEARCH_ENTRIES} > diff --git a/src/renderer/src/components/sidebar/SidebarToolbar.tsx b/src/renderer/src/components/sidebar/SidebarToolbar.tsx index 8cdaaa2a5..40eab51ce 100644 --- a/src/renderer/src/components/sidebar/SidebarToolbar.tsx +++ b/src/renderer/src/components/sidebar/SidebarToolbar.tsx @@ -1,5 +1,12 @@ import React, { useState } from 'react' -import { ExternalLink, FolderPlus, Github, MessageSquareText, Settings } from 'lucide-react' +import { + ExternalLink, + FolderPlus, + Github, + MessageSquareText, + Settings, + Smartphone +} from 'lucide-react' import { useAppStore } from '@/store' import { Button } from '@/components/ui/button' import { Tooltip, TooltipTrigger, TooltipContent } from '@/components/ui/tooltip' @@ -233,8 +240,14 @@ function FeedbackDialog({ const SidebarToolbar = React.memo(function SidebarToolbar() { const openModal = useAppStore((s) => s.openModal) const openSettingsPage = useAppStore((s) => s.openSettingsPage) + const openSettingsTarget = useAppStore((s) => s.openSettingsTarget) const [feedbackOpen, setFeedbackOpen] = useState(false) + const openMobileSettings = (): void => { + openSettingsTarget({ pane: 'mobile', repoId: null }) + openSettingsPage() + } + return (
@@ -255,6 +268,22 @@ const SidebarToolbar = React.memo(function SidebarToolbar() {
+ + + + + + Orca Mobile + +