InvokeAI/invokeai/frontend/web
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
..
.storybook feat(ui): disable storybook telemetry 2023-12-09 16:03:09 +11:00
config export theme nad move chakra to peer dep 2023-08-01 08:54:03 +10:00
docs feat(ui): migrate to pnpm 2023-12-09 16:00:37 +11:00
public/locales feat(nodes): add invocation classifications 2023-12-12 16:43:05 +11:00
scripts feat(ui): remove superseded logic in typegen.js 2023-11-24 19:30:37 -08:00
src Selected in View within Gallery (#5240) 2023-12-12 17:14:28 +11:00
static/docs feat(api): serve app via route & add cache-control: no-store 2023-10-19 08:52:02 +11:00
tests Partial migration of UI to nodes API (#3195) 2023-04-22 13:10:20 +10:00
__init__.py Run python black 2023-07-28 09:46:44 -04:00
.eslintignore feat: workflow saving and loading 2023-08-24 21:42:32 +10:00
.eslintrc.js feat(ui): add eslint unused-imports plugin 2023-12-09 16:12:00 +11:00
.gitignore feat: no frontend build in repo 2023-12-11 12:30:13 +11:00
.prettierignore feat(ui): migrate to pnpm 2023-12-09 16:00:37 +11:00
.prettierrc.js
favicon.ico
index.html Prevent caching to ensure updated UI is shown 2023-10-04 22:32:00 +11:00
package.json feat(ui): add eslint unused-imports plugin 2023-12-09 16:12:00 +11:00
pnpm-lock.yaml feat(ui): add eslint unused-imports plugin 2023-12-09 16:12:00 +11:00
tsconfig.json fix(ui): remove .ladle from tsconfig 2023-12-09 16:03:09 +11:00
tsconfig.node.json feat(ui): improved node parsing 2023-06-26 11:53:54 +10:00
vite.config.ts build(ui): treeshake lodash via lodash-es 2023-04-28 21:56:43 +10:00