Mary Hipp
d9a257ef8a
fix(ui): add error handling to upload button
2024-10-16 09:32:35 -04:00
psychedelicious
23fada3eea
feat(ui): simpler dnd indicator for right panel tabs
...
We can use the drop overlay component directly for this, without needing to add it as a `noop` dnd target.
Other changes:
- The `label` prop is now used to conditionally render the label - every drop target provides its own label, so this doesn't break anything.
- Add `withBackdrop` prop to control whether we apply the dimmed drop target effect.
2024-10-16 18:35:55 +11:00
psychedelicious
2917e59c38
Revert "feat(ui): add layers tab as droppable destination to improve UX for dragging from gallery to layers tabs"
...
This reverts commit 535c1287bbc8d2c2099f5ff659f62e3076a0dbee.
2024-10-16 18:35:55 +11:00
Mary Hipp
c691855a67
feat(ui): add layers tab as droppable destination to improve UX for dragging from gallery to layers tabs
2024-10-16 18:35:55 +11:00
Mary Hipp
a00347379b
feat(ui): move layers/gallery tab state into redux so it persists across sessions/refreshes, make gallery the default
2024-10-16 18:35:55 +11:00
psychedelicious
ad1a8fbb8d
fix(ui): ts
2024-10-16 18:33:40 +11:00
psychedelicious
f03b77e882
fix(ui): race condition with toast closing
...
Instead of providing a duration to the upload action, we close the toast imperatively in the `imageUploaded` listener using a timeout. 3s after the last upload toast, we close it.
This handles the case when we are uploading multiple images and don't want the toast to close til it's all finished.
2024-10-16 18:33:40 +11:00
psychedelicious
2b000cb006
fix(ui): erroneous board selection when uploading multiple images
2024-10-16 18:33:40 +11:00
psychedelicious
af636f08b8
feat(ui): add maxImageUploadCount config setting
2024-10-16 18:33:40 +11:00
psychedelicious
f8150f46a5
feat(ui): only switch boards on first upload of an image
2024-10-16 18:33:40 +11:00
psychedelicious
b613be0f5d
feat(ui): updated useFullscreenDropzone
...
- Hack around toast durations so it closes after last image uploads
- Improved error logging
- Enforce singleton nature of hook
2024-10-16 18:33:40 +11:00
psychedelicious
a833d74913
tidy(ui): clean up imageUploaded listener
2024-10-16 18:33:40 +11:00
psychedelicious
02df055e8a
feat(ui): simpler imageUploaded toast handling
2024-10-16 18:33:40 +11:00
psychedelicious
add31ce596
feat(ui): simpler useImageUploadButton
...
We can always iterate over `files`, no need for any conditional logic here.
2024-10-16 18:33:40 +11:00
Mary Hipp
7d7ad3052e
feat(ui): enable multifile upload for fullscreen dropzone
2024-10-16 18:33:40 +11:00
Mary Hipp
3b16dbffb2
feat(ui): allow multiple images to be uploaded via gallery button, remove double add-to-board logic for uploaded images
2024-10-16 18:33:40 +11:00
Mary Hipp
d8b0648766
feat(ui): add upload button for gallery
2024-10-16 18:33:40 +11:00
psychedelicious
1251dfd7f6
feat(ui): better warnings when transforming
2024-10-15 19:47:50 -04:00
psychedelicious
804ee3a7fb
docs(ui): update docstrings for startTransform
2024-10-15 19:47:50 -04:00
psychedelicious
fc5f9047c2
fix(ui): fit to bbox just flashes transform handles
...
Need to `await` the startTransform call so it can acquire the lock on concurrent transformation operations.
2024-10-15 19:47:50 -04:00
Mary Hipp
c3df9d38c0
prettier
2024-10-15 15:58:11 -04:00
Mary Hipp
3790c254f5
only show starter bundles if feature is enabled and no models installed, update getting started text for local vs non-local
2024-10-15 15:58:11 -04:00
psychedelicious
166548246d
feat(ui): disable starter bundle button when all installed
2024-10-15 15:58:11 -04:00
psychedelicious
985dcd9862
chore(ui): lint
2024-10-15 15:58:11 -04:00
psychedelicious
b1df592506
tidy(ui): starter models logic
...
- More comprehensive duplicate model logic
- De-dupe starter models, which may share dependencies
- Fix issue w/ duplicate keys in list component
- Add translations
- Add toast when installing starter model, matching bundle toast
2024-10-15 15:58:11 -04:00
psychedelicious
a09a0eff69
chore(ui): lint
2024-10-15 15:58:11 -04:00
psychedelicious
e73bd09d93
feat(ui): use for..of instead of for loop w/ extra type guards
2024-10-15 15:58:11 -04:00
psychedelicious
6f5477a3f0
feat(ui): compare against source when building models to install
2024-10-15 15:58:11 -04:00
psychedelicious
f78a542401
tidy(ui): use StarterModel type directly
2024-10-15 15:58:11 -04:00
Mary Hipp
8613efb03a
update button UI
2024-10-15 15:58:11 -04:00
Mary Hipp
d8347d856d
more copy and linting
2024-10-15 15:58:11 -04:00
Mary Hipp
336e6e0c19
only show Add Model button if not adding models
2024-10-15 15:58:11 -04:00
Mary Hipp
5bd87ca89b
feat(ui,api): add starter bundles to MM
2024-10-15 15:58:11 -04:00
Riku
69a4a88925
fix(ui): display guidance value for flux images in metadata viewer
2024-10-15 18:06:45 +11:00
Riku
6e7491b086
fix(ui): recall guidance value for flux images
2024-10-15 18:06:45 +11:00
Mary Hipp
acfeb4a276
undo changes that made category optional
2024-10-11 17:37:57 -04:00
Mary Hipp
b33dbfc95f
prefix share link with window location
2024-10-11 17:25:58 -04:00
Mary Hipp
cbe7717409
make sure combobox is not searchable
2024-10-11 17:23:34 -04:00
Mary Hipp
d6add93901
lint
2024-10-11 17:23:34 -04:00
Mary Hipp
ea45dce9dc
(ui) add board sorting UI to board settings popover
2024-10-11 17:23:34 -04:00
Mary Hipp
8d44363d49
(ui): update boards list queries to only use sort params for list, and make sure archived boards are included in most places we are searching
2024-10-11 17:23:34 -04:00
Mary Hipp
e3e9d1f27c
(ui) break out boards settings from gallery/image settings
2024-10-11 17:23:34 -04:00
psychedelicious
bb59ad438a
docs(ui): add comments to ImageContextMenu
2024-10-11 09:36:23 -04:00
psychedelicious
e38f5b1576
fix(ui): safari doesn't have find on iterators
2024-10-11 09:36:23 -04:00
psychedelicious
1bb49b698f
perf(ui): efficient gallery image hover state
2024-10-11 09:36:23 -04:00
psychedelicious
fa1fbd89fe
tidy(ui): remove extraneous prop extraction
2024-10-11 09:36:23 -04:00
psychedelicious
190ef6732c
perf(ui): properly memoize gallery image icon components
2024-10-11 09:36:23 -04:00
psychedelicious
947cd4694b
perf(ui): use single event for all image context menus
...
Image elements register their target ref in a map, which is used to look up the image that was clicked on. Substantial perf improvement.
2024-10-11 09:36:23 -04:00
psychedelicious
ee32d0666d
perf(ui): memoize gallery page buttons
2024-10-11 09:36:23 -04:00
psychedelicious
bc8ad9ccbf
perf(ui): remove another extraneous useCallback
2024-10-11 09:36:23 -04:00