Vorgang: Schritte im Ablauf anklickbar – was geschah, Herkunft der Angaben, korrigieren
Deploy FeWo mit PipelineManager / deploy (push) Successful in 5m13s
Deploy FeWo mit PipelineManager / deploy (push) Successful in 5m13s
- Ein Klick auf einen Schritt im „Ablauf“ öffnet seine Einzelheiten: die Verlaufseinträge dieses Schritts und bei den Gastangaben jede Angabe mit Wert, Herkunft (Webseite, Link, E-Mail, KI, Sie), Zeitpunkt, Belegstelle, Sicherheit und offenen Abweichungen. - „Angaben korrigieren“ öffnet den Eintragsdialog: Ihre Eingabe gilt, der vorherige Wert bleibt im Nachweis; „Diesen Schritt ausführen“ führt direkt zur Aktion des Schritts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ad63db78f3
commit
7e4e208d18
5 files changed
+219
-2
No files matched your search
@@ -15,6 +15,7 @@
|
||||
use App\Actions\SetBookingStatus;
|
||||
use App\Documents\OfferTerms;
|
||||
use App\Documents\RentalContract;
|
||||
use App\Enums\ActivityState;
|
||||
use App\Enums\AdminMode;
|
||||
use App\Enums\AmountKind;
|
||||
use App\Enums\BookingStatus;
|
||||
@@ -43,6 +44,8 @@
|
||||
use App\Models\User;
|
||||
use App\Pricing\PrivateStayPrice;
|
||||
use App\Pricing\QuoteException;
|
||||
use App\Process\Activity;
|
||||
use App\Process\ActivityDetails;
|
||||
use App\Process\CaseActivities;
|
||||
use App\Process\CaseAutomation;
|
||||
use App\Process\CaseLog;
|
||||
@@ -354,6 +357,37 @@ private function openFactConflicts(): string
|
||||
return $notes === [] ? '' : ' Abweichende Angaben des Gastes – bitte den richtigen Wert eintragen: '.implode(' · ', $notes);
|
||||
}
|
||||
|
||||
/**
|
||||
* What lies behind one step of the progress list (clicked in "Ablauf"): its history entries and – for the guest's
|
||||
* details – each detail with source, time, evidence and certainty, with the way to correct it or to do the step.
|
||||
*/
|
||||
public function activityDetailsAction(): Action
|
||||
{
|
||||
return Action::make('activityDetails')
|
||||
->modalHeading(fn (array $arguments): string => ActivityDetails::activity($this->record, (string) ($arguments['key'] ?? ''))?->label ?? 'Schritt')
|
||||
->modalWidth('4xl')
|
||||
->modalSubmitAction(false)
|
||||
->modalCancelActionLabel('Schließen')
|
||||
->modalContent(function (array $arguments): \Illuminate\Contracts\View\View {
|
||||
$key = (string) ($arguments['key'] ?? '');
|
||||
$activity = ActivityDetails::activity($this->record, $key);
|
||||
|
||||
return view('filament.activity-details', [
|
||||
'activity' => $activity ?? new Activity($key, 'Schritt', ActivityState::NotApplicable),
|
||||
'events' => ActivityDetails::events($this->record, $key),
|
||||
'facts' => ActivityDetails::showsFacts($key) ? ActivityDetails::facts($this->record->loadMissing('guest')) : null,
|
||||
]);
|
||||
})
|
||||
->extraModalFooterActions(fn (array $arguments): array => array_values(array_filter([
|
||||
ActivityDetails::showsFacts((string) ($arguments['key'] ?? '')) && $this->record->internal_kind !== InternalKind::Block
|
||||
? Action::make('correctFacts')->label('Angaben korrigieren')->color('primary')->action(fn () => $this->replaceMountedAction('provideContact'))
|
||||
: null,
|
||||
($step = ActivityDetails::activity($this->record, (string) ($arguments['key'] ?? ''))?->action) !== null && $step !== 'provideContact'
|
||||
? Action::make('doStep')->label('Diesen Schritt ausführen')->action(fn () => $this->replaceMountedAction($step))
|
||||
: null,
|
||||
])));
|
||||
}
|
||||
|
||||
/**
|
||||
* v0.11 data request: send the prepared question (or ask now although the case is set to asking by hand).
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user