AI media harness for planning, generating, and editing locally
TypeScript
Organize model and preview settings
Bittiad7edfae9faf
diff --git a/src/components/GenerationPreviewSetting.tsx b/src/components/GenerationPreviewSetting.tsxindex 572484b..13b508a 100644--- a/src/components/GenerationPreviewSetting.tsx+++ b/src/components/GenerationPreviewSetting.tsx@@ -4,7 +4,7 @@ import { SettingsCard, SettingsGroup, ToggleSwitch } from "./ui";export function GenerationPreviewSetting() {const enabled = useSyncExternalStore(subscribeGenerationPreviews, loadGenerationPreviewsEnabled);- return <SettingsGroup heading="Generation previews">+ return <SettingsGroup heading="Preview"><SettingsCard header="Show generation previews" description="Play MiniMax H3 previews in scene cards during generation. Download TAEH3 from Other weights first. Decoder changes apply to new generations."><ToggleSwitch checked={enabled} aria-label="Enable generation previews" onChange={saveGenerationPreviewsEnabled} /></SettingsCard>diff --git a/src/components/SettingsView.tsx b/src/components/SettingsView.tsxindex cc6a3e3..dd04357 100644--- a/src/components/SettingsView.tsx+++ b/src/components/SettingsView.tsx@@ -661,13 +661,15 @@ export function SettingsView({ onClose, updates, initialTab = "engine", titleBarconst generatorList = <>{downloadStatus}{modelPage === null ? <>- <ReferenceIconSetting templates={templateSettings} />- <GenerationPreviewSetting />+ <SettingsGroup heading="Models"><div className="settings-card-list" role="list" aria-label="Generator models">{[...new Set([...GENERATOR_MODELS.map(({ value }) => value), ...templateSettings.templates.map(({ modelType }) => modelType)]), "other"].map((model) =><OpenableCard key={model} icon={model === "other" ? <ModelFile20 /> : generatorModel(model).musicGeneration ? <Audio22 /> : !generatorModel(model).videoGeneration ? <Image20 /> : <Video20 />} header={modelPageLabel(model)}openLabel={modelPageLabel(model)} openRef={`model:${model}`} description={model === "other" ? "Other weights" : "Generators and LoRAs"} onOpen={() => setModelPage(model)} />)}</div>+ </SettingsGroup>+ <ReferenceIconSetting templates={templateSettings} />+ <GenerationPreviewSetting /></> : modelPage === "other" ? <OtherWeightsSettings desktop={desktop} /> : h3AdvancedPage ? <H3ComponentSettings settings={templateSettings} desktop={desktop} /> : <>{generatorSections.filter((section) => section.id === "generators" || section.templates.length > 0).map((section) => <SettingsGroup key={section.id} heading={section.title}>{section.id === "generators" && <GeneratorSharing templates={[]}>{({ importButton }) => <SettingsCard icon={<Add20 />} header="Add a generator" description="Choose the generator used by default, or open one to edit its model setup">