-
Notifications
You must be signed in to change notification settings - Fork 435
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
refactored the fragments of SetupUpiPinActivity to compose screen #1600
refactored the fragments of SetupUpiPinActivity to compose screen #1600
Conversation
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/composeScreen/DebitCardScreen.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/composeScreen/DebitCardScreen.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/composeScreen/DebitCardScreen.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/composeScreen/OtpTextField.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/composeScreen/OtpScreen.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/composeScreen/UpiPinScreen.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/DebitCardFragment.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/DebitCardFragment.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/OtpFragment.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/ui/SetupUpiPinActivity.kt
Outdated
Show resolved
Hide resolved
@NiranjanNlc adding to @therajanmaurya review, please take into account the following points as well:
|
0250bd1
to
f195a90
Compare
@PratyushSingh07 , |
@therajanmaurya can this be reviewed again?? |
core/ui/src/main/kotlin/org/mifos/mobilewallet/mifospay/ui/HeadingTitile.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/ui/SetupUpiPinActivity.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/screens/OtpScreen.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/screens/SetUpUPiPinScreen.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/screens/UpiPinScreen.kt
Outdated
Show resolved
Hide resolved
mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/screens/UpiPinScreen.kt
Outdated
Show resolved
Hide resolved
2f3cb89
to
77aef4c
Compare
77aef4c
to
f72f7d7
Compare
.fillMaxWidth() | ||
.padding(8.dp), verticalAlignment = Alignment.Bottom | ||
) { | ||
BasicTextField(modifier = Modifier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use MFoutlined text field?
} | ||
|
||
@Composable | ||
fun CharView2( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give an appropriate name
fun showToast(context: Context, message: String?) { | ||
Toaster.showToast(context, message) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use compose snackbar
fun setupUpiPinSuccess(mSetupUpiPin: String?) { | ||
setUpViewModel.setupUpiPin(bankAccountDetails, mSetupUpiPin) | ||
bankAccountDetails!!.isUpiEnabled = true | ||
bankAccountDetails!!.upiPin = mSetupUpiPin | ||
Toaster.showToast(this, Constants.UPI_PIN_SETUP_COMPLETED_SUCCESSFULLY) | ||
val intent = Intent() | ||
intent.putExtra(Constants.UPDATED_BANK_ACCOUNT, bankAccountDetails) | ||
intent.putExtra(Constants.INDEX, index) | ||
setResult(RESULT_OK, intent) | ||
finish() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should have been handled in the compose UI itself
Issue Fix
Fixes #1596 and #1597
Screenshots
Screenshot.mp4
Description
Using the bottom to top approach ,
I was refacoring the fragments of SetupUpiPinActivity to consume compose screen , now migrated whole SetupUpiPinActivity to compose screen
I could not go up to bank activity , so I am testing UI by making some change on the existing activity only .
Apply the
AndroidStyle.xml
style template to your code in Android Studio.Run the unit tests with
./gradlew check
to make sure you didn't break anythingIf you have multiple commits please combine them into one commit by squashing them.