feat: implement form validation helpers and integrate field-level validation in agent profile screen, reset auth error suppression on login, and clean up home header UI.

This commit is contained in:
pradeepkumar
2026-04-15 15:45:05 +05:30
parent 347cb6a810
commit df32a83692
3 changed files with 225 additions and 67 deletions

View File

@@ -137,6 +137,10 @@ class AuthNotifier extends StateNotifier<AuthState> {
required String password,
String? loginRole,
}) async {
// Reset suppressAuthErrors in case a prior logout left it enabled —
// otherwise the 401 interceptor rejects errors unwrapped and we lose
// the backend's message (e.g. role-mismatch), falling back to generic.
ApiClient.suppressAuthErrors = false;
state = state.copyWith(
status: AuthStatus.loading,
errorMessage: null,