fix: add ignore_for_file to data connect Repos and modify CI to avoid analyzing deleted files

This commit is contained in:
2026-02-20 19:51:44 +05:30
parent 24835f127e
commit 474be43448
259 changed files with 1810 additions and 1714 deletions

View File

@@ -29,7 +29,7 @@ class ShiftDetailsBloc extends Bloc<ShiftDetailsEvent, ShiftDetailsState>
) async {
emit(ShiftDetailsLoading());
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final shift = await getShiftDetails(
GetShiftDetailsArguments(shiftId: event.shiftId, roleId: event.roleId),
@@ -49,7 +49,7 @@ class ShiftDetailsBloc extends Bloc<ShiftDetailsEvent, ShiftDetailsState>
Emitter<ShiftDetailsState> emit,
) async {
await handleError(
emit: emit,
emit: emit.call,
action: () async {
await applyForShift(
event.shiftId,
@@ -69,7 +69,7 @@ class ShiftDetailsBloc extends Bloc<ShiftDetailsEvent, ShiftDetailsState>
Emitter<ShiftDetailsState> emit,
) async {
await handleError(
emit: emit,
emit: emit.call,
action: () async {
await declineShift(event.shiftId);
emit(const ShiftActionSuccess("Shift declined"));

View File

@@ -51,7 +51,7 @@ class ShiftsBloc extends Bloc<ShiftsEvent, ShiftsState>
}
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final List<DateTime> days = _getCalendarDaysForOffset(0);
final myShiftsResult = await getMyShifts(
@@ -87,7 +87,7 @@ class ShiftsBloc extends Bloc<ShiftsEvent, ShiftsState>
emit(currentState.copyWith(historyLoading: true));
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final historyResult = await getHistoryShifts();
emit(currentState.copyWith(
@@ -116,7 +116,7 @@ class ShiftsBloc extends Bloc<ShiftsEvent, ShiftsState>
emit(currentState.copyWith(availableLoading: true));
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final availableResult =
await getAvailableShifts(const GetAvailableShiftsArguments());
@@ -164,7 +164,7 @@ class ShiftsBloc extends Bloc<ShiftsEvent, ShiftsState>
}
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final availableResult =
await getAvailableShifts(const GetAvailableShiftsArguments());
@@ -204,7 +204,7 @@ class ShiftsBloc extends Bloc<ShiftsEvent, ShiftsState>
Emitter<ShiftsState> emit,
) async {
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final myShiftsResult = await getMyShifts(
GetMyShiftsArguments(start: event.start, end: event.end),
@@ -250,7 +250,7 @@ class ShiftsBloc extends Bloc<ShiftsEvent, ShiftsState>
}
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final result = await getAvailableShifts(GetAvailableShiftsArguments(
query: event.query ?? currentState.searchQuery,
@@ -280,7 +280,7 @@ class ShiftsBloc extends Bloc<ShiftsEvent, ShiftsState>
if (currentState is! ShiftsLoaded) return;
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final bool isComplete = await getProfileCompletion();
emit(currentState.copyWith(profileComplete: isComplete));