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

[5.2] Enhance translation "Empty trash" #41119

Open
wants to merge 1 commit into
base: 5.2-dev
Choose a base branch
from

Conversation

chmst
Copy link
Contributor

@chmst chmst commented Jul 6, 2023

Pull Request for Issue #41106 .
Replacement of #41116.

Summary of Changes

Replace the text "Empty trash" as proposed in #41106.

Testing Instructions

Check a trash can before and after patch

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

grafik

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@Quy
Copy link
Contributor

Quy commented Jul 6, 2023

Is Permanently necessary? See under Users, Media, Smart Search where the button is Delete only?

@chmst
Copy link
Contributor Author

chmst commented Jul 6, 2023

TBH - I have no opinion here, only want to get rid of the "empty trash".
Agree that we say only "delete" in other cases. Would bee nice to get a few opinions.

@brianteeman
Copy link
Contributor

I am not too concerned about the selection. For me there is nothing wrong with the current text.

We put items in the trash (by changing the state)
Then we empty the trash.

That is the same language construct used in windows

@chmst
Copy link
Contributor Author

chmst commented Jul 6, 2023

Speaking for me:
When I empty a bin, I empty it completely, I don't pick out single items. This is why I would prefer the word "delete".
This is a UX thing, maybe @crystalenka s team can help.

Edit:

That is the same language construct used in windows

Windows does what I use to do with the bin "empty trash" == Empty completely.

@Quy
Copy link
Contributor

Quy commented Jul 8, 2023

Delete implies permanent so no need to mention it. See menu options when deleting a file in the recycle bin.

41119-delete

@chmst
Copy link
Contributor Author

chmst commented Jul 9, 2023

Interesting feature :) Changing the language string to "delete" is easy, of course.
But it is not the best solution. Because in users or menus we have the "delete" in the action dropdown.

If we are following the windows behaviour we must have:
The "empty trash" button which then really deletes the whole trash (after message "do you really want..." )
and a delete button in the action drop down menu.

This is a big action, as all our backend views are concerned.

@brianteeman
Copy link
Contributor

This is a big action, as all our backend views are concerned.

Which is why its never been done before. it is also a potentially big b/c break for 3pd

@HLeithner
Copy link
Member

HLeithner commented Jul 9, 2023

For me the problem is not the text, instead the way to get there, 9 clicks to delete an item is the problem not if it's called "empty trash" or "delete" or "burn it down the house".

Edit: it's 9 clicks instead of 7

@brianteeman
Copy link
Contributor

suggestions

remove the requirement to select an item before the empty trash button is active. if nothing is selected then everything is deleted. if something is selected then just delete the selected items

remove the "are you sure" confirmation. going from published to trashed should be enough of an opportunity to change your mind without being asked again

@HLeithner
Copy link
Member

Additional to brians suggestions:
Add a button to go directly to the trash filter and allow "shift" + "trash button" to directly delete items (like any system allows this) and change the text if shift button is hold down.

@chmst
Copy link
Contributor Author

chmst commented Jul 9, 2023

@HLeithner fully agree.
I would like a quick icon "thrash" in the dashboard which allows managing all trash in one step - like global checkin.
This would be self explaining also for newbies.

But not in scope here :)

@brianteeman
Copy link
Contributor

I would like a quick icon "thrash" in the dashboard which allows managing all trash in one step - like global checkin.

I tried to write that some time ago but my code was not good.

Additional to brians suggestions:
Add a button to go directly to the trash filter and allow "shift" + "trash button" to directly delete items (like any system allows this) and change the text if shift button is hold down.

if that is possible then great - not something I have seen in a web ui before

@chmst chmst added the UI/UX label Jul 9, 2023
@chmst
Copy link
Contributor Author

chmst commented Jul 9, 2023

allow "shift" + "trash button" to directly delete items (like any system allows this) and change the text if shift button is hold down.

This is a developer solution but I am advocate of normal users, I doubt if this is self-explaining and a11y ?

