-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.1] Actionlogs: Added parameter to disable relative timestamps. #31675
[4.1] Actionlogs: Added parameter to disable relative timestamps. #31675
Conversation
Do we really need to add another option :( |
I like to see the date and time, but think we just can display date and time. I see no advantage in the relative presentation - this relative presentation seems to be inspired by forum displays, where it makes more sense. |
Not necessarily - I'm open for alternative proposals. And I'm in favour of reducing our number of parameters wherever possible. I don't really like such relative date displays, especially when it's not "5 minutes ago", but "around 2 weeks ago", which might be 2 weeks, might be almost 4 weeks, nobody knows. And looking at the forum post and the comment by @chmst, I'm not alone. So my personal choice would be to get rid of the relative display and only show the exact timestamp. Should we go for one of the two ways and ignore the other user group? Or introduce a new parameter (in a form that right now has only 5 parameters, so it's not crowded - yet) to allow for a choice? |
Just change it to absolute dates, I see no reason to add an option for this. |
I find it very useful to see "5 minutes ago" etc so I dont have to do mental arithmetic and check my phone for the date. |
I have tested this item ✅ successfully on ff32892 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31675. |
I have tested this item ✅ successfully on ff32892 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31675. |
I think with the additional param this pr is fine like it is. |
it can be both at same time, without extra option, kind of: |
tooltip is not accessible |
|
When I have a statistical list in front of me I don't want to hover, sorry, stupid text values to see the real date in a tooltip that I can't copy. There's a date filter in that view. Simply add additional options there. |
Co-authored-by: Quy <[email protected]>
Co-authored-by: Quy <[email protected]>
I think the whole discussion here underlines the reason for the additional parameter, so both sides can choose their way without restricting the others.
As @ReLater wrote: Hiding the information in a tooltip / title (the way it is in J3) is even worse, because you have to hover over each single item to access the information. |
Yeap, exactly 😄
well, it is not possible to fulfill everyone's needs anyway 😉 Just drop the parameter, and display the date as everywhere on the site. |
I have tested this item ✅ successfully on bb6238c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31675. |
1 similar comment
I have tested this item ✅ successfully on bb6238c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31675. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31675. |
Is there anything that keeps this PR from being merged? Anything I could or should add here? |
I am moving this to 4.1, we are in beta and this is a new feature. Thank you all who have been working on this and bringing it to the state it is now. But if we want to get 4.0 out of the door we need to make a cut. Side note: this decision has be discussed in the production department and the maintainers team. It's not just mine even if I support the decision. |
Okay, I see you (PLT) have to draw the line somewhere. Looking forward to 4.0 and 4.1 then. :-) |
Thanks |
joomla/joomla-cms#30522 + joomla/joomla-cms#32223 + joomla/joomla-cms#31675 + joomla/joomla-cms#35378 + joomla/joomla-cms#35612 + joomla/joomla-cms#35715 + joomla/joomla-cms#35610 + joomla/joomla-cms#35607 + joomla/joomla-cms#35788 + joomla/joomla-cms#35647 + joomla/joomla-cms#35143 + joomla/joomla-cms#36135 + joomla/joomla-cms#35998 + joomla/joomla-cms#36173 + joomla/joomla-cms#36212 + joomla/joomla-cms#36208 + joomla/joomla-cms#36206 + joomla/joomla-cms#36205 + joomla/joomla-cms#36203 + joomla/joomla-cms#36192 + joomla/joomla-cms#36191 + joomla/joomla-cms#36228 + joomla/joomla-cms#36211 + joomla/joomla-cms#36271 + joomla/joomla-cms#36270 + joomla/joomla-cms#36245 + joomla/joomla-cms#36294 + joomla/joomla-cms#36244 + joomla/joomla-cms#36242 + joomla/joomla-cms#36296 + joomla/joomla-cms#36190 + joomla/joomla-cms#36474 + joomla/joomla-cms#36297 + joomla/joomla-cms#36480 + joomla/joomla-cms#36479 + joomla/joomla-cms#36551 + joomla/joomla-cms#36366 + joomla/joomla-cms#36589 + joomla/joomla-cms#36583 + joomla/joomla-cms#36328 + joomla/joomla-cms#36515 + joomla/joomla-cms#36555 + joomla/joomla-cms#36653 + joomla/joomla-cms#36660 + joomla/joomla-cms#36657 + joomla/joomla-cms#36637 + joomla/joomla-cms#35983 + joomla/joomla-cms#36704 + joomla/joomla-cms#36708 + joomla/joomla-cms#36700 +
Based on a request in the German support forum: https://forum.joomla.de/thread/12928-joomla-benutzeraktivit%C3%A4ten-datum-und-uhrzeit-protokollieren/
The actionlogs component displays date and time of an action relative to the current time ("X minutes/hours/days ago"). While this might be useful to some people, others prefer to see only the exact timestamp when the action happened. In J3, this timestamp is hidden in a tooltip. In J4, the display is better, as the timestamp is in small font below the relative one. But this becomes confusing and redundant again, at least for actions that happened more than 4 weeks ago. In this case, we have two times the same date in a different format:
Summary of Changes
As some users might be fine with the relative date format, I introduced a parameter in the configuration of com_actionlogs, that allows to disable the relative display. To not change current experience, it defaults to the current behaviour, i.e., displaying both relative and absolute date.
Testing Instructions
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Documentation Changes Required
Should be documented at https://docs.joomla.org/Help39:Components_User_Actionlogs_Options