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

[#24] [iOS] [Integrate] As a user, I can log out, Part: ViewModel #101

Merged
merged 8 commits into from
Jan 10, 2023

Conversation

blyscuit
Copy link
Owner

@blyscuit blyscuit commented Dec 23, 2022

What happened

User can logout from the side bar.

Insight

  • Add AccountViewModel.
  • Add AccountViewDataSource.
  • Add guaranteedPublisher to return KMM ViewState as a Publisher with fallback.

Proof Of Work

Screen.Recording.2022-12-22.at.16.41.09.mp4

@github-actions
Copy link

github-actions bot commented Dec 23, 2022

2 Warnings
⚠️ Uh oh! AccountViewModel.kt is under 95% coverage!
⚠️ shared/src/commonTest/kotlin/co/nimblehq/blisskmmic/data/repository/AuthenticationRepositoryTest.kt#L23 - Class 'AuthenticationRepositoryTest' with '10' functions detected. Defined threshold inside classes is set to '10'

🧛 shared Code Coverage: 82.70%

Coverage of Modified Files:

File Coverage
AccountViewModel.kt 92.78%

Modified Files Not Found In Coverage Report:

AccountScreen.swift
AccountSpec.swift
AccountView+DataSource.swift
AccountView.swift
AccountViewDataSourceSpec.swift
AccountViewModelTest.kt
AppCoordinator.swift
KMPNative+Guaranteed.swift
ResetPassword+DataSource.swift
RouteCoordinator.swift
Shared+AutoMockable.swift
SplashView+DataSource.swift
SurveySelectionContainerView.swift
SurveySelectionView+DataSource.swift
UseCaseModule.kt
ViewModelModule.kt
project.pbxproj

Codebase cunningly covered by count Shroud 🧛

Generated by 🚫 Danger

@blyscuit blyscuit force-pushed the feature/#24-logout-integration branch from 67b51d3 to 608580d Compare December 23, 2022 03:27
@github-actions
Copy link

github-actions bot commented Dec 23, 2022

Current coverage for Survey is 84.21%

Files changed - -
KMPNative+Guaranteed.swift 70.00% ⚠️
RouteCoordinator.swift 72.73% ⚠️
SurveySelectionView+DataSource.swift 87.10%
ResetPassword+DataSource.swift 87.50%
SurveySelectionContainerView.swift 91.15%
SplashView+DataSource.swift 91.49%
AccountView+DataSource.swift 100.00%
AccountView.swift 100.00%
AppCoordinator.swift 100.00%

Powered by xcov

Generated by 🚫 Danger

@blyscuit blyscuit changed the title Feature/#24 logout integration [#24] [iOS] [Integrate] As a user, I can log out, Part: ViewModel Dec 26, 2022
@blyscuit blyscuit self-assigned this Dec 26, 2022
@blyscuit blyscuit force-pushed the feature/#25-logout-backend branch from 80e57c0 to 950c0a5 Compare January 3, 2023 08:05
@blyscuit blyscuit force-pushed the feature/#24-logout-integration branch 3 times, most recently from 448cb73 to 892d17e Compare January 4, 2023 05:55
@blyscuit blyscuit force-pushed the feature/#25-logout-backend branch 3 times, most recently from c25a8a5 to c9d23e2 Compare January 4, 2023 10:28
@blyscuit blyscuit force-pushed the feature/#24-logout-integration branch from 892d17e to 18e67c9 Compare January 4, 2023 10:30
@blyscuit blyscuit force-pushed the feature/#24-logout-integration branch from 18e67c9 to fc60eba Compare January 4, 2023 11:38
@blyscuit blyscuit marked this pull request as ready for review January 4, 2023 11:40
@blyscuit blyscuit force-pushed the feature/#24-logout-integration branch from c8ce2ab to 481343a Compare January 5, 2023 03:59
@blyscuit blyscuit requested a review from suho January 5, 2023 03:59
@blyscuit blyscuit force-pushed the feature/#24-logout-integration branch from 9a9e692 to 64f8c3d Compare January 5, 2023 04:45
Copy link
Collaborator

@doannimble doannimble left a comment

Choose a reason for hiding this comment

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

Just a few tiny concerns, rest lgtm

Copy link
Collaborator

@doannimble doannimble left a comment

Choose a reason for hiding this comment

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

LGTM now 💯

@blyscuit blyscuit force-pushed the feature/#24-logout-integration branch from 48cbf91 to 9adb660 Compare January 5, 2023 09:12
Base automatically changed from feature/#25-logout-backend to develop January 5, 2023 11:38
Copy link
Collaborator

@minhnimble minhnimble left a comment

Choose a reason for hiding this comment

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

Just a small concern left regarding the shared showLogin function in multiple coordinator protocols, the rest LGTM 🚀

@blyscuit blyscuit merged commit 1b7268b into develop Jan 10, 2023
@blyscuit blyscuit deleted the feature/#24-logout-integration branch January 10, 2023 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants