Skip to content
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

Merged
merged 32 commits into from
Jan 10, 2025

Conversation

panteleymonchuk
Copy link
Contributor

@panteleymonchuk panteleymonchuk commented Dec 16, 2024

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

useEffect(() => {
        let computeSelectedCategory = false;
        if (ownedAssets) {
          ownedAssets.visual.length = 0
        }
        if (
            (selectedCategory === AssetCategory.Visual && ownedAssets?.visual.length === 0) ||
            (selectedCategory === AssetCategory.Other && ownedAssets?.other.length === 0) ||
            !selectedCategory
        ) {
        ...

Change checklist

Tick the boxes that are relevant to your changes, and delete any items that are not.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that new and existing unit tests pass locally with my changes

@panteleymonchuk panteleymonchuk requested a review from a team as a code owner December 16, 2024 18:27
@iota-ci iota-ci added the tooling Issues related to the Tooling team label Dec 16, 2024
@panteleymonchuk panteleymonchuk added wallet Issues related to the IOTA Wallet wallet-dashboard Issues related to the Wallet Dashboard dApp labels Dec 16, 2024
Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 5137f19

✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-lgskid491.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 5137f19

✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-r3kgy2afx.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 5137f19

✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-6cws11ims.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 5185c8d

✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-anz4omz5z.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 5185c8d

✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-953iz8cwk.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 5185c8d

✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-f6mf3hoqo.vercel.app

@begonaalvarezd begonaalvarezd changed the title feat(dashboard): Improve assets filter feat(wallet-dashboard): Improve assets filter Dec 18, 2024
Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 70752dd

✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-imbr8amxh.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 70752dd

✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-72qrl6hma.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 73f2001

✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-iqfkg9y99.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 73f2001

✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-9xcwnbhxh.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 73f2001

✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-7ogwuaqsx.vercel.app

Copy link
Contributor

@evavirseda evavirseda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

apps/wallet-dashboard/app/(protected)/assets/layout.tsx Outdated Show resolved Hide resolved
apps/wallet-dashboard/app/(protected)/assets/page.tsx Outdated Show resolved Hide resolved
apps/wallet-dashboard/app/(protected)/assets/page.tsx Outdated Show resolved Hide resolved
@github-actions github-actions bot added the apps-ui-kit Issues related to the Apps UI Kit label Jan 9, 2025
@panteleymonchuk panteleymonchuk requested a review from VmMad January 9, 2025 20:37
Copy link
Contributor

github-actions bot commented Jan 9, 2025

This pull request has been deployed to Vercel.

Latest commit: 6c44bc4

✅ Preview: https://apps-ui-okkr68ogv-iota1.vercel.app

Copy link
Contributor

github-actions bot commented Jan 9, 2025

This pull request has been deployed to Vercel.

Latest commit: 6c44bc4

✅ Preview: https://apps-backend-eu419csze-iota1.vercel.app

Copy link
Contributor

github-actions bot commented Jan 9, 2025

This pull request has been deployed to Vercel.

Latest commit: 6c44bc4

✅ Preview: https://rebased-explorer-9a0x2tp84-iota1.vercel.app

Copy link
Contributor

github-actions bot commented Jan 9, 2025

This pull request has been deployed to Vercel.

Latest commit: 6c44bc4

✅ Preview: https://wallet-dashboard-8dmdzc1nj-iota1.vercel.app

Copy link
Member

@VmMad VmMad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 96168f3

✅ Preview: https://rebased-explorer-7ahgkk5t6-iota1.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 96168f3

✅ Preview: https://apps-ui-4jtd8vq38-iota1.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 96168f3

✅ Preview: https://apps-backend-a8wl4opi6-iota1.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 96168f3

✅ Preview: https://wallet-dashboard-1agwdt27r-iota1.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 25de57e

✅ Preview: https://apps-ui-edao2fh98-iota1.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 25de57e

✅ Preview: https://apps-backend-go56o69sq-iota1.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 25de57e

✅ Preview: https://rebased-explorer-jrk64vfb7-iota1.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: 25de57e

✅ Preview: https://wallet-dashboard-rod7d4whc-iota1.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: dd69e67

✅ Preview: https://apps-ui-ah7lgymh8-iota1.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: dd69e67

✅ Preview: https://apps-backend-afn3pmlxh-iota1.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: dd69e67

✅ Preview: https://rebased-explorer-3gomiyzmz-iota1.vercel.app

Copy link
Contributor

This pull request has been deployed to Vercel.

Latest commit: dd69e67

✅ Preview: https://wallet-dashboard-mpvge4n57-iota1.vercel.app

@begonaalvarezd begonaalvarezd merged commit a15a205 into develop Jan 10, 2025
35 checks passed
@begonaalvarezd begonaalvarezd deleted the tooling-dashboard/improve-asset-filter branch January 10, 2025 17:51
piotrm50 pushed a commit that referenced this pull request Jan 15, 2025
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apps-ui-kit Issues related to the Apps UI Kit tooling Issues related to the Tooling team wallet Issues related to the IOTA Wallet wallet-dashboard Issues related to the Wallet Dashboard dApp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve assets filter
6 participants