AI media harness for planning, generating, and editing locally
TypeScript
One-line engine status in the Shots panel
Bitti381f09c5e409
diff --git a/src/App.test.tsx b/src/App.test.tsxindex cb39d3e..ee862ea 100644--- a/src/App.test.tsx+++ b/src/App.test.tsx@@ -69,7 +69,9 @@ describe("project library controls", () => {fireEvent.click(screen.getByRole("button", { name: "Create project" }));await screen.findByRole("heading", { name: "Generator" });expect(screen.getByRole("heading", { name: "First scene" })).not.toBeNull();- expect(screen.getByText("You can still write and save shot drafts.")).not.toBeNull();+ // The engine pill is one line now, and in the browser that line is the+ // demo state rather than a paragraph explaining it.+ expect(await screen.findByText("Preview mode")).not.toBeNull();});it("reports a project it can’t read instead of dropping it from the library", async () => {diff --git a/src/components/workspace/GeneratorView.tsx b/src/components/workspace/GeneratorView.tsxindex 53af9a3..5215c36 100644--- a/src/components/workspace/GeneratorView.tsx+++ b/src/components/workspace/GeneratorView.tsx@@ -208,12 +208,12 @@ export function GeneratorView({ config, folderPath, runtime = null, onChange, on<QueueGroup title="Already run" jobs={completed} selectedId={selectedId} onSelect={setSelectedId} />{jobs.length === 0 && <p className="queue-empty">No shots yet. Describe one in the box on the right and it will appear here.</p>}</div>- {/* The pill is the last thing a user reads before committing to a render,- so the "frames, not a video file" limit is disclosed here too. */}+ {/* One line: the headline already IS the status. The paragraph under it+ restated the same fact in a second sentence, and the "frames, not a+ video file" limit is still disclosed in the composer, at the point+ where someone actually commits to a render. */}<div className={`queue-runtime queue-runtime--${runtime?.state ?? "checking"}`}><span className="queue-runtime__state"><i /> {runtimeHeadline(runtime)}</span>- <p>{runtimeExplainer(runtime)}</p>- <small>{runtimeReady ? "A finished shot stays as frames — saving a video file isn’t built yet." : "You can still write and save shot drafts."}</small></div></aside>@@ -583,13 +583,3 @@ const runtimeHeadline = (runtime: VidfabStatus | null) => {}};-const runtimeExplainer = (runtime: VidfabStatus | null) => {- if (!runtime) return "PolStudio is looking for the video engine on this computer.";- switch (runtime.state) {- case "ready": return "It renders one shot at a time.";- case "demo": return "PolStudio plans the shot but doesn’t render it.";- case "modelsMissing": return "The video model files aren’t set up yet.";- case "runtimeMissing": return "The video engine isn’t installed on this computer.";- case "incompatible": return "This version of the video engine doesn’t work with PolStudio.";- }-};diff --git a/src/styles/generator.css b/src/styles/generator.cssindex 9f49224..0a5f0a1 100644--- a/src/styles/generator.css+++ b/src/styles/generator.css@@ -252,21 +252,6 @@background: var(--text-muted);}-.queue-runtime p {- margin: var(--space-2) 0 0;- color: var(--text-secondary);- font-size: var(--text-sm);- line-height: var(--leading-normal);-}--.queue-runtime small {- display: block;- margin-top: var(--space-2);- color: var(--text-muted);- font-size: var(--text-xs);- line-height: var(--leading-normal);-}-.queue-runtime--ready {border-top-color: color-mix(in srgb, var(--success) 35%, transparent);}