mirror of
https://github.com/stablyai/orca.git
synced 2026-11-02 01:57:57 +00:00
The Run on picker showed a server's raw environment id behind "Remote ·" and always a monitor glyph; it now takes the host list's badge labels and icon, as the desktop's picker does. Server rows also made the desktop row read "This computer" because its platform was only read for a mixed desktop catalog. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
11 lines
621 B
TypeScript
11 lines
621 B
TypeScript
import { Monitor, Server } from 'lucide-react-native'
|
|
import { parseExecutionHostId } from '../../../src/shared/execution-host'
|
|
import { colors } from '../theme/mobile-theme'
|
|
|
|
/** The desktop's own machine is a monitor, any other host a server, as on the desktop's run targets. */
|
|
export function HostKindIcon({ hostId, size }: { hostId: string | undefined; size: number }) {
|
|
// Rows from hosts that predate hostId stamping are local: a remote row always carries one.
|
|
const Icon = (parseExecutionHostId(hostId)?.kind ?? 'local') === 'local' ? Monitor : Server
|
|
return <Icon size={size} color={colors.textMuted} />
|
|
}
|