Make the warning text for deletion operations emphasize its permanency and irreversibility
ClosedPublic

Authored by ngraham on Apr 21 2018, 7:40 PM.

Details

Test Plan

Delete a single file:

Delete multiple files:

Empty the trash:

Diff Detail

Repository
R241 KIO
Branch
more-serious-delete-text (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
ngraham created this revision.Apr 21 2018, 7:40 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 21 2018, 7:40 PM
ngraham requested review of this revision.Apr 21 2018, 7:40 PM
ngraham edited the test plan for this revision. (Show Details)Apr 21 2018, 7:41 PM
ngraham updated this revision to Diff 32748.Apr 21 2018, 9:16 PM

Move the warnings to their own line so they're not missed, and also to improve the presentation

ngraham edited the test plan for this revision. (Show Details)Apr 21 2018, 9:16 PM
src/widgets/jobuidelegate.cpp
229

Please use semantic markup and the <nl/> tag instead of \n, see https://api.kde.org/frameworks/ki18n/html/prg_guide.html#kuit_markup

ngraham updated this revision to Diff 32885.Apr 23 2018, 1:47 PM

Use semantic markup tags

ngraham edited the test plan for this revision. (Show Details)Apr 23 2018, 1:47 PM
ngraham marked an inline comment as done.
ngraham added inline comments.
src/widgets/jobuidelegate.cpp
229

Couldn't get <nl/> working, so I hope <p> tags are okay.

elvisangelaccio requested changes to this revision.Apr 25 2018, 11:58 AM
elvisangelaccio added inline comments.
src/widgets/jobuidelegate.cpp
229

Nope, see the following warnings:

"Tag 'p' is not defined in message {<__kuit_internal_top__><p>Do you really want to permanently delete this item?</p...}."
"Tag 'p' is not defined in message {<__kuit_internal_top__><p>Do you really want to permanently delete this item?</p...}."
"Tag 'b' is not defined in message {<__kuit_internal_top__><p>Do you really want to permanently delete this item?</p...}."

What we need is to use xi18ncp() with @info as context, <nl/> instead of <p></p> and <emphasis strong='true'></emphasis> instead of <b></b>.

This revision now requires changes to proceed.Apr 25 2018, 11:58 AM
ngraham updated this revision to Diff 33074.Apr 25 2018, 2:16 PM
ngraham marked an inline comment as done.

Do this correctly

ngraham edited the test plan for this revision. (Show Details)Apr 25 2018, 2:18 PM
ngraham marked 2 inline comments as done.

Thanks for your patience, Elvis. Your experience and guidance is much appreciated.

-1 What about "permanently" do you not understand. Also -1000 for bold text.

ngraham added a comment.EditedApr 25 2018, 2:28 PM
  1. We already have the sentence "This action cannot be undone" in the empty trash dialog alongside the word "permanently". This patch just makes the similarly destructive delete action say the same thing.
  1. It's well known that users barely read this kind of text, if at all. They only tend to remember parts of the text that are at the beginning or end, and the word "permanently" is buried in the middle. Regardless, I think the extra sentence "This action cannot be undone" is important to emphasize. This is an irreversible destructive action, after all.
  1. The purpose of making the text bold was to draw the casual user's eye to it and make them remember it. If there's anything about this dialog that we want them to remember, it's that they can't undo it and are on their own if they make a mistake.

Besides, people like you (and me) who find this kind of hand-holding annoying can (and likely do) just check the checkbox for "Do not ask again". Problem solved.

How about adding "Permanently" to the action button?

And no I don't want to turn off confirmation for deleting files.

makes the similarly destructive delete action say the same thing.

I see. It's not bold, though.

Looking at it again, I think you convinved me. Just mind the string freeze (two weeks before tag), push it only after the upcoming Frameworks tag.

Thanks Kai! I'll wait until after tagging to land it, assuming @elvisangelaccio is satisfied by that point.

I liked more the version with two newlines before the bold sentence, is there a reason why you changed to only one?

src/widgets/jobuidelegate.cpp
239

There is a missing slash in the <nl> tag.

ngraham updated this revision to Diff 33310.Apr 29 2018, 10:04 PM

Add extra linebreak and fix a tag

ngraham marked an inline comment as done.Apr 29 2018, 10:04 PM
ngraham edited the test plan for this revision. (Show Details)
elvisangelaccio accepted this revision.Apr 30 2018, 10:31 PM
This revision is now accepted and ready to land.Apr 30 2018, 10:31 PM

Thanks, will push after tagging next week.

5.46 has been tagged; landing this today.

ngraham closed this revision.May 5 2018, 5:19 PM