diff --git a/src/ts/components/Console/index.module.scss b/src/ts/components/Console/index.module.scss index 2c3d986..28a00a0 100644 --- a/src/ts/components/Console/index.module.scss +++ b/src/ts/components/Console/index.module.scss @@ -37,7 +37,7 @@ display: inline-block; width: 16px; height: 16px; - margin: 6px 8px 0 0; + margin: 8px 8px 0 0; box-sizing: border-box; border-radius: 8px; border: 1px solid #B5B5B5; diff --git a/src/ts/helpers/Depersonalized/FakeName.ts b/src/ts/helpers/Depersonalized/FakeName.ts index 49f4b2f..473ce37 100644 --- a/src/ts/helpers/Depersonalized/FakeName.ts +++ b/src/ts/helpers/Depersonalized/FakeName.ts @@ -7,13 +7,16 @@ export default class FakeName { index: number = 0; - constructor(dictionary: string[]) { + newNamePrefix: string = ''; + + constructor(newNamePrefix: string, dictionary: string[]) { this.dictionary = dictionary; + this.newNamePrefix = newNamePrefix; } get(name: string) { if (!this.refOldNewName[name]) { - this.refOldNewName[name] = this.dictionary[this.index] || `${Math.random()}`; + this.refOldNewName[name] = this.dictionary[this.index] || `${this.newNamePrefix}${this.index}`; this.index += 1; } return this.refOldNewName[name]; diff --git a/src/ts/helpers/Depersonalized/index.ts b/src/ts/helpers/Depersonalized/index.ts index 1ec0b17..b19a6af 100644 --- a/src/ts/helpers/Depersonalized/index.ts +++ b/src/ts/helpers/Depersonalized/index.ts @@ -15,9 +15,9 @@ export default class Depersonalized { fakeTaskPrefix: any = null; constructor() { - this.fakeName = new FakeName(FAKE_AUTHORS); - this.fakeEmail = new FakeName(FAKE_EMAILS); - this.fakeTaskPrefix = new FakeName(FAKE_TASK_PREFIXES); + this.fakeName = new FakeName('User', FAKE_AUTHORS); + this.fakeEmail = new FakeName('user', FAKE_EMAILS); + this.fakeTaskPrefix = new FakeName('JIRA', FAKE_TASK_PREFIXES); } getCommit(commit: ICommit | ISystemCommit): ICommit | ISystemCommit { diff --git a/src/ts/pages/Team/components/Author.tsx b/src/ts/pages/Team/components/Author.tsx index 048c762..121aaab 100644 --- a/src/ts/pages/Team/components/Author.tsx +++ b/src/ts/pages/Team/components/Author.tsx @@ -77,8 +77,8 @@ function AuthorView({ response, updateSort, rowsForExcel, mode }: IAuthorViewPro { - if (row.isDismissed) return dismissed; if (row.isStaff) return staff; + if (row.isDismissed) return dismissed; return works; }} template={(value: string) => } diff --git a/src/ts/store/DataGrip.ts b/src/ts/store/DataGrip.ts index 0d44d0e..c338917 100644 --- a/src/ts/store/DataGrip.ts +++ b/src/ts/store/DataGrip.ts @@ -118,7 +118,6 @@ class DataGripStore implements IDataGripStore { fileGrip.addCommit(localCommit); }); - console.log(depersonalized.fakeTaskPrefix); fileGrip.updateTotalInfo(); dataGrip.updateTotalInfo(); achievements.updateByGrip(dataGrip, fileGrip);