timetagger icon indicating copy to clipboard operation
timetagger copied to clipboard

Tag order on overview not consistent

Open Tagirijus opened this issue 2 years ago • 8 comments

I came up with the idea for me to make tags start with 1/ for clients and 2/ for projects so that on the overview and also on the color representation on the timeline will have the correct order and color from left to right - and a consistent one. That way I can easily see without reading for which client+project I worked when, for example.

Yet now I faced the situation that it can happen that the order on the overview (on the timeline as well yet for the color order not the word/tag order, though) suddenly changes without any clue about why. See this GIF I made:

timetagger order bug

Look at the "konzeption" tag, which jumps around on the overview and its color on the timeline as well.

I am using v23.9.2 - did not test on staging yet.

Tagirijus avatar Apr 12 '24 08:04 Tagirijus

mmm, the order in the timeline can be because it's sorted (in part) by total duration. But I would expect the order of the colors to remain the same 🤔

almarklein avatar Apr 12 '24 12:04 almarklein

In case I might not have been clear enough (sorry then): yes I mean the order from left to right. Not the order from top to bottom. Ordering the latter one by duration seems totally logic to me after all!

Tagirijus avatar Apr 12 '24 12:04 Tagirijus

Ah! Now I also realize what's going on. The logic tries to group the items in the overview based on the tags that are most-used in the current time period. So If you did a few different things for clientA, it will move "#clientA" to the left and group these things together. But when one of the things you did becomes the tag with most duration ("konzeption" in your case) it will group based on that, and put the clients as sub-tags.

almarklein avatar Apr 12 '24 12:04 almarklein

One big assumption in this behavior is that there is no order in the tags on a record.

In summary: this behavior is intentional. Though that does not mean it hurts a particular use-case, so this may still be a valid issue, and we can explore the possibilities.

almarklein avatar Apr 12 '24 12:04 almarklein

Ok, so it's a sorting from left to right not based on the duration or name, but on the amount of entries? This might get handy in some cases or for some users, I see.

Maybe there could be a clever integrated switch somewhere to switch this sorting to something different. Just a quick thinking here.

Also this reminds me another (maybe related) thing I wanted to ask. I will open another discussion thread so that other interested users might find it as well.

Edit: Started the discussion here: #466

Tagirijus avatar Apr 12 '24 13:04 Tagirijus

Relates to #244

almarklein avatar Apr 12 '24 14:04 almarklein

not based on the duration or name, but on the amount of entries?

I believe its the total duration, not number of entries.

almarklein avatar Apr 12 '24 14:04 almarklein

Ah I see. It's kind of tricky to grasp, since it somehow feels like it might be the same ... yet it isn't, haha. But I guess I understand a bit more what happens there. At least that!

Tagirijus avatar Apr 12 '24 14:04 Tagirijus