-
Notifications
You must be signed in to change notification settings - Fork 5k
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
#5492 Search account by name #7261
Conversation
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.
Found a bug with renderScrollButton
, will fix tomorrow, hold on with the review, please.
@Gudahtt ready for a review again |
ui/app/components/app/account-menu/tests/account-menu.component.test.js
Outdated
Show resolved
Hide resolved
Cool feature! I'd suggest adding a little more padding (8px) inside the search field (we are using a 4px spacing system for our UI - check it out here) and a search icon for better affordance. Suggestion - I think we should add a conditional that would hide this feature if the user has less than 4 accounts. Having this feature on by default would add unnecessary clutter to this view. I would also suggest adding a switch in settings to turn in on/off (off by default though and on if > 4 accounts). |
Hey @cjeria thanks for a review, it's already hidden until we reach a point of 5 accounts. I will do UI changes today. But do we really need some switch to turn it off? Isn't it enough to just hide if there are fewer than 5 accounts (like we do now)? |
I'm just noticing you mentioned the conditional in your comment, sorry about that! Let's try this feature without the switch and we'll keep an eye out for any feedback from our users @desfero. Could also you post another screenshot when you've made those changes, please? |
Hey @cjeria, sorry for taking so long, here is the screenshot with updated padding to 8px |
e09872a
to
7210690
Compare
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.
Looks good! There are a couple more changes I'd like, but nothing important (e.g. the comment in selectors.js
is still unaddressed)
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.
Thanks! This looks good to me.
Sorry for the delayed response @desfero The new spacing definitely looks better! For added polish, I had suggested including a search icon to make it clear there's a search bar up there (see screenshot). So my suggested improvements are:
|
Hey @desfero - would you prefer one of us implement these last couple of changes? I'd be happy to finish this off if you're busy. |
Hey @Gudahtt last week for me was quite busy with a lot of high priority work, I will try to add a search icon today or tomorrow. |
Sure, no rush! Just wanted to offer help, as I'm looking forward to seeing this merged. |
If it makes it any easier, we've been using free fontawesome icons in the product. Here's a link to the regular weight option if you'd like to go this route https://fontawesome.com/icons/search?style=regular |
LGTM! |
Co-Authored-By: Mark Stacey <[email protected]>
2b0ae74
to
4c2d36f
Compare
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.
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.
Adds a search field to filter accounts either by name or address. Fixes #5492 (except search by token names). But default search is hidden until the user adds 5 accounts.
It may require some 🎨design 🎨 changes but that's up to maintainers.
Demo