From e3f7e1ac3e2d5c25c716bf3b8260864fb1ce2f20 Mon Sep 17 00:00:00 2001 From: Achintha Isuru Date: Sat, 14 Mar 2026 14:30:28 -0400 Subject: [PATCH] fix(clock_in): restore early check-in banner logic for active shifts --- .../widgets/clock_in_action_section.dart | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/mobile/packages/features/staff/clock_in/lib/src/presentation/widgets/clock_in_action_section.dart b/apps/mobile/packages/features/staff/clock_in/lib/src/presentation/widgets/clock_in_action_section.dart index 54173ba9..292afac0 100644 --- a/apps/mobile/packages/features/staff/clock_in/lib/src/presentation/widgets/clock_in_action_section.dart +++ b/apps/mobile/packages/features/staff/clock_in/lib/src/presentation/widgets/clock_in_action_section.dart @@ -105,21 +105,21 @@ class ClockInActionSection extends StatelessWidget { /// Builds the action widget for an active (not completed) shift. Widget _buildActiveShiftAction(BuildContext context) { - // if (!isCheckedIn && !ClockInHelpers.isCheckInAllowed(selectedShift!)) { - // return Column( - // mainAxisSize: MainAxisSize.min, - // children: [ - // const GeofenceStatusBanner(), - // const SizedBox(height: UiConstants.space3), - // EarlyCheckInBanner( - // availabilityTime: ClockInHelpers.getCheckInAvailabilityTime( - // selectedShift!, - // context, - // ), - // ), - // ], - // ); - // } + if (!isCheckedIn && !ClockInHelpers.isCheckInAllowed(selectedShift!)) { + return Column( + mainAxisSize: MainAxisSize.min, + children: [ + const GeofenceStatusBanner(), + const SizedBox(height: UiConstants.space3), + EarlyCheckInBanner( + availabilityTime: ClockInHelpers.getCheckInAvailabilityTime( + selectedShift!, + context, + ), + ), + ], + ); + } return BlocBuilder( builder: (BuildContext context, GeofenceState geofenceState) {