Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALFMOB-151: Sync Sign In / Sign Out buttons state #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JoaoPinhoMinder
Copy link
Contributor

Ticket

https://mindera.atlassian.net/browse/ALFMOB-151

Description

This update ensures that the Sign In / Sign Out button in the Account section consistently reflects the user's authentication state, staying in sync with the Home screen button.

Changes implemented:

  • Added a SessionService that holds user authentication state and is responsible to Sign In / Sign Out user.
  • Refactor HomeView to have a HomeViewModel.
  • Updated HomeView to send event of Sign In / Sign Out to the HomeViewModel that will update authentication state in SessionService.
  • Updated AccountView to send event of Sign In / Sign Out option selected to the AccountViewModel that will update authentication state in SessionService.

Evidences

Screen.Recording.2025-03-05.at.12.17.41.mov

This update ensures that the Sign In / Sign Out button in the `Account` section consistently reflects the user's authentication state, staying in sync with the `Home` screen button.

Changes implemented:
- Added a `SessionService` that holds user authentication state and is responsible to Sign In / Sign Out user.
- Refactor `HomeView` to have a `HomeViewModel`.
- Updated `HomeView ` to send event of Sign In / Sign Out to the `HomeViewModel` that will update authentication state in `SessionService`.
- Updated `AccountView` to send event of Sign In / Sign Out option selected to the `AccountViewModel` that will update authentication state in `SessionService`.
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.

1 participant