Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Sorting options #71

Closed
2 tasks
sashei opened this issue Dec 8, 2017 · 13 comments · Fixed by #163
Closed
2 tasks

Sorting options #71

sashei opened this issue Dec 8, 2017 · 13 comments · Fixed by #163

Comments

@sashei
Copy link
Contributor

sashei commented Dec 8, 2017

  • alphabetically
  • recently used

Visual Design

InVision
https://mozilla.invisionapp.com/share/7JEUG47ZU#/screens/268014044
Recently Used Selected: https://mozilla.invisionapp.com/share/XCEV238ZD#/285909362_Entry_List_-_Sorted_Recently

Zeplin
https://zpl.io/bokk6mX
Recently Used Selected: https://zpl.io/VxB3Kxk

@sashei sashei added the to do label Dec 8, 2017
@sashei sashei self-assigned this Dec 8, 2017
@sashei sashei added the feature label Dec 8, 2017
@sandysage sandysage added backlog and removed to do labels Dec 14, 2017
@sandysage sandysage removed the backlog label Jan 3, 2018
@sashei
Copy link
Contributor Author

sashei commented Feb 7, 2018

I'm curious about the best way to make this component accessible for vision-impaired users.

@sashei sashei added to do and removed to do labels Mar 13, 2018
@sashei
Copy link
Contributor Author

sashei commented Mar 13, 2018

Dependent on #152

@sashei sashei added in progress and removed to do labels Mar 16, 2018
@sashei
Copy link
Contributor Author

sashei commented Mar 16, 2018

@sandysage @changecourse should the alphabetic sorting rely on only the item's title, or other parameters as well / if the title is missing?

@sashei
Copy link
Contributor Author

sashei commented Mar 16, 2018

@changecourse @nickbrandt what should the selector in the upper left look like when the user has selected "Recently Used" as their sorting option?

@nickbrandt
Copy link

@sashei I added a screen showing how this would appear. Essentially we are just replacing the label with "Recent".

@sashei
Copy link
Contributor Author

sashei commented Mar 19, 2018

@nickbrandt @changecourse also, there is no "highlighted" or "selected" color for this button in Zeplin.

@nickbrandt
Copy link

Let's handle this the same way we are with the "pressed" state for the Back button on the detail page, where we reduce the opacity to 60% of the clicked item.

@sandysage
Copy link

should the alphabetic sorting rely on only the item's title, or other parameters as well / if the title is missing?

Let's start with just the item title. It's my understanding then, any items with missing titles would appear first in the ordering. Does that seem right? And then maybe numerical titles (eg an IP address)?

@devinreams
Copy link
Contributor

devinreams commented Mar 20, 2018 via email

@sandysage
Copy link

@devinreams Yeah, that's probably the best course. What do you recommend for having shared product requirements between repos? Is there a doc that this best lives within?

As I understand it for the extension:

  • Entries are alphabetically ordered by title
  • Entries that don't have a title appear first in the list, but without a fallback condition for either url or username -- for instance, I have 2 entries in my Lockbox with no title and the one with a web address of "aaa" appears below one with a web address of "facebook"
  • There are no sorting options in the extension. Alphabetical ordering is for the list display only.

So for this issue, I think what we have offers parity with the extension in addition to the functionality @sashei has implemented for sorting.

@sandysage
Copy link

@sashei How are we determining recency? Is that an attribute in the datastore that is shared across our product offerings? I just can't recall :P

@devinreams
Copy link
Contributor

devinreams commented Mar 22, 2018

What do you recommend for having shared product requirements between repos? Is there a doc that this best lives within?

It may be useful to document shared requirements in the http://github.com/mozilla-lockbox/mozilla-lockbox.github.io/ where we have other overlapping documentation (process, architecture design).

Is that an attribute in the datastore that is shared across our product offerings?

That was the idea: @sashei just implemented the field in the datastore itself: mozilla-lockwise/lockbox-datastore#96

And there are two corresponding stories to actually do something with it:

Please note metadata like this does exist in the existing Firefox login store: https://dxr.mozilla.org/mozilla-central/source/toolkit/components/passwordmgr/LoginStore.jsm#24-27 (date created, date last used, date changed, times used).

@sandysage
Copy link

Per discussions, the concept of "Recency" is local to Firefox desktop, is not synced.

Solution A: concept of "Last Used" has to be incorporated in the local storage, knowing any implementation would be specific to the mobile device. (DEPENDS ON: FxA storage)
Solution B: remove "Recency" if A doesn't happen(None)

If removing recency, we'll want to consider altering the sort options to Alpha and Reverse Alpha sort.

@sashei I believe this story is now on hold pending feedback on FxA storage, yes?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants