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

[#22] [iOS] [Integrate] As a user, I can see Survey header #94

Merged
merged 7 commits into from
Dec 30, 2022

Conversation

blyscuit
Copy link
Owner

@blyscuit blyscuit commented Dec 15, 2022

What happened

Show Survey header with data from API.

Insight

  • Add SurveySelectionViewModel.
  • Call api /me in SurveySelectionViewModel.
  • SurveySelectionViewModel always return SurveyHeaderUiModel regardless of API error.

Proof Of Work

Screen.Recording.2022-12-15.at.17.52.01.mov

@blyscuit blyscuit added this to the 0.4.0 milestone Dec 15, 2022
@blyscuit blyscuit self-assigned this Dec 15, 2022
@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch from 58c0dad to 75bd93c Compare December 15, 2022 11:03
@github-actions
Copy link

github-actions bot commented Dec 15, 2022

1 Warning
⚠️ Big PR

🧛 shared Code Coverage: 81.09%

Coverage of Modified Files:

File Coverage
SurveyHeaderUiModel.kt 100.00%
SurveySelectionViewModel.kt 100.00%
TokenizedNetworkClient.kt 96.33%

Modified Files Not Found In Coverage Report:

AppCoordinator.swift
DomainHelperModule.kt
Koin.kt
KoinApplication.swift
LoginSpec.swift
LoginView+DataSource.swift
LoginViewDataSourceSpec.swift
RouteCoordinator.swift
Screen.swift
Shared+AutoMockable.swift
SplashView+DataSource.swift
Start.kt
SurveyHeaderView.swift
SurveyLoading.swift
SurveyLoadingScreen.swift
SurveySelectionSpec.swift
SurveySelectionView+DataSource.swift
SurveySelectionView.swift
SurveySelectionViewDataSourceSpec.swift
SurveySelectionViewModelTest.kt
ViewDidLoadModifier.swift
ViewModelModule.kt
project.pbxproj

Codebase cunningly covered by count Shroud 🧛

Generated by 🚫 Danger

@github-actions
Copy link

github-actions bot commented Dec 15, 2022

Current coverage for Survey is 82.01%

Files changed - -
KoinApplication.swift 33.33% 🚫
RouteCoordinator.swift 62.50% ⚠️
SurveySelectionView+DataSource.swift 87.10%
LoginView+DataSource.swift 90.24%
SplashView+DataSource.swift 91.49%
SurveySelectionView.swift 96.73%
ViewDidLoadModifier.swift 100.00%
SurveyHeaderView.swift 100.00%
SurveyLoading.swift 100.00%
AppCoordinator.swift 100.00%

Powered by xcov

Generated by 🚫 Danger

@blyscuit blyscuit force-pushed the feature/#21-home-header-backend branch from f29e037 to 243739f Compare December 16, 2022 02:45
@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch from 75bd93c to 19bf25a Compare December 16, 2022 04:05
@blyscuit blyscuit force-pushed the feature/#21-home-header-backend branch from 243739f to 293a85d Compare December 16, 2022 04:24
@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch from 19bf25a to 817ddc3 Compare December 16, 2022 04:24
@blyscuit blyscuit force-pushed the feature/#21-home-header-backend branch from 293a85d to 5a4a3c6 Compare December 16, 2022 05:41
@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch from 817ddc3 to f2d3be7 Compare December 16, 2022 05:41
@blyscuit blyscuit force-pushed the feature/#21-home-header-backend branch from 5a4a3c6 to 2422f15 Compare December 20, 2022 04:28
@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch 2 times, most recently from c304df9 to e72b0d1 Compare December 20, 2022 04:54
@blyscuit blyscuit force-pushed the feature/#21-home-header-backend branch from 2422f15 to 620b57c Compare December 20, 2022 04:54
@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch from e72b0d1 to 095a4db Compare December 20, 2022 04:56
@blyscuit blyscuit force-pushed the feature/#21-home-header-backend branch from 620b57c to 071e6af Compare December 20, 2022 07:30
@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch from 095a4db to 7f0e810 Compare December 20, 2022 07:31
@blyscuit blyscuit force-pushed the feature/#21-home-header-backend branch from 071e6af to cfa377f Compare December 21, 2022 05:47
@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch 4 times, most recently from 7031696 to fbebd54 Compare December 21, 2022 05:58
@blyscuit blyscuit force-pushed the feature/#21-home-header-backend branch from cfa377f to 363fb2d Compare December 22, 2022 03:20
@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch from fbebd54 to f78dfe4 Compare December 22, 2022 03:25
@blyscuit blyscuit marked this pull request as ready for review December 22, 2022 03:25
@blyscuit blyscuit force-pushed the feature/#21-home-header-backend branch 2 times, most recently from de0f72a to f691c78 Compare December 23, 2022 04:39
@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch 2 times, most recently from 456f719 to 5878ecb Compare December 26, 2022 04:15
@blyscuit blyscuit force-pushed the feature/#21-home-header-backend branch from f691c78 to 16ffe7c Compare December 26, 2022 04:17
@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch from 5878ecb to 2465f1a Compare December 26, 2022 04:19
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.

I also see that you modified the Android code in this PR too, implementation-wise there is not an issue from me. At the same time, I think it is better to have a P.o.W on the changed places for Android too 🙏

@blyscuit blyscuit force-pushed the feature/#22-home-header-viewmodel branch from 2465f1a to 572ea6e Compare December 28, 2022 04:13
@blyscuit
Copy link
Owner Author

modified the Android code in this PR too, implementation-wise there is not an issue from me. At the same time, I think it is better to have a P.o.W on the changed places for Android too

@minhnimble I don't think there's an Android code change in this PR? Only on KMM module for ViewModel. They should be no Android code change as I haven't start the Android app yet 🤔

@blyscuit blyscuit requested a review from minhnimble December 28, 2022 07:41
@minhnimble
Copy link
Collaborator

@minhnimble I don't think there's an Android code change in this PR? Only on KMM module for ViewModel. They should be no Android code change as I haven't start the Android app yet 🤔

Oh you are right, I saw the creation of the SurveyHeaderUiModel but there is not a visible implementation for the Android app yet, please ignore then 🙏

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 🚀

Base automatically changed from feature/#21-home-header-backend to develop December 30, 2022 06:12
@blyscuit blyscuit merged commit 241a315 into develop Dec 30, 2022
@blyscuit blyscuit deleted the feature/#22-home-header-viewmodel branch December 30, 2022 06:13
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.

3 participants