Improve Orca Mobile discoverability (#1758)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -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 ? (
|
||||
<SearchableSetting
|
||||
title="Mobile"
|
||||
description="Pair a mobile device to control Orca remotely."
|
||||
description="Control terminals and agents from your phone."
|
||||
keywords={MOBILE_ENABLE_SEARCH_ENTRY.keywords}
|
||||
className="space-y-3 px-1 py-2"
|
||||
>
|
||||
|
||||
@@ -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}
|
||||
>
|
||||
<MobileSettingsPane settings={settings} updateSettings={updateSettings} />
|
||||
|
||||
@@ -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 (
|
||||
<div className="mt-auto shrink-0">
|
||||
<div className="flex items-center justify-between border-t border-sidebar-border px-2 py-1.5">
|
||||
@@ -255,6 +268,22 @@ const SidebarToolbar = React.memo(function SidebarToolbar() {
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
<div className="flex items-center gap-1">
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-xs"
|
||||
onClick={openMobileSettings}
|
||||
aria-label="Open Orca Mobile settings"
|
||||
className="text-muted-foreground"
|
||||
>
|
||||
<Smartphone className="size-3.5" />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent side="top" sideOffset={4}>
|
||||
Orca Mobile
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
|
||||
@@ -252,6 +252,7 @@ export type UISlice = {
|
||||
| 'agents'
|
||||
| 'accounts'
|
||||
| 'experimental'
|
||||
| 'mobile'
|
||||
| 'ssh'
|
||||
repoId: string | null
|
||||
sectionId?: string
|
||||
|
||||
Reference in New Issue
Block a user