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

[#41] [Integrate] As a user, I can submit my form #130

Merged
merged 5 commits into from
Mar 7, 2023

Conversation

blyscuit
Copy link
Owner

@blyscuit blyscuit commented Feb 17, 2023

What happened

Integrate form submission.

Insight

  • Create new view state SurveyQuestionViewState for SurveyDetailViewModel.
  • Bind SurveyQuestionViewState to SurveyDetailView.
  • Move all UI logics from SurveyDetailView to SurveyDetailViewModel.
  • Create SurveySubmissionUiModel for mapping answers from UI to Domain use case.

Proof Of Work

Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-02-17.at.15.00.48.mp4

@github-actions
Copy link

github-actions bot commented Feb 17, 2023

Current coverage for Survey is 63.59%

Files changed - -
QuestionRangePickerView.swift 0.00% 💀
QuestionMultiChoiceView.swift 0.00% 💀
SurveyQuestionView.swift 0.00% 💀
QuestionMultiFormView.swift 0.00% 💀
QuestionTextAreaView.swift 0.00% 💀
QuestionEmojiView.swift 0.00% 💀
QuestionPickerView.swift 0.00% 💀
SurveyDetailView.swift 61.73% ⚠️
SurveyDetailView+DataSource.swift 66.67% ⚠️

Powered by xcov

Generated by 🚫 Danger

@github-actions
Copy link

github-actions bot commented Feb 17, 2023

4 Warnings
⚠️ Uh oh! Your project is under 80% coverage!
⚠️ shared/build/generated/moko/androidMain/res/values/colors.xml#L3 - The resource R.color.backgroundColor appears to be unused
⚠️ shared/build/generated/moko/androidMain/res/values/colors.xml#L4 - The resource R.color.primary appears to be unused
⚠️ shared/src/commonMain/kotlin/co/nimblehq/blisskmmic/data/network/core/TokenizedNetworkClient.kt#L47 - The function bearerConfig is too long (21). The maximum length is 20.

🧛 shared Code Coverage: 79.66%

Coverage of Modified Files:

File Coverage
SurveyDetailDummy.kt 100.00%
SurveyDetailViewModel.kt 97.65%
SurveyQuestionViewState.kt 100.00%
SurveySelectionViewModel.kt 96.83%
SurveySubmissionUiModel.kt 100.00%

Modified Files Not Found In Coverage Report:

QuestionEmojiView.swift
QuestionMultiChoiceView.swift
QuestionMultiFormView.swift
QuestionPickerView.swift
QuestionRangePickerView.swift
QuestionTextAreaView.swift
SurveyDetailView+DataSource.swift
SurveyDetailView.swift
SurveyDetailViewModelTest.kt
SurveyQuestionView.swift
ViewModelModule.kt

Codebase cunningly covered by count Shroud 🧛

Generated by 🚫 Danger

@blyscuit blyscuit force-pushed the feature/#42-thank-you-screen branch 2 times, most recently from fdb1957 to 394f965 Compare February 22, 2023 02:25
@blyscuit blyscuit changed the title Feature/#41 submit integration [#41] [Integrate] As a user, I can submit my form #41 Feb 22, 2023
@blyscuit blyscuit changed the title [#41] [Integrate] As a user, I can submit my form #41 [#41] [Integrate] As a user, I can submit my form Feb 22, 2023
@blyscuit blyscuit force-pushed the feature/#41-submit-integration branch from e3f5058 to db12b91 Compare February 22, 2023 03:17
@blyscuit blyscuit force-pushed the feature/#42-thank-you-screen branch from 658afed to 90c3aff Compare February 27, 2023 08:49
@blyscuit blyscuit force-pushed the feature/#41-submit-integration branch from db12b91 to 005c330 Compare February 27, 2023 08:59
@blyscuit blyscuit marked this pull request as ready for review February 27, 2023 09:47
Base automatically changed from feature/#42-thank-you-screen to develop February 28, 2023 02:35
@blyscuit blyscuit force-pushed the feature/#41-submit-integration branch from 005c330 to 33ea5b3 Compare February 28, 2023 02:35
@blyscuit blyscuit force-pushed the feature/#41-submit-integration branch from 01878c0 to abe5f9b Compare March 7, 2023 07:12
@blyscuit
Copy link
Owner Author

blyscuit commented Mar 7, 2023

@minhnimble Thank you for the suggestions. Updated to your suggestions. 🙏

@blyscuit blyscuit requested a review from minhnimble March 7, 2023 07:22
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.

Only one refactor point left, the rest LGTM 🚀

Copy link
Collaborator

@edgarss edgarss left a comment

Choose a reason for hiding this comment

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

Small comment about naming of the class SurveySubmissionUiModel, otherwise LGTM

Copy link
Collaborator

@suho suho left a comment

Choose a reason for hiding this comment

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

LGTM!

@blyscuit blyscuit force-pushed the feature/#41-submit-integration branch from abe5f9b to bd8b68e Compare March 7, 2023 11:44
@blyscuit blyscuit merged commit 3a17a40 into develop Mar 7, 2023
@blyscuit blyscuit deleted the feature/#41-submit-integration branch March 7, 2023 12: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.

4 participants