Loheide-eu-mitarbeiterplatt.../resources/js/components/tasks/TaskList.vue
Friederich Loheide c11cf4e0c4
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 7m6s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 13s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 7m24s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 8m34s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 9m51s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m39s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m4s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m9s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 8m42s
Meine Aufgaben (0.53.0)
Tasks-Registry mit Anbietern aus QM, Umfragen und Redaktion; Kachel auf der
Startseite und Seite /aufgaben.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 19:42:53 +00:00

33 lines
1.7 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script setup>
import { Link } from '@inertiajs/vue3';
import { ChevronRight } from '@lucide/vue';
import AppIcon from '@/components/AppIcon.vue';
import { formatShortDate } from '@/lib/format';
/** Liste offener Aufgaben – auf der Startseite und unter „Meine Aufgaben“ */
defineProps({
tasks: { type: Array, required: true },
});
</script>
<template>
<ul class="-mx-2 grid gap-0.5">
<li v-for="task in tasks" :key="task.key + task.url">
<Link :href="task.url" class="group flex items-center gap-3 rounded-md px-2 py-2.5 hover:bg-accent">
<span class="grid size-9 shrink-0 place-items-center rounded-full bg-brand-soft text-brand-text">
<AppIcon :name="task.icon" class="size-[18px]" :stroke-width="1.8" />
</span>
<span class="grid min-w-0 flex-1 gap-0.5">
<span class="line-clamp-2 text-sm leading-snug font-medium">{{ task.title }}</span>
<span class="flex flex-wrap gap-x-2 text-xs text-muted-foreground">
<span v-if="task.meta">{{ task.meta }}</span>
<span v-if="task.overdue" class="font-semibold text-destructive">überfällig seit {{ formatShortDate(task.due) }}</span>
<span v-else-if="task.due" class="font-medium text-accent2-text">bis {{ formatShortDate(task.due) }}</span>
</span>
</span>
<span v-if="task.count" class="rounded-pill bg-brand px-2 py-0.5 text-xs font-semibold text-brand-foreground tabular-nums">{{ task.count }}</span>
<ChevronRight class="size-4 shrink-0 text-muted-foreground/60 group-hover:text-foreground" />
</Link>
</li>
</ul>
</template>