NTP-7772 | KYC Incident | Cache API OnCreate | Policy Details Screen UI Fix (#13528)
This commit is contained in:
@@ -68,7 +68,7 @@ export const getBenefitPageData = async (
|
||||
properties: {
|
||||
methodName: AnalyticsFlowNameConstant.GI_RN_BENEFIT,
|
||||
reason: `${error.message}, axiosError: ${error.axiosCode}`,
|
||||
statusCode: error.statusCode,
|
||||
statusCode: error.statusCode.toString(),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ export const getMarketBenefitComparePageData = async (
|
||||
properties: {
|
||||
methodName: AnalyticsFlowNameConstant.GI_RN_BENEFIT_COMPARE,
|
||||
reason: `${error.message}, axiosError: ${error.axiosCode}`,
|
||||
statusCode: error.statusCode,
|
||||
statusCode: error.statusCode.toString(),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ export const getWaitingPeriodScreenData = async (
|
||||
properties: {
|
||||
methodName: AnalyticsFlowNameConstant.GI_WAITING_PERIOD,
|
||||
reason: `${error.message}, axiosError: ${error.axiosCode}`,
|
||||
statusCode: error.statusCode,
|
||||
statusCode: error.statusCode.toString(),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@@ -23,9 +23,11 @@ fun InitScreenLifeCycleListener(activity: HomePageActivity, viewmodel: Insurance
|
||||
DisposableEffect(key1 = lifecycleOwner) {
|
||||
val observer = LifecycleEventObserver { _, event ->
|
||||
when (event) {
|
||||
Lifecycle.Event.ON_CREATE -> {
|
||||
viewmodel.clearCacheOnVersionUpgrade()
|
||||
}
|
||||
Lifecycle.Event.ON_RESUME -> {
|
||||
viewmodel.fetchInsuranceTabDetails()
|
||||
viewmodel.clearCacheOnVersionUpgrade()
|
||||
viewmodel.observeCtaData(
|
||||
viewmodel = viewmodel,
|
||||
activity = activity,
|
||||
|
||||
@@ -423,6 +423,7 @@ class GiAadhaarVerificationFragment : GiBaseFragment(), OKYCListener {
|
||||
analyticsEventTracker.okycFailed(
|
||||
mapOf(
|
||||
Pair("error_code", error.errorCode.toString()),
|
||||
Pair("message", error.message.toString()),
|
||||
Pair("error_message", error.errorMessage),
|
||||
Pair("screen", screenName)
|
||||
)
|
||||
|
||||
@@ -116,17 +116,25 @@ class PolicyDetailsFragment : BaseFragment(), WidgetCallback {
|
||||
modifier = Modifier.fillMaxSize().background(color = Color.White),
|
||||
topBar = {
|
||||
data.headerNativeWidget?.getOrNull(0)?.let { data ->
|
||||
GenericComposableWidgetFactory(data = data, this, isFirstItemVisible)
|
||||
Box(modifier = Modifier.background(color = Color.White)) {
|
||||
GenericComposableWidgetFactory(
|
||||
data = data,
|
||||
this@PolicyDetailsFragment,
|
||||
isFirstItemVisible
|
||||
)
|
||||
}
|
||||
}
|
||||
},
|
||||
bottomBar = {
|
||||
data.footerNativeWidget?.getOrNull(0)?.let { data ->
|
||||
GenericComposableWidgetFactory(data = data, this)
|
||||
Box(modifier = Modifier.background(color = Color.White)) {
|
||||
GenericComposableWidgetFactory(data = data, this@PolicyDetailsFragment)
|
||||
}
|
||||
}
|
||||
}
|
||||
) { paddingValues ->
|
||||
CompositionLocalProvider(LocalOverscrollConfiguration provides null) {
|
||||
Box(modifier = Modifier.padding(paddingValues)) {
|
||||
Box(modifier = Modifier.padding(paddingValues).background(color = Color.White)) {
|
||||
LazyColumn(
|
||||
modifier = Modifier.fillMaxWidth().wrapContentHeight(),
|
||||
state = listState
|
||||
|
||||
@@ -26,7 +26,6 @@ import com.navi.naviwidgets.callbacks.WidgetCallback
|
||||
import com.navi.naviwidgets.composewidget.reusable.FooterButtonComposable
|
||||
import com.navi.naviwidgets.composewidget.reusable.FooterCardComposable
|
||||
import com.navi.naviwidgets.composewidget.reusable.FooterSnackbarComposable
|
||||
import com.navi.naviwidgets.composewidget.reusable.colorShadow
|
||||
import com.navi.naviwidgets.composewidget.reusable.whiteColor
|
||||
import com.navi.naviwidgets.extensions.NaviTextWidgetized
|
||||
import com.navi.naviwidgets.models.FooterButtonState
|
||||
@@ -53,15 +52,25 @@ fun FooterWithCardAndSnackBarWidgetComposable(
|
||||
FooterSnackbarComposable(data = data.footerWithCardAndSnackbarWidgetBody?.snackBarInfo)
|
||||
Column(modifier = Modifier.fillMaxWidth()) {
|
||||
if (
|
||||
data.footerWithCardAndSnackbarWidgetBody?.cardInfo.isNotNull() ||
|
||||
data.footerWithCardAndSnackbarWidgetBody?.errorCardInfo.isNotNull()
|
||||
(data.footerWithCardAndSnackbarWidgetBody?.cardInfo.isNotNull() ||
|
||||
data.footerWithCardAndSnackbarWidgetBody?.errorCardInfo.isNotNull()) &&
|
||||
(data.footerWithCardAndSnackbarWidgetBody
|
||||
?.footerButton
|
||||
?.title
|
||||
?.text
|
||||
.isNotNull() ||
|
||||
data.footerWithCardAndSnackbarWidgetBody
|
||||
?.secondaryFooterButton
|
||||
?.title
|
||||
?.text
|
||||
.isNotNull())
|
||||
) {
|
||||
Box(
|
||||
modifier =
|
||||
Modifier.background(
|
||||
brush =
|
||||
Brush.verticalGradient(
|
||||
colors = listOf(Color.Transparent, colorShadow)
|
||||
colors = listOf(Color.Transparent, Color.LightGray)
|
||||
),
|
||||
shape = RoundedCornerShape(topStart = 16.dp, topEnd = 16.dp)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user