NTP-71663 | message from config for gmail scope error (#16538)

This commit is contained in:
Mohit Rajput
2025-06-11 02:13:57 -07:00
committed by GitHub
parent 1a1a232b8f
commit 7f3abb12e8
3 changed files with 17 additions and 2 deletions

View File

@@ -495,6 +495,11 @@ data class ConfigMessage(
@SerializedName("billDetailsRefreshedDescription")
val billDetailsUpdatedDescription: String =
"We have fetched the latest bill details from your biller. The amount or due date may have changed. Please review before proceeding.",
@SerializedName("gmailScopeErrorTitle")
val gmailScopeErrorTitle: String = "Something seems wrong",
@SerializedName("gmailScopeErrorTitle")
val gmailScopeErrorDescription: String =
"Unfortunately we have encountered a technical issue. Please try again after some time.",
)
data class CoinUtilisationConfig(

View File

@@ -334,6 +334,7 @@ fun BottomSheetContentWithIconHeaderPrimarySecondaryButton(
NaviText(
text = header,
fontSize = 16.sp,
lineHeight = 24.sp,
fontFamily = naviFontFamily,
fontWeight = getFontWeight(FontWeightEnum.NAVI_BODY_DEMI_BOLD),
color = NaviBbpsColor.textPrimary,
@@ -344,6 +345,7 @@ fun BottomSheetContentWithIconHeaderPrimarySecondaryButton(
NaviText(
text = description,
fontSize = 14.sp,
lineHeight = 22.sp,
fontFamily = naviFontFamily,
fontWeight = getFontWeight(FontWeightEnum.NAVI_BODY_REGULAR),
color = NaviBbpsColor.textTertiary,

View File

@@ -121,12 +121,20 @@ constructor(
permission == DetectedBillSource.EMAIL.name &&
GMAIL_READ_ONLY_SCOPE !in (grantedEmailScopes.orEmpty())
) {
updateOpenBottomSheet(false)
val errorConfig =
naviBbpsBaseVM
.getGenericErrorConfig()
.copy(code = ERR_NO_READ_ONLY_GMAIL_SCOPE, tag = ERR_NO_READ_ONLY_GMAIL_SCOPE)
.copy(
code = ERR_NO_READ_ONLY_GMAIL_SCOPE,
tag = ERR_NO_READ_ONLY_GMAIL_SCOPE,
title = naviBbpsDefaultConfig.configMessage.gmailScopeErrorTitle,
description = naviBbpsDefaultConfig.configMessage.gmailScopeErrorDescription,
)
naviBbpsBaseVM.notifyError(errorConfig)
delay(500)
updateBottomSheetCancellable(false)
updateOpenBottomSheet(false)
return
}