This commit is contained in:
bakhirev 2024-08-22 01:09:00 +03:00
parent 11f80e167e
commit 0625e577e7
15 changed files with 43 additions and 35 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,10 +1,10 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { t } from 'ts/helpers/Localization';
import style from '../index.module.scss';
function IsStaff() {
const { t } = useTranslation();
return (
<>
<p className={style.nothing_found_title}>

View file

@ -11,7 +11,7 @@
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
height: 80%;
}
&_icon {

View file

@ -5,48 +5,55 @@ const PROPERTIES = [
{ property: 'daysLosses', sort: -1 },
{ property: 'commits', sort: 1 },
{ property: 'tasks', sort: 1, isNeedTasks: true },
{ property: 'moneyAll', sort: 1 },
{ property: 'moneyWorked', sort: 1 },
{ property: 'moneyLosses', sort: -1 },
{ property: 'weekendPayment', sort: 1 },
{ property: 'moneyAll', sort: 1, isNotStaff: true },
{ property: 'moneyWorked', sort: 1, isNotStaff: true },
{ property: 'moneyLosses', sort: -1, isNotStaff: true },
{ property: 'weekendPayment', sort: 1, isNotStaff: true },
{
property: 'daysForTask',
sort: -1,
isNotStaff: true,
isNeedTasks: true,
formatter: (user: any) => user.daysForTask,
},
{
property: 'commitsForTask',
sort: 1,
isNotStaff: true,
isNeedTasks: true,
formatter: (user: any) => user.commits / user.tasks.length,
},
{
property: 'linesForTask',
property: 'changesForTask',
sort: -1,
isNotStaff: true,
isNeedTasks: true,
formatter: (user: any) => user.changesForTask,
},
{
property: 'speedMaxTasks',
sort: 1,
isNotStaff: true,
isNeedTasks: true,
formatter: (user: any, timestamp: any) => timestamp.tasksByTimestampCounter.max,
},
{
property: 'speedMaxCommits',
sort: 1,
isNotStaff: true,
formatter: (user: any, timestamp: any) => timestamp.commitsByTimestampCounter.max,
},
{
property: 'moneyForTask',
sort: 1,
sort: -1,
isNotStaff: true,
isNeedTasks: true,
formatter: (user: any) => user.moneyWorked / user.tasks.length,
},
{
property: 'moneyForCommit',
sort: 1,
sort: -1,
isNotStaff: true,
formatter: (user: any) => user.moneyWorked / user.commits,
},
];
@ -54,7 +61,8 @@ const PROPERTIES = [
function getValues(config: any, dataGripByTimestamp: any) {
return (user: any) => {
const timestamp = dataGripByTimestamp.statisticByAuthor[user.author];
if (config.isNeedTasks && !user.tasks.length) return NaN;
if ((config.isNeedTasks && !user.tasks.length)
|| (config.isNotStaff && user.isStaff)) return NaN;
if (config.formatter) {
return config.formatter(user, timestamp);

View file

@ -67,8 +67,8 @@ const Speed = observer(({ user }: IPersonCommonProps): React.ReactElement => {
title="page.person.speed.line.title"
description="page.person.speed.line.description"
scoring={{
value: scoring.linesForTask,
total: scoringTotal.linesForTask,
value: scoring.changesForTask,
total: scoringTotal.changesForTask,
}}
/>
<CardWithBanner />

View file

@ -15,10 +15,10 @@ export default `
§ uiKit.nothingFound.common.console: Aufgabennummer Typ(Module): Erläuterung
§ uiKit.nothingFound.common.example: Zum Beispiel:
§ uiKit.nothingFound.staff.title: Keine Daten für diesen Mitarbeiter
§ uiKit.nothingFound.staff.description1:
§ uiKit.nothingFound.staff.description1
Er hat nicht an allen Werktagen Änderungen vorgenommen. Deshalb erhielt er den Status "Assistent".
Die Statistiken eines Mitarbeiters mit diesem Status können nicht berücksichtigt werden. Sein Beitrag ist gering.
§ uiKit.nothingFound.staff.description2:
§ uiKit.nothingFound.staff.description2
Das System berechnet für ihn keine Anzahl von Indikatoren.
Wenn dies ein Fehler ist und die Statistiken für diesen Mitarbeiter berücksichtigt werden müssen, gehen Sie zu «Einstellungen» und ändern Sie den Typ des Mitarbeiters.
§ common.title: Git Statistik

View file

@ -16,11 +16,11 @@ export default `
§ uiKit.nothingFound.common.console: Task_number type(feature): description
§ uiKit.nothingFound.common.example: For example:
§ uiKit.nothingFound.staff.title: No data for this employee
§ uiKit.nothingFound.staff.description1:
§ uiKit.nothingFound.staff.description1
They made edits not every working day and received the "Assistant" status.
The work of employees with such status on this project can be neglected as their contribution is insignificant in the general context.
§ uiKit.nothingFound.staff.description2:
§ uiKit.nothingFound.staff.description2
Therefore, the system does not calculate a number of indicators for him.
If this is an error and this employee needs to be calculated as usual, go to the Settings section and change his type.

View file

@ -15,10 +15,10 @@ export default `
§ uiKit.nothingFound.common.console: Nombre_tipo de tarea(módulos): explicación
§ uiKit.nothingFound.common.example: Por ejemplo:
§ uiKit.nothingFound.staff.title: No hay datos para este empleado
§ uiKit.nothingFound.staff.description1:
§ uiKit.nothingFound.staff.description1
Hacía cambios no todos los días laborables. Por lo tanto, recibió el estatus Ayudante.
La estadística del empleado con este estatus puede no ser tenida en cuenta. Su impacto es insignificante.
§ uiKit.nothingFound.staff.description2:
§ uiKit.nothingFound.staff.description2
El sistema no calcula para él una serie de indicadores.
Si es un error y se necesita tener en cuenta los datos estadísticos de este empleado, vaya a la sección Configuración y cambie su tipo.
§ common.title: Git estadísticas

View file

@ -19,7 +19,7 @@ export default `
El no hizo cambios todos los días laborables y obtuvo el estado Asistente.
El trabajo de los colaboradores con este estatus en este proyecto puede desestimarse, ya que su aporte en el conjunto es insignificante.
§ uiKit.nothingFound.staff.description2:
§ uiKit.nothingFound.staff.description2
Поэтому система не рассчитывает для него ряд показателей.
Если это ошибка и данного сотрудника нужно рассчитать как обычного, перейдите в раздел «Настройки» и измените его тип.

View file

@ -15,10 +15,10 @@ export default `
§ uiKit.nothingFound.common.console: Numéro_adresse type(modules): explication
§ uiKit.nothingFound.common.example: Par exemple:
§ uiKit.nothingFound.staff.title: Il n & apos; y a pas de données sur ce fonctionnaire.
§ uiKit.nothingFound.staff.description1:
§ uiKit.nothingFound.staff.description1
Il a apporté des modifications pas tous les jours ouvrable. Par conséquent, il a reçu le statut «Assistant».
La statistique du collaborateur avec ce statut peut ne pas être prise en compte. Son impact est insignifiant.
§ uiKit.nothingFound.staff.description2:
§ uiKit.nothingFound.staff.description2
Le système ne calcule pas pour lui plusieurs indicateurs.
Si cest une erreur et que la statistique pour ce collaborateur doit être prise en compte, accédez à la section Paramètres et modifiez son type.
§ common.title: Git statistique

View file

@ -15,10 +15,10 @@ export default `
§ uiKit.nothingFound.common.console: Task_numberタイプ():
§ uiKit.nothingFound.common.example: 説明:
§ uiKit.nothingFound.staff.title: この従業員のデータはありません
§ uiKit.nothingFound.staff.description1:
§ uiKit.nothingFound.staff.description1
правки
§ uiKit.nothingFound.staff.description2:
§ uiKit.nothingFound.staff.description2
§ common.title: Git

View file

@ -15,10 +15,10 @@ export default `
§ uiKit.nothingFound.common.console: Número da tarefa_tipo(módulo): explicação
§ uiKit.nothingFound.common.example: Por exemplo:
§ uiKit.nothingFound.staff.title: Não dados para este funcionário
§ uiKit.nothingFound.staff.description1:
§ uiKit.nothingFound.staff.description1
Ele não fazia alterações todos os dias de trabalho. Por isso, ele recebeu o status Assistente.
As estatísticas de um trabalhador com esse status não precisam ser registradas. Sua influência é insignificante.
§ uiKit.nothingFound.staff.description2:
§ uiKit.nothingFound.staff.description2
O sistema não calcula uma série de indicadores para ele.
Se este for um erro e a estatística para esse funcionário precisar ser levada em consideração, para a seção Configurações e altere o seu tipo.
§ common.title: Git estatística

View file

@ -15,10 +15,10 @@ export default `
§ uiKit.nothingFound.common.console: Номерадачи тип(фича): пояснение
§ uiKit.nothingFound.common.example: Например:
§ uiKit.nothingFound.staff.title: Нет данных для этого сотрудника
§ uiKit.nothingFound.staff.description1:
§ uiKit.nothingFound.staff.description1
Он вносил правки не каждый рабочий день и получил статус «Помошник».
Работой сотрудников с таким статусом по данному проекту можно пренебречь, т.к. его влад на общем фоне незначителен.
§ uiKit.nothingFound.staff.description2:
§ uiKit.nothingFound.staff.description2
Поэтому система не рассчитывает для него ряд показателей.
Если это ошибка и данного сотрудника нужно рассчитать как обычного, перейдите в раздел «Настройки» и измените его тип.
§ common.title: Git статистика

View file

@ -15,10 +15,10 @@ export default `
§ uiKit.nothingFound.common.console: 发行编号类别():
§ uiKit.nothingFound.common.example: 例如:
§ uiKit.nothingFound.staff.title: 没有这个员工的数据
§ uiKit.nothingFound.staff.description1:
§ uiKit.nothingFound.staff.description1
§ uiKit.nothingFound.staff.description2:
§ uiKit.nothingFound.staff.description2
§ common.title: Git