Skip to content

Commit

Permalink
cci: hide user by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Sep 10, 2023
1 parent 97bb369 commit bb453f3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions i18n/settings/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
"deputy.setting.user.cci.enablePageToolbar.description": "Enables the page toolbar, which is used to quickly show tools, analysis options, and related case information on a page that is the subject of a CCI investigation.",
"deputy.setting.user.cci.showCvLink.name": "Show \"cv\" (\"copyvios\") link for revisions",
"deputy.setting.user.cci.showCvLink.description": "Show a \"cv\" link next to \"cur\" and \"prev\" on revision rows. This link will only appear if this wiki is configured to use Earwig's Copyvio Detector.",
"deputy.setting.user.cci.showUsername.name": "Show username",
"deputy.setting.user.cci.showUsername.description": "Show the username of the user who made the edit on revision rows. This may be redundant for cases which only have one editor.",
"deputy.setting.user.cci.forceUtc.name": "Force UTC time",
"deputy.setting.user.cci.forceUtc.description": "Forces Deputy to use UTC time whenever displaying dates and times, irregardless of your system's timezone or your MediaWiki time settings.",
"deputy.setting.user.cci.signingBehavior.name": "Row signing behavior",
Expand Down
6 changes: 6 additions & 0 deletions src/config/UserConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ export default class UserConfiguration extends ConfigurationBase {
type: 'checkbox'
}
} ),
showUsername: new Setting<boolean, boolean>( {
defaultValue: false,
displayOptions: {
type: 'checkbox'
}
} ),
forceUtc: new Setting<boolean, boolean>( {
defaultValue: false,
displayOptions: {
Expand Down
8 changes: 5 additions & 3 deletions src/ui/root/DeputyContributionSurveyRevision.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,11 @@ export default class DeputyContributionSurveyRevision
timestamp={ this.revision.timestamp }
/><ChangesListDate
revision={ this.revision }
/> <ChangesListUser
user={ this.revision.user }
/> <span
/> {
window.deputy.config.cci.showUsername.get() && <ChangesListUser
user={ this.revision.user }
/>
} <span
class="mw-changeslist-separator"
/> <ChangesListBytes
size={ this.revision.size }
Expand Down

0 comments on commit bb453f3

Please sign in to comment.