Skip to content

Commit 7e0cafa

Browse files
committed
feat(send-money): add user payment chat history
1 parent d0bfbb4 commit 7e0cafa

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
@@ -77,12 +77,14 @@ import org.mifospay.feature.send.money.navigation.PAYMENT_SUCCESS_ROUTE
7777
import org.mifospay.feature.send.money.navigation.SEND_MONEY_BASE_ROUTE
7878
import org.mifospay.feature.send.money.navigation.SEND_MONEY_OPTIONS_ROUTE
7979
import org.mifospay.feature.send.money.navigation.navigateToPayeeDetailsScreen
80+
import org.mifospay.feature.send.money.navigation.navigateToPaymentChatHistoryScreen
8081
import org.mifospay.feature.send.money.navigation.navigateToPaymentProcessingScreen
8182
import org.mifospay.feature.send.money.navigation.navigateToPaymentSuccessScreen
8283
import org.mifospay.feature.send.money.navigation.navigateToSendMoneyOptionsScreen
8384
import org.mifospay.feature.send.money.navigation.navigateToSendMoneyScreen
8485
import org.mifospay.feature.send.money.navigation.navigateToUpiPinScreen
8586
import org.mifospay.feature.send.money.navigation.payeeDetailsScreen
87+
import org.mifospay.feature.send.money.navigation.paymentChatHistoryScreen
8688
import org.mifospay.feature.send.money.navigation.paymentProcessingScreen
8789
import org.mifospay.feature.send.money.navigation.paymentSuccessScreen
8890
import org.mifospay.feature.send.money.navigation.sendMoneyOptionsScreen
@@ -324,6 +326,9 @@ internal fun MifosNavHost(
324326
onNavigateToPayeeDetails = { qrCodeData ->
325327
navController.navigateToPayeeDetailsScreen(qrCodeData)
326328
},
329+
onPaymentHistoryClick = {
330+
navController.navigateToPaymentChatHistoryScreen()
331+
},
327332
)
328333

329334
sendMoneyScreen(
@@ -333,6 +338,17 @@ internal fun MifosNavHost(
333338
navigateToScanQrScreen = navController::navigateToScanQr,
334339
)
335340

341+
paymentChatHistoryScreen(
342+
onBackClick = navController::popBackStack,
343+
onPaymentClick = {
344+
navController.navigateToSendMoneyOptionsScreen()
345+
},
346+
onTransactionClick = { transactionId ->
347+
// TODO: Navigate to transaction details screen
348+
println("Transaction clicked: $transactionId")
349+
},
350+
)
351+
336352
payeeDetailsScreen(
337353
onBackClick = navController::popBackStack,
338354
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)