mirror of
https://github.com/bakhirev/assayo.git
synced 2025-09-01 18:19:43 +00:00
update
This commit is contained in:
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
|
@ -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}>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: 80%;
|
||||
}
|
||||
|
||||
&_icon {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 />
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
Поэтому система не рассчитывает для него ряд показателей.
|
||||
Если это ошибка и данного сотрудника нужно рассчитать как обычного, перейдите в раздел «Настройки» и измените его тип.
|
||||
|
||||
|
|
|
@ -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 c’est 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
|
||||
|
|
|
@ -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 統計
|
||||
|
|
|
@ -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 há 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, vá para a seção “Configurações” e altere o seu tipo.
|
||||
§ common.title: Git estatística
|
||||
|
|
|
@ -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 статистика
|
||||
|
|
|
@ -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 统计数字
|
||||
|
|
Loading…
Add table
Reference in a new issue