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

Bug + Refactor : Auth Module #2237

Closed
wants to merge 6 commits into from
Closed

Conversation

Darkeye14
Copy link
Contributor

Fixes #Issue_Number
MIFOSAC-277

1)Fixes Post Login navigation issue.
2) CleanUp of Auth Module
3)Applying Spotless and detekt

Please Add Screenshots If there are any UI changes.

WhatsApp.Video.2024-11-13.at.20.17.31_45a044b3.mp4

Please make sure these boxes are checked before submitting your pull request - thanks!

  • 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.

Comment on lines 40 to 43
},
onSuccessNavigate = {
startActivity(Intent(this, HomeActivity::class.java))
finish()
Copy link
Contributor

Choose a reason for hiding this comment

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

why are we adding this? In compose we only need one activity, this LoginActivity.kt file should be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed it in #2235 bhai. Hold on.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Darkeye14 Login comes under auth.. Anything that is not related to settings-module should not get deleted in settingsPR

Comment on lines 33 to 36
navigatePasscode = {},
navigateHome = navController::navigateHome,
updateServerConfig = {}
updateServerConfig = {},
onSuccessNavigate = navController ::navigateHome
Copy link
Contributor

Choose a reason for hiding this comment

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

2 navigateHome?

# Conflicts:
#	feature/auth/src/main/java/com/mifos/feature/auth/login/LoginScreen.kt
#	feature/auth/src/main/java/com/mifos/feature/auth/login/LoginUiState.kt
#	feature/auth/src/main/java/com/mifos/feature/auth/navigation/AuthNavigation.kt
if (prefManager.getPassCodeStatus()) {
_loginUiState.value = LoginUiState.HomeActivityIntent
} else {
_loginUiState.value = LoginUiState.PassCodeActivityIntent
}
_loginUiState.value = LoginUiState.HomeActivityIntent
Copy link
Contributor

Choose a reason for hiding this comment

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

don't do this. Fix authNavgraph of Login Screen

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bhai, i think this could be the right logic. lets connect in gmeet whenever you are free

@Darkeye14
Copy link
Contributor Author

I'll be closing this Now.

@Darkeye14 Darkeye14 closed this Nov 14, 2024
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