Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Shorten generation blockers and move last titles to tooltips

Bitti650f110b3e91
diff --git a/src/components/workspace/GeneratorView.tsx b/src/components/workspace/GeneratorView.tsx
index a71aa4f..ca9990e 100644
--- a/src/components/workspace/GeneratorView.tsx
+++ b/src/components/workspace/GeneratorView.tsx
@@ -444,8 +444,8 @@ export function GeneratorView({ config, folderPath, runtime = null, generationCo
const generationBlocker = (job: GenerationJob): string | null => {
if (!runtimeReady) return runtimeError ?? generatorRuntime?.detail ?? "The video generator is not ready.";
- if (job.status === "ready") return "This scene is being saved now.";
- if (!isVideoTransition(job) && job.sceneType !== "pose" && job.sceneType !== "character-replace" && job.usePreviousSceneLastFrame && jobs[0]?.id === job.id) return "This scene needs a previous scene to continue.";
+ if (job.status === "ready") return "Saving this scene.";
+ if (!isVideoTransition(job) && job.sceneType !== "pose" && job.sceneType !== "character-replace" && job.usePreviousSceneLastFrame && jobs[0]?.id === job.id) return "Needs a previous scene to continue from.";
return templateSceneBlocker(sceneTypeFor(job), selectedTemplate) ?? sendBlocker(job, config.references);
};
@@ -703,21 +703,21 @@ function sendBlocker(job: GenerationJob, references: ProjectReference[]): string
}
if (animate) {
const bound = sceneGenerationReferences(job, references);
- if (usableVideoReferences(bound).length !== 1) return "Select exactly one reference video for this scene before animating.";
- if (usableReferenceImages(bound).length !== 1) return "Select exactly one repainted frame of the driving scene before animating.";
+ if (usableVideoReferences(bound).length !== 1) return "Choose one reference video.";
+ if (usableReferenceImages(bound).length !== 1) return "Choose one repainted frame.";
if (job.usePreviousSceneLastFrame || bound.some((reference) => reference.refmods?.some((refmod) => refmod.strength > 0))) {
- return "Animate does not support scene continuation or refmods.";
+ return "Animate can’t continue a scene or use refmods.";
}
}
if (!animate && !characterReplace && shots.every((shot) => shot.action.trim().length === 0 && !(shot.speech ?? "").trim())) {
- return "Describe what happens or add speech in at least one shot before this scene can be generated.";
+ return "Write a description or speech in at least one shot.";
}
if (sceneDurationSeconds(job) <= 0) {
- return "This scene is nought seconds long, so there are no frames to render. Give it a length first.";
+ return "Give the scene a length.";
}
const dangling = danglingReferenceTokens(shots, references);
if (!animate && !characterReplace && dangling.length > 0) {
- return "A reference named in one of the lines can no longer be used, and would be left out of the prompt. Swap it for another one or take it out of the line first.";
+ return "A reference in a shot can’t be used. Replace it or remove it from the line.";
}
return null;
}
diff --git a/src/components/workspace/PresetIcon.tsx b/src/components/workspace/PresetIcon.tsx
index 01ca9ef..0df88c7 100644
--- a/src/components/workspace/PresetIcon.tsx
+++ b/src/components/workspace/PresetIcon.tsx
@@ -23,5 +23,5 @@ export function PresetIcon({ preset, className, alt = "" }: { preset: ReferenceP
return () => { disposed = true; observer.disconnect(); };
}, [preset.id, preset.icon, available, revision]);
if (url) return <img className={className} src={url} alt={alt} loading="lazy" />;
- return <span ref={marker} className={className} role={alt ? "img" : undefined} aria-label={alt || undefined} title={error ? "Could not load icon" : undefined} />;
+ return <span ref={marker} className={className} role={alt ? "img" : undefined} aria-label={alt || undefined} data-tooltip={error ? "Couldn’t load icon" : undefined} />;
}
diff --git a/src/components/workspace/ShotThumbnail.tsx b/src/components/workspace/ShotThumbnail.tsx
index c9ca0d9..9d1e585 100644
--- a/src/components/workspace/ShotThumbnail.tsx
+++ b/src/components/workspace/ShotThumbnail.tsx
@@ -398,7 +398,7 @@ export function ShotThumbnail({ folderPath, job, seconds, endSeconds = sceneDura
type="button"
className="shot-thumb shot-thumb--poster shot-thumb--playable"
aria-label={`${action} shot ${shotNumber} of ${job.title}`}
- title={`${action} this shot only (${seconds.toFixed(1)}s–${endSeconds.toFixed(1)}s)`}
+ data-tooltip={`${action} this shot only (${seconds.toFixed(1)}s–${endSeconds.toFixed(1)}s)`}
onClick={(event) => void togglePlayback(event)}
>
{playbackUrl