32f4c1f966
fix(ui): memoize mouse event handlers
...
This prevents resetting the stage event handlers on every frame. Whoops!
2024-05-09 07:52:52 -04:00
adebe639e3
tidy(ui): remove errant console.logs
2024-05-09 07:52:52 -04:00
44280ed472
fix(ui): layer recall uses fresh ids
...
When layer metadata is stored, the layer IDs are included. When recalling the metadata, we need to assign fresh IDs, else we can end up with multiple layers with the same ID, which of course causes all sorts of issues.
2024-05-09 07:52:52 -04:00
cec8840038
fix(ui): handle disabled RG layers
...
Was missing a check for `layer.isEnabled`.
2024-05-09 07:52:52 -04:00
b48d4a049d
bad implementation of diffusers folder download
2024-05-08 21:21:01 -07:00
fc7f484935
feat(ui): add data-testid
s to control layers components:
...
- Add Layer Menu Button: `control-layers-add-layer-menu-button`
- Delete All Layers Button: `control-layers-delete-all-layers-button`
- CL Layer List: `control-layers-layer-list`
- CL Canvas: `control-layers-canvas`
- Toggle Metadata Button: `toggle-show-metadata-button`
- Toggle Progress Button: `toggle-show-progress-button`
- Toggle Viewer Menu Button: `toggle-viewer-menu-button`
- Settings Tab Button: `generation-tab-settings-tab-button`
- Control Layers Tab Button: `generation-tab-control-layers-tab-button`
2024-05-09 07:03:13 +10:00
1aa7cd57c2
feat(ui): add invert brush scroll checkbox to control layers settings
2024-05-09 07:03:13 +10:00
722a91aedb
fix(ui): canvas toolbar centering
2024-05-09 07:03:13 +10:00
03c24ca9cb
lint fix
2024-05-08 15:49:37 -04:00
5820579237
switch to generation tab when someone sends to img2img
2024-05-08 15:49:37 -04:00
6c768bfe7e
fix(ui): viewer toggle prevents progress toggle interaction
2024-05-08 08:39:18 -04:00
5ca794b94f
feat(ui): show progress toggle on control layers toolbar
2024-05-08 08:39:18 -04:00
d20695260d
feat(ui): open viewer on enqueue from generation tab
2024-05-08 08:39:18 -04:00
d8557d573b
Revert "feat(ui): extend zod with a is
typeguard` method"
...
This reverts commit 0f45933791
.
2024-05-08 08:39:18 -04:00
6c1fd584d2
feat(ui): pre-CL control adapter metadata recall
2024-05-08 08:39:18 -04:00
e8e764be20
feat(ui): revise image viewer
...
- Viewer only exists on Generation tab
- Viewer defaults to open
- When clicking the Control Layers tab on the left panel, close the viewer (i.e. open the CL editor)
- Do not switch to editor when adding layers (this is handled by clicking the Control Layers tab)
- Do not open viewer when single-clicking images in gallery
- _Do_ open viewer when _double_-clicking images in gallery
- Do not change viewer state when switching between app tabs (this no longer makes sense; the viewer only exists on generation tab)
- Change the button to a drop down menu that states what you are currently doing, e.g. Viewing vs Editing
2024-05-08 08:39:18 -04:00
e8023c44b0
chore(ui): lint
2024-05-08 08:39:18 -04:00
a3a6449786
feat(ui): versioned control layers metadata
2024-05-08 08:39:18 -04:00
e9d2ffe3d7
fix(ui): process control image on recall if no processed image
2024-05-08 08:39:18 -04:00
23ad6fb730
feat(ui): handle missing images/models when recalling control layers
2024-05-08 08:39:18 -04:00
00f36cb491
tidy(ui): clean up control layers graph builder
2024-05-08 08:39:18 -04:00
3f489c92c8
feat(ui): handle initial image layers in control layers helper
2024-05-08 08:39:18 -04:00
f147f99bef
feat(ui): better metadata labels for layers
2024-05-08 08:39:18 -04:00
6107e3d281
fix(ui): fix zControlAdapterBase schema weight
2024-05-08 08:39:18 -04:00
de33d6e647
fix(ui): metadata "Layers" -> "Layer"
2024-05-08 08:39:18 -04:00
e36e5871a1
chore(ui): lint
2024-05-08 08:39:18 -04:00
8b25c1a62e
tidy(ui): remove extraneous metadata handlers
2024-05-08 08:39:18 -04:00
dfbd7eb1cf
feat(ui): individual layer recall
2024-05-08 08:39:18 -04:00
b43b2714cc
feat(ui): add fracturedjsonjs
to pretty-serialize objects
...
In use on the metadata viewer - makes it sooo much easier on the eyes.
2024-05-08 08:39:18 -04:00
e537de2f6d
feat(ui): layers recall
...
This still needs some finessing - needs logic depending on the tab...
2024-05-08 08:39:18 -04:00
ccd399e277
feat(ui): add getIsVisible
to metadata handlers
2024-05-08 08:39:18 -04:00
bfad814862
fix(ui): fix IPAdapterConfigV2 schema weight
2024-05-08 08:39:18 -04:00
6e8b7f9421
feat(ui): write layers to metadata
2024-05-08 08:39:18 -04:00
e47629cbe7
feat(ui): add zod schema for layers array
2024-05-08 08:39:18 -04:00
e840de27ed
feat(ui): extend zod with a is
typeguard` method
...
Feels dangerous, but it's very handy.
2024-05-08 08:39:18 -04:00
8342f32f2e
refactor(ui): rewrite all types as zod schemas
...
This change prepares for safe metadata recall.
2024-05-08 08:39:18 -04:00
a7aa529b99
tidy(ui): "imageName" -> "name"
2024-05-08 08:39:18 -04:00
4adc592657
feat(ui): move strength to init image layer
...
This further splits the control layers state into its own thing.
2024-05-07 11:02:16 +10:00
e8d60e8d83
fix(ui): image metadata viewer stuck when spamming hotkey
2024-05-07 11:02:16 +10:00
886f5c90a3
feat(ui): move img2img strength out of advanced on canvas
2024-05-07 11:02:16 +10:00
5e684c11f1
Update invokeai_version.py
v4.2.0b2
2024-05-07 09:09:10 +10:00
72ce239592
revert(ui): remove floating viewer
...
There are unresolved platform-specific issues with this component, and its utility is debatable.
Should be easy to just revert this commit to add it back in the future if desired.
2024-05-06 19:00:07 -04:00
a826f8f8c5
fix(ui): show total layer count in control layers tab
2024-05-06 19:00:07 -04:00
b6c19a8e47
feat(ui): close viewer when adding a RG layer
2024-05-06 19:00:07 -04:00
67d6cf19c6
fix(ui): switch to viewer if auto-switch is enabled
2024-05-06 19:00:07 -04:00
a9bf651c69
chore(ui): bump all deps
2024-05-06 19:00:07 -04:00
3bd5d9a8e4
fix(ui): memoize FloatingImageViewer
...
Maybe this will fix @JPPhoto's issue?
2024-05-06 19:00:07 -04:00
6249982d82
fix(ui): stuck viewer when spamming toggle
...
There are a number of bugs with `framer-motion` that can result in sync issues with AnimatePresence and the conditionally rendered component.
You can see this if you rapidly click an accordion, occasionally it gets out of sync and is closed when it should be open.
This is a bigger problem with the viewer where the user may hold down the `z` key. It's trivial to get it to lock up.
For now, just remove the animation entirely.
Upstream issues for reference:
https://github.com/framer/motion/issues/2023
https://github.com/framer/motion/issues/2618
https://github.com/framer/motion/issues/2554
2024-05-06 19:00:07 -04:00
6b98dba71d
chore(ui): lint
2024-05-06 08:55:32 -04:00
c0065a65a0
feat(ui): floating viewer always shows progress, never shows metadata
2024-05-06 08:55:32 -04:00