@HLeithner
Copy link
Member

if that is possible then great - not something I have seen in a web ui before

it's basically the same as the joomla shortcuts, something like this:

document.querySelector('body').addEventListener("keydown", (e) => {      
  if (e.key === "Shift") {
    result.innerText = "Shift Key Pressed";
  }
});

document.querySelector('body').addEventListener("keyup", (e) => {      
  if (e.key === "Shift") {
    result.innerText = "Shift Key Not Pressed";
  }
});

@HLeithner
Copy link
Member

allow "shift" + "trash button" to directly delete items (like any system allows this) and change the text if shift button is hold down.

This is a developer solution but I am advocate of normal users, I doubt if this is self-explaining and a11y ?

you can explain it in a guided tour, but it's also only an additonal way

@brianteeman
Copy link
Contributor

Removing the "are you sure" is a simple one line change in each component for example delete this line

Making the button deleteAll without having selected anything is a bigger change as that is in the library

@Quy Quy added the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Sep 7, 2023
@coolcat-creations
Copy link
Contributor

I love this PR, It confuses so much of my customers that its called Empty trash but does not do it

@HLeithner
Copy link
Member

Changing the meaning of a language string is a b/c break and not allowed at all per policy if we like to use "Delete" as string instead of "Empty Trash" then we need a new language string and use this one. Also "Delete Permanently" is redundant language as mentioned by @Quy

@HLeithner HLeithner changed the base branch from 5.0-dev to 5.1-dev September 30, 2023 22:49
@HLeithner
Copy link
Member

This pull request has been automatically rebased to 5.1-dev.

@RickR2H
Copy link
Member

RickR2H commented Oct 11, 2023

I have tested this item ✅ successfully on 500df90


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41119.

1 similar comment
@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on 500df90


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41119.

@richard67 richard67 removed the UI/UX label Nov 18, 2023
@richard67
Copy link
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41119.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Nov 18, 2023
@brianteeman
Copy link
Contributor

This should not be RTC

  1. @HLeithner points out that changing the meaning of a language stribg is a b/c break
  2. @Quy points out that "permanently" is a redundant word. You can'd delete something unpermanently

@richard67 richard67 removed Feature RTC This Pull Request is Ready To Commit Language Change This is for Translators UI/UX PR-5.1-dev labels Nov 18, 2023
@richard67
Copy link
Member

Back to pending


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41119.

@richard67 richard67 added Feature Language Change This is for Translators RMDQ ReleaseManagerDecisionQueue UI/UX PR-5.1-dev labels Nov 18, 2023
@Quy Quy added the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Nov 18, 2023
@HLeithner
Copy link
Member

Yes please create a new translation string, and make it simple, maybe use "Nuke" ;-)

@paternax
Copy link

I have tested this item ✅ successfully on 500df90


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41119.

1 similar comment
@fgsw
Copy link

fgsw commented Jan 11, 2024

I have tested this item ✅ successfully on 500df90


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41119.

@tecpromotion
Copy link
Contributor

Yes please create a new translation string, and make it simple, maybe use "Nuke" ;-)

@chmst is that still up to date? Any plans for 5.1?

@Quy
Copy link
Contributor

Quy commented Feb 11, 2024

Maybe do it like Clear Cache. Add Delete and either keep Empty Trash or change to Delete All.

41119

@crimle
Copy link

crimle commented Feb 24, 2024

I have tested this item ✅ successfully on 500df90


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41119.

@HLeithner HLeithner changed the base branch from 5.1-dev to 5.2-dev April 24, 2024 09:08
@HLeithner
Copy link
Member

This pull request has been automatically rebased to 5.2-dev.

@HLeithner HLeithner changed the title [5.0] Enhance translation "Empty trash" [5.2] Enhance translation "Empty trash" Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Language Change This is for Translators PR-5.1-dev PR-5.2-dev RMDQ ReleaseManagerDecisionQueue UI/UX Updates Requested Indicates that this pull request needs an update from the author and should not be tested.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet