Kanalkonfigurator und Prozess-Tester auf Schablonenbasis
Geschäftsentscheidungen zuerst (Schablonen je Bereich, Voreinstellungen A3–A5), Einzelschritte eingeklappt, Auswirkungsanalyse beim Schablonenwechsel, unbestätigte Portal-Fähigkeiten gekennzeichnet. Tester-Bericht nennt Schablonen, unabhängig laufende Schritte und fehlende Nachweise; alle vier Kombinationen sind als Szenario getestet. Doku: SCHABLONEN.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e95ba4f986
commit
c46f4a032b
12 files changed
+810
-10
No files matched your search
@@ -65,6 +65,20 @@
|
||||
@endif
|
||||
@if ($plan = $report['plan'] ?? null)
|
||||
<p style="font-size:.9rem"><strong>{{ $plan['label'] }}</strong> ({{ $plan['model'] }} Version {{ $plan['version'] }}{{ $plan['variant'] !== 'standard' ? ', Variante '.$plan['variant'] : '' }}) · Vorgangsart {{ $plan['case_type'] }}</p>
|
||||
@if (($plan['templates'] ?? []) !== [])
|
||||
<div style="font-size:.85rem;margin:.4rem 0">
|
||||
<strong>Verwendete Funktionsschablonen</strong>
|
||||
<ul style="padding-left:1.2rem;list-style:disc">
|
||||
@foreach ($plan['templates'] as $template)
|
||||
<li>{{ $template['area'] }}: <strong>{{ $template['label'] }}</strong> <span style="{{ $muted }}">({{ $template['reference'] }}, Verantwortung: {{ $template['responsibility'] }}; Schritte: {{ implode(', ', $template['modules']) }})</span>
|
||||
@foreach ($template['capabilities'] as $capability)
|
||||
<div style="{{ $capability['confirmed'] ? $muted : 'color:#b45309;font-size:.8rem' }}">Voraussetzung „{{ $capability['label'] }}“ = {{ $capability['required'] }} – {{ $capability['confirmed'] ? 'bestätigt' : 'NICHT bestätigt, wird nicht als nachgewiesen behandelt' }} ({{ $capability['source'] }})</div>
|
||||
@endforeach
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<details style="font-size:.85rem;margin:.4rem 0"><summary>Wirksame Einstellungen</summary>
|
||||
<ul style="padding-left:1.2rem;list-style:disc">
|
||||
@foreach ($plan['configuration'] as $row)<li>{{ $row['question'] }}: <strong>{{ $row['value'] }}</strong> <span style="{{ $muted }}">({{ $row['source'] }})</span></li>@endforeach
|
||||
@@ -77,6 +91,12 @@
|
||||
<div style="display:flex;justify-content:space-between"><strong>{{ $index + 1 }}. {{ $event['label'] }}</strong><span style="{{ $muted }}">{{ $event['at'] }} (simuliert)</span></div>
|
||||
@if ($event['error'])<p style="color:#b91c1c;font-size:.85rem">Fehler: {{ $event['error'] }}</p>@endif
|
||||
@isset($event['situation'])<p style="font-size:.85rem;margin:.3rem 0">{{ $event['status'] }} · {{ $event['situation'] }}</p>@endisset
|
||||
@if (($event['independent'] ?? []) !== [])
|
||||
<p style="font-size:.85rem;color:#15803d">Läuft unabhängig weiter, obwohl anderes wartet: {{ implode(', ', $event['independent']) }}</p>
|
||||
@endif
|
||||
@if (($event['waiting'] ?? []) !== [])
|
||||
<p style="font-size:.85rem;color:#6d28d9">Wartet / Nachweis fehlt: {{ implode(', ', $event['waiting']) }}</p>
|
||||
@endif
|
||||
<ul style="font-size:.85rem;list-style:none;padding:0">
|
||||
@foreach ($event['activities'] as $activity)
|
||||
<li><span style="color:{{ $stateColor[$activity['state_key']] ?? '#6b7280' }};font-weight:600">{{ $activity['state'] }}</span> – {{ $activity['label'] }}@if ($activity['detail'])<span style="{{ $muted }}"> · {{ $activity['detail'] }}</span>@endif</li>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
$model = $this->model();
|
||||
$steps = $this->steps();
|
||||
$problems = $this->problems();
|
||||
$composable = $this->composable();
|
||||
@endphp
|
||||
|
||||
@if (count($this->tabs()) > 1)
|
||||
@@ -42,7 +43,7 @@
|
||||
<p>Für diese Eingangsart gibt es keine Ablaufmodelle.</p>
|
||||
@endif
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));gap:.6rem" role="radiogroup" aria-label="Ablaufmodell">
|
||||
@foreach ($models as $key => $option)
|
||||
@foreach ($this->visibleModels($models) as $key => $option)
|
||||
@php($candidate = $option['model'])
|
||||
<div style="{{ $card }};{{ $draft['model'] === $key ? 'border-color:rgb(var(--primary-600));box-shadow:0 0 0 1px rgb(var(--primary-600))' : '' }};{{ $option['admissible'] ? '' : 'opacity:.85;background:rgba(128,128,128,.07)' }}">
|
||||
<button type="button" role="radio" aria-checked="{{ $draft['model'] === $key ? 'true' : 'false' }}" @disabled(! $option['admissible']) wire:click="chooseModel('{{ $key }}')" style="text-align:left;width:100%">
|
||||
@@ -55,6 +56,10 @@
|
||||
@endforeach
|
||||
@foreach ($option['hints'] as $hint)<p style="{{ $muted }};margin-top:.3rem">{{ $hint }}</p>@endforeach
|
||||
@if ($draft['model'] === $key && ! $option['admissible'])<p style="color:#b91c1c;font-size:.8rem;margin-top:.3rem">Dies ist Ihr bisheriger Ablauf. Er bleibt wirksam, bis Sie ein passendes Modell wählen oder die Fähigkeit oben ändern.</p>@endif
|
||||
@if ($candidate::isLegacy() && $draft['model'] === $key)
|
||||
<p style="{{ $muted }};margin-top:.4rem">Festes Modell (bisherige Vorgangsart). Sie können es in die frei kombinierbaren Schablonen übernehmen – die Kombination bleibt dabei gleich.</p>
|
||||
<x-filament::button size="xs" color="gray" wire:click="applyPreset('{{ $key }}')" style="margin-top:.3rem">Auf Schablonen umstellen</x-filament::button>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@@ -83,6 +88,58 @@
|
||||
@endif
|
||||
</x-filament::section>
|
||||
|
||||
@if ($composable)
|
||||
@php($decisions = $this->decisions())
|
||||
<x-filament::section heading="Geschäftsentscheidungen" description="Wählen Sie je Bereich die passende Funktionsschablone. Die Einzelschritte jeder Schablone bleiben darunter einzeln einstellbar.">
|
||||
@if (($presets = $this->presets()) !== [])
|
||||
<div style="{{ $muted }};margin-bottom:.6rem">Bekannte Kombinationen als Ausgangspunkt:
|
||||
@foreach ($presets as $archetype => $preset)
|
||||
<button type="button" wire:click="applyPreset('{{ $archetype }}')" style="text-decoration:underline;margin-left:.4rem">{{ $preset['label'] }}</button>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@foreach ($decisions as $decision)
|
||||
<h3 style="font-weight:600;margin:.6rem 0 .3rem">{{ $decision['area']->label() }} <span style="{{ $muted }}">– {{ $decision['area']->question() }}</span></h3>
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(20rem,1fr));gap:.6rem" role="radiogroup" aria-label="{{ $decision['area']->label() }}">
|
||||
@foreach ($decision['options'] as $option)
|
||||
@php($template = $option['template'])
|
||||
<div style="{{ $card }};{{ $option['selected'] ? 'border-color:rgb(var(--primary-600));box-shadow:0 0 0 1px rgb(var(--primary-600))' : '' }};{{ $option['admissible'] ? '' : 'opacity:.85;background:rgba(128,128,128,.07)' }}" wire:key="template-{{ $this->intake }}-{{ $option['key'] }}">
|
||||
<button type="button" role="radio" aria-checked="{{ $option['selected'] ? 'true' : 'false' }}" @disabled(! $option['admissible']) wire:click="chooseTemplate('{{ $decision['area']->value }}', '{{ $option['key'] }}')" style="text-align:left;width:100%">
|
||||
<strong>{{ $template::label() }}</strong>
|
||||
<div style="font-size:.85rem;margin-top:.3rem">{{ $template::purpose() }}</div>
|
||||
</button>
|
||||
<ul style="{{ $muted }};margin-top:.4rem;list-style:disc;padding-left:1.1rem">
|
||||
@foreach ($template::dimensions() as $dimension => $statement)<li><strong>{{ $dimension }}:</strong> {{ $statement }}</li>@endforeach
|
||||
</ul>
|
||||
<div style="{{ $muted }};margin-top:.3rem">Schritte: {{ implode(', ', $option['modules']) }}@if ($template::extensions() !== []) · noch nicht vorhanden: {{ implode('; ', $template::extensions()) }}@endif</div>
|
||||
@foreach ($option['restrictions'] as $restriction)
|
||||
<p style="color:#b45309;font-size:.8rem;margin-top:.4rem"><strong>Passt gerade nicht ({{ $restriction->kind }}):</strong> {{ $restriction->reason }}@if ($restriction->alternative) <br>Zulässig ist stattdessen: {{ $restriction->alternative }}.@endif @if ($restriction->change) <br>{{ $restriction->change }}.@endif</p>
|
||||
@endforeach
|
||||
@foreach ($option['hints'] as $hint)<p style="{{ $muted }};margin-top:.3rem">{{ $hint }}</p>@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
</x-filament::section>
|
||||
|
||||
@if ($templateImpacts = $this->templateImpacts())
|
||||
<x-filament::section heading="Was der Wechsel bedeutet" description="Nichts davon wird still geändert – Sie sehen jede Folge, bevor Sie speichern.">
|
||||
@foreach ($templateImpacts as $impact)
|
||||
<div style="font-size:.9rem;margin-bottom:.8rem">
|
||||
<strong>{{ $impact['area'] }}:</strong> {{ $impact['from'] ?? 'bisher keine Schablone' }} → <strong>{{ $impact['to'] }}</strong>
|
||||
@if ($impact['responsibility'])<div>Verantwortung: {{ $impact['responsibility']['from'] }} → {{ $impact['responsibility']['to'] }}</div>@endif
|
||||
@if ($impact['removed'] !== [])<div>Entfällt: {{ implode(', ', $impact['removed']) }}</div>@endif
|
||||
@if ($impact['added'] !== [])<div>Kommt hinzu: {{ implode(', ', $impact['added']) }}</div>@endif
|
||||
@if ($impact['kept'] !== [])<div style="{{ $muted }}">Bleibt mit allen Einstellungen: {{ implode(', ', $impact['kept']) }}</div>@endif
|
||||
@foreach ($impact['switches_lost'] as $lost)<div style="color:#b45309">Ihr gespeicherter Schalter für „{{ $lost }}“ hat dann keinen Bezug mehr.</div>@endforeach
|
||||
@foreach ($impact['settings_replaced'] as $text)<div style="color:#b45309">{{ $text }}</div>@endforeach
|
||||
@foreach ($impact['needs'] as $need)<div style="{{ $muted }}">{{ $need }}</div>@endforeach
|
||||
</div>
|
||||
@endforeach
|
||||
</x-filament::section>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if ($problems !== [])
|
||||
<x-filament::section heading="Nicht zulässig">
|
||||
<ul style="color:#b91c1c;font-size:.9rem;list-style:disc;padding-left:1.2rem">
|
||||
@@ -104,7 +161,8 @@
|
||||
@endif
|
||||
|
||||
<div style="display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1rem;align-items:start">
|
||||
<div>
|
||||
<details @if (! $composable) open @endif>
|
||||
<summary style="cursor:pointer;font-weight:600;margin-bottom:.4rem">Einzelschritte einstellen ({{ count($steps) }} Schritte)</summary>
|
||||
@foreach (collect($steps)->groupBy('phase') as $phase => $group)
|
||||
<h3 style="font-weight:600;margin:.6rem 0 .3rem">{{ $phases[$phase] ?? $phase }}</h3>
|
||||
@foreach ($group as $index => $step)
|
||||
@@ -113,6 +171,7 @@
|
||||
<strong>{{ $step['label'] }}
|
||||
@if ($step['tester_only'])<span style="color:#b45309;font-size:.75rem"> · nur im Prozess-Tester</span>@endif
|
||||
@if ($step['inserted'])<span style="{{ $muted }}"> · Zusatzschritt der Variante</span>@endif
|
||||
@if ($step['template'] ?? null)<span style="{{ $muted }}"> · Schablone: {{ $step['template'] }}</span>@endif
|
||||
</strong>
|
||||
@if ($step['optional'])
|
||||
<x-filament::button size="xs" :color="($draft['steps'][$step['module']]['on'] ?? true) === false ? 'gray' : 'success'" wire:click="toggleStep('{{ $step['module'] }}')">
|
||||
@@ -173,7 +232,7 @@
|
||||
</div>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<x-filament::section heading="Vorschau: ein neuer Vorgang" description="Mit den aktuellen, auch ungespeicherten Einstellungen. Es wird nichts gespeichert und nichts ausgeführt.">
|
||||
<ul style="font-size:.85rem;list-style:disc;padding-left:1.2rem">
|
||||
|
||||
Reference in new issue
Block a user