- Task #6: WebSocket /ws/dashboard + Kafka events (5 topics) * Backend: KafkaEventProducer, KafkaEventConsumer * Mobile: WebSocketService (reconnection, heartbeat, typed events) * DashboardBloc: Auto-refresh depuis WebSocket events - Finance Workflow: approbations + budgets (backend + mobile) * Backend: entities, services, resources, migrations Flyway V6 * Mobile: features finance_workflow complète avec BLoC - Corrections DI: interfaces IRepository partout * IProfileRepository, IOrganizationRepository, IMembreRepository * GetIt configuré avec @injectable - Spec-Kit: constitution + templates mis à jour * .specify/memory/constitution.md enrichie * Templates agent, plan, spec, tasks, checklist - Nettoyage: fichiers temporaires supprimés Signed-off-by: lions dev Team
46 lines
1.1 KiB
Dart
46 lines
1.1 KiB
Dart
part of 'admin_users_bloc.dart';
|
|
|
|
abstract class AdminUsersState {}
|
|
|
|
class AdminUsersInitial extends AdminUsersState {}
|
|
|
|
class AdminUsersLoading extends AdminUsersState {}
|
|
|
|
class AdminUsersLoaded extends AdminUsersState {
|
|
final List<AdminUserModel> users;
|
|
final int totalCount;
|
|
final int currentPage;
|
|
final int pageSize;
|
|
final int totalPages;
|
|
AdminUsersLoaded({
|
|
required this.users,
|
|
required this.totalCount,
|
|
required this.currentPage,
|
|
required this.pageSize,
|
|
required this.totalPages,
|
|
});
|
|
}
|
|
|
|
class AdminUsersError extends AdminUsersState {
|
|
final String message;
|
|
AdminUsersError(this.message);
|
|
}
|
|
|
|
class AdminUserDetailLoaded extends AdminUsersState {
|
|
final AdminUserModel user;
|
|
final List<AdminRoleModel> userRoles;
|
|
final List<AdminRoleModel> allRoles;
|
|
AdminUserDetailLoaded({
|
|
required this.user,
|
|
required this.userRoles,
|
|
this.allRoles = const [],
|
|
});
|
|
}
|
|
|
|
class AdminRolesLoaded extends AdminUsersState {
|
|
final List<AdminRoleModel> roles;
|
|
AdminRolesLoaded(this.roles);
|
|
}
|
|
|
|
class AdminUserRolesUpdated extends AdminUsersState {}
|