InvokeAI/invokeai/frontend/web/src/features/system/components
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
..
HotkeysModal fix(ui): hotkey accordion spacing 2023-03-12 20:13:38 +11:00
SettingsModal feat(ui): fix a lot of model-related crashes/bugs 2023-07-14 16:07:22 +10:00
ColorModeButton.tsx feat: Add tooltips to color mode switcher 2023-06-30 06:05:08 +12:00
InvokeAILogoComponent.tsx feat(ui): add hover show/hide to appVersion 2023-07-08 19:55:19 +10:00
LanguagePicker.tsx fix(ui): tweak lang picker style 2023-05-12 20:04:10 +10:00
ProgressBar.tsx fix: Progress Bar being broken 2023-07-02 18:49:24 +12:00
SiteHeader.tsx feat: Initial port of Model Manager to new tab 2023-07-04 14:31:48 +10:00
SiteHeaderMenu.tsx cleanup: merge conflicts 2023-07-04 14:34:22 +10:00
StatusIndicator.tsx feat(ui): remove themes, add hand-crafted dark and light modes 2023-06-30 03:24:36 +10:00