InvokeAI/invokeai/frontend/web/src/features
psychedelicious a071873327 feat(ui): fix a lot of model-related crashes/bugs
We were storing all types of models by their model ID, which is a format like `sd-1/main/deliberate`.

This meant we had to do a lot of extra parsing, because nodes actually wants something like `{base_model: 'sd-1', model_name: 'deliberate'}`.

Some of this parsing was done with zod's error-throwing `parse()` method, and in other places it was done with brittle string parsing.

This commit refactors the state to use the object form of models.

There is still a bit of string parsing done in the to construct the ID from the object form, but it's far less complicated.

Also, the zod parsing is now done using `safeParse()`, which does not throw. This requires a few more conditional checks, but should prevent further crashes.
2023-07-14 16:07:22 +10:00
..
canvas fix: Rename toggleBoundingBoxDimension to flipBoundingBoxAxes 2023-07-13 13:53:15 +12:00
controlNet fix(ui): fix controlnet processing fallback dimensions 2023-07-08 19:57:36 +10:00
dynamicPrompts fix(ui): fix readonly inputs 2023-07-08 17:16:34 +10:00
embedding feat(ui): fix a lot of model-related crashes/bugs 2023-07-14 16:07:22 +10:00
gallery ui: gallery enhancements (#3752) 2023-07-13 20:31:10 +00:00
imageDeletion close modal when user clicks cancel (#3656) 2023-07-05 17:12:27 +00:00
lora feat(ui): fix a lot of model-related crashes/bugs 2023-07-14 16:07:22 +10:00
nodes feat(ui): fix a lot of model-related crashes/bugs 2023-07-14 16:07:22 +10:00
parameters feat(ui): fix a lot of model-related crashes/bugs 2023-07-14 16:07:22 +10:00
system feat(ui): fix a lot of model-related crashes/bugs 2023-07-14 16:07:22 +10:00
ui feat(ui): fix a lot of model-related crashes/bugs 2023-07-14 16:07:22 +10:00