Skip to content

Commit 238c357

Browse files
committed
feat(feature:send-money): implement recent and all contacts on upi sections
1 parent f9fb864 commit 238c357

File tree

6 files changed

+385
-117
lines changed

6 files changed

+385
-117
lines changed

cmp-android/prodRelease-badging.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package: name='org.mifospay' versionCode='1' versionName='2025.8.4-beta.0.12' platformBuildVersionName='15' platformBuildVersionCode='35' compileSdkVersion='35' compileSdkVersionCodename='15'
1+
package: name='org.mifospay' versionCode='1' versionName='2025.8.4-beta.0.13' platformBuildVersionName='15' platformBuildVersionCode='35' compileSdkVersion='35' compileSdkVersionCodename='15'
22
minSdkVersion:'26'
33
targetSdkVersion:'34'
44
uses-permission: name='android.permission.INTERNET'

cmp-shared/src/commonMain/kotlin/org/mifospay/shared/navigation/MifosNavHost.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ import org.mifospay.feature.savedcards.createOrUpdate.navigateToCardAddEdit
7171
import org.mifospay.feature.savedcards.details.cardDetailRoute
7272
import org.mifospay.feature.savedcards.details.navigateToCardDetails
7373
import org.mifospay.feature.send.money.SendMoneyScreen
74-
import org.mifospay.feature.send.money.navigation.CONTACTS_PICKER_ROUTE
74+
import org.mifospay.feature.send.money.navigation.PAY_ANYONE_ROUTE
7575
import org.mifospay.feature.send.money.navigation.SEND_MONEY_BASE_ROUTE
7676
import org.mifospay.feature.send.money.navigation.SEND_MONEY_OPTIONS_ROUTE
7777
import org.mifospay.feature.send.money.navigation.contactsPickerScreen
@@ -331,7 +331,7 @@ internal fun MifosNavHost(
331331
onContactPickerClick = {
332332
navController.navigateToContactsPickerScreen()
333333
},
334-
onContactSelected = { contact ->
334+
onContactSelected = { phoneNumber ->
335335
// Handle contact selection - this would typically update the input field
336336
// For now, we'll just navigate back
337337
navController.popBackStack()
@@ -340,12 +340,12 @@ internal fun MifosNavHost(
340340

341341
contactsPickerScreen(
342342
onBackClick = navController::popBackStack,
343-
onContactSelected = { contact ->
344-
// Navigate back to Pay Anyone screen with selected contact
343+
onContactSelected = { phoneNumber ->
344+
// Navigate back to Pay Anyone screen with selected phone number
345345
navController.navigateToPayAnyoneScreen(
346-
selectedContact = contact,
346+
selectedContactPhone = phoneNumber,
347347
navOptions = navOptions {
348-
popUpTo(CONTACTS_PICKER_ROUTE) { inclusive = true }
348+
popUpTo(PAY_ANYONE_ROUTE) { inclusive = true }
349349
},
350350
)
351351
},

feature/send-money/src/commonMain/kotlin/org/mifospay/feature/send/money/ContactsPickerScreen.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ data class Contact(
6565
@Composable
6666
fun ContactsPickerScreen(
6767
onBackClick: () -> Unit,
68-
onContactSelected: (Contact) -> Unit,
68+
onContactSelected: (String) -> Unit,
6969
modifier: Modifier = Modifier,
7070
) {
7171
var searchQuery by remember { mutableStateOf("") }
@@ -153,7 +153,7 @@ fun ContactsPickerScreen(
153153
Spacer(modifier = Modifier.height(KptTheme.spacing.md))
154154

155155
Text(
156-
text = "Mobile Contacts",
156+
text = "All Contacts",
157157
style = KptTheme.typography.labelLarge,
158158
color = KptTheme.colorScheme.onSurface.copy(alpha = 0.8f),
159159
textAlign = TextAlign.Left,
@@ -197,7 +197,7 @@ fun ContactsPickerScreen(
197197
contact = contact,
198198
onClick = {
199199
println("ContactsPickerScreen: Contact clicked - ${contact.phoneNumber}")
200-
onContactSelected(contact)
200+
onContactSelected(contact.phoneNumber)
201201
},
202202
)
203203

0 commit comments

Comments
 (0)