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

PIA-882: Login feature for tvOS #44

Merged
merged 7 commits into from
Dec 13, 2023
Merged

Conversation

kp-said-rehouni
Copy link
Collaborator

@kp-said-rehouni kp-said-rehouni commented Dec 11, 2023

Summary

This PR adds the Login screen to PIA tvOS. It includes all the different layers involved:

  • UI
  • Data
  • Presentation
  • Domain/App logic
  • Composition Root

LoginViewModel exposes a status property in order to validate the logic when unit testing since the screen does not navigate when the operations was successful. This property will be taken care of once we tackle the navigation to the next screen.

Tests are composed mainly by unit tests. There are also a couple of integration tests that are mocking the login provider which is a bridge to PIALibrary's DefaultAccountProvider. These tests are responsible of testing the integration between the all the different components on presentation and domain layers.

Error handling and proper design will be tackled in a different PR.

Architecture

Screenshot 2023-12-11 at 22 23 30

Copy link
Contributor

@kp-juan-docal kp-juan-docal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is still one import PIALibrary in the Presentation layer. Is it still needed?

@kp-said-rehouni kp-said-rehouni merged commit d9f39a2 into master Dec 13, 2023
1 check failed
@kp-said-rehouni kp-said-rehouni deleted the PIA-882_tvos_sign_in_ui branch December 13, 2023 11:33
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.

2 participants