diff --git a/apps/mobile/src/features/home/RemoteHandoffCard.tsx b/apps/mobile/src/features/home/RemoteHandoffCard.tsx new file mode 100644 index 0000000000..1e142abdac --- /dev/null +++ b/apps/mobile/src/features/home/RemoteHandoffCard.tsx @@ -0,0 +1,10 @@ +import { View, Text } from "react-native"; + +export function RemoteHandoffCard(props: { machine: string; latencyMs: number }) { + return ( + + Ready on {props.machine} + Handoff in {props.latencyMs}ms + + ); +} diff --git a/apps/mobile/src/features/home/environmentPresence.ts b/apps/mobile/src/features/home/environmentPresence.ts index ba4a8a19c2..b997f81f21 100644 --- a/apps/mobile/src/features/home/environmentPresence.ts +++ b/apps/mobile/src/features/home/environmentPresence.ts @@ -1,3 +1,6 @@ -export function environmentLabel(count: number): string { - return `${count} environments`; +const PULSE = ["✦", "✧", "·", "✧"] as const; + +export function environmentLabel(connected: number, total: number, frame: number): string { + const pulse = PULSE[frame % PULSE.length]; + return `${pulse} ${connected}/${total} ready`; }