diff --git a/apps/mobile/src/ext/flows/run.ts b/apps/mobile/src/ext/flows/run.ts index 4958c25..5c2fd97 100644 --- a/apps/mobile/src/ext/flows/run.ts +++ b/apps/mobile/src/ext/flows/run.ts @@ -7,7 +7,7 @@ import { hub } from "../hardware/hub"; import { onLetGo, proxyRunning } from "../hardware/proxy"; /** - * A flow running on the phone itself (docs/features/flows.md, "Running on the phone"; #321): a client names a flow and + * A flow running on the phone itself (docs/features/flows.md, "Running on the device"; #321): a client names a flow and * the revision it saved; the proxy phone fetches exactly that and plays it on its own clock through its own * connections, with the same player as the Studio. It keeps playing when the Studio goes away; it stops when the * proxy lets go of its connections (switched off, or a pairing takes the radio). @@ -56,11 +56,11 @@ async function run(id: string, revision: string, fromMs: number) { } catch (e) { if (mine !== gen) return; log("warn", "run: flow not fetched", { flow: id, error: e }); - set({ phase: "error", error: `The phone could not fetch the flow: ${e instanceof Error ? e.message : String(e)}` }); + set({ phase: "error", error: `The device could not fetch the flow: ${e instanceof Error ? e.message : String(e)}` }); return; } if (mine !== gen) return; - if (!got) { set({ phase: "error", error: "The phone got another version of the flow than was saved; try again." }); return; } + if (!got) { set({ phase: "error", error: "The device got another version of the flow than was saved; try again." }); return; } flow = got; const from = Math.min(Math.max(0, fromMs), got.durationMs); log("info", "run: playing", { flow: got.id, revision, from }); diff --git a/apps/mobile/src/ext/flows/ui/FlowsApp.tsx b/apps/mobile/src/ext/flows/ui/FlowsApp.tsx index e17231c..735fc23 100644 --- a/apps/mobile/src/ext/flows/ui/FlowsApp.tsx +++ b/apps/mobile/src/ext/flows/ui/FlowsApp.tsx @@ -16,7 +16,7 @@ const secs = (ms: number) => `${(ms / 1000).toFixed(1)} s`; const bodyOf = (f: FileRec): FlowBody => ({ ...emptyFlow(), ...(f.body as Partial) }); /** - * Flows on the phone and tablet (docs/features/flows.md, "On the phone"): the project's flows, run on the phone itself + * Flows on the phone and tablet (docs/features/flows.md, "On the device"): the project's flows, run on the phone itself * as on set (through the phone that holds the connections), and the Studio's flow editor in a web view, the one editor * for every client. */ @@ -45,7 +45,7 @@ export function FlowsApp({ active }: { active: boolean }) { return ( void make() }]} />}> - {!state?.proxy && Running a flow needs a phone that holds the connections: switch its proxy on in Hardware.} + {!state?.proxy && Running a flow needs a device that holds the connections: switch its proxy on in Hardware.} {flows === null ? : !flows.length ? - Live {fmt(runsThis ? runAt : playhead)} / {fmt(flow.durationMs)} - + {runActive && run && ( -
requestRun({ type: "stop" })}>Stop}> - {runsThis ? "The phone plays it on its own; this flow is locked until it stops (Space). The playhead follows the phone." : "Play and Live are off while the phone runs a flow."} +
requestRun({ type: "stop" })}>Stop}> + {runsThis ? "The device plays it on its own; this flow is locked until it stops (Space). The playhead follows the device." : "Play and Live are off while the device runs a flow."}
)} - {run?.phase === "error" && run.flow === f.id &&
} - {!proxy &&
Switch the proxy on in Hardware on the phone to play, preview or run.
} + {run?.phase === "error" && run.flow === f.id &&
} + {!proxy &&
Switch the proxy on in Hardware on the device to play, preview or run.
}
{lanes}