-
Notifications
You must be signed in to change notification settings - Fork 490
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
Issues with the peers page #1072
Comments
This issue is great to have! 👏 Some more thoughts, take them or leave them.
|
I'll take a stab at the sorting issues 👍 |
@JustMaier that would be RAD! Go for it! ✨🎷🐩 |
@olizilla during the Web UI call today, we discussed sorting of the location column. The consensus was that ordering by country then city (with Unknown at the end of the list) made the most sense when ordering by that column. With that in mind, I'm wondering if maybe it also makes sense to change what is displayed in that column to match that sorting logic. So, instead of displaying: I think unless we change the display, the ordering in the requested order in the location column might not make sense at first glance. As for performance issues, looking at the render cycles, it looks like every time a location is resolved it's re-rendering the table. That's why it seems to disappear/reappear while scrolling. I wonder if maybe it makes more sense to create a multiaddr to location component that we render inside the table's location column. The only problem with that is then we can't sort by location since it's not part of the dataset. Ideas? |
@JustMaier Yep, feel free to change the display order of the location. What if we adjust the table update logic so that it only updates if you are not interacting with it? |
Sorting
We don't need both, or at least, we don't need to always sort by multiaddr in the
selectPeers
function, if we're going to sort by something else later on.Caching
Rendering
Complexity
The text was updated successfully, but these errors were encountered: