-
Notifications
You must be signed in to change notification settings - Fork 9
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
Sort bookmarks in bookmarks panel #3001
Sort bookmarks in bookmarks panel #3001
Conversation
eef7f23
to
3f1583e
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.
Great job @jotaemepereira! Sorting works great and the code is nice and clean. Just please update string comparison to use localized case insensitive compare and it's good to go. Thanks!
6e93c79
to
9133780
Compare
a4b209c
to
832d72d
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.
Nothing more to add from Dominik's review; changes look clean, thanks for this!
832d72d
to
b79737f
Compare
TODO: Add unit tests
d240c73
to
fc01a2f
Compare
c82227f
into
feature/search-and-sort-bookmarks-panel
Task/Issue URL: https://app.asana.com/0/1204006570077678/1207680520620398/f
Tech Design URL:
CC:
Description
Acceptance criteria
AC1
Given a user that opens the bookmarks panel
When the user taps on the sort icon without any saved sort option
Then a menu with the following options appears Manual (selected), Name (unselected), Ascending (disabled) and Descending (disabled)
And sort icon is the ascending one
AC2
Given a user that taps the sort button
When the user taps on the name option
Then the tree view is ordered by title ascending
And the Ascending (selected by default) and Descending options are available.
AC3
Given a user that taps the sort button
When the user taps on the Descending option
Then the tree view is ordered by title descending
And the sort icon changes to descending
AC4
Given a user that taps the sort button
When the user taps on the Manual option
Then the tree view is ordered by proximity to the root
AC5
Given a user in the bookmarks panel
When the user starts a search
Then the list of results should respect the selected sorting order
AC6
Given a user that restarted the browser
When the user goes to the bookmarks panel
Then the last selected sorting option should be remembered
And the tree view should be sorted by the last remembered
Demo
sort-demo.mov
Steps to test this PR
Definition of Done:
—
Internal references:
Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation