Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Empty monitor shows nothing instead of a panel about nothing

Bitticc54f85750b2
diff --git a/src/components/ProjectWorkspace.test.ts b/src/components/ProjectWorkspace.test.ts
index a43fd74..f3f1101 100644
--- a/src/components/ProjectWorkspace.test.ts
+++ b/src/components/ProjectWorkspace.test.ts
@@ -69,15 +69,16 @@ describe("project workspace timecode", () => {
expect(screen.getAllByText("DRAFT").length).toBe(1);
});
- it("shows a project-specific empty monitor without unrelated demo preview", () => {
+ it("leaves the monitor empty rather than explaining the emptiness", () => {
const config = createProjectConfig({ name: "Ceramic lamp", prompt: "A quiet product film", aspectRatio: "16:9", resolution: "1080p", targetDurationSeconds: 30 });
render(createElement(ProjectWorkspace, {
project: { folderPath: "C:\\Ceramic Lamp", config }, initialView: "timeline",
onBack: () => undefined, onSave: async () => undefined,
}));
- const monitor = screen.getByTestId("project-empty-monitor");
- expect(monitor.textContent).toContain("Ceramic lamp");
- expect(monitor.textContent).toContain("A quiet product film");
+ expect(screen.queryByTestId("project-empty-monitor")).toBeNull();
+ expect(screen.queryByText(/Nothing to play yet/)).toBeNull();
+ // The point the old placeholder was carrying: no other project's demo
+ // footage ever appears in this one's monitor.
expect(screen.queryByText("NORTHERN LIGHT")).toBeNull();
});
diff --git a/src/components/workspace/TimelineView.tsx b/src/components/workspace/TimelineView.tsx
index 5b479a0..ef694c0 100644
--- a/src/components/workspace/TimelineView.tsx
+++ b/src/components/workspace/TimelineView.tsx
@@ -301,20 +301,18 @@ export function TimelineView({ config, folderPath, onChange, onOpenGenerator }:
<main className="program-panel">
<h2 className="sr-only">Program monitor</h2>
<div className="program-canvas">
- {hasVisualOutput ? (
+ {/* An empty monitor is an empty monitor. The panel that used to sit
+ here restated the project's name and prompt — both already in the
+ topbar — to say nothing was playing, which the black picture says
+ by itself. Footage that exists but cannot be played back yet still
+ gets a panel, because THAT is not obvious. */}
+ {hasVisualOutput && (
<div className="program-empty program-empty--footage">
<Film size={30} />
<strong>{config.name}</strong>
<span>{config.brief.prompt}</span>
<small>PolStudio can’t play this footage back yet. {clipCount === 1 ? "1 clip is" : `${clipCount} clips are`} arranged on the timeline below and nothing has been lost.</small>
</div>
- ) : (
- <div className="program-empty" data-testid="project-empty-monitor">
- <Film size={30} />
- <strong>{config.name}</strong>
- <span>{config.brief.prompt}</span>
- <small>Nothing to play yet. Add or generate a scene and it will land on the timeline below.</small>
- </div>
)}
</div>
<div className="monitor-transport">