-
Notifications
You must be signed in to change notification settings - Fork 733
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
Update language about delete tasks #8065
Update language about delete tasks #8065
Conversation
Thanks so much for your detailed feedback @radinamatic! This is really helpful both for this PR and for me as I continue to learn about UI - so many ideas to keep for future reference 😊 I'll work on implementing these updates today. And, aside, I totally agree with finding the lack of a "." at the end of complete sentences to be extremely weird, even though I know it's in the material guidelines. Maybe something to raise at a KDS meeting? 😉 |
09659c4
to
364b1e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing to note is that since these strings are the exact same in all cases and used across the whole coach and device, we should add the string to the commonCoreStrings.js file and then use them in the components using the coreString
method on that mixin like it already is being used in DeleteResourcesModal
kolibri/kolibri/plugins/device/assets/src/views/SelectContentPage/DeleteResourcesModal.vue
Line 5 in 8f8eb3d
:submitText="coreString('deleteAction')" |
kolibri/kolibri/plugins/device/assets/src/views/SelectContentPage/DeleteResourcesModal.vue
Lines 32 to 36 in 8f8eb3d
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings'; | |
export default { | |
name: 'DeleteResourcesModal', | |
mixins: [commonCoreStrings], |
So if you add that string to the common module, it'll be available to any component mixing in that commonCoreStrings
module.
I also suggest maybe changing the noUndo
key to something a bit clearer about the purpose of the string. cannotUndoActionWarning
or something similar might make it a bit clearer to the team what the purpose of that string is. It also helps avoid ambiguity when strings might have identical literal English text, but the translation might differ depending on context.
Additionally, when you create the string, you can add some context to it as well like the snippet below. I don't think it's necessary in this situation, especially if the key is renamed to something more descriptive, but just wanted to share:
kolibri/kolibri/core/assets/src/mixins/commonCoreStrings.js
Lines 19 to 22 in aada218
registerAction: { | |
message: 'Register', | |
context: 'Register a facility to the Kolibri Data Portal', | |
}, |
@@ -66,6 +67,7 @@ | |||
assignmentQuestion: 'Assign quiz to', | |||
deleteExamTitle: 'Delete quiz', | |||
deleteExamDescription: "Are you sure you want to delete '{ title }'?", | |||
noUndo: ' This action cannot be undone', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a space between the opening '
and This
here.
@@ -42,6 +43,7 @@ | |||
$trs: { | |||
modalTitle: 'Delete class', | |||
confirmation: "Are you sure you want to delete '{ classname }'?", | |||
noUndo: ' This action cannot be undone', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space here as well
➕ ➕ ➕ to all 3 suggestions by @nucleogenesis :
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look great! Thanks Marcella!
Summary
This PR updates the modals for deletion tasks to include a warning that tasks cannot be cancelled or undone, as applicable.
Fixes #6727
Example of before/after from one of the modals
Before:
After:
Reviewer guidance
You can confirm the new strings do not have any typos :) and manually QA by checking the modals that pop up when deleting:
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)