6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit eee48d5a

AuthorEdmir Suljic<esu@dwarf.dk>
Date2025-06-16 11:22:54 +0200
Added the check in button to the booking details bottom sheet for testing. It will skip the check in step and provision the keys directly

Changed files

.../lib/booking_details/components/booking_details_bottom_sheet.dart   | 3 +++
 comwell_key_app/lib/check_in/bloc/check_in_cubit.dart                  | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

Diff

diff --git a/comwell_key_app/lib/booking_details/components/booking_details_bottom_sheet.dart b/comwell_key_app/lib/booking_details/components/booking_details_bottom_sheet.dart
index 74b27e80..5ef0e7d0 100644
--- a/comwell_key_app/lib/booking_details/components/booking_details_bottom_sheet.dart
+++ b/comwell_key_app/lib/booking_details/components/booking_details_bottom_sheet.dart
@@ -1,4 +1,5 @@
import 'package:comwell_key_app/booking_details/bloc/booking_details_bloc.dart';
+import 'package:comwell_key_app/booking_details/components/check_in_button_timer.dart';
import 'package:comwell_key_app/booking_details/components/check_out_button.dart';
import 'package:comwell_key_app/booking_details/components/housekeeping_button.dart';
import 'package:comwell_key_app/booking_details/components/practical_information_button.dart';
@@ -64,6 +65,8 @@ class BookingDetailsBottomSheet extends StatelessWidget {
Text('rooms'.tr()),
const SizedBox(height: 16),
Text('room_keys'.tr()),
+ const SizedBox(height: 16),
+ const CheckInButtonTimer(),
const SizedBox(height: 400),
],
);
diff --git a/comwell_key_app/lib/check_in/bloc/check_in_cubit.dart b/comwell_key_app/lib/check_in/bloc/check_in_cubit.dart
index 28ee56b1..251f90c0 100644
--- a/comwell_key_app/lib/check_in/bloc/check_in_cubit.dart
+++ b/comwell_key_app/lib/check_in/bloc/check_in_cubit.dart
@@ -17,7 +17,7 @@ class CheckInCubit extends Cubit<CheckInState> {
try {
await Future<void>.delayed(const Duration(milliseconds: 500));
emit(state.checkInStatusLoading());
- await _checkInRepository.checkIn(booking.confirmationId);
+ //await _checkInRepository.checkIn(booking.confirmationId);
final bookingDetails = await _checkInRepository.getBookingDetails(booking.id);
emit(state.checkInStatusRoomFound(roomNumber: bookingDetails.roomNumber));
await _checkInRepository.checkIfSetup();