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

AuthorEdmir Suljic<esu@dwarf.dk>
Date2025-08-22 13:08:22 +0200
Resolved PR comments

Changed files

comwell_key_app/lib/booking_details/booking_details_page.dart | 2 --
 comwell_key_app/lib/check_in/bloc/check_in_cubit.dart         | 9 ++++-----
 comwell_key_app/lib/check_out/bloc/check_out_cubit.dart       | 1 -
 3 files changed, 4 insertions(+), 8 deletions(-)

Diff

diff --git a/comwell_key_app/lib/booking_details/booking_details_page.dart b/comwell_key_app/lib/booking_details/booking_details_page.dart
index b7ee3266..fd59ef13 100644
--- a/comwell_key_app/lib/booking_details/booking_details_page.dart
+++ b/comwell_key_app/lib/booking_details/booking_details_page.dart
@@ -31,8 +31,6 @@ class BookingDetailsPage extends StatelessWidget {
cubit.add(InitialEvent());
}
- debugPrint("booking ${cubit.booking}");
-
return Scaffold(
extendBodyBehindAppBar: true,
backgroundColor: colorBackground,
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 9ac3c840..e3c926df 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
@@ -18,10 +18,11 @@ class CheckInCubit extends Cubit<CheckInState> {
await Future<void>.delayed(const Duration(milliseconds: 500));
emit(state.checkInStatusLoading());
await _checkInRepository.checkIn(booking.confirmationId);
- final bookingDetails = await _checkInRepository.getBookingDetails(booking.id);
+ final bookingDetails =
+ await _checkInRepository.getBookingDetails(booking.id);
emit(state.checkInStatusRoomFound(roomNumber: bookingDetails.roomNumber));
- //await _checkInRepository.checkIfSetup();
- // await tryGetKeys();
+ await _checkInRepository.checkIfSetup();
+ await tryGetKeys();
await Future<void>.delayed(const Duration(milliseconds: 1000));
emit(state.checkInStatusYourDigitalCard(
@@ -56,7 +57,5 @@ class CheckInCubit extends Cubit<CheckInState> {
}
}
-
-
static const getKeysRetryAttempts = 3;
}
diff --git a/comwell_key_app/lib/check_out/bloc/check_out_cubit.dart b/comwell_key_app/lib/check_out/bloc/check_out_cubit.dart
index 6dd36e0f..afc9e00f 100644
--- a/comwell_key_app/lib/check_out/bloc/check_out_cubit.dart
+++ b/comwell_key_app/lib/check_out/bloc/check_out_cubit.dart
@@ -59,7 +59,6 @@ class CheckoutCubit extends Cubit<CheckoutState> {
}
Future<void> processPayment() async {
- //TODO: Finish this when upsales are implemented
final analyticsEventItem = AnalyticsEventItem(
hotelName: booking.hotelName,
currency: "DKK",