This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: infinite scroll on assets (#130)
* update Loading component to be more useful * wip: infinite scroll * wip: infinite scroll * move assets per page number to a variable * fix: projects not showing * Add sort param to asset query * fix assetContainer style, move scroll code * wip: get assets working in dashboard and settings page * pass hasNextPage to dashboards project creation * dashboard assets working, fix AssetsModal organism, wip: settings * refactor using AssetsModal in ProfileSection * make naming consistent * use AssetModal in Project's public and profile sections, keep naming consistent * infinite scroll in earth editor * wip: update based on backend API changes * Small cards only in modal, med cards only elsewhere * update asset fetchMore w pagination object * wip: move sort and search to backend * wip: search, light refactor * move sort functionality out of frontend * check if more assets from hasNext/hasPrev * move search func to query * use assetHooks, clean up * update assetsData type, update AssetModal storybook * update assetmodal storybook * update gql config, fix pagination reverse * update naming and prop order in AssetModal * make onClose a callback * update based on review * update asset settings * update earth editor * update closing modal * getMoreAssets -> onGetMoreAssets * update names, fix ci errors * add toGQLEnum utility and use with assetSort * fix initial asset fetch variables * use toGQLEnum with Theme as well * update assetmodal's story * fix text getting clipped * remove gqlenum convert from value * create assetcontainer organism and use in modal * wip: refactor * wip: refactor - cache on unmount, fix modal toggle * fix image deselection in dashboard proj creation * set selectedAssets to initialAsset when available * update settings project asset modal props * Move asset hooks from modal to container * reorder declarations * move some asset modal molecule func into hooks * update asset settings * update earth editor right panel w AssetModal * Remove unneeded story, update project settings * selectAsseturl -> onAssetUrlSelect * sortOptions -> useMemo * move handleScroll outside hook * Changes based on pr review * fix ci check error * make EditableItem generic * fix errors on onSubmit * fix type errors Co-authored-by: rot1024 <aayhrot@gmail.com>
- Loading branch information
Showing
62 changed files
with
1,122 additions
and
949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.