AI media harness for planning, generating, and editing locally
TypeScript
Rename downloadable generators to Download
Bittidcdbc4f41c45
diff --git a/docs/generator-weights.md b/docs/generator-weights.mdindex 4f3527a..8ba029d 100644--- a/docs/generator-weights.md+++ b/docs/generator-weights.md@@ -4,9 +4,9 @@ In Settings → Generator, edit a template and enter local paths or HTTP/HTTPSdownload URLs. Hugging Face `blob` links are converted to direct file downloads.The bundled **Minimax H3 Original** template contains the four supplied model URLs.-Templates awaiting downloads appear under **Downloadable generators**. Once their+Templates awaiting downloads appear under **Download**. Once theirweights are downloaded, they move into **Generators**. Removing or losing their-downloaded files moves them back to **Downloadable generators**.+downloaded files moves them back to **Download**.Enable **Show advanced options** at the end of the template editor, then open**Download variants** under a weight to add alternative URLs. Each variantdiff --git a/src/components/SettingsView.downloads.test.tsx b/src/components/SettingsView.downloads.test.tsxindex 12430a8..6c7083b 100644--- a/src/components/SettingsView.downloads.test.tsx+++ b/src/components/SettingsView.downloads.test.tsx@@ -49,7 +49,7 @@ it("keeps downloading with Settings closed and restores progress in the templateact(() => progress({ payload: { requestId: pending[0].requestId, downloaded: 50, total: 100 } }));const fill = screen.getByRole("progressbar", { name: "Downloading Minimax H3 Original weights" });expect(fill.closest(".generator-template-item")).not.toBeNull();- expect(within(screen.getByRole("list", { name: "Downloadable generators" })).getByRole("progressbar")).toBe(fill);+ expect(within(screen.getByRole("list", { name: "Download" })).getByRole("progressbar")).toBe(fill);expect(within(screen.getByRole("list", { name: "Generators" })).queryByText("Minimax H3 Original")).toBeNull();expect(fill).toHaveStyle({ width: "12.5%" });fireEvent.click(screen.getByRole("button", { name: "Close settings" }));@@ -80,19 +80,19 @@ it("downloads the sample, enables its default choice, and removes only weights trender(<SettingsView onClose={() => undefined} />);const radio = () => screen.getByRole("radio", { name: "Use Minimax H3 Original as the default generator" });expect(within(screen.getByRole("list", { name: "Generators" })).getByText("Default")).toBeInTheDocument();- expect(within(screen.getByRole("list", { name: "Downloadable generators" })).getByText("Minimax H3 Original")).toBeInTheDocument();+ expect(within(screen.getByRole("list", { name: "Download" })).getByText("Minimax H3 Original")).toBeInTheDocument();expect(radio()).toBeDisabled();expect(screen.queryByRole("button", { name: "Remove generator Minimax H3 Original" })).toBeNull();fireEvent.click(screen.getByRole("button", { name: "Download generator Minimax H3 Original" }));const remove = await screen.findByRole("button", { name: "Remove downloaded weights for Minimax H3 Original" });expect(within(screen.getByRole("list", { name: "Generators" })).getByText("Minimax H3 Original")).toBeInTheDocument();- expect(screen.queryByRole("list", { name: "Downloadable generators" })).toBeNull();+ expect(screen.queryByRole("list", { name: "Download" })).toBeNull();expect(radio()).toBeEnabled();fireEvent.click(radio());await waitFor(() => expect(loadGeneratorTemplateSettings().defaultTemplateId).toBe("minimax-h3-original"));fireEvent.click(remove);expect(await screen.findByRole("button", { name: "Download generator Minimax H3 Original" })).toBeEnabled();- expect(within(screen.getByRole("list", { name: "Downloadable generators" })).getByText("Minimax H3 Original")).toBeInTheDocument();+ expect(within(screen.getByRole("list", { name: "Download" })).getByText("Minimax H3 Original")).toBeInTheDocument();expect(within(screen.getByRole("list", { name: "Generators" })).queryByText("Minimax H3 Original")).toBeNull();expect(radio()).toBeDisabled();expect(files.size).toBe(0);diff --git a/src/components/SettingsView.tsx b/src/components/SettingsView.tsxindex 1af0472..27c111a 100644--- a/src/components/SettingsView.tsx+++ b/src/components/SettingsView.tsx@@ -274,7 +274,7 @@ export function SettingsView({ onClose, updates, initialTab = "engine" }: { onClconst downloading = downloadState?.active && downloadState.templateId === selectedTemplate.id;const generatorSections = [{ id: "generators", title: "Generators", templates: templateSettings.templates.filter((template) => !templateNeedsDownload(template)) },- { id: "downloadable-generators", title: "Downloadable generators", templates: templateSettings.templates.filter(templateNeedsDownload) },+ { id: "downloadable-generators", title: "Download", templates: templateSettings.templates.filter(templateNeedsDownload) },];useEffect(() => setShowAdvancedOptions(false), [editingTemplateId]);