uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

Add sorting with headers to UI

Open dborkan opened this issue 12 years ago • 9 comments

The uProxy UI no longer has any sorting. We need to re-add sorting. This should default to online+trusted+uProxy contacts at the top, optionally with buttons to toggle sorting (not necessarily required as we'll have the ability to search contacts).

We should also add headers to each sort category, e.g. "uProxy Contacts" (possibly "Online uProxy Contacts"), "All Contacts", etc.

dborkan avatar Oct 16 '14 17:10 dborkan

@zahoriea what do you think on sort order for contacts (#17 has quite a detailed suggestion here)?

iislucas avatar Oct 17 '14 17:10 iislucas

From my discussion with Izzie, the current thinking on sort ordering is:

  • Online, trusted uProxy contacts (trusted means you've given/received/requested permission from them)
  • Offline, trusted uProxy contacts
  • Online, non-yet-trusted uProxy contacts
  • Offline, non-yet-trusted uProxy contacts
  • Online non-uProxy contacts
  • Offline non-uProxy contacts

For Facebook:

  • We won't be showing non-uProxy contacts at all in the roster (although we may have an invite button)
  • It's not yet clear if we can distinguish online vs offline. If that is the case we will sort Facebook contacts from most-recently-seen to least-recently-seen within each category (trusted uProxy, non-trusted uProxy)

dborkan avatar Oct 20 '14 14:10 dborkan

Also, if a user has multiple instances (e.g. laptop and desktop), all their instances should be grouped together with the user under the highest possible heading, and we should sort the instances within the user according to the same logic.

For example if user Bob has a "laptop" instance which is online but not trusted, and a "desktop" instance which is offline but trusted, Bob should appear completely under the "Offline, trusted uProxy contacts" header, and his desktop instance should appear above the laptop instance.

dborkan avatar Oct 20 '14 14:10 dborkan

Also Izzie and I agreed that it's not necessary to allow users to change their sort, as we will have a search box for finding users instead. This will keep the UI a bit cleaner, and save us some work.

dborkan avatar Oct 20 '14 16:10 dborkan

I'll start work on sorting with headers this week since we mostly know what we want to do, and it shouldn't be too hard to change the ordering later on if needed

dborkan avatar Oct 20 '14 16:10 dborkan

@zahoriea I'm thinking of having only 3 headers: "Trusted Contacts", "All uProxy Contacts", "All Contacts" (Google only). Then within these 3 headers we can sort online to the top, but rather than add an extra "Online" header, we would style the row differently for online vs offline (maybe make offline grayscale). Let me know if this sounds good or if you have other ideas

dborkan avatar Oct 20 '14 18:10 dborkan

Sounds good to me! Agree with saturated / de-saturated treatments for online / offline contacts.

One way I was playing with the header names was

"uProxy friends" (trusted contacts) "uProxy contacts" (those you haven't yet established trust with) "Other contacts" (all other contacts that don't have uProxy installed)

Thoughts on this?

On Mon, Oct 20, 2014 at 11:00 AM, dborkan [email protected] wrote:

@zahoriea https://github.com/zahoriea I'm thinking of having only 3 headers: "Trusted Contacts", "All uProxy Contacts", "All Contacts" (Google only). Then within these 3 headers we can sort online to the top, but rather than add an extra "Online" header, we would style the row differently for online vs offline (maybe make offline grayscale). Let me know if this sounds good or if you have other ideas

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/469#issuecomment-59811005.

zahoriea avatar Oct 20 '14 18:10 zahoriea

"Friends" and "contacts" seem very similar to me, especially when connecting through Facebook where all my contacts are called "Friends". But I can use these for now and we can change the wording easily later

On Mon, Oct 20, 2014 at 2:14 PM, Izzie Zahorian [email protected] wrote:

Sounds good to me! Agree with saturated / de-saturated treatments for online / offline contacts.

One way I was playing with the header names was

"uProxy friends" (trusted contacts) "uProxy contacts" (those you haven't yet established trust with) "Other contacts" (all other contacts that don't have uProxy installed)

Thoughts on this?

On Mon, Oct 20, 2014 at 11:00 AM, dborkan [email protected] wrote:

@zahoriea https://github.com/zahoriea I'm thinking of having only 3 headers: "Trusted Contacts", "All uProxy Contacts", "All Contacts" (Google only). Then within these 3 headers we can sort online to the top, but rather than add an extra "Online" header, we would style the row differently for online vs offline (maybe make offline grayscale). Let me know if this sounds good or if you have other ideas

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/469#issuecomment-59811005.

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/469#issuecomment-59813982.

dborkan avatar Oct 20 '14 18:10 dborkan

Done in https://github.com/uProxy/uproxy/issues/498

dborkan avatar Oct 22 '14 21:10 dborkan