timemanager icon indicating copy to clipboard operation
timemanager copied to clipboard

Enable sorting / reverse order on time entries and other lists

Open joleaf opened this issue 4 years ago β€’ 8 comments

Current State:

The time entries are sorted by the timestamp: image

(Furthermore, the german date format is wrong :( )

Expected State:

The time entries are sorted by the timestamp but in descending order.

joleaf avatar Feb 09 '21 09:02 joleaf

@joleaf I can see your point :-) Let's break this up, though.

The time entries are sorted by the timestamp:

I'm not convinced that reversing the entries is the solution here. We can anticipate that users might be used to this sorting, so we shouldn't mess with the default in my opinion. It's reasonable to sort from oldest to newest from top to bottom in my view.

Having said that, I'd be open to adding a sort toggle of sorts. Any ideas on that?

(Furthermore, the german date format is wrong :( )

This is a bug that I will try to address πŸ‘

Edit: The date format bug is fixed in 0.1.7

te-online avatar Feb 10 '21 16:02 te-online

@te-online yes, you are totally right, a toggle button might be the solution :)

joleaf avatar Feb 10 '21 18:02 joleaf

I also need it usually with the newest entries at the top, so a toggle button would be great (especially when a task has very many entries so you have to scroll very far to see the newest).

By the way, what do the checkboxes in the list actually do?

31SFX4 avatar May 04 '23 06:05 31SFX4

By the way, what do the checkboxes in the list actually do?

The checkmarks are a "done"/"waiting" indication for your purpose of choice. Many people use it for invoicing – unchecked = unpaid, checked = paid.

te-online avatar May 04 '23 16:05 te-online

May I suggest that the toggle to switch ascending & descending order may be added:

  • on all lists: Clients, Projects, Tasks, Time Entries & Reports
  • each for all properties: time created (useful mostly for tasks & entries), start time/end time (tasks, entries, reports) name (clients, projects, tasks, reports), length (projects, tasks, entries, reports).

Suggested new issue title: "Add various sorting options to all lists"

And once this is done, we can also discuss sane defaults for each list (& fix the current situation where entries list first to last in task, but last to first in Entries).

raph-topo avatar Jul 09 '24 07:07 raph-topo

Hi @raph-topo – thanks for your input – I appreciate it a lot 😊

I like the idea to put sorting on all lists, that's very good!

In the spirit of keeping this app as simple as possible, I'd refrain from adding too many options. πŸ™ πŸ’«

I'd suggest we start out with, for time entries

  • reversing the default sorting to always be "end date – newest to oldest", because I think that's what most people would prefer (or rather, what I'd personally prefer)
  • allowing to manually reverse the sorting so oldest are first (the old behavior)

Clients are already sorted alphabetically, if I remember correctly.

Projects and tasks are sorted by "created at", if I remember correctly.

  • For all three lists, I'd suggest to keep the existing sorting and adding the ability to reverse the existing sorting
  • For projects and tasks we could add sorting alphabetically (and reverse) as an option
  • For clients I'd find a "last activity" sorting (and reverse) useful

What do you think?

te-online avatar Jul 09 '24 14:07 te-online

Hey, I was thinking it could be as simple as Nextcloud's default interface, like Files list: image i.e. 3 buttons, each with 2 effects that switch on click.

raph-topo avatar Jul 11 '24 12:07 raph-topo

That may be a little difficult, because I'm not showing the data in columns like the Files app 😊

But it's not a bad place to start to look for consistency with the rest of Nextcloud πŸ‘

te-online avatar Jul 13 '24 10:07 te-online