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
Use Actions for sortorder dropdown #736
Conversation
Codecov Report
@@ Coverage Diff @@
## master #736 +/- ##
==========================================
+ Coverage 26.63% 26.87% +0.23%
==========================================
Files 44 44
Lines 2140 2125 -15
Branches 395 391 -4
==========================================
+ Hits 570 571 +1
+ Misses 1445 1430 -15
+ Partials 125 124 -1 |
@skjnldsv and @jancborchardt for the new sort-order icons. Also, I had to use |
31829d8
to
5a3ae5d
Compare
Could you post screenshots with English 🙈 |
Sorry, of course, where are my manners 😄 I updated the screenshots.
They are supposed to indicate start (left) and due date (right). I was thinking about the scroll forward and backward buttons on media players, but I am open for other ideas.
You are right, the arrows were reversed. I adjusted it to comply with how we do it in the files app. The letters are now also ZA for reverse sort. |
Ping @jancborchardt and @skjnldsv and maybe @nextcloud/designers (sorry for the noise if you are not interested). |
I think the arrow could use better iconography :) |
Due date and start date could use some sort of calendar icon. Start date could be the calendar icon, and due date a flag maybe. But I don’t think the icons are the real issue here. :) The main problem is that there are a huge mass of sorting options:
How about having only 1 proper way of doing it?
Also:
|
@jancborchardt Thanks for your feedback, but limiting / cleaning-up the sorting options is not what this PR is about 😉
This sounds good, I will adjust it. Do we have a flag somewhere?
They all where requested at some point, and I don't really see a point in limiting the sorting options. They are just entries in a list, every entry is explained with a tooltip, e.g. "Sort by completed state, due date, priority, start date and summary." for the "Default" order (https://github.com/nextcloud/tasks/blob/master/src/components/SortorderDropdown.vue#L73) and there is nothing to configure really. Also, sorting the tasks by different criteria is a main purpose of this app. And I bet if we limit the options, we sooner or later get reports asking where it went 😉 So, to make it short, I would like to keep the sorting options. 🙂
This is pretty much the "Default" sort order, which is currently
Depends on how you use the app, I guess.
There is no option to chose which one is the default order, the selected one is simply saved to the server and restored on app load. "Default" might not be the best naming, since it implies there would be an option to chose. We could call it "General" or "Standard". |
Ah cool, yes, this clears it up! :) Good question how to call that sorting indeed. Maybe "Relevance"? Although:
Completed tasks are sorted above all? Should be below all, no?
Yes, of course everything gets requested all the time in an open source project. ;) As for the icons, calendar for "Due date" and |
Relevance sounds good, let's use this.
Completed tasks are below all others. This just meant that we sort by completed status first (completed below), then we sort tasks with the same completed status by due date (first due top), then tasks with same due date are sorted by priority, etc.
I see your point, I just think that having eight options how to sort the tasks is not confusing, since it is about the same thing (sorting). But let's discuss this in a separate issue, I will open one.
Sounds good, I will adjust the PR. |
ec6ed85
to
336601d
Compare
@jancborchardt Do you really mean icon-confirm for start date? The icon-confirm arrow points to the right. Since we read from left (start) to right (end), it seems more appropriate for the due date (end date). Do you mind if I mirror the arrow to make it point to the left when using it for the start date? |
@raimund-schluessler yes, I'd say use the icon-confirm. The arrow icon signifies "go"/"start", no need for additional complexity. (Mirroring it for example makes it into a "Back" icon.) |
Intuitively start date should be something like |-> rather than |<- |
After thinking about it, I agree. Also the icons you find when searching for "due start date icon" mostly look like this. But I would combine it with the calendar icon. So for start date the arrow starts in the center of the calender, for end date it ends in the center. I think this has a number of advantages over the
I will adjust the PR and let you have a look. |
I updated the PR, see #736 (comment) for the screenshots. I think it looks fine like this and better than icon-confirm. What do you think? |
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
f15a995
to
e59757e
Compare
At least in my humble opinion, they look great! The more I look at them the more I like them, they're all distinct enough to be able to tell them from a glance (so you don't have to waste time reading). Good stuff. |
Ping @jancborchardt and @skjnldsv. |
This PR uses the
nextcloud/vue
Actions for the sortorder dropdown.