add break time entries and simplified time tracker ui

This commit is contained in:
Gregor Vostrak
2026-07-21 16:48:37 +02:00
parent 114a32536d
commit cbcd1e51f6
128 changed files with 6252 additions and 437 deletions

View File

@@ -12,11 +12,17 @@ import { CalendarIcon } from '@heroicons/vue/20/solid';
const organization = inject<ComputedRef<Organization>>('organization');
defineProps<{
date: string;
duration: number;
checked: boolean;
}>();
withDefaults(
defineProps<{
date: string;
duration: number;
checked: boolean;
breakDuration?: number;
}>(),
{
breakDuration: 0,
}
);
const emit = defineEmits<{
selectAll: [];
unselectAll: [];
@@ -55,6 +61,19 @@ function selectUnselectAll(value: boolean) {
</span>
</div>
<div class="text-text-primary pr-2 @lg:pr-[92px]">
<span
v-if="breakDuration > 0"
data-testid="day_break_duration"
class="text-text-secondary font-normal mr-2">
{{
formatHumanReadableDuration(
breakDuration,
organization?.interval_format,
organization?.number_format
)
}}
break ·
</span>
<span class="font-medium">
{{
formatHumanReadableDuration(