InvokeAI/invokeai/frontend/web/src
Rohinish 7e831c8a96
Selected in View within Gallery (#5240)
* selector added

* ref and useeffect added

* scrolling done using useeffect

* fixed scroll and changed the ref name

* fixed scroll again

* created hook for scroll logic

* feat(ui): debounce metadata fetch by 300ms

This vastly reduces the network requests when using the arrow keys to quickly skim through images.

* feat(ui): extract logic to determine virtuoso scrollToIndex align

This needs to be used in `useNextPrevImage()` to ensure the scrolling puts the image at the top or bottom appropriately

* feat(ui): add debounce to image workflow hook

This was spamming network requests like the metadata query

---------

Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
2023-12-12 17:14:28 +11:00
..
app fix(ui): fix workflow saving 2023-12-09 16:35:44 +11:00
assets/images feat(ui): migrate theming to chakra ui 2023-03-06 20:03:39 +11:00
common feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
features Selected in View within Gallery (#5240) 2023-12-12 17:14:28 +11:00
mantine-theme feat(ui): make mantine single selects *exactly* the same size as chakra ones 2023-08-21 19:17:36 +10:00
services Selected in View within Gallery (#5240) 2023-12-12 17:14:28 +11:00
theme feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
i18.d.ts fix(ui): improve IDE TS performance by not resolving JSON 2023-06-28 23:55:44 -04:00
i18n.ts fix(ui): fix all eslint & prettier issues 2023-07-22 23:45:24 +10:00
index.ts try named export 2023-08-01 08:54:03 +10:00
main.tsx feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
vite-env.d.ts all files migrated; tweaks needed 2023-03-03 00:02:15 -05:00