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

refactor: refactor NewIndividual Collection Sheet screen to jetpack compose with multi module #2100

Merged
merged 7 commits into from
Jun 3, 2024

Conversation

Aditya-gupta99
Copy link
Collaborator

@Aditya-gupta99 Aditya-gupta99 commented May 19, 2024

Fixes #2096
Jira MIFOSAC-202


XML Screen
Record_2024-05-14-23-57-10.mp4

Jetpack Compose
Record_2024-05-20-19-46-19.mp4
  • Apply the MifosStyle.xml style template to your code in Android Studio.

  • Run the unit tests with ./gradlew check to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

@therajanmaurya
Copy link
Member

therajanmaurya commented May 19, 2024

Generate button should be disabled if office is not selected and change hint text Office to Select office

}

@Composable
fun MifosScaffoldNoTopBar(
Copy link
Member

Choose a reason for hiding this comment

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

Expose the Topbar in the above function and make it nullable and then update this function by passing null for topbar.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed this composable and made the changes that you suggested.

Copy link
Member

Choose a reason for hiding this comment

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

this should not be part of the source code, delete it and add in git ignore.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Accidentally updated with code.

@@ -9,4 +9,11 @@ android {

dependencies {

implementation(project(":core:datastore"))
Copy link
Member

Choose a reason for hiding this comment

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

have you tried projects.core.datastore, check it should be accessible

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I made this change

@@ -18,27 +18,6 @@ import javax.inject.Singleton
@InstallIn(SingletonComponent::class)
class ApplicationModule {

// @Provides
Copy link
Member

Choose a reason for hiding this comment

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

why did you commented this code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

While implementing multi-module, I commented this code but forgot to remove it.

ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed
)
setContent {
val viewModel: NewIndividualCollectionSheetViewModel = hiltViewModel()
Copy link
Member

Choose a reason for hiding this comment

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

@PratyushSingh07 can you help @Aditya-gupta99 about injecting viewmodel in compose function

Choose a reason for hiding this comment

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

I have asked him to make those changes

@Composable
private fun NewIndividualCollectionSheetPreview() {
NewIndividualCollectionSheetScreen(
NewIndividualCollectionSheetUiState(),
Copy link
Member

Choose a reason for hiding this comment

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

In any way this will not generate the proper UI state wise preview, connect with @AvneetSingh2001 or @PratyushSingh07 fix this.

Choose a reason for hiding this comment

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

ok

Choose a reason for hiding this comment

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

sure bhaiya

@therajanmaurya therajanmaurya merged commit 3f80343 into openMF:master Jun 3, 2024
5 checks passed
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.

refactor: refactor NewIndividual Collection Sheet screen to jetpack compose with multi module
3 participants