From 2c2398e5f051cd423343cd92b6c7ec8b9ffd2fbb Mon Sep 17 00:00:00 2001 From: bubulux Date: Wed, 25 Nov 2026 15:27:31 +0100 Subject: [PATCH 1/2] Flows in the Studio: timeline zoom back, no Marker button or help text; "device", not "phone" (#426) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - View › Size: the timeline's width (fit to 32×, zoom out/in, Fit width; the lanes scroll sideways with the track labels kept in place) next to track height and Fit height. - The Marker button and the help text under the lanes are gone (markers come from M, Shift+M and Insert mode on the marker strip). - What people read in Flows and Hardware, in the Studio and on the phone, says "device" where it said "phone" (a tablet is one too): Run on device, the proxy device, Device link offline, … Co-Authored-By: Claude Opus 5.5 --- apps/mobile/src/ext/flows/run.ts | 6 +-- apps/mobile/src/ext/flows/ui/FlowsApp.tsx | 10 ++--- .../ext/hardware/bt/drivers/sidusMesh.test.ts | 2 +- .../src/ext/hardware/bt/drivers/sidusMesh.ts | 4 +- apps/mobile/src/ext/hardware/meshNetworks.ts | 4 +- apps/mobile/src/ext/hardware/provisionFlow.ts | 6 +-- apps/mobile/src/ext/hardware/proxy.ts | 6 +-- apps/mobile/src/ext/hardware/ui/AddDevice.tsx | 4 +- .../src/ext/hardware/ui/CameraSheet.tsx | 2 +- apps/mobile/src/ext/hardware/ui/Device.tsx | 8 ++-- .../src/ext/hardware/ui/HardwareApp.tsx | 10 ++--- apps/mobile/src/ext/hardware/ui/KeyBackup.tsx | 22 +++++----- apps/mobile/src/ext/hardware/ui/parts.tsx | 2 +- apps/studio/src/apps/LayoutsApp.tsx | 2 +- apps/studio/src/ext/flows/FlowsApp.tsx | 41 +++++++++++-------- apps/studio/src/ext/flows/embed.tsx | 2 +- apps/studio/src/ext/flows/flows.css | 6 ++- apps/studio/src/ext/flows/lanes.tsx | 4 +- apps/studio/src/ext/flows/view.ts | 3 ++ apps/studio/src/ext/hardware/Controls.tsx | 2 +- apps/studio/src/ext/hardware/view.tsx | 24 +++++------ docs/features/flows.md | 8 ++-- 22 files changed, 96 insertions(+), 82 deletions(-) diff --git a/apps/mobile/src/ext/flows/run.ts b/apps/mobile/src/ext/flows/run.ts index 4958c254..5c2fd979 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 e17231c1..735fc23f 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}