IT-Service: Baumstruktur, HTML-Antworten, Fehlermeldungen, geschlossene Tickets, Meine IT im Profilkasten
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m31s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m39s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m57s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m46s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m9s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m13s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m30s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m27s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m7s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m31s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m39s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m57s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m46s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m9s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m13s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m30s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m27s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m7s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ab35a67406
commit
50ee85c06b
119 changed files with 611 additions and 463 deletions
|
|
@ -42,7 +42,7 @@ const size = (bytes) => (bytes ? (bytes > 1_048_576 ? `${(bytes / 1_048_576).toF
|
|||
</div>
|
||||
<StatusBadge :label="ticket.status_label" :tone="ticketTone(ticket)" class="text-xs" />
|
||||
</div>
|
||||
<p v-if="ticket.description" class="mt-5 text-[15px] leading-relaxed whitespace-pre-line">{{ ticket.description }}</p>
|
||||
<div v-if="ticket.description" class="prose prose-sm mt-5 max-w-none text-[15px] leading-relaxed dark:prose-invert" v-html="ticket.description" />
|
||||
</article>
|
||||
|
||||
<!-- Verlauf -->
|
||||
|
|
@ -56,15 +56,15 @@ const size = (bytes) => (bytes ? (bytes > 1_048_576 ? `${(bytes / 1_048_576).toF
|
|||
<span class="font-medium text-foreground">{{ reply.from_staff ? reply.author || 'IT-Service' : 'Sie' }}</span>
|
||||
<template v-if="reply.created_at"> · {{ formatDate(reply.created_at, true) }}</template>
|
||||
</p>
|
||||
<p class="text-sm leading-relaxed whitespace-pre-line">{{ reply.message }}</p>
|
||||
<div class="prose prose-sm max-w-none text-sm leading-relaxed dark:prose-invert [&_p]:my-1" v-html="reply.message" />
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Antworten -->
|
||||
<form class="rounded-xl border bg-card p-4 shadow-xs" @submit.prevent="send">
|
||||
<label for="message" class="text-sm font-medium">{{ ticket.open ? 'Antworten' : 'Das Ticket ist abgeschlossen – mit einer Antwort können Sie sich erneut melden.' }}</label>
|
||||
<Textarea id="message" v-model="form.message" rows="4" maxlength="20000" class="mt-2" placeholder="Ihre Nachricht an die IT …" />
|
||||
<form v-if="ticket.open" class="rounded-xl border bg-card p-4 shadow-xs" @submit.prevent="send">
|
||||
<label for="message" class="text-sm font-medium">Antworten</label>
|
||||
<Textarea id="message" v-model="form.message" rows="8" maxlength="20000" class="mt-2" placeholder="Ihre Nachricht an die IT …" />
|
||||
<p v-if="form.errors.message" class="mt-1 text-[13px] text-destructive">{{ form.errors.message }}</p>
|
||||
<div class="mt-3 flex justify-end">
|
||||
<Button type="submit" :disabled="form.processing || !form.message.trim()">
|
||||
|
|
@ -72,6 +72,10 @@ const size = (bytes) => (bytes ? (bytes > 1_048_576 ? `${(bytes / 1_048_576).toF
|
|||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
<div v-else class="rounded-xl border bg-muted/50 p-4 text-sm text-muted-foreground">
|
||||
Dieses Ticket ist abgeschlossen. Besteht das Problem weiterhin, erstellen Sie bitte ein
|
||||
<Link :href="`/it-service/tickets/neu`" class="font-medium text-brand-text hover:underline">neues Ticket</Link>.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<aside class="grid content-start gap-4 lg:col-span-4">
|
||||
|
|
|
|||
|
|
@ -89,8 +89,8 @@ function submit() {
|
|||
<FormField id="subject" label="Betreff" :error="form.errors.subject">
|
||||
<Input id="subject" v-model="form.subject" maxlength="200" placeholder="z. B. Drucker im 2. OG druckt nicht" required />
|
||||
</FormField>
|
||||
<FormField id="description" label="Was ist passiert?" :error="form.errors.description" hint="Seit wann? Gibt es eine Fehlermeldung? Was haben Sie schon versucht?">
|
||||
<Textarea id="description" v-model="form.description" rows="7" maxlength="20000" required />
|
||||
<FormField id="description" label="Nachricht" :error="form.errors.description" hint="Was ist passiert? Seit wann? Gibt es eine Fehlermeldung? Was haben Sie schon versucht?">
|
||||
<Textarea id="description" v-model="form.description" rows="14" maxlength="20000" class="min-h-72" required />
|
||||
</FormField>
|
||||
<div class="flex justify-end border-t pt-4">
|
||||
<Button type="submit" :disabled="form.processing">
|
||||
|
|
|
|||
|
|
@ -36,11 +36,11 @@ onMounted(async () => {
|
|||
<span class="flex items-center gap-1 text-xs text-muted-foreground"><CalendarClock class="size-3.5" /> Ausleihen</span>
|
||||
</Link>
|
||||
</div>
|
||||
<ul v-if="data.latest.length" class="mt-3 grid gap-0.5">
|
||||
<ul v-if="data.latest.length" class="mt-3 grid min-w-0 grid-cols-1 gap-0.5">
|
||||
<li v-for="ticket in data.latest" :key="ticket.id">
|
||||
<Link :href="`/it-service/tickets/${ticket.id}`" class="flex items-center justify-between gap-2 rounded px-1 py-1 text-[13px] hover:bg-accent">
|
||||
<span class="truncate">{{ ticket.subject }}</span>
|
||||
<span class="shrink-0 text-[11px] text-muted-foreground">{{ ticket.status_label }}</span>
|
||||
<Link :href="`/it-service/tickets/${ticket.id}`" class="flex min-w-0 items-center justify-between gap-2 rounded px-1 py-1 text-[13px] hover:bg-accent" :title="ticket.subject">
|
||||
<span class="min-w-0 truncate">{{ ticket.subject }}</span>
|
||||
<span class="max-w-[45%] shrink-0 truncate text-[11px] text-muted-foreground">{{ ticket.status_label }}</span>
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue