Skip to content

Commit da2c95b

Browse files
committed
feat(send-money): add user payment chat history
1 parent 8b166d7 commit da2c95b

File tree

7 files changed

+697
-2
lines changed

7 files changed

+697
-2
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,14 @@ import org.mifospay.feature.send.money.navigation.PAYMENT_SUCCESS_ROUTE
7676
import org.mifospay.feature.send.money.navigation.SEND_MONEY_BASE_ROUTE
7777
import org.mifospay.feature.send.money.navigation.SEND_MONEY_OPTIONS_ROUTE
7878
import org.mifospay.feature.send.money.navigation.navigateToPayeeDetailsScreen
79+
import org.mifospay.feature.send.money.navigation.navigateToPaymentChatHistoryScreen
7980
import org.mifospay.feature.send.money.navigation.navigateToPaymentProcessingScreen
8081
import org.mifospay.feature.send.money.navigation.navigateToPaymentSuccessScreen
8182
import org.mifospay.feature.send.money.navigation.navigateToSendMoneyOptionsScreen
8283
import org.mifospay.feature.send.money.navigation.navigateToSendMoneyScreen
8384
import org.mifospay.feature.send.money.navigation.navigateToUpiPinScreen
8485
import org.mifospay.feature.send.money.navigation.payeeDetailsScreen
86+
import org.mifospay.feature.send.money.navigation.paymentChatHistoryScreen
8587
import org.mifospay.feature.send.money.navigation.paymentProcessingScreen
8688
import org.mifospay.feature.send.money.navigation.paymentSuccessScreen
8789
import org.mifospay.feature.send.money.navigation.sendMoneyOptionsScreen
@@ -320,6 +322,9 @@ internal fun MifosNavHost(
320322
onNavigateToPayeeDetails = { qrCodeData ->
321323
navController.navigateToPayeeDetailsScreen(qrCodeData)
322324
},
325+
onPaymentHistoryClick = {
326+
navController.navigateToPaymentChatHistoryScreen()
327+
},
323328
)
324329

325330
sendMoneyScreen(
@@ -329,6 +334,17 @@ internal fun MifosNavHost(
329334
navigateToScanQrScreen = navController::navigateToScanQr,
330335
)
331336

337+
paymentChatHistoryScreen(
338+
onBackClick = navController::popBackStack,
339+
onPaymentClick = {
340+
navController.navigateToSendMoneyOptionsScreen()
341+
},
342+
onTransactionClick = { transactionId ->
343+
// TODO: Navigate to transaction details screen
344+
println("Transaction clicked: $transactionId")
345+
},
346+
)
347+
332348
payeeDetailsScreen(
333349
onBackClick = navController::popBackStack,
334350
onNavigateToUpiPin = { state ->

core/designsystem/src/commonMain/kotlin/org/mifospay/core/designsystem/icon/MifosIcons.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ package org.mifospay.core.designsystem.icon
1212
import androidx.compose.material.icons.Icons
1313
import androidx.compose.material.icons.automirrored.filled.ArrowBack
1414
import androidx.compose.material.icons.automirrored.filled.ArrowForward
15+
import androidx.compose.material.icons.automirrored.filled.Send
1516
import androidx.compose.material.icons.automirrored.outlined.ArrowBack
1617
import androidx.compose.material.icons.filled.ArrowOutward
1718
import androidx.compose.material.icons.filled.AttachMoney
@@ -41,6 +42,7 @@ import androidx.compose.material.icons.filled.QrCode
4142
import androidx.compose.material.icons.filled.QrCode2
4243
import androidx.compose.material.icons.filled.RadioButtonChecked
4344
import androidx.compose.material.icons.filled.RadioButtonUnchecked
45+
import androidx.compose.material.icons.filled.Send
4446
import androidx.compose.material.icons.filled.Share
4547
import androidx.compose.material.icons.filled.Visibility
4648
import androidx.compose.material.icons.filled.VisibilityOff
@@ -145,4 +147,6 @@ object MifosIcons {
145147
val CurrencyRupee = Icons.Filled.CurrencyRupee
146148
val CheckCircle = Icons.Rounded.CheckCircle
147149
val CheckRounded = Icons.Rounded.Check
150+
151+
val Send = Icons.AutoMirrored.Filled.Send
148152
}

0 commit comments

Comments
 (0)