8380 Commits

Author SHA1 Message Date
psychedelicious
987dce801c tidy(ui): organise tool module 2024-08-29 21:46:00 +10:00
psychedelicious
f0f6813979 fix(ui): staging hotkeys enabled at wrong times 2024-08-29 21:37:38 +10:00
psychedelicious
28b86d3917 fix(ui): incorrect batch origin preventing progress/staging 2024-08-29 21:37:11 +10:00
psychedelicious
38e25c45bf feat(ui): restore minimal HUD 2024-08-29 21:30:52 +10:00
psychedelicious
978a869a70 feat(ui): remove unused asPreview for StageComponent 2024-08-29 21:27:14 +10:00
psychedelicious
2acc5c8317 chore(ui): lint 2024-08-29 19:01:42 +10:00
psychedelicious
3fe4b770b8 chore: release v4.2.9.dev8 2024-08-29 18:52:14 +10:00
psychedelicious
c800f84c50 feat(ui): revise generation mode logic
- Canvas generation mode is replace with a boolean `sendToCanvas` flag. When off, images generated on the canvas go to the gallery. When on, they get added to the staging area.
- When an image result is received, if its destination is the canvas, staging is automatically started.
- Updated queue list to show the destination column.
- Added `IconSwitch` component to represent binary choices, used for the new `sendToCanvas` flag and image viewer toggle.
- Remove the queue actions menu in `QueueControls`. Move the queue count badge to the cancel button.
- Redo layout of `QueueControls` to prevent duplicate queue count badges.
- Fix issue where gallery and options panels could show thru transparent regions of queue tab.
- Disable panel hotkeys when on mm/queue tabs.
2024-08-29 17:58:02 +10:00
psychedelicious
a64dd129f1 chore(ui): typegen 2024-08-29 17:49:15 +10:00
psychedelicious
cd4cc56add feat(app): add destination column to session_queue
The frontend needs to know where queue items came from (i.e. which tab), and where results are going to (i.e. send images to gallery or canvas). The `origin` column is not quite enough to represent this cleanly.

A `destination` column provides the frontend what it needs to handle incoming generations.
2024-08-29 17:49:06 +10:00
psychedelicious
c19aa0389a tidy(ui): ViewerToggleMenu -> ViewerToggle 2024-08-29 10:58:14 +10:00
psychedelicious
fdb125b294 feat(ui): alt quick switches to color picker 2024-08-29 10:52:17 +10:00
psychedelicious
686856d111 feat(ui): tweak add entity button layout 2024-08-29 10:43:55 +10:00
psychedelicious
fec61ce1ff feat(ui): restore context menu for entity list 2024-08-29 10:35:49 +10:00
psychedelicious
bd5780de4d feat(ui): add delete button to each layer 2024-08-29 10:27:55 +10:00
psychedelicious
db4782a632 feat(ui): add + buttons to entity categories 2024-08-29 10:15:35 +10:00
psychedelicious
c4b2099c4f feat(ui): tweak brush fill UI 2024-08-29 09:07:20 +10:00
psychedelicious
ec745f663d feat(ui): do not select layer on staging accept 2024-08-29 09:00:53 +10:00
psychedelicious
4f47577076 fix(ui): more fiddly queue count layout stuff 2024-08-29 08:54:07 +10:00
psychedelicious
6ee8e13632 fix(ui): floating params panel invoke button loading state 2024-08-29 08:42:22 +10:00
psychedelicious
d469b1771e feat(ui): move canvas undo/redo to hook 2024-08-29 08:33:03 +10:00
psychedelicious
e79f9782ab fix(ui): queue count badge positioning 2024-08-29 08:13:16 +10:00
psychedelicious
ded72e0362 fix(ui): add node cmdk only enabled on workflows tab 2024-08-29 07:47:30 +10:00
psychedelicious
37ed567aad chore: release v4.2.9.dev7 2024-08-28 22:05:15 +10:00
psychedelicious
9692a5f996 fix(ui): pending node connection stuck 2024-08-28 22:05:03 +10:00
psychedelicious
5db7b48cd8 chore(ui): lint 2024-08-28 21:38:57 +10:00
psychedelicious
ea014c66ac chore: release v4.2.9.dev6 2024-08-28 21:33:12 +10:00
psychedelicious
25918c28aa feat(ui): migrate add node popover to cmdk
Put this together as a way to figure out the library before moving on to the full app cmdk. Works great.
2024-08-28 21:32:10 +10:00
psychedelicious
0c60469401 fix(ui): schema parsing now that node_pack is guaranteed to be present 2024-08-28 21:31:15 +10:00
psychedelicious
f1aa50f447 chore(ui): typegen 2024-08-28 21:06:45 +10:00
psychedelicious
a413b261f0 fix(app): node_pack not added to openapi schema correctly 2024-08-28 21:06:33 +10:00
psychedelicious
4a1a6639f6 fix(ui): unnecessary z-index on invoke button 2024-08-28 16:51:44 +10:00
psychedelicious
201c370ca1 feat(ui): split settings modal 2024-08-28 16:51:38 +10:00
psychedelicious
d070c7c726 perf(ui): disable useInert on modals
This hook forcibly updates _all_ portals with `data-hidden=true` when the modal opens - then reverts it when the modal closes. It's intended to help screen readers. Unfortunately, this absolutely tanks performance because we have many portals. React needs to do alot of layout calculations (not re-renders).

