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

@@ -1,3 +1,4 @@
import 'package:firebase_data_connect/src/core/ref.dart';
import 'package:krow_data_connect/krow_data_connect.dart' as dc;
import 'package:krow_data_connect/krow_data_connect.dart';
import 'package:krow_domain/krow_domain.dart';
@@ -16,7 +17,7 @@ class PaymentsRepositoryImpl
final String currentStaffId = await _service.getStaffId();
// Fetch recent payments with a limit
final response = await _service.connector.listRecentPaymentsByStaffId(
final QueryResult<dc.ListRecentPaymentsByStaffIdData, dc.ListRecentPaymentsByStaffIdVariables> response = await _service.connector.listRecentPaymentsByStaffId(
staffId: currentStaffId,
).limit(100).execute();
@@ -61,7 +62,7 @@ class PaymentsRepositoryImpl
return _service.run(() async {
final String currentStaffId = await _service.getStaffId();
final response = await _service.connector
final QueryResult<dc.ListRecentPaymentsByStaffIdData, dc.ListRecentPaymentsByStaffIdVariables> response = await _service.connector
.listRecentPaymentsByStaffId(staffId: currentStaffId)
.execute();

View File

@@ -25,7 +25,7 @@ class PaymentsBloc extends Bloc<PaymentsEvent, PaymentsState>
) async {
emit(PaymentsLoading());
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final PaymentSummary currentSummary = await getPaymentSummary();
@@ -51,7 +51,7 @@ class PaymentsBloc extends Bloc<PaymentsEvent, PaymentsState>
final PaymentsState currentState = state;
if (currentState is PaymentsLoaded) {
await handleError(
emit: emit,
emit: emit.call,
action: () async {
final List<StaffPayment> newHistory = await getPaymentHistory(
GetPaymentHistoryArguments(event.period),

View File

@@ -37,7 +37,7 @@ class _PaymentsPageState extends State<PaymentsPage> {
child: Scaffold(
backgroundColor: UiColors.background,
body: BlocConsumer<PaymentsBloc, PaymentsState>(
listener: (context, state) {
listener: (BuildContext context, PaymentsState state) {
// Error is already shown on the page itself (lines 53-63), no need for snackbar
},
builder: (BuildContext context, PaymentsState state) {