InvokeAI/invokeai/frontend/web
psychedelicious 4082f25062 feat(ui): do not optimize size when changing between models with same base model
There's a challenge to accomplish this due to our slice structure - the model is stored in `generationSlice`, but `canvasSlice` also needs to have awareness of it. For example, when the model changes, the canvas slice doesn't know what the previous model was, so it doesn't know whether or not to optimize the size.

This means we need to lift the "should we optimize size" information up. To do this, the `modelChanged` action creator accepts the previous model as an optional second arg.

Now the canvas has access to both the previous model and new model selection, and can decide whether or not it should optimize its size setting in the same way that the generation slice does.

Closes  #5452
2024-01-10 00:11:05 -05:00
..
.storybook feat(ui): memoize all components 2023-12-29 08:26:14 -05:00
config chore(ui): bump deps 2024-01-01 08:13:23 -05:00
docs feat(ui): migrate to pnpm 2023-12-09 16:00:37 +11:00
patches feat(ui): patch reselect to use lruMemoize only 2024-01-06 00:03:07 +11:00
public/locales translationBot(ui): update translation (Chinese (Simplified)) 2024-01-07 01:21:04 +11:00
scripts feat(ui): ux improvements & redesign 2023-12-29 08:26:14 -05:00
src feat(ui): do not optimize size when changing between models with same base model 2024-01-10 00:11:05 -05:00
static/docs feat(api): serve app via route & add cache-control: no-store 2023-10-19 08:52:02 +11:00
tests Partial migration of UI to nodes API (#3195) 2023-04-22 13:10:20 +10:00
__init__.py Run python black 2023-07-28 09:46:44 -04:00
.eslintignore fix(ui): fix workflow editor model selector, excise ONNX 2024-01-03 13:18:50 +11:00
.eslintrc.js feat(ui): more memoization 2023-12-29 08:26:14 -05:00
.gitignore Remove frontend build from repo permanantly 2024-01-02 10:18:11 +11:00
.prettierignore fix(ui): fix workflow editor model selector, excise ONNX 2024-01-03 13:18:50 +11:00
.prettierrc.js feat(ui): migrate theming to chakra ui 2023-03-06 20:03:39 +11:00
.unimportedrc.json feat(ui): ux improvements & redesign 2023-12-29 08:26:14 -05:00
favicon-key.svg fix(ui): fix favicon 2024-01-06 09:09:38 +11:00
favicon-outline.svg fix(ui): fix favicon 2024-01-06 09:09:38 +11:00
index.html fix(ui): fix favicon 2024-01-06 09:09:38 +11:00
package.json ui: redesign followups 8 (#5445) 2024-01-08 09:11:45 -05:00
pnpm-lock.yaml ui: redesign followups 8 (#5445) 2024-01-08 09:11:45 -05:00
tsconfig.json feat(ui): ux improvements & redesign 2023-12-29 08:26:14 -05:00
tsconfig.node.json chore(ui): bump deps 2024-01-01 08:13:23 -05:00
vite.config.mts chore(ui): bump deps 2024-01-01 08:13:23 -05:00