IMO this behaviour is a bug in chakra. The modals which generated the portals are hidden by default, so this data attr should really be set by default. Dunno why it isn't.
2024-08-28 16:49:19 +10:00
psychedelicious
e38e20a992 feat(ui): fix queue item count badge positioning
Previously this badge, floating over the queue menu button next to the invoke button, was rendered within the existing layout. When I initially positioned it, the app layout interfered - it would extend into an area reserved for a flex gap, which cut off the badge.

As a (bad) workaround, I had shifted the whole app down a few pixels to make room for it. What I should have done is what I've done in this commit - render the badge in a portal to take it out of the layout so we don't need that extra vertical padding.

Sleekified some styling a bit too.
2024-08-28 16:37:50 +10:00
psychedelicious
39a94ec70e fix(ui): transparency effect not updating 2024-08-28 16:08:12 +10:00
psychedelicious
c7bfae2d1e feat(ui): tidy canvas toolbar buttons 2024-08-28 16:04:37 +10:00
psychedelicious
e7944c427d feat(ui): revised viewer toggle @joshistoast 2024-08-28 16:04:25 +10:00
psychedelicious
48ed4e120d fix(ui): opacity reset value incorrect 2024-08-28 16:03:48 +10:00
psychedelicious
a5b038a1b1 revert(ui): roll back flip, doesn't work with rotate yet 2024-08-28 12:03:38 +10:00
psychedelicious
dc752c98b0 fix(ui): disable opacity slider fully when no valid entity selected 2024-08-28 09:00:55 +10:00
psychedelicious
85a47cc6fe fix(ui): layer preview image sometimes not rendering
The canvas size was dynamic based on the container div's size. When the div was hidden (e.g. when selecting another tab), the container's effective size is 0. This resulted in the preview image canvas being drawn at a scale of 0.

Fixed by using an absolute size for the canvas container.
2024-08-28 08:59:38 +10:00
psychedelicious
6450f42cfa feat(ui): tweak regional prompt box styles 2024-08-28 08:44:04 +10:00
psychedelicious
3876f71ff4 feat(ui): tweak enabled/locked toggle styles 2024-08-28 08:25:37 +10:00
psychedelicious
cf819e8eab feat(ui): tweak filter styling 2024-08-28 08:07:36 +10:00
psychedelicious
2217fb8485 feat(ui): add flip & reset to transform 2024-08-28 07:57:15 +10:00
psychedelicious
43652e830a tidy(ui): use helper to sync scaled bbox size on model change 2024-08-28 07:11:05 +10:00
psychedelicious
a3417bf81d fix(ui): randomize seed toggle linked to prompt concat 2024-08-28 07:05:14 +10:00
psychedelicious
06637161e3 chore: release v4.2.9.dev5 2024-08-27 19:57:34 +10:00
psychedelicious
c4f4b16a36 chore(ui): lint 2024-08-27 19:57:02 +10:00