@os1-platform/dispatch-mobile 2.1.4 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/analytics/firebase/FirebaseLogging.js +15 -0
- package/lib/commonjs/analytics/firebase/FirebaseLogging.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js +44 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js +79 -0
- package/lib/commonjs/analytics/sentry/SentryAnalyticsUtils.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentryModels.js +6 -0
- package/lib/commonjs/analytics/sentry/SentryModels.js.map +1 -0
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js +75 -0
- package/lib/commonjs/analytics/sentry/SentrySdkConstants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +51 -0
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +23 -0
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +16 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +52 -2
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -0
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +33 -3
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +16 -0
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +23 -0
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +41 -18
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +14 -3
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +12 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +18 -6
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +62 -5
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +23 -0
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +37 -0
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +23 -0
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +16 -0
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +44 -0
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +40 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +23 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +30 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +9 -0
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +16 -0
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +17 -1
- package/lib/commonjs/components/widgets/Card.js.map +1 -1
- package/lib/commonjs/components/widgets/ModalWidget.js +22 -2
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +9 -0
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +9 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +9 -0
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +12 -1
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
- package/lib/commonjs/index.js +46 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +3 -2
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +4 -4
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +18 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +9 -0
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +10 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +7 -0
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +12 -0
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +9 -0
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +9 -0
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +9 -0
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +12 -0
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/utils/ExecTaskUtils.js +30 -13
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +54 -41
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/module/analytics/firebase/FirebaseLogging.js +8 -0
- package/lib/module/analytics/firebase/FirebaseLogging.js.map +1 -0
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js +37 -0
- package/lib/module/analytics/sentry/SentryAnalyticsSingleton.js.map +1 -0
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js +70 -0
- package/lib/module/analytics/sentry/SentryAnalyticsUtils.js.map +1 -0
- package/lib/module/analytics/sentry/SentryModels.js +2 -0
- package/lib/module/analytics/sentry/SentryModels.js.map +1 -0
- package/lib/module/analytics/sentry/SentrySdkConstants.js +69 -0
- package/lib/module/analytics/sentry/SentrySdkConstants.js.map +1 -0
- package/lib/module/components/executiontasks/cancellation/CancelET.js +51 -0
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +23 -0
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverET.js +16 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +52 -2
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -0
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +33 -3
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +16 -0
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +23 -0
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +41 -18
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +14 -3
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +12 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +18 -6
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +63 -6
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +23 -0
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +37 -0
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +23 -0
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +16 -0
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +44 -0
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +40 -1
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +23 -0
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +30 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +9 -0
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +16 -0
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +17 -1
- package/lib/module/components/widgets/Card.js.map +1 -1
- package/lib/module/components/widgets/ModalWidget.js +22 -2
- package/lib/module/components/widgets/ModalWidget.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +9 -0
- package/lib/module/components/widgets/SearchBar.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +9 -0
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +9 -0
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/TabsComponent.js +12 -1
- package/lib/module/components/widgets/TabsComponent.js.map +1 -1
- package/lib/module/index.js +9 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +3 -2
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +5 -5
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +18 -1
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +9 -0
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +10 -0
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +7 -0
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +12 -0
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +9 -0
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +9 -0
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +9 -0
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +12 -0
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/utils/ExecTaskUtils.js +30 -13
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js +54 -39
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/typescript/analytics/firebase/FirebaseLogging.d.ts +2 -0
- package/lib/typescript/analytics/sentry/SentryAnalyticsSingleton.d.ts +11 -0
- package/lib/typescript/analytics/sentry/SentryAnalyticsUtils.d.ts +2 -0
- package/lib/typescript/analytics/sentry/SentryModels.d.ts +15 -0
- package/lib/typescript/analytics/sentry/SentrySdkConstants.d.ts +63 -0
- package/lib/typescript/index.d.ts +5 -0
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +2 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +2 -0
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +25 -6
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +4 -4
- package/lib/typescript/utils/Logger.d.ts +0 -3
- package/package.json +6 -4
- package/src/analytics/firebase/FirebaseLogging.ts +13 -0
- package/src/analytics/sentry/SentryAnalyticsSingleton.ts +35 -0
- package/src/analytics/sentry/SentryAnalyticsUtils.ts +71 -0
- package/src/analytics/sentry/SentryModels.ts +18 -0
- package/src/analytics/sentry/SentrySdkConstants.ts +74 -0
- package/src/components/executiontasks/cancellation/CancelET.tsx +25 -2
- package/src/components/executiontasks/captureInput/CaptureText.tsx +15 -2
- package/src/components/executiontasks/deliver/DeliverET.tsx +8 -0
- package/src/components/executiontasks/deliver/SLDeliverET.tsx +22 -5
- package/src/components/executiontasks/display/DisplayModalET.tsx +8 -0
- package/src/components/executiontasks/doodle/SignatureET.tsx +23 -3
- package/src/components/executiontasks/dropCash/DropCashET.tsx +9 -0
- package/src/components/executiontasks/dropCash/SLDropCash.tsx +11 -0
- package/src/components/executiontasks/forms/FormGenerator.tsx +46 -29
- package/src/components/executiontasks/forms/widgets/DateTimeWidget.tsx +10 -3
- package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +8 -1
- package/src/components/executiontasks/imageCapture/CaptureUtils.ts +17 -5
- package/src/components/executiontasks/imageCapture/ImageCapture.tsx +32 -5
- package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +11 -0
- package/src/components/executiontasks/payments/init/InitPaymentET.tsx +17 -0
- package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +11 -0
- package/src/components/executiontasks/pickup/PickupET.tsx +8 -0
- package/src/components/executiontasks/pickup/SLPickupET.tsx +19 -0
- package/src/components/executiontasks/scan/ScanET.tsx +19 -1
- package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +11 -0
- package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +14 -0
- package/src/components/executiontasks/validateOTP/sub-components/OTPInput.tsx +2 -0
- package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +5 -0
- package/src/components/widgets/CancelOrderDialog.tsx +7 -0
- package/src/components/widgets/Card.tsx +9 -1
- package/src/components/widgets/ModalWidget.tsx +16 -2
- package/src/components/widgets/SearchBar.tsx +6 -1
- package/src/components/widgets/SnackBarCustom.tsx +4 -0
- package/src/components/widgets/SplitTextInput.tsx +6 -0
- package/src/components/widgets/TabsComponent.tsx +8 -1
- package/src/index.tsx +8 -3
- package/src/manager/sdk/DispatchSdkCache.ts +2 -1
- package/src/models/execTasks/ETBaseModels.ts +20 -7
- package/src/styles/executionTasks/CommonStyles.ts +5 -5
- package/src/ui/screens/DeliverScreen.tsx +9 -0
- package/src/ui/screens/DoodleScreen.tsx +5 -0
- package/src/ui/screens/DropCashScreen.tsx +6 -0
- package/src/ui/screens/FormsScreen.tsx +3 -0
- package/src/ui/screens/GeofenceScreen.tsx +11 -1
- package/src/ui/screens/ImageCaptureScreen.tsx +5 -0
- package/src/ui/screens/PaymentScreen.tsx +5 -0
- package/src/ui/screens/PickupScreen.tsx +7 -1
- package/src/ui/screens/ValidateOTPScreen.tsx +10 -0
- package/src/utils/ExecTaskUtils.ts +36 -10
- package/src/utils/Logger.ts +50 -51
|
@@ -11,6 +11,8 @@ import type { WidgetProps } from '@rjsf/core';
|
|
|
11
11
|
import { useFormContext } from 'rjsf-native';
|
|
12
12
|
import { AntDesign } from '@expo/vector-icons';
|
|
13
13
|
import CScanner from '../../scan/sub_components/CScanner';
|
|
14
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
15
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
14
16
|
|
|
15
17
|
const QRBarcodeScannerWidget = ({
|
|
16
18
|
id,
|
|
@@ -39,7 +41,12 @@ const QRBarcodeScannerWidget = ({
|
|
|
39
41
|
|
|
40
42
|
return (
|
|
41
43
|
<View style={styles.container}>
|
|
42
|
-
<TouchableOpacity onPress={() => setShow(true)
|
|
44
|
+
<TouchableOpacity onPress={() => {setShow(true)
|
|
45
|
+
const cta = label;
|
|
46
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.QRBARCODE_WIDGET_SCREEN, cta: cta });
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
}}>
|
|
43
50
|
<TextInput
|
|
44
51
|
editable={false}
|
|
45
52
|
onTouchStart={() => setShow(true)}
|
|
@@ -23,6 +23,7 @@ import BaseErrorCodes from '../../../errors/ErrorCodes';
|
|
|
23
23
|
import DispatchSdkCache from '../../../manager/sdk/DispatchSdkCache';
|
|
24
24
|
import { insertDocumentInDB } from '../../../utils/SyncManagerUtils';
|
|
25
25
|
import {CameraOptions, launchCamera} from 'react-native-image-picker';
|
|
26
|
+
import { Image } from 'react-native-compressor';
|
|
26
27
|
|
|
27
28
|
export async function deleteImage(imageData: { path: string; id: { toString: () => string; }; }, images: any[]) {
|
|
28
29
|
await FileSystem.deleteAsync(imageData.path);
|
|
@@ -192,9 +193,20 @@ export async function captureImage(
|
|
|
192
193
|
//
|
|
193
194
|
console.log("aks:uri=blank")
|
|
194
195
|
console.log("aks:uri=", uri)
|
|
195
|
-
|
|
196
|
+
// let resizedImage = await ImageManipulator.manipulateAsync(uri, [], saveOptions,);
|
|
197
|
+
|
|
198
|
+
const resizedImage1 = await Image.compress(uri, {
|
|
199
|
+
compressionMethod: 'manual',
|
|
200
|
+
quality: compressionRatio,
|
|
201
|
+
});
|
|
196
202
|
//
|
|
197
|
-
|
|
203
|
+
let resizedImageResult: ImageResult = {
|
|
204
|
+
uri: resizedImage1,
|
|
205
|
+
width: imageWidth,
|
|
206
|
+
height: imageHeight,
|
|
207
|
+
base64: '',
|
|
208
|
+
};
|
|
209
|
+
console.log('aks:resizedImage1=', resizedImageResult);
|
|
198
210
|
//delete file
|
|
199
211
|
FileSystem.deleteAsync(uri)
|
|
200
212
|
.then(() =>
|
|
@@ -204,10 +216,10 @@ export async function captureImage(
|
|
|
204
216
|
});
|
|
205
217
|
//
|
|
206
218
|
|
|
207
|
-
|
|
208
|
-
|
|
219
|
+
// console.log("resizedImage=before")
|
|
220
|
+
// console.log("resizedImage=", resizedImage)
|
|
209
221
|
|
|
210
|
-
return
|
|
222
|
+
return resizedImageResult;
|
|
211
223
|
}
|
|
212
224
|
|
|
213
225
|
// if(Platform.OS = 'android'){
|
|
@@ -19,6 +19,8 @@ import { useFocusEffect } from '@react-navigation/native';
|
|
|
19
19
|
import Circle from "./circle-xmark.svg"
|
|
20
20
|
|
|
21
21
|
import CameraIcon from "./camera.svg"
|
|
22
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
23
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
22
24
|
|
|
23
25
|
const ImageCapture = (props: any) => {
|
|
24
26
|
let numberOfImagesToCapture: any;
|
|
@@ -69,6 +71,9 @@ const ImageCapture = (props: any) => {
|
|
|
69
71
|
)
|
|
70
72
|
setShowBackModal(true);
|
|
71
73
|
else props.navigation.goBack();
|
|
74
|
+
const cta = "Back Arrow";
|
|
75
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
76
|
+
|
|
72
77
|
}}
|
|
73
78
|
name="arrow-back"
|
|
74
79
|
color={'black'}
|
|
@@ -129,7 +134,12 @@ const ImageCapture = (props: any) => {
|
|
|
129
134
|
>
|
|
130
135
|
{imagesDummy?.length > index && imagesDummy[index]?.path ? null : (
|
|
131
136
|
<TouchableOpacity
|
|
132
|
-
onPress={onPress
|
|
137
|
+
onPress={() => { onPress()
|
|
138
|
+
const cta = "Camera Icon";
|
|
139
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
140
|
+
|
|
141
|
+
}}
|
|
142
|
+
>
|
|
133
143
|
<View
|
|
134
144
|
style={{
|
|
135
145
|
marginTop:
|
|
@@ -142,11 +152,15 @@ style={{
|
|
|
142
152
|
|
|
143
153
|
)}
|
|
144
154
|
<Button
|
|
145
|
-
onPress={() => captureImage(index)
|
|
155
|
+
onPress={() => { captureImage(index)
|
|
156
|
+
const cta = "Click Photo";
|
|
157
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
158
|
+
|
|
159
|
+
}}
|
|
146
160
|
uppercase={false}
|
|
147
161
|
labelStyle={[
|
|
148
162
|
{
|
|
149
|
-
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
163
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
|
|
150
164
|
fontStyle: 'normal',
|
|
151
165
|
fontWeight: 'normal',
|
|
152
166
|
fontSize: 14,
|
|
@@ -170,7 +184,11 @@ style={{
|
|
|
170
184
|
}}
|
|
171
185
|
/>
|
|
172
186
|
<TouchableOpacity
|
|
173
|
-
onPress={onPress
|
|
187
|
+
onPress={() => { onPress()
|
|
188
|
+
const cta = "Circle Icon";
|
|
189
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
190
|
+
|
|
191
|
+
}}
|
|
174
192
|
style={{
|
|
175
193
|
position: 'absolute',
|
|
176
194
|
top: numColumns == 2 ? '17%' : '9%',
|
|
@@ -321,6 +339,9 @@ style={{
|
|
|
321
339
|
index={index}
|
|
322
340
|
onPress={async () => {
|
|
323
341
|
await deleteImage(index);
|
|
342
|
+
const cta = "Delete Icon";
|
|
343
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
344
|
+
|
|
324
345
|
}}
|
|
325
346
|
/>
|
|
326
347
|
);
|
|
@@ -373,6 +394,9 @@ style={{
|
|
|
373
394
|
ExecutionTaskID.IMAGE_CAPTURE
|
|
374
395
|
)),
|
|
375
396
|
});
|
|
397
|
+
const cta = "Cancel";
|
|
398
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
399
|
+
|
|
376
400
|
}}
|
|
377
401
|
>
|
|
378
402
|
Cancel
|
|
@@ -381,7 +405,7 @@ style={{
|
|
|
381
405
|
<Button
|
|
382
406
|
labelStyle={{
|
|
383
407
|
color: buttonProceed ? '#ffff' : '#A3AAC2',
|
|
384
|
-
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
408
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
|
|
385
409
|
fontSize: 14,
|
|
386
410
|
lineHeight: 20,
|
|
387
411
|
textAlign: 'center',
|
|
@@ -396,6 +420,9 @@ style={{
|
|
|
396
420
|
mode="contained"
|
|
397
421
|
onPress={async () => {
|
|
398
422
|
await handleSubmit();
|
|
423
|
+
const cta = "Proceed";
|
|
424
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CAPTURE_IMAGE_ET_SCREEN, cta: cta });
|
|
425
|
+
|
|
399
426
|
}}
|
|
400
427
|
>
|
|
401
428
|
Proceed
|
|
@@ -32,6 +32,8 @@ import GoBackModal from '../../../../components/widgets/GoBackModal';
|
|
|
32
32
|
import { hasGoBackConnector } from '../../../../components/utils';
|
|
33
33
|
import { useFocusEffect } from '@react-navigation/native';
|
|
34
34
|
import { BackHandler } from 'react-native';
|
|
35
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
36
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
35
37
|
|
|
36
38
|
const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
37
39
|
const [disableProceed, setDisableProceed] = useState(false);
|
|
@@ -71,6 +73,9 @@ const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
|
71
73
|
)
|
|
72
74
|
setShowBackModal(true);
|
|
73
75
|
else props.navigation.goBack();
|
|
76
|
+
const cta = "Back Arrow";
|
|
77
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.COMPLETE_PAYMENT_ET_SCREEN, cta: cta });
|
|
78
|
+
|
|
74
79
|
}}
|
|
75
80
|
name="arrow-back"
|
|
76
81
|
color={'black'}
|
|
@@ -167,6 +172,9 @@ const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
|
167
172
|
};
|
|
168
173
|
setDisableProceed(true);
|
|
169
174
|
props.onSubmitET(etOutput);
|
|
175
|
+
const cta = "Continue";
|
|
176
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.COMPLETE_PAYMENT_ET_SCREEN, cta: cta });
|
|
177
|
+
|
|
170
178
|
}}
|
|
171
179
|
>
|
|
172
180
|
Continue
|
|
@@ -195,6 +203,9 @@ const CompletePaymentET = (props: CompletePaymentInput) => {
|
|
|
195
203
|
};
|
|
196
204
|
setDisableProceed(true);
|
|
197
205
|
props.onSubmitET(etOutput);
|
|
206
|
+
const cta = "Cancel";
|
|
207
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.COMPLETE_PAYMENT_ET_SCREEN, cta: cta });
|
|
208
|
+
|
|
198
209
|
}}
|
|
199
210
|
>
|
|
200
211
|
Cancel
|
|
@@ -23,6 +23,8 @@ import { hasGoBackConnector } from '../../../../components/utils';
|
|
|
23
23
|
import GoBackModal from '../../../../components/widgets/GoBackModal';
|
|
24
24
|
import { useFocusEffect } from '@react-navigation/native';
|
|
25
25
|
import { BackHandler } from 'react-native';
|
|
26
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
27
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
26
28
|
|
|
27
29
|
const styles = PaymentStyles;
|
|
28
30
|
|
|
@@ -75,6 +77,9 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
75
77
|
)
|
|
76
78
|
setShowBackModal(true);
|
|
77
79
|
else props.navigation.goBack();
|
|
80
|
+
const cta = "Back Arrow";
|
|
81
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
82
|
+
|
|
78
83
|
}}
|
|
79
84
|
name="arrow-back"
|
|
80
85
|
color={'black'}
|
|
@@ -126,12 +131,18 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
126
131
|
status={paymentMode === item ? 'checked' : 'unchecked'}
|
|
127
132
|
onPress={() => {
|
|
128
133
|
setPaymentMode(item);
|
|
134
|
+
const cta = paymentMode === item ? 'paymentMode checked' : 'paymentMode unchecked';
|
|
135
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
136
|
+
|
|
129
137
|
}}
|
|
130
138
|
/>
|
|
131
139
|
<Text
|
|
132
140
|
style={styles.reasonTextStyle}
|
|
133
141
|
onPress={() => {
|
|
134
142
|
setPaymentMode(item);
|
|
143
|
+
const cta = item;
|
|
144
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
145
|
+
|
|
135
146
|
}}
|
|
136
147
|
>
|
|
137
148
|
{item}
|
|
@@ -197,6 +208,9 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
197
208
|
ExecutionTaskID.INIT_PAYMENT
|
|
198
209
|
)),
|
|
199
210
|
});
|
|
211
|
+
const cta = 'Cancel';
|
|
212
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
213
|
+
|
|
200
214
|
}}
|
|
201
215
|
>
|
|
202
216
|
Cancel
|
|
@@ -233,6 +247,9 @@ const InitPaymentET = (props: InitPaymentInput) => {
|
|
|
233
247
|
)),
|
|
234
248
|
});
|
|
235
249
|
} else showToast('No payment mode selected');
|
|
250
|
+
const cta = 'Collect';
|
|
251
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.INIT_PAYMENT_ET_SCREEN, cta: cta });
|
|
252
|
+
|
|
236
253
|
}}
|
|
237
254
|
>
|
|
238
255
|
Collect
|
|
@@ -23,6 +23,8 @@ import { GO_BACK_EVENT_CODE } from '../../../../constants/constants';
|
|
|
23
23
|
import GoBackModal from '../../../../components/widgets/GoBackModal';
|
|
24
24
|
import { hasGoBackConnector } from '../../../../components/utils';
|
|
25
25
|
import { useFocusEffect } from '@react-navigation/native';
|
|
26
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
27
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
26
28
|
|
|
27
29
|
const styles = PaymentStyles;
|
|
28
30
|
|
|
@@ -66,6 +68,9 @@ const ProcessPaymentET = (props: ProcessPaymentInput) => {
|
|
|
66
68
|
)
|
|
67
69
|
setShowBackModal(true);
|
|
68
70
|
else props.navigation.goBack();
|
|
71
|
+
const cta = 'Back Arrow';
|
|
72
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PROCESS_PAYMENT_ET_SCREEN, cta: cta });
|
|
73
|
+
|
|
69
74
|
}}
|
|
70
75
|
name="arrow-back"
|
|
71
76
|
color={'black'}
|
|
@@ -203,6 +208,9 @@ const ProcessPaymentET = (props: ProcessPaymentInput) => {
|
|
|
203
208
|
ExecutionTaskID.PROCESS_PAYMENT
|
|
204
209
|
)),
|
|
205
210
|
});
|
|
211
|
+
const cta = 'Cancel';
|
|
212
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PROCESS_PAYMENT_ET_SCREEN, cta: cta });
|
|
213
|
+
|
|
206
214
|
}}
|
|
207
215
|
>
|
|
208
216
|
Cancel
|
|
@@ -260,6 +268,9 @@ const ProcessPaymentET = (props: ProcessPaymentInput) => {
|
|
|
260
268
|
} else {
|
|
261
269
|
setInputError('Please enter valid amount.');
|
|
262
270
|
}
|
|
271
|
+
const cta = 'Next';
|
|
272
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PROCESS_PAYMENT_ET_SCREEN, cta: cta });
|
|
273
|
+
|
|
263
274
|
}}
|
|
264
275
|
>
|
|
265
276
|
Next
|
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
ExecutionTaskID,
|
|
14
14
|
} from '../../../models/execTasks/ETConfig';
|
|
15
15
|
import type { LineItem } from '../deliver/DeliverETInput';
|
|
16
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
17
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
16
18
|
|
|
17
19
|
const ListItem = ({ lineItem }: { lineItem: LineItem }) => (
|
|
18
20
|
<Card style={deliverETStyles.item}>
|
|
@@ -78,6 +80,9 @@ const PickupET = (props: PickupETInput) => {
|
|
|
78
80
|
ExecutionTaskID.PICKUP
|
|
79
81
|
)),
|
|
80
82
|
});
|
|
83
|
+
const cta = 'Cancel';
|
|
84
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PICKUP_ET_SCREEN, cta: cta });
|
|
85
|
+
|
|
81
86
|
}}
|
|
82
87
|
>
|
|
83
88
|
Cancel
|
|
@@ -104,6 +109,9 @@ const PickupET = (props: PickupETInput) => {
|
|
|
104
109
|
ExecutionTaskID.PICKUP
|
|
105
110
|
)),
|
|
106
111
|
});
|
|
112
|
+
const cta = 'Pickup';
|
|
113
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.PICKUP_ET_SCREEN, cta: cta });
|
|
114
|
+
|
|
107
115
|
}}
|
|
108
116
|
>
|
|
109
117
|
Pickup
|
|
@@ -28,6 +28,8 @@ import { getStrVal } from '../../../locale/util';
|
|
|
28
28
|
import Str from '../../../locale/Str';
|
|
29
29
|
import CircleMark from '../../../icons/circleMark.svg';
|
|
30
30
|
import ModalWidget from '../../../components/widgets/ModalWidget';
|
|
31
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
32
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
31
33
|
|
|
32
34
|
|
|
33
35
|
const ListItem = ({ lineItem }: { lineItem: LineItem }) => (
|
|
@@ -93,6 +95,9 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
93
95
|
)
|
|
94
96
|
setShowBackModal(true);
|
|
95
97
|
else props.navigation.goBack();
|
|
98
|
+
const cta = 'Back Arrow';
|
|
99
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
100
|
+
|
|
96
101
|
}}
|
|
97
102
|
name="arrow-back"
|
|
98
103
|
color={'black'}
|
|
@@ -166,6 +171,8 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
166
171
|
props.navigation.goBack();
|
|
167
172
|
}
|
|
168
173
|
setShowBackModal(false);
|
|
174
|
+
const cta = 'Exit';
|
|
175
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
169
176
|
},
|
|
170
177
|
styles: styles.primaryButtonStyles,
|
|
171
178
|
}}
|
|
@@ -174,6 +181,9 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
174
181
|
onPress: () => {
|
|
175
182
|
setGoBack(false);
|
|
176
183
|
setShowPickupModal(true);
|
|
184
|
+
const cta = 'Cancel';
|
|
185
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
186
|
+
|
|
177
187
|
},
|
|
178
188
|
styles: styles.secondaryButtonStyles,
|
|
179
189
|
}}
|
|
@@ -209,6 +219,9 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
209
219
|
onPress={() => {
|
|
210
220
|
setShowPickupModal(false);
|
|
211
221
|
setGoBack(true);
|
|
222
|
+
const cta = 'Circle Mark Icon';
|
|
223
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
224
|
+
|
|
212
225
|
}}
|
|
213
226
|
style={styles.crossIcon}
|
|
214
227
|
hitSlop={{ bottom: 10, top: 10, right: 10, left: 10 }}
|
|
@@ -258,6 +271,9 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
258
271
|
ExecutionTaskID.PICKUP
|
|
259
272
|
)),
|
|
260
273
|
});
|
|
274
|
+
const cta = 'Yes';
|
|
275
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
276
|
+
|
|
261
277
|
}}
|
|
262
278
|
>
|
|
263
279
|
Yes
|
|
@@ -285,6 +301,9 @@ const SLPickupET = (props: PickupETInput) => {
|
|
|
285
301
|
ExecutionTaskID.PICKUP
|
|
286
302
|
)),
|
|
287
303
|
});
|
|
304
|
+
const cta = 'No';
|
|
305
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SL_PICKUP_ET_SCREEN, cta: cta });
|
|
306
|
+
|
|
288
307
|
}}
|
|
289
308
|
>
|
|
290
309
|
No
|
|
@@ -82,6 +82,8 @@ import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
|
82
82
|
import { hasGoBackConnector } from '../../../components/utils';
|
|
83
83
|
import ToggleSwitch from 'toggle-switch-react-native';
|
|
84
84
|
import ScanIcon from '../../../icons/ScanIcon';
|
|
85
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
86
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
85
87
|
|
|
86
88
|
/**
|
|
87
89
|
*
|
|
@@ -237,6 +239,9 @@ const ScanET = (props: ScannerInput) => {
|
|
|
237
239
|
if (showScanList) setShowScanList(false);
|
|
238
240
|
else setShowUnscannedShipmentModal(true);
|
|
239
241
|
}
|
|
242
|
+
const cta = 'Back Arrow';
|
|
243
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_ET_SCREEN, cta: cta });
|
|
244
|
+
|
|
240
245
|
}}
|
|
241
246
|
name="arrow-back"
|
|
242
247
|
color={'black'}
|
|
@@ -583,6 +588,8 @@ const ScanET = (props: ScannerInput) => {
|
|
|
583
588
|
type: SnackBarType.SUCCESS,
|
|
584
589
|
});
|
|
585
590
|
setShowScanList(!showScanList);
|
|
591
|
+
const cta = 'View Summary';
|
|
592
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_ET_SCREEN, cta: cta });
|
|
586
593
|
}}
|
|
587
594
|
>
|
|
588
595
|
{`View Summary`}
|
|
@@ -695,7 +702,12 @@ const ScanET = (props: ScannerInput) => {
|
|
|
695
702
|
labelStyle={CommonStyles.nextButtonLabel}
|
|
696
703
|
style={{ ...CommonStyles.nextButton, marginTop: 20 }}
|
|
697
704
|
uppercase={false}
|
|
698
|
-
onPress={() => setShowUnscannedShipmentModal(false)
|
|
705
|
+
onPress={() => {setShowUnscannedShipmentModal(false)
|
|
706
|
+
const cta = 'Continue Scanning';
|
|
707
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_ET_SCREEN, cta: cta });
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
}}
|
|
699
711
|
>
|
|
700
712
|
Continue Scanning
|
|
701
713
|
</Button>
|
|
@@ -725,6 +737,10 @@ const ScanET = (props: ScannerInput) => {
|
|
|
725
737
|
]);
|
|
726
738
|
|
|
727
739
|
props.navigation.goBack();
|
|
740
|
+
const cta = 'Exit Scan Flow';
|
|
741
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_ET_SCREEN, cta: cta });
|
|
742
|
+
|
|
743
|
+
|
|
728
744
|
}}
|
|
729
745
|
>
|
|
730
746
|
<Text style={CommonStyles.cancelButtonLabel}>Exit Scan Flow</Text>
|
|
@@ -895,6 +911,8 @@ const ScanET = (props: ScannerInput) => {
|
|
|
895
911
|
type: SnackBarType.SUCCESS,
|
|
896
912
|
});
|
|
897
913
|
setScannedInput(scanText);
|
|
914
|
+
const cta = 'Apply';
|
|
915
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SCAN_ET_SCREEN, cta: cta });
|
|
898
916
|
}}
|
|
899
917
|
>
|
|
900
918
|
<Text
|
|
@@ -41,6 +41,8 @@ import { debounce } from 'lodash';
|
|
|
41
41
|
import { RouteParams } from '../../../../ui/uiConfig/RouteParams';
|
|
42
42
|
import { IDispatchExecutor } from '@os1-platform/platform-coreos-execution-engine-sdk';
|
|
43
43
|
import FileIcon from '../../../../icons/file';
|
|
44
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
45
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
44
46
|
|
|
45
47
|
const dimensionsForScreen = Dimensions.get('screen');
|
|
46
48
|
|
|
@@ -142,6 +144,9 @@ const SummaryPage = (props: SummaryPageProps) => {
|
|
|
142
144
|
} else {
|
|
143
145
|
props.handleSubmitET(PROCEED_STATUS.DELIVER_NOW, tabs[1].count);
|
|
144
146
|
}
|
|
147
|
+
const cta = 'Proceed';
|
|
148
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SUMMARY_PAGE_SCREEN, cta: cta });
|
|
149
|
+
|
|
145
150
|
}}
|
|
146
151
|
>
|
|
147
152
|
{`Proceed`}
|
|
@@ -545,6 +550,9 @@ const SummaryPage = (props: SummaryPageProps) => {
|
|
|
545
550
|
props.scanProps.showProgress(false);
|
|
546
551
|
setSelectedEditItem(undefined);
|
|
547
552
|
setShowEditModal(false);
|
|
553
|
+
const cta = 'Update';
|
|
554
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SUMMARY_PAGE_SCREEN, cta: cta });
|
|
555
|
+
|
|
548
556
|
return;
|
|
549
557
|
},
|
|
550
558
|
}}
|
|
@@ -554,6 +562,9 @@ const SummaryPage = (props: SummaryPageProps) => {
|
|
|
554
562
|
onPress: () => {
|
|
555
563
|
setShowEditModal(false);
|
|
556
564
|
setSelectedEditItem(undefined);
|
|
565
|
+
const cta = 'Cancel';
|
|
566
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.SUMMARY_PAGE_SCREEN, cta: cta });
|
|
567
|
+
|
|
557
568
|
},
|
|
558
569
|
}}
|
|
559
570
|
/>
|
|
@@ -31,6 +31,8 @@ import { GO_BACK_EVENT_CODE } from '../../../constants/constants';
|
|
|
31
31
|
import { hasGoBackConnector } from '../../../components/utils';
|
|
32
32
|
import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
33
33
|
import { useFocusEffect } from '@react-navigation/native';
|
|
34
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
35
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
34
36
|
|
|
35
37
|
const ValidateOTPET = (props: ValidateOTPInput) => {
|
|
36
38
|
const [showBackModal, setShowBackModal] = useState(false);
|
|
@@ -69,6 +71,9 @@ const ValidateOTPET = (props: ValidateOTPInput) => {
|
|
|
69
71
|
)
|
|
70
72
|
setShowBackModal(true);
|
|
71
73
|
else props.navigation.goBack();
|
|
74
|
+
const cta = 'Arrow Back';
|
|
75
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN, cta: cta });
|
|
76
|
+
|
|
72
77
|
}}
|
|
73
78
|
name="arrow-back"
|
|
74
79
|
color={'black'}
|
|
@@ -180,6 +185,9 @@ const ValidateOTPET = (props: ValidateOTPInput) => {
|
|
|
180
185
|
}
|
|
181
186
|
}
|
|
182
187
|
}
|
|
188
|
+
const cta = 'Proceed';
|
|
189
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN, cta: cta });
|
|
190
|
+
|
|
183
191
|
}}
|
|
184
192
|
>
|
|
185
193
|
Proceed
|
|
@@ -207,6 +215,9 @@ const ValidateOTPET = (props: ValidateOTPInput) => {
|
|
|
207
215
|
ExecutionTaskID.VALIDATE_OTP_ET
|
|
208
216
|
)),
|
|
209
217
|
});
|
|
218
|
+
const cta = 'Skip';
|
|
219
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN, cta: cta });
|
|
220
|
+
|
|
210
221
|
}}
|
|
211
222
|
>
|
|
212
223
|
Skip
|
|
@@ -231,6 +242,9 @@ const ValidateOTPET = (props: ValidateOTPInput) => {
|
|
|
231
242
|
setRetryCount((retryCount) => retryCount + 1);
|
|
232
243
|
await generateOTP(generationLogic.api);
|
|
233
244
|
resetTimer();
|
|
245
|
+
const cta = retryConfig.buttonTitle;
|
|
246
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VALIDATE_OTP_ET_SCREEN, cta: cta });
|
|
247
|
+
|
|
234
248
|
}}
|
|
235
249
|
>{`${retryConfig.buttonTitle} ${timer ? `in ${timer}` : ''}`}</Button>
|
|
236
250
|
</View>
|
|
@@ -4,6 +4,8 @@ import SplitTextInput from '../../../widgets/SplitTextInput';
|
|
|
4
4
|
import { Fonts } from '../../../../styles/executionTasks/CommonStyles';
|
|
5
5
|
import { InputType, CaptureInput } from '../ValidateOTPSchema';
|
|
6
6
|
import { INVALID_REGEX } from '../constants';
|
|
7
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../../analytics/sentry/SentrySdkConstants';
|
|
8
|
+
import { fireEventWithScreenName } from '../../../../analytics/sentry/SentryAnalyticsUtils';
|
|
7
9
|
|
|
8
10
|
export interface OTPInputProps {
|
|
9
11
|
input: CaptureInput;
|
|
@@ -10,6 +10,8 @@ import {
|
|
|
10
10
|
EntityCode,
|
|
11
11
|
ExecutionTaskID,
|
|
12
12
|
} from '../../../models/execTasks/ETConfig';
|
|
13
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../../analytics/sentry/SentrySdkConstants';
|
|
14
|
+
import { fireEventWithScreenName } from '../../../analytics/sentry/SentryAnalyticsUtils';
|
|
13
15
|
|
|
14
16
|
const VerifyOtpET = (props: OtpInputSchema) => {
|
|
15
17
|
const otpInput = useRef();
|
|
@@ -54,6 +56,9 @@ const VerifyOtpET = (props: OtpInputSchema) => {
|
|
|
54
56
|
<Pressable
|
|
55
57
|
onPress={() => {
|
|
56
58
|
showToast('Resending OTP');
|
|
59
|
+
const cta = 'Send again';
|
|
60
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.VERIFY_OTP_ET_SCREEN, cta: cta });
|
|
61
|
+
|
|
57
62
|
}}
|
|
58
63
|
style={styles.sendAgainText}
|
|
59
64
|
>
|
|
@@ -4,6 +4,8 @@ import { CommonStyles, Fonts } from '../../styles/executionTasks/CommonStyles';
|
|
|
4
4
|
import { Button, Paragraph, Title } from 'react-native-paper';
|
|
5
5
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
6
6
|
import SdkColors, { ColorTheme } from '../../styles/SdkColors';
|
|
7
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
8
|
+
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
7
9
|
|
|
8
10
|
const CancelOrderDialog = (props: CancelDialogProps) => {
|
|
9
11
|
return (
|
|
@@ -59,6 +61,9 @@ const CancelOrderDialog = (props: CancelDialogProps) => {
|
|
|
59
61
|
style={CommonStyles.nextButton}
|
|
60
62
|
onPress={() => {
|
|
61
63
|
props.onSubmit(true);
|
|
64
|
+
const cta = props.positiveButtonTitle ?? 'Yes';
|
|
65
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ORDER_DIALOG_SCREEN, cta: cta });
|
|
66
|
+
|
|
62
67
|
}}
|
|
63
68
|
testID="primary"
|
|
64
69
|
>
|
|
@@ -71,6 +76,8 @@ const CancelOrderDialog = (props: CancelDialogProps) => {
|
|
|
71
76
|
style={[CommonStyles.cancelButton, { marginTop: 10 }]}
|
|
72
77
|
onPress={async () => {
|
|
73
78
|
props.onSubmit(false);
|
|
79
|
+
const cta = props.negativeButtonTitle ?? 'No';
|
|
80
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CANCEL_ORDER_DIALOG_SCREEN, cta: cta });
|
|
74
81
|
}}
|
|
75
82
|
testID="secondary"
|
|
76
83
|
>
|
|
@@ -2,6 +2,8 @@ import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Checkbox } from 'react-native-paper';
|
|
4
4
|
import { Feather } from '@expo/vector-icons';
|
|
5
|
+
import { ScreenNameSdkConstants, SentryEventNameSdkConstants, SeverityLevelValue } from '../../analytics/sentry/SentrySdkConstants';
|
|
6
|
+
import { fireEventWithScreenName } from '../../analytics/sentry/SentryAnalyticsUtils';
|
|
5
7
|
|
|
6
8
|
interface CardProps {
|
|
7
9
|
title: string;
|
|
@@ -29,6 +31,8 @@ const Card = (props: CardProps) => {
|
|
|
29
31
|
status={isSelected}
|
|
30
32
|
onPress={() => {
|
|
31
33
|
props.selectConfig?.onSelect(props.selectConfig?.props);
|
|
34
|
+
const cta = "Checkbox checked";
|
|
35
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CARD_WIDGET_SCREEN, cta: cta });
|
|
32
36
|
}}
|
|
33
37
|
theme={{ roundness: 5 }}
|
|
34
38
|
/>
|
|
@@ -45,7 +49,11 @@ const Card = (props: CardProps) => {
|
|
|
45
49
|
<>
|
|
46
50
|
<View style={styles.divider} />
|
|
47
51
|
<TouchableOpacity
|
|
48
|
-
onPress={() => props.editConfig?.onEdit(props.editConfig?.props)
|
|
52
|
+
onPress={() => {props.editConfig?.onEdit(props.editConfig?.props)
|
|
53
|
+
const cta = "Edit";
|
|
54
|
+
fireEventWithScreenName({ severityLevel: SeverityLevelValue.LOG, eventName: SentryEventNameSdkConstants.BUTTON_CLICKED, screenName: ScreenNameSdkConstants.CARD_WIDGET_SCREEN, cta: cta });
|
|
55
|
+
|
|
56
|
+
}}
|
|
49
57
|
style={styles.icon}
|
|
50
58
|
>
|
|
51
59
|
<Feather name="edit" size={24} color="#5B80F7" />
|