refactor(delivery): Step "Services" → "Checkliste" (nur Anzeige)

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) <noreply@anthropic.com>
This commit is contained in:
Dennis Nemec
2026-07-10 23:29:18 +02:00
parent 553d3ef354
commit 7324aa4e7d
3 changed files with 10 additions and 10 deletions

View File

@ -831,7 +831,7 @@ class TourBloc extends Bloc<TourEvent, TourState> {
), ),
)); ));
opBloc.add(StartOperation(message: 'Service wird gespeichert …')); opBloc.add(StartOperation(message: 'Checkliste-Eintrag wird gespeichert …'));
try { try {
final result = await tourRepository.setDeliveryService( final result = await tourRepository.setDeliveryService(
deliveryId: event.deliveryId, deliveryId: event.deliveryId,
@ -851,7 +851,7 @@ class TourBloc extends Bloc<TourEvent, TourState> {
), ),
)); ));
} }
opBloc.add(FinishOperation(message: 'Service gespeichert')); opBloc.add(FinishOperation(message: 'Checkliste-Eintrag gespeichert'));
} catch (e, st) { } catch (e, st) {
debugPrint('TourBloc.SetDeliveryServiceValue fehlgeschlagen: $e\n$st'); debugPrint('TourBloc.SetDeliveryServiceValue fehlgeschlagen: $e\n$st');
final latest = state; final latest = state;
@ -866,7 +866,7 @@ class TourBloc extends Bloc<TourEvent, TourState> {
)); ));
} }
opBloc.add(FailOperation( 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<TourEvent, TourState> {
), ),
)); ));
opBloc.add(StartOperation(message: 'Service wird entfernt …')); opBloc.add(StartOperation(message: 'Checkliste-Eintrag wird entfernt …'));
try { try {
await tourRepository.removeDeliveryService( await tourRepository.removeDeliveryService(
deliveryId: event.deliveryId, deliveryId: event.deliveryId,
serviceId: event.serviceId, serviceId: event.serviceId,
); );
opBloc.add(FinishOperation(message: 'Service entfernt')); opBloc.add(FinishOperation(message: 'Checkliste-Eintrag entfernt'));
} catch (e, st) { } catch (e, st) {
debugPrint('TourBloc.RemoveDeliveryServiceValue fehlgeschlagen: $e\n$st'); debugPrint('TourBloc.RemoveDeliveryServiceValue fehlgeschlagen: $e\n$st');
final latest = state; final latest = state;
@ -912,7 +912,7 @@ class TourBloc extends Bloc<TourEvent, TourState> {
)); ));
} }
opBloc.add(FailOperation( opBloc.add(FailOperation(
message: _messageOf(e, 'Service konnte nicht entfernt werden'), message: _messageOf(e, 'Checkliste-Eintrag konnte nicht entfernt werden'),
)); ));
} }
} }

View File

@ -14,7 +14,7 @@ extension WorkflowStepX on WorkflowStep {
WorkflowStep.info => 'Info', WorkflowStep.info => 'Info',
WorkflowStep.notes => 'Notizen', WorkflowStep.notes => 'Notizen',
WorkflowStep.articles => 'Artikel & Gutschriften', WorkflowStep.articles => 'Artikel & Gutschriften',
WorkflowStep.services => 'Services', WorkflowStep.services => 'Checkliste',
WorkflowStep.summary => 'Übersicht', WorkflowStep.summary => 'Übersicht',
}; };
@ -23,7 +23,7 @@ extension WorkflowStepX on WorkflowStep {
WorkflowStep.info => 'Info', WorkflowStep.info => 'Info',
WorkflowStep.notes => 'Notizen', WorkflowStep.notes => 'Notizen',
WorkflowStep.articles => 'Artikel', WorkflowStep.articles => 'Artikel',
WorkflowStep.services => 'Services', WorkflowStep.services => 'Checkliste',
WorkflowStep.summary => 'Übersicht', WorkflowStep.summary => 'Übersicht',
}; };
} }

View File

@ -57,11 +57,11 @@ class StepServices extends StatelessWidget {
Icon(Icons.construction_outlined, Icon(Icons.construction_outlined,
size: 56, color: theme.colorScheme.onSurfaceVariant), size: 56, color: theme.colorScheme.onSurfaceVariant),
const SizedBox(height: 12), const SizedBox(height: 12),
Text('Keine Services konfiguriert', Text('Keine Checkliste konfiguriert',
style: theme.textTheme.titleMedium), style: theme.textTheme.titleMedium),
const SizedBox(height: 4), const SizedBox(height: 4),
Text( Text(
'Ein Administrator kann Services anlegen.', 'Ein Administrator kann eine Checkliste anlegen.',
style: theme.textTheme.bodySmall?.copyWith( style: theme.textTheme.bodySmall?.copyWith(
color: theme.colorScheme.onSurfaceVariant, color: theme.colorScheme.onSurfaceVariant,
), ),