Skip to content
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

Tag order on overview not consistent #465

Open
Tagirijus opened this issue Apr 12, 2024 · 8 comments
Open

Tag order on overview not consistent #465

Tagirijus opened this issue Apr 12, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@Tagirijus
Copy link
Contributor

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.

@almarklein
Copy link
Owner

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 almarklein added the bug Something isn't working label Apr 12, 2024
@Tagirijus
Copy link
Contributor Author

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!

@almarklein
Copy link
Owner

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
Copy link
Owner

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.

@Tagirijus
Copy link
Contributor Author

Tagirijus commented Apr 12, 2024

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

@almarklein
Copy link
Owner

Relates to #244

@almarklein
Copy link
Owner

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

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

@Tagirijus
Copy link
Contributor Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants