InvokeAI/invokeai/frontend/web/src/features/canvas
psychedelicious 7e2ade50e1 fix(ui): canvas staging area & batch handling fixes
Handful of intertwined fixes.

- Create and use helper function to reset staging area.
- Clear staging area when queue items are canceled, failed, cleared, etc. Fixes a bug where the bbox ends up offset and images are put into the wrong spot.
- Fix a number of similar bugs where canvas would "forget" it had pending generations, but they continued to generate. Canvas needs to track batches that should be displayed in it using `state.canvas.batchIds`, and this was getting cleared without actually canceling those batches.
- Disable the `discard current image` button on canvas if there is only one image. Prevents accidentally canceling all canvas batches if you spam the button.
2024-04-10 21:48:34 +10:00
..
components fix(ui): canvas staging area & batch handling fixes 2024-04-10 21:48:34 +10:00
hooks refactor: 🚨 please the almighty linter 2024-03-07 10:44:40 +11:00
store fix(ui): canvas staging area & batch handling fixes 2024-04-10 21:48:34 +10:00
util tidy(ui): clean up unused code 1 2024-03-01 10:42:33 +11:00