AI media harness for planning, generating, and editing locally
TypeScript
Move bypass styles to timeline.css, widen zoom, drop dead class hooks
Bittia858b4c2da2a
diff --git a/src/components/AdditionalSafetensorsEditor.tsx b/src/components/AdditionalSafetensorsEditor.tsxindex 1d58bba..4cb2327 100644--- a/src/components/AdditionalSafetensorsEditor.tsx+++ b/src/components/AdditionalSafetensorsEditor.tsx@@ -12,7 +12,7 @@ export function AdditionalSafetensorsEditor({ value, disabled, animate, onChangeconst [url, setUrl] = useState("");const [error, setError] = useState<string | null>(null);const update = (id: string, patch: Partial<AdditionalSafetensor>) => onChange(value.map((file) => file.id === id ? { ...file, ...patch } : file));- return <SettingsGroup heading={`Additional safetensors (${value.length})`} className="additional-safetensors">+ return <SettingsGroup heading={`Additional safetensors (${value.length})`}>{value.map((file, index) => <SettingsExpander key={`${file.id}-${file.url}`} icon={<FileBox size={20} />} header={file.name || "Additional safetensor"}description={<span data-tooltip={file.downloadedPath}>{file.downloadedPath ? "Downloaded" : "Download required"}</span>} defaultExpanded={!file.downloadedPath}control={<button type="button" className="icon-button" disabled={disabled} aria-label={`Remove additional safetensor ${index + 1}`} data-tooltip="Remove"diff --git a/src/components/LoraSettings.tsx b/src/components/LoraSettings.tsxindex a817f4e..7db812c 100644--- a/src/components/LoraSettings.tsx+++ b/src/components/LoraSettings.tsx@@ -120,7 +120,7 @@ export function TemplateLorasEditor({ value, onChange }: { value: TemplateLora[][next[index], next[index + delta]] = [next[index + delta], next[index]];onChange(next);};- return <SettingsGroup heading={<>LoRAs <span className="settings-group__count">{active.length} active</span></>} className="template-loras">+ return <SettingsGroup heading={<>LoRAs <span className="settings-group__count">{active.length} active</span></>}>{value.map((entry, index) => {const lora = library.find(({ id }) => id === entry.loraId);const name = lora?.name ?? "Missing LoRA";diff --git a/src/components/SettingsView.tsx b/src/components/SettingsView.tsxindex 7d1ff7b..9a24714 100644--- a/src/components/SettingsView.tsx+++ b/src/components/SettingsView.tsx@@ -552,7 +552,7 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onCl<AdditionalSafetensorsEditor key={selectedTemplate.id} value={selectedTemplate.additionalSafetensors ?? []} disabled={Boolean(downloading)} animate={selectedTemplate.mode === "animate"} onChange={(additionalSafetensors) => updateTemplate({ additionalSafetensors })} /><TemplateLorasEditor value={selectedTemplate.loras ?? []} onChange={(loras) => updateTemplate({ loras })} />- <SettingsGroup heading="Advanced" className="generator-editor__advanced">+ <SettingsGroup heading="Advanced"><SettingsCard icon={<Settings2 size={20} />} header="Show advanced options" description="Per-GPU download sources for each model file"><ToggleSwitch aria-label="Show advanced options" checked={showAdvancedOptions} onChange={setShowAdvancedOptions} /></SettingsCard>diff --git a/src/components/UpdatePanel.tsx b/src/components/UpdatePanel.tsxindex ecc5730..cab3448 100644--- a/src/components/UpdatePanel.tsx+++ b/src/components/UpdatePanel.tsx@@ -90,7 +90,7 @@ export function UpdatePanel({ updater, blockReason }: { updater: AppUpdater; blo{state.version && blocked && state.stage !== "restart" && !transferring && <InfoBar severity="warning" message={blocked} />}{state.stage === "restart" && blocked && <InfoBar severity="warning" message={blocked} />}{state.notes && (- <Expander header="What’s new" description={state.version ? `Slopus ${state.version}` : undefined} className="update-panel__notes-expander">+ <Expander header="What’s new" description={state.version ? `Slopus ${state.version}` : undefined}><pre className="update-panel__notes">{state.notes}</pre></Expander>)}diff --git a/src/components/workspace/ColorPicker.tsx b/src/components/workspace/ColorPicker.tsxindex 1158956..c451b33 100644--- a/src/components/workspace/ColorPicker.tsx+++ b/src/components/workspace/ColorPicker.tsx@@ -143,7 +143,7 @@ export function ColorPicker({ value, onChange }: { value: string; onChange: (hexonChange={(event) => typed(event.target.value)}onBlur={() => setDraft(value.toUpperCase())}/>- {Dropper && <button type="button" className="icon-button color-picker__dropper" aria-label="Pick a colour from the screen" {...tooltipProps("Pick a colour from the screen")} onClick={() => void sample()}>+ {Dropper && <button type="button" className="icon-button" aria-label="Pick a colour from the screen" {...tooltipProps("Pick a colour from the screen")} onClick={() => void sample()}><Pipette size={16} aria-hidden="true" /></button>}</div>diff --git a/src/components/workspace/ReferencesView.tsx b/src/components/workspace/ReferencesView.tsxindex 56688e3..fe63870 100644--- a/src/components/workspace/ReferencesView.tsx+++ b/src/components/workspace/ReferencesView.tsx@@ -541,7 +541,7 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,<div className="reference-fields"><label><span>Prompt</span><textarea className="text-field" disabled={hasRefmods} value={selected.description} placeholder="Describe what should stay consistent — the traits, materials, colours, or wardrobe Slopus should preserve across shots." onChange={(event) => update(selected.id, { description: event.target.value, content: event.target.value || null, subcategory: selectedSubcategory })} /></label>{hasRefmods ? <p>Remove the refmods to edit the prompt or add files.</p>- : !isReferenceDescribed(selected) && <p className="reference-fields__hint">{selected.kind === "video"+ : !isReferenceDescribed(selected) && <p>{selected.kind === "video"? "The clip is sent as a reference. Add a prompt to describe what to keep.": selectedImages.length > 0? "Not described yet — the picture is sent, but nothing tells the engine what to keep."diff --git a/src/components/workspace/SceneBoard.tsx b/src/components/workspace/SceneBoard.tsxindex 508e10b..14abc11 100644--- a/src/components/workspace/SceneBoard.tsx+++ b/src/components/workspace/SceneBoard.tsx@@ -378,7 +378,7 @@ export function SceneBoard({<HeaderButtonlabel={cancellable ? "Cancel" : "Generate"}tooltip={cancellable ? `Cancel ${job.title}` : blocker ?? `Generate ${job.title}`}- className={cancellable ? "scene-rule__cancel" : "scene-rule__generate"}+ className={cancellable ? "scene-rule__cancel" : undefined}disabled={!cancellable && Boolean(blocker)}onClick={() => onGenerate(job)}>{cancellable ? <Square size={14} /> : <WandSparkles size={16} />}</HeaderButton>diff --git a/src/components/workspace/SceneEditor.tsx b/src/components/workspace/SceneEditor.tsxindex cfd54e7..0d5c1a1 100644--- a/src/components/workspace/SceneEditor.tsx+++ b/src/components/workspace/SceneEditor.tsx@@ -168,7 +168,7 @@ export function ShotInspector({ job, shots, shot, index, endsAt, duration, refer};return <section className="shot-inspector" aria-label={`Shot ${shotNumber}`}>- {!promptOnly && <PropRow label="Starts at" htmlFor={`shot-start-${shot.id}`} className="shot-inspector__timing">+ {!promptOnly && <PropRow label="Starts at" htmlFor={`shot-start-${shot.id}`}><inputid={`shot-start-${shot.id}`}className="text-field"diff --git a/src/components/workspace/TimelineView.tsx b/src/components/workspace/TimelineView.tsxindex 00c7237..f5feebf 100644--- a/src/components/workspace/TimelineView.tsx+++ b/src/components/workspace/TimelineView.tsx@@ -1145,7 +1145,7 @@ export function TimelineView({ config, folderPath, generationCompletionTimes = {><span className="scene-card__thumb">{job.status !== "draft" ? <ShotThumbnail folderPath={folderPath} job={job} seconds={0} shotNumber={1} estimatedCompletionAt={generationCompletionTimes[job.id] ?? null} />- : <Film size={20} className="scene-card__glyph" aria-hidden="true" />}+ : <Film size={20} aria-hidden="true" />}<i>{String(index + 1).padStart(2, "0")}</i><em>{sceneDurationSeconds(job).toFixed(1)}s</em></span><span><b>{job.title}</b><small>{STATUS_WORD[job.status]}{placements > 0 ? ` · ${placements} on timeline` : ""}</small><small>{sceneShape(job)}</small></span>diff --git a/src/styles/image-editor.css b/src/styles/image-editor.cssindex dd1018c..37d393e 100644--- a/src/styles/image-editor.css+++ b/src/styles/image-editor.css@@ -43,7 +43,8 @@.image-canvas-tools { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-1); min-height: var(--space-7); padding: var(--space-1) var(--space-2); border-bottom: 1px solid var(--line); }.image-generate-button { flex-shrink: 0; white-space: nowrap; }.image-generator { width: 200px; max-width: 32%; }-.image-zoom { width: 96px; min-width: 96px; }+/* Editable: typed percentages up to "800%" plus the 32px drop-down button. */+.image-zoom { width: 112px; min-width: 112px; }.image-tools__separator { width: 1px; height: 20px; margin: 0 var(--space-1); background: var(--line); }.image-tools__group { display: inline-flex; gap: 2px; }/* 32px icon toggles; the checked tool is an accent-soft fill. */diff --git a/src/styles/library.css b/src/styles/library.cssindex b25ab84..5e76b78 100644--- a/src/styles/library.css+++ b/src/styles/library.css@@ -354,7 +354,7 @@}.composer__field .text-field,-.composer__field select {+.composer__field .ui-combo {width: 100%;min-width: 0;}diff --git a/src/styles/timeline.css b/src/styles/timeline.cssindex 9228526..2780ada 100644--- a/src/styles/timeline.css+++ b/src/styles/timeline.css@@ -742,6 +742,18 @@white-space: nowrap;}+/* Bypass: the checkbox sits ahead of the chevron, and a switched-off+ effect's name reads secondary, the way Premiere dims an fx that is off. */+.clip-effect__bypass {+ flex: none;+ margin-left: var(--space-2);+ padding-block: 0;+}++.clip-effect--bypassed .clip-effect__name {+ color: var(--text-secondary);+}+.clip-effect__action {width: 24px;height: 24px;