Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Change "Ban" to "Ban from room" to fix an inconsistency in the Admin Tools dialog #8281

Conversation

EECvision
Copy link
Contributor

@EECvision EECvision commented Apr 11, 2022

Fixes element-hq/element-web#20578

I have changed the Admin tools button "Ban" to "Ban from room" so as to be consistently phrased with Remove from room

Signed-off-by: Emmanuel Ezeka eec.studies@gmail.com


This PR currently has no changelog labels, so will not be included in changelogs.

A reviewer can add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is, or add Type: [enhancement/defect/task] to the description and I'll add them for you.

Preview: https://pr8281--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

@EECvision EECvision requested a review from a team as a code owner April 11, 2022 14:14
@EECvision
Copy link
Contributor Author

Hi @t3chguy, please can you tell me why I am getting the error?

Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've changed the string, but not the source file. Additionally, as noted in #7576, this needs to be space-aware.

The PR description should also not have the "Fixes $link" in a code block because it prevents github from working. The PR title should also be a sentence.

@EECvision
Copy link
Contributor Author

You've changed the string, but not the source file. Additionally, as noted in #7576, this needs to be space-aware.

The PR description should also not have the "Fixes $link" in a code block because it prevents github from working. The PR title should also be a sentence.

Alright, thank you. I will fix that.

@andybalaam andybalaam changed the title fix-admin-tools-phrase-inconsistency Change "Ban" to "Ban from room" to fix an inconsistency in the Admin Tools dialog Apr 11, 2022
@EECvision EECvision force-pushed the eecvision/admin-tools-phrase-inconsistency branch from f150d02 to 1182d1a Compare April 12, 2022 01:09
@codecov
Copy link

codecov bot commented Apr 12, 2022

Codecov Report

Merging #8281 (8e70bc0) into develop (7600182) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #8281      +/-   ##
===========================================
- Coverage    29.54%   29.53%   -0.01%     
===========================================
  Files          871      871              
  Lines        49986    49991       +5     
  Branches     12715    12720       +5     
===========================================
  Hits         14767    14767              
- Misses       35219    35224       +5     
Impacted Files Coverage Δ
src/components/views/right_panel/UserInfo.tsx 29.51% <0.00%> (-0.25%) ⬇️

@@ -653,7 +653,7 @@ const BanToggleButton = ({ room, member, startUpdating, stopUpdating }: Omit<IBa
room.isSpaceRoom() ? ConfirmSpaceUserActionDialog : ConfirmUserActionDialog,
{
member,
action: isBanned ? _t("Unban") : _t("Ban"),
action: isBanned ? _t("Unban") : _t("Ban from room"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely now ban is inconsistent from unban?

@@ -719,7 +719,7 @@ const BanToggleButton = ({ room, member, startUpdating, stopUpdating }: Omit<IBa
});
};

let label = _t("Ban");
let label = _t("Ban from room");
if (isBanned) {
label = _t("Unban");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

@@ -653,7 +653,7 @@ const BanToggleButton = ({ room, member, startUpdating, stopUpdating }: Omit<IBa
room.isSpaceRoom() ? ConfirmSpaceUserActionDialog : ConfirmUserActionDialog,
{
member,
action: isBanned ? _t("Unban") : _t("Ban"),
action: isBanned ? _t("Unban") : _t("Ban from room"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UserInfo is also shown for Spaces, so it may be from room or from space

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I am towards fixing it.

@EECvision EECvision force-pushed the eecvision/admin-tools-phrase-inconsistency branch from 1182d1a to 21dee1d Compare April 12, 2022 10:49
@turt2live
Copy link
Member

Please do not force push after review has been given. It makes review significantly harder and less likely to happen :(

@EECvision
Copy link
Contributor Author

Please do not force push after review has been given. It makes review significantly harder and less likely to happen :(

Okay, I'm sorry I didn't know. I will not do it again.

Revert the applied formatting.

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
@EECvision
Copy link
Contributor Author

Hi @t3chguy, I have committed your suggestions. Is there any other change I need to make in the PR?

@t3chguy t3chguy requested a review from turt2live April 13, 2022 09:27
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@turt2live turt2live merged commit 8eaae6b into matrix-org:develop Apr 14, 2022
@EECvision
Copy link
Contributor Author

Thanks!

Thanks!

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"remove from room" and "ban" are inconsistently phrased
3 participants