AI media harness for planning, generating, and editing locally
TypeScript
Add a new-shot button to the Shots panel
Bitti288e4636bc19
diff --git a/src/components/workspace/GeneratorView.tsx b/src/components/workspace/GeneratorView.tsxindex fce9b6c..647b258 100644--- a/src/components/workspace/GeneratorView.tsx+++ b/src/components/workspace/GeneratorView.tsx@@ -1,5 +1,5 @@import { listen } from "@tauri-apps/api/event";-import { AlertCircle, Ban, Check, ChevronRight, Clock3, Film, Info, LoaderCircle, Play, RefreshCw, Sparkles, Square, WandSparkles, X } from "lucide-react";+import { AlertCircle, Ban, Check, ChevronRight, Clock3, Film, Info, LoaderCircle, Play, Plus, RefreshCw, Sparkles, Square, WandSparkles, X } from "lucide-react";import { useEffect, useMemo, useRef, useState } from "react";import { isTauri } from "../../lib/persistence";import { compileMiniMaxH3Prompt, createDraftGenerationJob, STORY_TRACK_ID, isReferenceDescribed, isReferenceUsable, isVisualReference, projectFilePath, usableImageReferences, type GenerationJob, type ProjectAsset, type ProjectConfig, type ProjectReference, type TimelineClip, type TimelineTrack } from "../../lib/project";@@ -178,8 +178,14 @@ export function GeneratorView({ config, folderPath, runtime = null, onChange, onreturn <div className="generator-view"><aside className="queue-panel" aria-label="Shots"><div className="queue-panel__title">- <span>Shots</span>- <b>{queueSummary(active.length, queued.length, jobs.length)}</b>+ <div>+ <span>Shots</span>+ <b>{queueSummary(active.length, queued.length, jobs.length)}</b>+ </div>+ {/* A shot is its words, and PolStudio never writes those for anyone —+ so this opens the composer rather than adding an empty job to the+ list. Same destination as "Write another shot" below. */}+ <button className="queue-panel__new" onClick={focusComposer} aria-label="Write a new shot" title="Write a new shot"><Plus size={18} /></button></div><div className="queue-panel__scroll"><QueueGroup title="Rendering now" jobs={active} selectedId={selectedId} onSelect={setSelectedId} />diff --git a/src/styles/generator.css b/src/styles/generator.cssindex f125f86..f4f4504 100644--- a/src/styles/generator.css+++ b/src/styles/generator.css@@ -29,13 +29,40 @@min-height: var(--topbar-height);flex: 0 0 auto;display: flex;- flex-direction: column;- justify-content: center;- gap: var(--space-1);+ align-items: center;+ justify-content: space-between;+ gap: var(--space-2);padding: var(--space-3) var(--space-4);border-bottom: 1px solid var(--line);}+/* The name over its count, with the new-shot button beside the pair. */+.queue-panel__title > div {+ min-width: 0;+ display: flex;+ flex-direction: column;+ gap: var(--space-1);+}++.queue-panel__new {+ width: var(--space-6);+ height: var(--space-6);+ flex: 0 0 auto;+ display: grid;+ place-items: center;+ padding: 0;+ border: 1px solid var(--line);+ border-radius: var(--radius-sm);+ color: var(--text-secondary);+ background: var(--panel-2);+}++.queue-panel__new:hover {+ color: var(--text-primary);+ border-color: var(--accent-bright);+ background: var(--accent-soft);+}+.queue-panel__title span {color: var(--text-primary);font-size: var(--text-md);