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

hidden assets for magic menu (CmdK) #1663

Merged
merged 11 commits into from
Oct 5, 2024
Merged

Conversation

magiziz
Copy link
Contributor

@magiziz magiziz commented Aug 13, 2024

Fixes BX-1377
Figma link (if any):

What changed (plus any additional context for devs)

  • Added hide/unhide action for tokens and nfts in CmdK magic menu.
  • Added "Hidden" label to hidden tokens and nfts. Similar to "Watching" label for watched wallets.
  • Searching "hidden" in CmdK menu will show hidden assets.

Screen recordings / screenshots

BX-1377.mov

What to test

Make sure hide and unhide actions work with tokens and nfts in CmdK menu.

Copy link

linear bot commented Aug 13, 2024

@magiziz magiziz force-pushed the @mago/filter-hide-token-nft branch from c05a2c6 to 467d0a7 Compare August 13, 2024 12:28
@derHowie
Copy link
Member

Hide/unhide functionality works, but if you pull up the cmd-k menu while you're on the assets list then return after hiding a token, the list's rendering seems to be messed up when you scroll. Sometimes there are blank gaps and sometimes there are overlaps. I'm guessing this means the keys are getting messed up or the new list needs a .measure() call after you hide/unhide something.

@DanielSinclair
Copy link
Collaborator

@magiziz Can you have a look at the issue Chris mentioned? Can get this merged this week

@estebanmino
Copy link
Member

@derHowie is this ready for review?

@derHowie
Copy link
Member

derHowie commented Sep 9, 2024

@derHowie is this ready for review?

yes

Copy link
Member

@estebanmino estebanmino left a comment

Choose a reason for hiding this comment

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

code lgtm and fix is working locally

Copy link
Member

@BrodyHughes BrodyHughes left a comment

Choose a reason for hiding this comment

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

LGTM but seeing one very small issue when you hide then un-hide L2 tokens I am seeing a gap in the token list that persists until you scroll.

Screen.Recording.2024-09-09.at.2.16.56.PM.mov

Copy link
Member

@brunobar79 brunobar79 left a comment

Choose a reason for hiding this comment

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

See Brody's comment above

@DanielSinclair DanielSinclair self-requested a review October 5, 2024 03:49
@DanielSinclair
Copy link
Collaborator

Merging per Chris's recommendation about the token cell update issue. Created a follow-up ticket for that

@DanielSinclair DanielSinclair merged commit 9fe05f5 into master Oct 5, 2024
13 of 14 checks passed
@DanielSinclair DanielSinclair deleted the @mago/filter-hide-token-nft branch October 5, 2024 04:02
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.

6 participants