InvokeAI/invokeai/frontend/web
Alexander Eichhorn 6b57b004a4
feat(MM):model settings export import (#8872)
* feat(model_manager): add export/import for model settings

Add the ability to export model settings (default_settings, trigger_phrases,
cpu_only) as JSON and import them back. The model name is used as the
filename for exports.

https://claude.ai/code/session_01LXKjbRjfzcG3d3vzk3xRCh

* fix(ui): reset settings forms after import so updated values display immediately

The useForm defaultValues only apply on mount, so importing model settings
updated the backend but the forms kept showing stale values. Added useEffect
to reset forms when the underlying model config changes. Also fixed lint
errors (strict equality, missing React import).

* fix(ui): harden model settings export/import

Prevent cross-model-type import errors by filtering imported fields
against the target model's supported fields, showing clear warnings
for incompatible or partially compatible settings instead of raw
pydantic validation errors. Also fix falsy checks for empty arrays
and objects in export, disable export button when nothing to export,
add client-side validation and FileReader error handling on import.

* Chore pnpm fix

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Lincoln Stein <lincoln.stein@gmail.com>
2026-03-02 03:03:10 +00:00
..
.storybook
patches
public feat(MM):model settings export import (#8872) 2026-03-02 03:03:10 +00:00
scripts
src feat(MM):model settings export import (#8872) 2026-03-02 03:03:10 +00:00
static/docs
__init__.py
.gitignore
.prettierignore
.prettierrc.json
CLAUDE.md
eslint.config.mjs
index.html
knip.ts feat(multiuser mode): Support multiple isolated users on same backend (#8822) 2026-02-26 23:47:25 -05:00
openapi.json feat(multiuser mode): Support multiple isolated users on same backend (#8822) 2026-02-26 23:47:25 -05:00
package.json feat(multiuser mode): Support multiple isolated users on same backend (#8822) 2026-02-26 23:47:25 -05:00
pnpm-lock.yaml feat(multiuser mode): Support multiple isolated users on same backend (#8822) 2026-02-26 23:47:25 -05:00
pnpm-workspace.yaml
README.md
tsconfig.json
tsconfig.node.json
vite-plugin-logger-context.ts
vite.config.mts