-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(wallet-dashboard): Improve assets filter #4512
feat(wallet-dashboard): Improve assets filter #4512
Conversation
This pull request has been deployed to Vercel. Latest commit: 5137f19 ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-lgskid491.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 5137f19 ✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-r3kgy2afx.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 5137f19 ✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-6cws11ims.vercel.app |
…improve-asset-filter
This pull request has been deployed to Vercel. Latest commit: 5185c8d ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-anz4omz5z.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 5185c8d ✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-953iz8cwk.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 5185c8d ✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-f6mf3hoqo.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 70752dd ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-imbr8amxh.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 70752dd ✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-72qrl6hma.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 73f2001 ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-iqfkg9y99.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 73f2001 ✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-9xcwnbhxh.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 73f2001 ✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-7ogwuaqsx.vercel.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙏
This pull request has been deployed to Vercel. Latest commit: 6c44bc4 ✅ Preview: https://apps-ui-okkr68ogv-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 6c44bc4 |
This pull request has been deployed to Vercel. Latest commit: 6c44bc4 ✅ Preview: https://rebased-explorer-9a0x2tp84-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 6c44bc4 ✅ Preview: https://wallet-dashboard-8dmdzc1nj-iota1.vercel.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This pull request has been deployed to Vercel. Latest commit: 96168f3 ✅ Preview: https://rebased-explorer-7ahgkk5t6-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 96168f3 ✅ Preview: https://apps-ui-4jtd8vq38-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 96168f3 |
This pull request has been deployed to Vercel. Latest commit: 96168f3 ✅ Preview: https://wallet-dashboard-1agwdt27r-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 25de57e ✅ Preview: https://apps-ui-edao2fh98-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 25de57e |
This pull request has been deployed to Vercel. Latest commit: 25de57e ✅ Preview: https://rebased-explorer-jrk64vfb7-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: 25de57e ✅ Preview: https://wallet-dashboard-rod7d4whc-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: dd69e67 ✅ Preview: https://apps-ui-ah7lgymh8-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: dd69e67 |
This pull request has been deployed to Vercel. Latest commit: dd69e67 ✅ Preview: https://rebased-explorer-3gomiyzmz-iota1.vercel.app |
This pull request has been deployed to Vercel. Latest commit: dd69e67 ✅ Preview: https://wallet-dashboard-mpvge4n57-iota1.vercel.app |
* refactor(wallet): move notification to separate component. * feat(wallet): enhance hidden asset functionality with undo option and notifications * feat(wallet): add undo functionality for showing hidden assets with notifications * feat(core): move HiddenAssetsProvider. * feat(core): move useGetNFTs. * feat(core): update useGetNFTs to accept filter and improve asset fetching * refactor(dashboard): remove 'Hidden' asset category and related logic * refactor(wallet-dashboard): remove 'Hidden' asset category from layout * refactor(dashboard): remove HiddenAssets context, update default select asset logic. * feat(core): add refetch capability to useGetNFTs hook * refactor(core): improve hide/show logic * refactor(core): remove undo functionality and streamline asset visibility management * refactor(core): simplify asset visibility management and improve error handling * refactor(wallet): rename MoveAssetNotification to MovedAssetNotification * refactor(dashboard): adapt logic to useGetNFTs hook. * fix(wallet-dashboard): improve asset loading logic and conditional rendering * feat(wallet-dashboard): move logic for page to the hook * fix(dashboard): load more if we have intersection * feat(ui-kit, dashboard): add disabled state to Chip component and update assets logic * refactor(core): reorganize usePageAssets hook into ui directory * refactor(core): move filter from param to hook direct.
Links to any relevant issues
Closes #4493
How to test
As show/hide for asset doesn't work in the dashboard, for testing we assign
ownedAssets?.visual.length to zero
in the file: apps/wallet-dashboard/app/(protected)/assets/page.tsx:
eg
Change checklist
Tick the boxes that are relevant to your changes, and delete any items that are not.