From 7324aa4e7d96765f5df96f693bd3942b7770c53b Mon Sep 17 00:00:00 2001 From: Dennis Nemec Date: Fri, 10 Jul 2026 23:29:18 +0200 Subject: [PATCH] =?UTF-8?q?refactor(delivery):=20Step=20"Services"=20?= =?UTF-8?q?=E2=86=92=20"Checkliste"=20(nur=20Anzeige)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Der Step heißt in der Lieferung jetzt "Checkliste": - WorkflowStep displayName + shortName → "Checkliste" - step_services Empty-State: "Keine Checkliste konfiguriert" / "Ein Administrator kann eine Checkliste anlegen." - TourBloc-Operationsmeldungen: "Checkliste-Eintrag gespeichert/entfernt …" Interne Bezeichner (DeliveryService, serviceId, Enum-Wert `services`) bleiben unverändert — reine Anzeige-Umbenennung. Co-Authored-By: Claude Opus 4.8 (1M context) --- lib/feature/delivery/bloc/tour_bloc.dart | 12 ++++++------ lib/feature/delivery/detail/bloc/workflow_state.dart | 4 ++-- .../detail/presentation/steps/step_services.dart | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/feature/delivery/bloc/tour_bloc.dart b/lib/feature/delivery/bloc/tour_bloc.dart index 4cb9baa..cdfc9b8 100644 --- a/lib/feature/delivery/bloc/tour_bloc.dart +++ b/lib/feature/delivery/bloc/tour_bloc.dart @@ -831,7 +831,7 @@ class TourBloc extends Bloc { ), )); - opBloc.add(StartOperation(message: 'Service wird gespeichert …')); + opBloc.add(StartOperation(message: 'Checkliste-Eintrag wird gespeichert …')); try { final result = await tourRepository.setDeliveryService( deliveryId: event.deliveryId, @@ -851,7 +851,7 @@ class TourBloc extends Bloc { ), )); } - opBloc.add(FinishOperation(message: 'Service gespeichert')); + opBloc.add(FinishOperation(message: 'Checkliste-Eintrag gespeichert')); } catch (e, st) { debugPrint('TourBloc.SetDeliveryServiceValue fehlgeschlagen: $e\n$st'); final latest = state; @@ -866,7 +866,7 @@ class TourBloc extends Bloc { )); } opBloc.add(FailOperation( - message: _messageOf(e, 'Service konnte nicht gespeichert werden'), + message: _messageOf(e, 'Checkliste-Eintrag konnte nicht gespeichert werden'), )); } } @@ -891,13 +891,13 @@ class TourBloc extends Bloc { ), )); - opBloc.add(StartOperation(message: 'Service wird entfernt …')); + opBloc.add(StartOperation(message: 'Checkliste-Eintrag wird entfernt …')); try { await tourRepository.removeDeliveryService( deliveryId: event.deliveryId, serviceId: event.serviceId, ); - opBloc.add(FinishOperation(message: 'Service entfernt')); + opBloc.add(FinishOperation(message: 'Checkliste-Eintrag entfernt')); } catch (e, st) { debugPrint('TourBloc.RemoveDeliveryServiceValue fehlgeschlagen: $e\n$st'); final latest = state; @@ -912,7 +912,7 @@ class TourBloc extends Bloc { )); } opBloc.add(FailOperation( - message: _messageOf(e, 'Service konnte nicht entfernt werden'), + message: _messageOf(e, 'Checkliste-Eintrag konnte nicht entfernt werden'), )); } } diff --git a/lib/feature/delivery/detail/bloc/workflow_state.dart b/lib/feature/delivery/detail/bloc/workflow_state.dart index 7c490a3..5c175b5 100644 --- a/lib/feature/delivery/detail/bloc/workflow_state.dart +++ b/lib/feature/delivery/detail/bloc/workflow_state.dart @@ -14,7 +14,7 @@ extension WorkflowStepX on WorkflowStep { WorkflowStep.info => 'Info', WorkflowStep.notes => 'Notizen', WorkflowStep.articles => 'Artikel & Gutschriften', - WorkflowStep.services => 'Services', + WorkflowStep.services => 'Checkliste', WorkflowStep.summary => 'Übersicht', }; @@ -23,7 +23,7 @@ extension WorkflowStepX on WorkflowStep { WorkflowStep.info => 'Info', WorkflowStep.notes => 'Notizen', WorkflowStep.articles => 'Artikel', - WorkflowStep.services => 'Services', + WorkflowStep.services => 'Checkliste', WorkflowStep.summary => 'Übersicht', }; } diff --git a/lib/feature/delivery/detail/presentation/steps/step_services.dart b/lib/feature/delivery/detail/presentation/steps/step_services.dart index cb2c122..a28e643 100644 --- a/lib/feature/delivery/detail/presentation/steps/step_services.dart +++ b/lib/feature/delivery/detail/presentation/steps/step_services.dart @@ -57,11 +57,11 @@ class StepServices extends StatelessWidget { Icon(Icons.construction_outlined, size: 56, color: theme.colorScheme.onSurfaceVariant), const SizedBox(height: 12), - Text('Keine Services konfiguriert', + Text('Keine Checkliste konfiguriert', style: theme.textTheme.titleMedium), const SizedBox(height: 4), Text( - 'Ein Administrator kann Services anlegen.', + 'Ein Administrator kann eine Checkliste anlegen.', style: theme.textTheme.bodySmall?.copyWith( color: theme.colorScheme.onSurfaceVariant, ),