psychedelicious
6c2b39d1df
feat(ui): improve controlnet image style
...
css is terrible
2023-06-07 18:25:30 +10:00
psychedelicious
0843028e6e
fix(ui): improve dragging activation
...
- delay of 250ms
- prevent gallery images from accidentally activating native drag and drop
2023-06-07 18:25:30 +10:00
psychedelicious
58fec84858
feat(ui): add upload to IAIDndImage
...
Add uploading to IAIDndImage
- add `postUploadAction` arg to `imageUploaded` thunk, with several current valid options (set control image, set init, set nodes image, set canvas, or toast)
- updated IAIDndImage to optionally allow click to upload
2023-06-07 18:25:30 +10:00
blessedcoolant
1a2f0984db
Merge branch 'main' into feat/ui/fix-stale-imageUsage
2023-06-07 04:35:16 +12:00
psychedelicious
454683e6eb
feat(ui): update image urls on connect ( #3507 )
...
* feat(ui): update image urls on connect
Add `updateImageUrlsOnConnect` RTK listener:
- requests URLs for *every* image the app knows about, on connect: gallery, selectedImage, initialImage, canvas images, nodes images, controlnet images
- only fires when `shouldUpdateImagesOnConnect` config is enabled
* remove prop
---------
Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local>
2023-06-06 10:23:51 -04:00
psychedelicious
bbb2a08e8f
feat(ui): fix bugs with image deletion
...
- `imageUsage` object was always stale due to react component lifecycle, fixed this
- cleaned up the deletion listener and context
2023-06-06 20:01:27 +10:00
psychedelicious
bf116927e1
feat(ui): clear features if image used by them is deleted
...
This handles the case when an image is deleted but is still in use in as eg an init image on canvas, or a control image. If we just delete the image, canvas/controlnet/etc may break (the image would just fail to load).
When an image is deleted, the app checks to see if it is in use in:
- Image to Image
- ControlNet
- Unified Canvas
- Node Editor
The delete dialog will always open if the image is in use anywhere, and the user is advised that deleting the image will reset the feature(s).
Even if the user has ticked the box to not confirm on delete, the dialog will still show if the image is in use somewhere.
2023-06-06 14:35:07 +10:00
psychedelicious
3d249c4fa3
feat(ui): refactor image deletion
...
Add `DeleteImageContext`:
- provide a single function to delete an image
- opens the modal or immediately deletes, if confirm is off
2023-06-06 14:35:07 +10:00
psychedelicious
8283d23b74
feat(ui): remove shouldTransformUrls
...
This is no longer used.
2023-06-06 14:35:07 +10:00
psychedelicious
2fc0a4d53b
feat(ui): improve handling for urls/metadata received
...
Update images everywhere when urls or metadata is received:
- control images
- init images
- canvas
- nodes
- init image
Also renamed the variable.
2023-06-06 14:35:07 +10:00
psychedelicious
3ff732d583
feat(ui): clear controlnet image when image deleted
2023-06-06 14:35:07 +10:00
psychedelicious
40d6e4f287
fix(ui): fix canvas auto-save not working
2023-06-06 14:30:53 +10:00
psychedelicious
229de2dbb8
feat(ui): fix canvas saving
...
- fix "bounding box region only" not being respected when saving
- add toasts for each action
- improve workflow `take()` predicates to use the requestId
2023-06-06 14:30:53 +10:00
psychedelicious
cc22427f25
feat(ui): improve UI on smaller screens
...
- responsive changes were causing a lot of weird layout issues, had to remove the rest of them
- canvas (non-beta) toolbar now wraps
- reduces minH for prompt boxes a bit
2023-06-06 14:29:57 +10:00
psychedelicious
b1000e30c1
feat(ui): disable keyboard dnd
...
Need to fix a bug w/ collision detection before enabling it. Will pursue later.
2023-06-05 15:24:24 +10:00
psychedelicious
03f3ad435a
feat(ui): updated controlnet logic/ui
2023-06-04 22:34:58 +10:00
psychedelicious
fa285883ad
feat(ui): make OverlayDragImage translucent
2023-06-04 22:34:58 +10:00
psychedelicious
474fca8e6a
feat(ui): add controlNetDenylist
2023-06-04 22:34:58 +10:00
psychedelicious
d6c08ba469
feat(ui): add mini/advanced controlnet ui
2023-06-04 22:34:58 +10:00
psychedelicious
6b824eb112
feat(ui): initial mini controlnet UI, dnd improvements
2023-06-04 22:34:58 +10:00
psychedelicious
72b4371804
feat(ui): control image auto-process
2023-06-04 22:34:58 +10:00
psychedelicious
3d99d7ae8b
feat(ui): update handling of inProgess, do not allow cnet process when processing
2023-06-04 22:34:58 +10:00
psychedelicious
2eb367969c
feat(ui): do not autoprocess control if invocation in progress
2023-06-04 22:34:58 +10:00
psychedelicious
9cdad95f48
feat(ui): add rest of controlnet processors
2023-06-04 22:34:58 +10:00
psychedelicious
94c953deab
feat(ui): get processed images back into controlnet ui
2023-06-04 22:34:58 +10:00
psychedelicious
fa4d88e163
feat(ui): improve drag and drop ux
2023-06-04 22:34:58 +10:00
psychedelicious
3b9426eb72
feat(ui): controlnet/image dnd wip
...
Implement `dnd-kit` for image drag and drop
- vastly simplifies logic bc we can drag and drop non-serializable data (like an `ImageDTO`)
- also much prettier
- also will fix conflicts with file upload via OS drag and drop, bc `dnd-kit` does not use native HTML drag and drop API
- Implemented for Init image, controlnet, and node editor so far
More progress on the ControlNet UI
2023-06-04 22:34:58 +10:00
psychedelicious
e2e07696fc
feat(ui): wip controlnet ui
2023-06-04 22:34:58 +10:00
blessedcoolant
f143fb7254
feat: Make Invoke Button also the progress bar
2023-06-02 17:24:40 +12:00
psychedelicious
6571e4c2fd
feat(ui): refactor parameter recall
...
- use zod to validate parameters before recalling
- update recall params hook to handle all validation and UI feedback
2023-06-02 00:30:01 +10:00
psychedelicious
e1ae7842ff
feat(ui): add defaultModel
to config
2023-05-30 09:06:13 -04:00
psychedelicious
7004430380
feat(ui): gallery filter dropdown -> Images/Assets toggle
2023-05-29 09:07:46 -04:00
psychedelicious
1ddc620192
feat(ui): only cancel on staging commit if processing
2023-05-29 09:07:46 -04:00
psychedelicious
a7cebbd970
feat(ui): cancel session when staging image accepted
2023-05-29 09:07:46 -04:00
psychedelicious
d97438b0b3
fix(ui): fix typo in actionsDenylist
2023-05-29 09:07:46 -04:00
psychedelicious
e4705d5ce7
fix(ui): add additional socket event layer to gate handling socket events
...
Some socket events should not be handled by the slice reducers. For example generation progress should not be handled for a canceled session.
Added another layer of socket actions.
Example:
- `socketGeneratorProgress` is dispatched when the actual socket event is received
- Listener middleware exclusively handles this event and determines if the application should also handle it
- If so, it dispatches `appSocketGeneratorProgress`, which the slices can handle
Needed to fix issues related to canceling invocations.
2023-05-29 09:07:46 -04:00
psychedelicious
6764b2a854
fix(ui): fix save to gallery without bounding box
2023-05-29 09:07:46 -04:00
psychedelicious
6f82801d07
fix(ui): fix canvas save to gallery incorrect is_intermediate
flag
2023-05-28 20:19:56 -04:00
psychedelicious
89aa06e014
feat(ui): consolidate images slice
...
Now that images are in a database and we can make filtered queries, we can do away with the cumbersome `resultsSlice` and `uploadsSlice`.
- Remove `resultsSlice` and `uploadsSlice` entirely
- Add `imagesSlice` fills the same role
- Convert the application to use `imagesSlice`, reducing a lot of messy logic where we had to check which category was selected
- Add a simple filter popover to the gallery, which lets you select any number of image categories
2023-05-28 20:19:56 -04:00
psychedelicious
29fcc92da9
feat(ui): handle new image origin/category setup
...
- Update all thunks & network related things
- Update gallery
What I have not done yet is rename the gallery tabs and the relevant slices, but I believe the functionality is all there.
Also I fixed several bugs along the way but couldn't really commit them separately bc I was refactoring. Can't remember what they were, but related to the gallery image switching.
2023-05-28 20:19:56 -04:00
psychedelicious
9317b42e5f
feat(nodes, ui): wip image types
2023-05-28 20:19:56 -04:00
psychedelicious
bdab73701f
fix(ui): canvas images not added to staging
2023-05-28 20:19:56 -04:00
psychedelicious
a25bae2545
fix(ui): tweak log levels
2023-05-26 18:06:08 +10:00
psychedelicious
0ea35b1e3d
feat(ui): improve session canceled handling
2023-05-26 18:06:08 +10:00
psychedelicious
c6f935bf1a
feat(ui): improve gallery page handling
2023-05-26 18:06:08 +10:00
psychedelicious
39088e42cc
fix(ui): remove console logs
2023-05-26 18:06:08 +10:00
psychedelicious
30e0033ebe
fix(ui): fix results not added to gallery
2023-05-26 18:06:08 +10:00
psychedelicious
b599c40099
feat(ui): improve session invoked handling
2023-05-26 18:06:08 +10:00
psychedelicious
8f190169db
feat(ui): improve session creation handling
2023-05-26 18:06:08 +10:00
psychedelicious
1d4d705795
feat(ui): improve image urls handling
2023-05-26 18:06:08 +10:00
psychedelicious
b3f71b3078
feat(ui): improve image metadata handling
2023-05-26 18:06:08 +10:00
psychedelicious
6059db4f15
feat(ui): improve image delete handling
2023-05-26 18:06:08 +10:00
psychedelicious
0d5f44b153
feat(ui): improve image upload handling
2023-05-26 18:06:08 +10:00
psychedelicious
17164a37a8
fix(ui): fix gallery auto switch
2023-05-26 18:06:08 +10:00
psychedelicious
57a3eb3652
feat(ui): unset progress image inside invocationComplete listener
2023-05-26 13:25:50 +10:00
Mary Hipp
82a8972bde
create listener for imageMetdataReceived to swap our progressImage
2023-05-26 13:25:50 +10:00
psychedelicious
43d991cfdb
fix(ui): fix incorrect comment
2023-05-25 22:17:14 -04:00
psychedelicious
a2de5c9963
feat(ui): change intermediates handling
...
- Update the canvas graph generation to flag its uploaded init and mask images as `intermediate`.
- During canvas setup, hit the update route to associate the uploaded images with the session id.
- Organize the socketio and RTK listener middlware better. Needed to facilitate the updated canvas logic.
- Add a new action `sessionReadyToInvoke`. The `sessionInvoked` action is *only* ever run in response to this event. This lets us do whatever complicated setup (eg canvas) and explicitly invoking. Previously, invoking was tied to the socket subscribe events.
- Some minor tidying.
2023-05-25 22:17:14 -04:00
psychedelicious
29c952dcf6
feat(ui): restore canvas functionality
2023-05-24 11:30:47 -04:00
psychedelicious
c7c0836721
feat(ui): migrate linear workflows to latents
2023-05-24 11:30:47 -04:00
psychedelicious
6f78c073ed
fix(ui): fix uploads & other bugs
2023-05-24 11:30:47 -04:00
psychedelicious
c406be6f4f
fix(ui): fix image deletion
2023-05-24 11:30:47 -04:00
psychedelicious
7a1de3887e
feat(ui): wip update UI for migration
2023-05-24 11:30:47 -04:00
psychedelicious
6aebe1614d
feat(ui): wip use new images service
2023-05-24 11:30:47 -04:00
psychedelicious
4e29a751d8
feat(ui): add POC image record fetching
2023-05-24 11:30:47 -04:00
Mary Hipp Rogers
650d69ef5b
added optional middleware prop and new actions needed ( #3437 )
...
* added optional middleware prop and new actions needed
* accidental import
* make middleware an array
---------
Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local>
2023-05-22 08:16:11 -04:00
psychedelicious
cc21fb216c
chore(ui): clean up GalleryPanel
2023-05-16 10:43:26 +10:00
psychedelicious
6fe62a2705
feat(ui): sampler
--> scheduler
2023-05-16 10:40:26 +10:00
psychedelicious
2359b92b46
chore(ui): tidy unused component ref
2023-05-15 22:58:15 +10:00
psychedelicious
513eb11616
chore(ui): clean up unused files/packages
2023-05-15 22:48:06 +10:00
psychedelicious
d2c9140e69
feat(ui): restore save/copy/download/merge functionality
2023-05-15 22:21:03 +10:00
psychedelicious
d95fe5925a
feat(ui): restore image post-upload actions
...
eg set init image if on img2img when uploading
2023-05-15 18:52:48 +10:00
psychedelicious
e1e5266fc3
feat(ui): refactor base image uploading logic
2023-05-15 17:45:05 +10:00
psychedelicious
5e4457445f
feat(ui): make toast/hotkey into logical components
2023-05-15 15:25:27 +10:00
psychedelicious
f5df150097
feat(ui): add callback to signal app is ready
...
needed for commercial
2023-05-14 18:42:15 +10:00
blessedcoolant
d2ebc6741b
feat: Add setting to hide / display schedulers
2023-05-14 11:45:08 +10:00
blessedcoolant
026d3260b4
Add Heun Karras Scheduler
2023-05-14 11:45:08 +10:00
psychedelicious
4d6eea7e81
feat(ui): store language in redux
2023-05-12 19:35:03 +10:00
psychedelicious
108ce06c62
feat(ui): change custom header to be a prop instead of children
2023-05-12 17:56:18 +10:00
psychedelicious
da364f3444
feat(ui): use variable font
...
reduces package build's CSS by an order of magnitude
2023-05-12 17:56:18 +10:00
psychedelicious
df5ba75c14
feat(ui): use custom dark mode localStorage key
2023-05-12 17:56:18 +10:00
psychedelicious
7dc9d18052
fix(ui): do not show intermediates uploads in gallery
2023-05-12 17:56:18 +10:00
blessedcoolant
f929359322
Merge branch 'main' into feat/ui/expand-config
2023-05-12 16:06:31 +12:00
blessedcoolant
97127e560e
Disable dpmpp_2s in img2img & unifiedCanvas
...
... until upstream bug is fixed.
2023-05-12 04:51:58 +12:00
blessedcoolant
4b957edfec
Add DDPM Scheduler
2023-05-12 03:18:34 +12:00
blessedcoolant
46ca7718d9
Add DEIS Scheduler
2023-05-12 03:10:30 +12:00
blessedcoolant
b928d7a6e6
Change scheduler names to be accurate
...
_a = Ancestral
_k = Karras
2023-05-12 02:59:43 +12:00
blessedcoolant
8a836247c8
Add DPMPP Single, Euler Karras and DPMPP2 Multi Karras Schedulers
2023-05-12 02:23:33 +12:00
psychedelicious
9af385468d
feat(ui): expand config options
...
now may disable individual SD features eg Noise, Variation, etc - stuff which is not ready for consumption in commercial.
2023-05-11 22:42:13 +10:00
blessedcoolant
06b5800d28
Add UniPC Scheduler
2023-05-11 22:43:18 +12:00
psychedelicious
8ef49c2640
fix(ui): fix canvas img2img if no init image selected
2023-05-11 11:55:51 +10:00
psychedelicious
fdc2232ea0
feat(ui): progress images in gallery and viewer
2023-05-11 11:55:51 +10:00
blessedcoolant
7bfb5640ad
cleanup(ui): Remove unused vars + minor bug fixes
2023-05-11 11:55:51 +10:00
psychedelicious
279468c0e8
feat(ui): restore tab names
2023-05-11 11:55:51 +10:00
psychedelicious
c4b3a24ed7
feat(ui): revert tabs to txt2img/img2img
2023-05-11 11:55:51 +10:00
psychedelicious
33c69359c2
feat(ui): add IAICollapse for parameters
2023-05-11 11:55:51 +10:00
psychedelicious
864f4bb4af
feat(ui): wip img2img layouting
2023-05-11 11:55:51 +10:00
psychedelicious
5365f42a04
feat(ui): wip layouting
2023-05-11 11:55:51 +10:00
psychedelicious
4d6cef7ac8
fix(ui): fix types bug
2023-05-11 11:55:51 +10:00
psychedelicious
09f166577e
feat(ui): migrate to redux-remember
2023-05-11 11:55:51 +10:00