Skip to content

Conversation

maryhipp
Copy link
Collaborator

@maryhipp maryhipp commented Jul 7, 2023

  • if auto-switch setting is on, navigate back to images tab on generation (weird behavior if they are on assets tab)
  • load images for assets tab is assets tab is active when UI loads
  • handle case where user has zero images and skeleton loader didn't disappear
  • TODO: get virtuoso grid to fill viewport if 20 images that are initially loaded does not fill - I couldn't get that working

@maryhipp maryhipp changed the title make sure images tab is active if auto-switch to new images is on gallery tweaks Jul 7, 2023
@psychedelicious psychedelicious force-pushed the maryhipp/gallery-tweaks branch from 5aba2c3 to f79a3bd Compare July 7, 2023 23:51
@psychedelicious
Copy link
Collaborator

feat(ui): fill up gallery on app start
f79a3bd

taking the coward's way out on this and just fetching 100 images & 100 assets on app start...

  • add appStarted action, dispatched once on mount in App.tsx. listener fetches 100 images & 100 assets
  • fix bug with selectedBoardId & assets tab

@psychedelicious psychedelicious force-pushed the maryhipp/gallery-tweaks branch from f79a3bd to 4aee975 Compare July 8, 2023 05:13
@psychedelicious psychedelicious marked this pull request as draft July 8, 2023 06:46
@psychedelicious psychedelicious marked this pull request as ready for review July 8, 2023 07:00
@psychedelicious psychedelicious force-pushed the maryhipp/gallery-tweaks branch from 5781508 to 38df613 Compare July 8, 2023 07:01
Mary Hipp and others added 8 commits July 8, 2023 18:59
taking the coward's way out on this and just fetching 100 images & 100 assets on app start...

- add `appStarted` action, dispatched once on mount in App.tsx. listener fetches 100 images & 100 assets
- fix bug with selectedBoardId & assets tab
Just made it a spinner, getting it to be styled correctly otherwise is a pain
- `isLoading` - now `true` *only* on first load
- added `isFetching` - `true` whenever gallery images are fetching
- on first load, show a spinner instead of skeletons. this prevents an awkward flash of skeletons into empty gallery when the gallery doesn't have enough images to fill it.
- removed `imageCategoriesChanged` listener, bc now on app start, both images and assets will be populated. leaving this in caused jank flashes of skeletons when switching gallery tabs when gallery doesn't have images to load
@psychedelicious psychedelicious force-pushed the maryhipp/gallery-tweaks branch from 38df613 to 9450a2b Compare July 8, 2023 08:59
@psychedelicious
Copy link
Collaborator

psychedelicious commented Jul 8, 2023

@blessedcoolant mind giving this one a go? try with no db to emulate new user experience

  • on initial load, gallery should fill up
  • when dragging a non-square image, the aspect ratio should be maintained
  • when procesing a non-square control image, there shouldnt be any jank
  • aaaand the app shouldnt crash when you start up with an empty gallery

@blessedcoolant
Copy link
Collaborator

@psychedelicious Tested all mentioned conditions. Seems good. Couldn't find any obvious bugs.

@psychedelicious psychedelicious merged commit 0c528f2 into main Jul 8, 2023
@psychedelicious psychedelicious deleted the maryhipp/gallery-tweaks branch July 8, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants