Skip to content

Feature:auth to cmp #2360

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

Open
wants to merge 1 commit into
base: kmp-impl
Choose a base branch
from

Conversation

Aditya3815
Copy link
Contributor

Fixes - Jira-#MIFOSAC-414

Didn't create a Jira ticket, click here to create new.

Please Add Screenshots If there are any UI changes.

Before After

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

  • Run the static analysis check ./gradlew check or ci-prepush.sh to make sure you didn't break anything

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

@itsPronay

This comment was marked as resolved.

add("commonMainImplementation", project(":core:testing"))
add("commonMainImplementation", project(":core:data"))
// add("commonMainImplementation", project(":core:testing"))
// add("commonMainImplementation", project(":core:data"))

Choose a reason for hiding this comment

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

Remove the testing one instead of commenting

@@ -141,7 +142,7 @@ internal fun LoginScreen(
modifier = modifier
.fillMaxSize()
.padding(16.dp),
containerColor = Color.White,
containerColor = White,
snackbarHost = { SnackbarHost(snackbarHostState) },

Choose a reason for hiding this comment

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

I think we have to remove all explicitly defined colours like how we didit in mifos mobile

error = usernameError.value?.let { it1 -> stringResource(it1) },
trailingIcon = {
if (usernameError.value != null) {
Icon(imageVector = Icons.Filled.Error, contentDescription = null)
Icon(imageVector = MifosIcons.Error, contentDescription = null)
}
Copy link

@revanthkumarJ revanthkumarJ Apr 11, 2025

Choose a reason for hiding this comment

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

for content description give any valid string instead of null

// modifier: Modifier,
// containerColor: Color,
// snackbarHost: () -> SnackbarHost,
// bottomBar: () -> Unit,

Choose a reason for hiding this comment

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

Can i know what is it for?

_loginUiState.value =
LoginUiState.ShowError(R.string.feature_auth_error_login_failed)
LoginUiState.ShowError(Res.string.feature_auth_error_login_failed)
Log.e("@@@", "login: ${result.message}")
}

Choose a reason for hiding this comment

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

you have removed import android.util.Log but didn't used Logger like that didn't it showing any error at Log?

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.

3 participants