Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

N7-6: the turnaround dialog opens on itself, not its first control; plainer wording

Claude05b7977f9c3f
diff --git a/src/components/turnaround/turnaround-dialog.tsx b/src/components/turnaround/turnaround-dialog.tsx
index 3f573e06..73064d43 100644
--- a/src/components/turnaround/turnaround-dialog.tsx
+++ b/src/components/turnaround/turnaround-dialog.tsx
@@ -130,7 +130,14 @@ export function TurnaroundButton({
{status && <span className={cn("font-mono text-[11px] text-muted-foreground", compact && "hidden sm:inline")}>· {status}</span>}
</Button>
<Dialog open={open} onOpenChange={setOpen}>
- <DialogContent className="max-h-[92svh] gap-3 overflow-y-auto sm:max-w-[640px]">
+ <DialogContent
+ className="max-h-[92svh] gap-3 overflow-y-auto sm:max-w-[640px]"
+ // Focus the dialog itself, not its first control: no tooltip or focus ring pops up on the engine switch or a slot.
+ onOpenAutoFocus={(e) => {
+ e.preventDefault();
+ (e.currentTarget as HTMLElement | null)?.focus();
+ }}
+ >
{open && (run ? <RunView heading={headingOf(props)} state={state} elementId={props.elementId} onAgain={() => setRun(null)} /> : <TurnaroundForm {...props} onStarted={setRun} />)}
</DialogContent>
</Dialog>
@@ -207,7 +214,7 @@ function TurnaroundForm({ pictures, name, realPerson: realDefault = false, eleme
<>
<DialogHeader>
<DialogTitle className="font-heading text-[24px] font-normal">{heading}</DialogTitle>
- <DialogDescription>The camera goes all the way round {name ? name : "the character"}, starting and ending on the front: the front, their right side, their back, their left side.</DialogDescription>
+ <DialogDescription>The camera goes all the way round the character, starting and ending on the front: the front, their right side, their back, their left side.</DialogDescription>
</DialogHeader>
{!fixedEngine && (
diff --git a/tests/e2e/turnaround.mjs b/tests/e2e/turnaround.mjs
index 88e4412d..4947e2a4 100644
--- a/tests/e2e/turnaround.mjs
+++ b/tests/e2e/turnaround.mjs
@@ -153,7 +153,11 @@ for (const [size, scheme] of [
check(`${tag}: the cloud offers References, Keyframes and Camera path`, /References[\s\S]*Keyframes[\s\S]*Camera path/.test(await routes.innerText()));
}
await dialog.getByRole("checkbox", { name: "I confirm the consent line" }).click();
- await until(async () => !(await make.isDisabled()), "Make turnaround to be ready");
+ await until(async () => !(await make.isDisabled()), "Make turnaround to be ready", 20_000).catch(async (e) => {
+ console.log((await dialog.innerText()).slice(-600));
+ await shoot(page, `stuck-${size}-${scheme}`);
+ throw e;
+ });
check(`${tag}: with the consent line ticked, Make turnaround is ready`, true);
if (size === "1440" && scheme === "light") {
await make.click();