- Rückmeldungen an den Hersteller (docs/specs/feedback.md): Fehlerbericht und
Funktionswunsch, nur freigeschaltete Wege, Idempotency-Key je Meldung,
Warteschlange mit höchstens fünf Versuchen, 422 am Feld, 429 mit Wartezeit,
404 blendet den Weg aus, Referenznummer und „Meine Rückmeldungen“,
sichtbare technische Angaben und Datenschutzhinweis über dem Absendeknopf
- Hintergrundaufgaben ohne Dauerprozess: Cron, Web-Cron (/cron/{token}) oder
Pseudo-Cron nach dem Seitenaufruf; Queue in kurzen Häppchen
- Seite „Systemzustand“ mit Voraussetzungen, Grenzen, Betrieb, Sicherheit und
Anleitung für den Cronjob
- Web-Installer (Systemprüfung → Datenbank → Administrator), legt .env und
Anwendungsschlüssel selbst an, arbeitet vor der Einrichtung ohne Datenbank
- Datenbank-Benachrichtigungen im Admin-Bereich
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
161 lines
9.4 KiB
PHP
161 lines
9.4 KiB
PHP
<x-filament-panels::page>
|
||
<style>
|
||
.ih-form { display: grid; gap: 1.25rem; }
|
||
.ih-field { display: grid; gap: .375rem; }
|
||
.ih-label { font-size: .875rem; font-weight: 500; }
|
||
.ih-hint { font-size: .8125rem; color: rgb(107 114 128); }
|
||
.ih-error { font-size: .8125rem; color: rgb(220 38 38); }
|
||
.ih-grid2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
|
||
.ih-types { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
|
||
.ih-types label { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; }
|
||
.ih-textarea { width: 100%; min-height: 9rem; border: 0; padding: .5rem .75rem; background: transparent; font-size: .875rem; resize: vertical; }
|
||
.ih-textarea:focus { outline: none; }
|
||
.ih-tech { font-size: .8125rem; }
|
||
.ih-tech summary { cursor: pointer; font-weight: 500; }
|
||
.ih-tech dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin-top: .75rem; }
|
||
.ih-tech dt { color: rgb(107 114 128); }
|
||
.ih-tech dd { font-family: ui-monospace, monospace; word-break: break-all; }
|
||
.ih-privacy { font-size: .8125rem; line-height: 1.55; color: rgb(75 85 99); border-left: 3px solid rgb(209 213 219); padding: .25rem 0 .25rem 1rem; }
|
||
.ih-privacy ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0; }
|
||
.ih-privacy p { margin: .5rem 0; }
|
||
.ih-table { width: 100%; font-size: .875rem; border-collapse: collapse; }
|
||
.ih-table th { text-align: left; font-weight: 500; color: rgb(107 114 128); padding: .375rem .5rem .375rem 0; }
|
||
.ih-table td { padding: .5rem .5rem .5rem 0; border-top: 1px solid rgb(243 244 246); vertical-align: top; }
|
||
.dark .ih-hint, .dark .ih-privacy, .dark .ih-tech dt, .dark .ih-table th { color: rgb(156 163 175); }
|
||
.dark .ih-table td { border-color: rgb(55 65 81); }
|
||
</style>
|
||
|
||
@if ($lastReference)
|
||
<x-filament::callout color="success" icon="heroicon-o-check-circle" heading="Ihre Meldung ist eingegangen">
|
||
<x-slot name="description">Referenznummer für Rückfragen: <strong>{{ $lastReference }}</strong></x-slot>
|
||
</x-filament::callout>
|
||
@endif
|
||
|
||
@if ($notice)
|
||
<x-filament::callout color="warning" icon="heroicon-o-information-circle" :description="$notice" />
|
||
@endif
|
||
|
||
@if (count($types) === 0)
|
||
<x-filament::section>
|
||
<p class="ih-hint">Rückmeldungen an den Hersteller sind für dieses Programm derzeit nicht freigeschaltet.</p>
|
||
</x-filament::section>
|
||
@else
|
||
<x-filament::section heading="Neue Rückmeldung" description="Fehlerberichte und Wünsche gehen direkt an das Entwicklungsteam.">
|
||
<form wire:submit="submit" class="ih-form">
|
||
<div class="ih-field">
|
||
<span class="ih-label">Art der Meldung</span>
|
||
<div class="ih-types">
|
||
@foreach ($types as $key => $label)
|
||
<label><x-filament::input.radio wire:model.live="type" value="{{ $key }}" /> {{ $label }}</label>
|
||
@endforeach
|
||
</div>
|
||
</div>
|
||
|
||
<label class="ih-field">
|
||
<span class="ih-label">Betreff</span>
|
||
<x-filament::input.wrapper :valid="! $errors->has('subject')">
|
||
<x-filament::input type="text" wire:model="subject" maxlength="255" placeholder="Kurz und konkret, z. B. „Export bricht bei großen Listen ab“" />
|
||
</x-filament::input.wrapper>
|
||
@error('subject') <span class="ih-error">{{ $message }}</span> @enderror
|
||
</label>
|
||
|
||
<label class="ih-field">
|
||
<span class="ih-label">Beschreibung</span>
|
||
<x-filament::input.wrapper :valid="! $errors->has('body')">
|
||
<textarea class="ih-textarea" wire:model="body" placeholder="{{ $type === 'bugreport' ? 'Was haben Sie getan, was ist passiert, was hätten Sie erwartet?' : 'Was möchten Sie erreichen, und wie würde es Ihnen helfen?' }}"></textarea>
|
||
</x-filament::input.wrapper>
|
||
@error('body') <span class="ih-error">{{ $message }}</span> @enderror
|
||
</label>
|
||
|
||
@if ($type === 'bugreport')
|
||
<label class="ih-field" style="max-width: 16rem">
|
||
<span class="ih-label">Dringlichkeit</span>
|
||
<x-filament::input.wrapper>
|
||
<x-filament::input.select wire:model="severity">
|
||
<option value="low">Niedrig</option>
|
||
<option value="normal">Normal</option>
|
||
<option value="high">Hoch</option>
|
||
<option value="critical">Kritisch – Arbeit nicht möglich</option>
|
||
</x-filament::input.select>
|
||
</x-filament::input.wrapper>
|
||
</label>
|
||
@endif
|
||
|
||
<div class="ih-grid2">
|
||
<label class="ih-field">
|
||
<span class="ih-label">E-Mail für Rückfragen <span class="ih-hint">(freiwillig)</span></span>
|
||
<x-filament::input.wrapper :valid="! $errors->has('email')">
|
||
<x-filament::input type="email" wire:model="email" />
|
||
</x-filament::input.wrapper>
|
||
@error('email') <span class="ih-error">{{ $message }}</span> @enderror
|
||
</label>
|
||
<label class="ih-field">
|
||
<span class="ih-label">Name <span class="ih-hint">(freiwillig)</span></span>
|
||
<x-filament::input.wrapper>
|
||
<x-filament::input type="text" wire:model="name" />
|
||
</x-filament::input.wrapper>
|
||
</label>
|
||
</div>
|
||
|
||
<details class="ih-tech">
|
||
<summary>Diese technischen Angaben werden mitgesendet</summary>
|
||
<dl>
|
||
<dt>app_version</dt><dd>{{ $technical['app_version'] }}</dd>
|
||
<dt>current_sha</dt><dd>{{ $technical['current_sha'] ?? '–' }}</dd>
|
||
<dt>os</dt><dd>{{ $technical['os'] }}</dd>
|
||
@foreach ($technical['metadata'] as $key => $value)
|
||
<dt>metadata.{{ $key }}</dt><dd>{{ $value }}</dd>
|
||
@endforeach
|
||
</dl>
|
||
</details>
|
||
|
||
{{-- Datenschutzhinweis über dem Absendeknopf (docs/specs/feedback.md). Zeilen für nicht
|
||
gesendete Angaben sind gestrichen: Anhänge gibt es nicht, Lizenzdaten nur mit Lizenz. --}}
|
||
<div class="ih-privacy">
|
||
<p>Mit dem Absenden werden Daten an api.loheide.cloud übertragen. Übermittelt werden:</p>
|
||
<ul>
|
||
<li>Ihr Text: Betreff und Beschreibung</li>
|
||
<li>Name und E-Mail-Adresse, soweit Sie sie angeben – für Rückfragen</li>
|
||
@if ($hasLicense)
|
||
<li>Ihre Lizenzdaten, damit die Meldung Ihrem Konto zugeordnet werden kann</li>
|
||
@endif
|
||
<li>Programmversion, installierter Stand und Betriebssystem</li>
|
||
<li>technisch bedingt: Ihre IP-Adresse, Datum und Uhrzeit</li>
|
||
</ul>
|
||
<p>Bitte beachten: Was Sie in die Beschreibung schreiben, wird mit übertragen. Enthält es Namen, Adressen oder Vorgänge anderer Personen, entfernen Sie diese bitte vorher.</p>
|
||
<p>Zweck: Bearbeitung Ihrer Meldung und Rückfragen dazu. Das Senden ist freiwillig; es geschieht nur, wenn Sie es hier auslösen.</p>
|
||
</div>
|
||
|
||
<div>
|
||
<x-filament::button type="submit" icon="heroicon-o-paper-airplane">Absenden</x-filament::button>
|
||
</div>
|
||
</form>
|
||
</x-filament::section>
|
||
@endif
|
||
|
||
@if ($history->isNotEmpty())
|
||
<x-filament::section heading="Meine Rückmeldungen">
|
||
<table class="ih-table">
|
||
<thead><tr><th>Datum</th><th>Art</th><th>Betreff</th><th>Referenz / Status</th></tr></thead>
|
||
<tbody>
|
||
@foreach ($history as $item)
|
||
<tr>
|
||
<td>{{ $item->created_at->format('d.m.Y H:i') }}</td>
|
||
<td>{{ \App\Models\VendorFeedback::TYPES[$item->type] ?? $item->type }}</td>
|
||
<td>{{ $item->payload['title'] ?? '' }}</td>
|
||
<td>
|
||
@if ($item->status === 'sent')
|
||
<strong>{{ $item->reference }}</strong>
|
||
@elseif ($item->status === 'pending')
|
||
<x-filament::badge color="warning">wird gesendet ({{ $item->attempts }}. Versuch)</x-filament::badge>
|
||
@else
|
||
<x-filament::badge color="danger">nicht zugestellt</x-filament::badge>
|
||
@endif
|
||
</td>
|
||
</tr>
|
||
@endforeach
|
||
</tbody>
|
||
</table>
|
||
</x-filament::section>
|
||
@endif
|
||
</x-filament-panels::page>
|