Skip to content

Vincent/auth screen improvement#380

Open
vincent-serem wants to merge 4 commits intomasterfrom
vincent/auth-screen-improvement
Open

Vincent/auth screen improvement#380
vincent-serem wants to merge 4 commits intomasterfrom
vincent/auth-screen-improvement

Conversation

@vincent-serem
Copy link
Copy Markdown
Collaborator

@vincent-serem vincent-serem commented Mar 29, 2026

No description provided.

vserem added 4 commits March 25, 2026 09:34
…nhanced UI feedback

- Added `TextInputLayout` with error messaging to `LoginActivity` and `RegisterActivity` for real-time validation feedback.
- Implemented text change listeners to clear validation errors dynamically.
- Refactored loading states to properly toggle button enablement and progress bar visibility during API calls.
- Improved error handling by parsing `ApiErrorResponse` and providing more descriptive error messages.
- Updated layouts (`activity_login.xml`, `account_creation.xml`) to include `TextInputLayout` containers and fix autofill hints.
- Added explicit password validation for the login process.
- Refactored `PinCodeActivity` to use a list for PIN digit inputs and streamlined digit concatenation.
- Implemented automatic focus shifting between PIN input fields using `TextWatcher`.
- Added a `KeyEventListener` to handle backspace navigation between input fields.
- Enhanced the loading state by disabling inputs and buttons, showing a progress bar, and hiding the keyboard during API calls.
- Integrated `InputMethodManager` to automatically show the keyboard on activity start and hide it during processing.
- Migrated hardcoded strings to `strings.xml` and added new string resources for validation errors and success toasts.
- Improved the "Resend PIN" button logic with better visual feedback during the cooldown period using alpha transparency.
- Removed the hardcoded "000000" dummy verification bypass.
- Fixed a minor XML tag syntax error in `strings.xml`.
- Refactored `toHomeScreenForRole` in `NavigationService` to use a cleaner `when` expression and implement `FLAG_ACTIVITY_CLEAR_TASK` to prevent navigating back to authentication screens.
- Updated `onSignOut` and `toLogin` to properly clear the activity back stack and finish the current activity.
- Simplified `Intent` instantiation across `NavigationService` by using `activity` context directly instead of `applicationContext`.
- Fixed a syntax error in `strings.xml` by correcting a malformed closing tag in `breathing_exercise2`.
- Minor formatting cleanup in `strings.xml`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants