Unverified Commit 63494a00 authored by chrisgarrity's avatar chrisgarrity Committed by GitHub

Merge pull request #4900 from chrisgarrity/auto-mod/update-copy

Auto mod/update copy
parents 6fca9c70 64c89b17
...@@ -12,9 +12,11 @@ ...@@ -12,9 +12,11 @@
p { p {
margin-bottom: 0; margin-bottom: 0;
line-height: 1.75rem; line-height: 1.75rem;
max-width: 36rem;
} }
.bottom-text { .bottom-text {
font-size: .875rem; font-size: .875rem;
width: 100%;
} }
.status-icon-class { .status-icon-class {
width: 28px; width: 28px;
......
...@@ -207,12 +207,12 @@ class ComposeComment extends React.Component { ...@@ -207,12 +207,12 @@ class ComposeComment extends React.Component {
muteStepContent: ['comment.vulgarity.content1', 'comment.vulgarity.content2'] muteStepContent: ['comment.vulgarity.content1', 'comment.vulgarity.content2']
}, },
general: { general: {
commentType: 'comment.type.disrespectful', commentType: 'comment.type.general',
muteStepHeader: 'comment.disrespectful.header', muteStepHeader: 'comment.general.header',
muteStepContent: ['comment.disrespectful.content1', 'comment.disrespectful.content2'] muteStepContent: ['comment.general.content1']
} }
}; };
if (this.state.muteType && messageInfo[this.state.muteType]) { if (this.state.muteType && messageInfo[this.state.muteType]) {
return messageInfo[this.state.muteType]; return messageInfo[this.state.muteType];
} }
......
...@@ -46,21 +46,20 @@ ...@@ -46,21 +46,20 @@
"project.cloudDataLink": "See Data", "project.cloudDataLink": "See Data",
"project.usernameBlockAlert": "This project can detect who is using it, through the \"username\" block. To hide your identity, sign out before using the project.", "project.usernameBlockAlert": "This project can detect who is using it, through the \"username\" block. To hide your identity, sign out before using the project.",
"project.inappropriateUpdate": "Hmm...the bad word detector thinks there is a problem with your text. Please change it and remember to be respectful.", "project.inappropriateUpdate": "Hmm...the bad word detector thinks there is a problem with your text. Please change it and remember to be respectful.",
"comment.type.disrespectful": "Scratch thinks your most recent comment was disrespectful.", "comment.type.general": "It appears that your most recent comment didn't follow the Scratch Community Guidelines.",
"comment.disrespectful.header": "Make sure to be friendly and respectful when using Scratch.", "comment.general.header": "We encourage you to post comments that follow the Scratch Community Guidelines.",
"comment.disrespectful.content1": "The Scratch comment filter thinks your comment was disrespectful.", "comment.general.content1": "On Scratch, it's important for comments to be kind, to be appropriate for all ages, and to not contain spam.",
"comment.disrespectful.content2": "Remember: There is a person behind every Scratch account and unfriendly comments can really hurt someone's feelings.", "comment.type.pii": "Your most recent comment appeared to be sharing or asking for private information.",
"comment.type.pii": "The Scratch comment filter thought your most recent comment was sharing or asking for private information.", "comment.pii.header": "Please be sure not to share private information on Scratch.",
"comment.pii.header": "Make sure not to share private information on Scratch.", "comment.pii.content1": "It appears that you were sharing or asking for private information.",
"comment.pii.content1": "The Scratch comment filter thinks that in your comment, you were sharing or asking for private information.",
"comment.pii.content2": "Things you share on Scratch can be seen by everyone, and can appear in search engines. Private information can be used by other people in harmful ways, so it’s important to keep it private.", "comment.pii.content2": "Things you share on Scratch can be seen by everyone, and can appear in search engines. Private information can be used by other people in harmful ways, so it’s important to keep it private.",
"comment.pii.content3": "This is a serious safety issue.", "comment.pii.content3": "This is a serious safety issue.",
"comment.type.unconstructive": "The Scratch comment filter thought your most recent comment was saying something bad about someone’s project.", "comment.type.unconstructive": "It appears that your most recent comment was saying something that might have been hurtful.",
"comment.unconstructive.header": "Make sure to be supportive when commenting on other people’s projects", "comment.unconstructive.header": "We encourage you to be supportive when commenting on other people’s projects",
"comment.unconstructive.content1": "The Scratch comment filter thinks your comment was saying something bad or mean about someone’s project.", "comment.unconstructive.content1": "It appears that your comment was saying something that might have been hurtful.",
"comment.unconstructive.content2": "If you think something could be better, you can say something you like about the project, and make a suggestion about how to improve it.", "comment.unconstructive.content2": "If you think something could be better, you can say something you like about the project, and make a suggestion about how to improve it.",
"comment.type.vulgarity": "The Scratch comment filter thought your most recent comment contained a bad word.", "comment.type.vulgarity": "Your most recent comment appeared to include a bad word.",
"comment.vulgarity.header": "Make sure to use language that’s appropriate for all ages", "comment.vulgarity.header": "We encourage you to use language that’s appropriate for all ages.",
"comment.vulgarity.content1": "The Scratch comment filter thinks your comment contains a bad word.", "comment.vulgarity.content1": "It appears that your comment contains a bad word.",
"comment.vulgarity.content2": "Scratch has users of all ages, so it’s important to use language that is appropriate for all Scratchers." "comment.vulgarity.content2": "Scratch has users of all ages, so it’s important to use language that is appropriate for all Scratchers."
} }
...@@ -347,12 +347,12 @@ describe('Compose Comment test', () => { ...@@ -347,12 +347,12 @@ describe('Compose Comment test', () => {
test('getMuteMessageInfo: muteType not set', () => { test('getMuteMessageInfo: muteType not set', () => {
const commentInstance = getComposeCommentWrapper({}).instance(); const commentInstance = getComposeCommentWrapper({}).instance();
expect(commentInstance.getMuteMessageInfo().commentType).toBe('comment.type.disrespectful'); expect(commentInstance.getMuteMessageInfo().commentType).toBe('comment.type.general');
}); });
test('getMuteMessageInfo: muteType set to something we don\'t have messages for', () => { test('getMuteMessageInfo: muteType set to something we don\'t have messages for', () => {
const commentInstance = getComposeCommentWrapper({}).instance(); const commentInstance = getComposeCommentWrapper({}).instance();
commentInstance.setState({muteType: 'spaghetti'}); commentInstance.setState({muteType: 'spaghetti'});
expect(commentInstance.getMuteMessageInfo().commentType).toBe('comment.type.disrespectful'); expect(commentInstance.getMuteMessageInfo().commentType).toBe('comment.type.general');
}); });
}); });
...@@ -7,9 +7,9 @@ import Modal from '../../../src/components/modal/base/modal'; ...@@ -7,9 +7,9 @@ import Modal from '../../../src/components/modal/base/modal';
describe('MuteModalTest', () => { describe('MuteModalTest', () => {
const defaultMessages = { const defaultMessages = {
commentType: 'comment.type.disrespectful', commentType: 'comment.type.general',
muteStepHeader: 'comment.disrespectful.header', muteStepHeader: 'comment.general.header',
muteStepContent: ['comment.disrespectful.content1', 'comment.disrespectful.content2'] muteStepContent: ['comment.general.content1']
}; };
test('Mute Modal rendering', () => { test('Mute Modal rendering', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment