InvokeAI/invokeai/frontend/web
psychedelicious 909b78a1cb fix(ui): fix missing images not handled
- Reset init image, control adapter images, and node image fields when their selected image fails to load
- Only do this if the app is connected via socket (this indicates that the image is "really" gone, and there isn't just a transient network issue)

It's possible for image parameters/nodes/states to have reference a deleted image. For example, a resize image node might have an image set on it, and the workflow saved. The workflow contains a hard reference to that image.

The image is deleted and the workflow loaded again later. The deleted image is still in that workflow, but the app doesn't detect that. The result is that the workflow/graph appears to be valid, but will fail on invoke.

This creates a really confusing user experience, where when somebody shares a workflow with an image baked into it, and another person opens it, everything *looks* ok, but the workflow fails with a mysterious error about a missing image.

The problem affects node images, control adapter images and the img2img init image. Resetting the image when it fails to load *and* socket is connected resolves this in a simple way.

The problem also affects canvas images, but we have handle that by displaying an error fallback image, so no change is made there.
2023-12-01 00:35:06 +11:00
..
.husky fix(ui): post-onnx fixes 2023-08-01 07:59:01 -04:00
.yarn/releases
config export theme nad move chakra to peer dep 2023-08-01 08:54:03 +10:00
dist Updated JS files 2023-11-20 18:48:17 +11:00
docs feat(ui): "Polymorphic" -> "CollectionOrScalar" 2023-11-29 10:49:31 +11:00
public/locales fix(ui): add missing star image translation key 2023-12-01 00:33:04 +11:00
scripts feat(ui): remove superseded logic in typegen.js 2023-11-24 19:30:37 -08:00
src fix(ui): fix missing images not handled 2023-12-01 00:35:06 +11:00
static/docs feat(api): serve app via route & add cache-control: no-store 2023-10-19 08:52:02 +11:00
tests
__init__.py Run python black 2023-07-28 09:46:44 -04:00
.eslintignore feat: workflow saving and loading 2023-08-24 21:42:32 +10:00
.eslintrc.js feat(ui): enforce absolute import paths 2023-11-29 11:06:07 +11:00
.gitignore build(ui): add yalc to gitignore 2023-05-11 11:55:51 +10:00
.prettierignore feat(ui): remove docs/ from prettierignore 2023-11-29 10:49:31 +11:00
.prettierrc.js
.yarnrc
.yarnrc.yml
favicon.ico
index.html Prevent caching to ensure updated UI is shown 2023-10-04 22:32:00 +11:00
package.json feat(ui): enforce absolute import paths 2023-11-29 11:06:07 +11:00
tsconfig.json feat: add multi-select to gallery 2023-08-03 11:46:59 +10:00
tsconfig.node.json feat(ui): improved node parsing 2023-06-26 11:53:54 +10:00
vite.config.ts
yarn.lock feat(ui): enforce absolute import paths 2023-11-29 11:06:07 +11:00