Add 15/30 minutes time spent reports (#10675)

* Add 15/30 minutes time spent reports

Signed-off-by: Artem Savchenko <armisav@gmail.com>

* Set default employee

Signed-off-by: Artem Savchenko <armisav@gmail.com>

---------

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2026-03-24 12:21:48 +07:00
committed by GitHub
parent deeb8bb545
commit 355b0e70ac
14 changed files with 21 additions and 2 deletions
+1
View File
@@ -254,6 +254,7 @@
"SevenHoursLength": "Sedm hodin",
"EightHoursLength": "Osm hodin",
"HourLabel": "h",
"MinuteLabel": "m",
"Saved": "Uloženo...",
"CreatedIssue": "Úkol vytvořen",
"CreatedSubIssue": "Podúkol vytvořen",
+1
View File
@@ -264,6 +264,7 @@
"SevenHoursLength": "Sieben Stunden",
"EightHoursLength": "Acht Stunden",
"HourLabel": "Std",
"MinuteLabel": "Min",
"Saved": "Gespeichert...",
"CreatedIssue": "Aufgabe erstellt",
"CreatedSubIssue": "Unteraufgabe erstellt",
+1
View File
@@ -264,6 +264,7 @@
"SevenHoursLength": "Seven Hours",
"EightHoursLength": "Eight Hours",
"HourLabel": "h",
"MinuteLabel": "m",
"Saved": "Saved...",
"CreatedIssue": "Created issue",
"CreatedSubIssue": "Created sub-issue",
+1
View File
@@ -247,6 +247,7 @@
"SevenHoursLength": "Siete horas",
"EightHoursLength": "Ocho horas",
"HourLabel": "h",
"MinuteLabel": "m",
"Saved": "Guardado...",
"CreatedIssue": "Problema creado",
"CreatedSubIssue": "Sub-problema creado",
+1
View File
@@ -247,6 +247,7 @@
"SevenHoursLength": "Sept heures",
"EightHoursLength": "Huit heures",
"HourLabel": "h",
"MinuteLabel": "m",
"Saved": "Enregistré...",
"CreatedIssue": "Issue créée",
"CreatedSubIssue": "Sub-issue créée",
+1
View File
@@ -247,6 +247,7 @@
"SevenHoursLength": "Sette ore",
"EightHoursLength": "Otto ore",
"HourLabel": "h",
"MinuteLabel": "m",
"Saved": "Salvato...",
"CreatedIssue": "Issue creata",
"CreatedSubIssue": "Subissue creata",
+1
View File
@@ -247,6 +247,7 @@
"SevenHoursLength": "7時間",
"EightHoursLength": "8時間",
"HourLabel": "時間",
"MinuteLabel": "分",
"Saved": "保存済み...",
"CreatedIssue": "イシューを作成しました",
"CreatedSubIssue": "子イシューを作成しました",
+1
View File
@@ -247,6 +247,7 @@
"SevenHoursLength": "Sete Horas",
"EightHoursLength": "Oito Horas",
"HourLabel": "h",
"MinuteLabel": "m",
"Saved": "Guardado...",
"CreatedIssue": "Problema criado",
"CreatedSubIssue": "Sub-problema criado",
+1
View File
@@ -247,6 +247,7 @@
"SevenHoursLength": "Sete Horas",
"EightHoursLength": "Oito Horas",
"HourLabel": "h",
"MinuteLabel": "m",
"Saved": "Guardado...",
"CreatedIssue": "Problema criado",
"CreatedSubIssue": "Sub-problema criado",
+1
View File
@@ -264,6 +264,7 @@
"SevenHoursLength": "Семь Часов",
"EightHoursLength": "Восемь Часов",
"HourLabel": "ч",
"MinuteLabel": "м",
"Saved": "Сохранено...",
"CreatedIssue": "Создал(а) задачу",
"CreatedSubIssue": "Создал(а) подзадачу",
+1
View File
@@ -247,6 +247,7 @@
"SevenHoursLength": "Yedi Saat",
"EightHoursLength": "Sekiz Saat",
"HourLabel": "s",
"MinuteLabel": "dk",
"Saved": "Kaydedildi...",
"CreatedIssue": "Sorun oluşturuldu",
"CreatedSubIssue": "Alt sorun oluşturuldu",
+1
View File
@@ -264,6 +264,7 @@
"SevenHoursLength": "七小时",
"EightHoursLength": "八小时",
"HourLabel": "小时",
"MinuteLabel": "分",
"Saved": "已保存...",
"CreatedIssue": "已创建问题",
"CreatedSubIssue": "已创建子问题",
@@ -13,7 +13,7 @@
// limitations under the License.
-->
<script lang="ts">
import contact, { Employee } from '@hcengineering/contact'
import contact, { Employee, getCurrentEmployee } from '@hcengineering/contact'
import { AttachedData, Class, DocumentUpdate, Ref, Space } from '@hcengineering/core'
import type { IntlString } from '@hcengineering/platform'
import presentation, { Card, getClient } from '@hcengineering/presentation'
@@ -40,7 +40,7 @@
date: value?.date ?? getTimeReportDate(defaultTimeReportDay),
description: value?.description ?? '',
value: value?.value,
employee: value?.employee ?? assignee ?? null
employee: value?.employee ?? getCurrentEmployee() ?? assignee ?? null
}
let selectedTimeReportDay = getTimeReportDayType(data.date)
@@ -112,6 +112,12 @@
maxDigitsAfterPoint={3}
kind={'editbox'}
/>
<Button kind={'link-bordered'} on:click={() => (data.value = 0.25)}>
<span slot="content">15<Label label={tracker.string.MinuteLabel} /></span>
</Button>
<Button kind={'link-bordered'} on:click={() => (data.value = 0.5)}>
<span slot="content">30<Label label={tracker.string.MinuteLabel} /></span>
</Button>
<Button kind={'link-bordered'} on:click={() => (data.value = 1)}>
<span slot="content">1<Label label={tracker.string.HourLabel} /></span>
</Button>
+1
View File
@@ -297,6 +297,7 @@ export default mergeIds(trackerId, tracker, {
SevenHoursLength: '' as IntlString,
EightHoursLength: '' as IntlString,
HourLabel: '' as IntlString,
MinuteLabel: '' as IntlString,
Saved: '' as IntlString,
CreatedIssue: '' as IntlString,
CreatedSubIssue: '' as IntlString,