diff --git a/locales/en/index.yml b/locales/en/index.yml index 28c1b47c55e..4edf12fd4b2 100644 --- a/locales/en/index.yml +++ b/locales/en/index.yml @@ -1788,10 +1788,12 @@ wallet: noticeNumber: title: Inserisci il codice avviso subtitle: Ha 18 cifre, lo trovi vicino al codice QR. + validationError: It has 18 digits, starts with 0, 1 or 3. placeholder: Codice avviso fiscalCode: title: Inserisci il codice fiscale dell’Ente Creditore subtitle: Ha 11 cifre, lo trovi vicino al codice QR. + validationError: Enter 11 digits. placeholder: Codice fiscale Ente Creditore abortDialog: title: Vuoi interrompere l'operazione? diff --git a/locales/it/index.yml b/locales/it/index.yml index 78236ddf1d7..6f42866722a 100644 --- a/locales/it/index.yml +++ b/locales/it/index.yml @@ -1788,10 +1788,12 @@ wallet: noticeNumber: title: Inserisci il codice avviso subtitle: Ha 18 cifre, lo trovi vicino al codice QR. + validationError: Ha 18 cifre, inizia con 0, 1 o 3. placeholder: Codice avviso fiscalCode: title: Inserisci il codice fiscale dell’Ente Creditore subtitle: Ha 11 cifre, lo trovi vicino al codice QR. + validationError: Inserisci 11 cifre. placeholder: Codice fiscale Ente Creditore abortDialog: title: Vuoi interrompere l'operazione? diff --git a/package.json b/package.json index a48b46e1330..ae7806cacce 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "dependencies": { "@babel/plugin-transform-regenerator": "^7.18.6", "@gorhom/bottom-sheet": "^4.1.5", - "@pagopa/io-app-design-system": "1.40.1", + "@pagopa/io-app-design-system": "1.43.0", "@pagopa/io-pagopa-commons": "^3.1.0", "@pagopa/io-react-native-crypto": "^0.3.0", "@pagopa/io-react-native-http-client": "1.0.5", diff --git a/ts/components/screens/__tests__/WizardScreen.test.tsx b/ts/components/screens/__tests__/WizardScreen.test.tsx index 2d34f2ef352..140b275308e 100644 --- a/ts/components/screens/__tests__/WizardScreen.test.tsx +++ b/ts/components/screens/__tests__/WizardScreen.test.tsx @@ -10,7 +10,7 @@ import { WizardScreen, WizardScreenProps } from "../WizardScreen"; const defaultProps: WizardScreenProps = { title: "This is a title", description: "This is a description", - pictogram: "abacus", + pictogram: "success", primaryButton: { label: "primaryButton", accessibilityLabel: "accessible primaryButton", diff --git a/ts/features/design-system/core/DSBadges.tsx b/ts/features/design-system/core/DSBadges.tsx index 5dab0647abe..cdcbdaca6e6 100644 --- a/ts/features/design-system/core/DSBadges.tsx +++ b/ts/features/design-system/core/DSBadges.tsx @@ -110,7 +110,7 @@ const renderTag = () => ( - + diff --git a/ts/features/design-system/core/DSListItems.tsx b/ts/features/design-system/core/DSListItems.tsx index bdf0f05500a..2e4669e1310 100644 --- a/ts/features/design-system/core/DSListItems.tsx +++ b/ts/features/design-system/core/DSListItems.tsx @@ -118,48 +118,33 @@ export const DSListItems = () => { const renderListItemNav = () => ( - + - + { - alert("Action triggered"); - }} - accessibilityLabel="Empty just for testing purposes" + onPress={onButtonPress} topElement={{ badgeProps: { text: "Novità", @@ -172,20 +157,14 @@ const renderListItemNav = () => ( { - alert("Action triggered"); - }} - accessibilityLabel="Empty just for testing purposes" + onPress={onButtonPress} hideChevron /> { - alert("Action triggered"); - }} - accessibilityLabel="Empty just for testing purposes" + onPress={onButtonPress} topElement={{ badgeProps: { text: "Novità", @@ -196,32 +175,21 @@ const renderListItemNav = () => ( /> - + - + @@ -233,14 +201,12 @@ const renderListItemInfoCopy = () => ( label={"Label"} value="Value" onPress={onCopyButtonPress} - accessibilityLabel="Empty just for testing purposes" /> @@ -248,7 +214,6 @@ const renderListItemInfoCopy = () => ( label={"Carta di credito"} value="4975 3013 5042 7899" onPress={onCopyButtonPress} - accessibilityLabel="Empty just for testing purposes" icon="creditCard" /> @@ -256,7 +221,6 @@ const renderListItemInfoCopy = () => ( label={"Indirizzo"} value={`P.za Colonna, 370\n00186 Roma (RM)`} onPress={onCopyButtonPress} - accessibilityLabel="Empty just for testing purposes" /> ); @@ -268,35 +232,30 @@ const renderListItemAction = () => ( variant="primary" label={"Link interno oppure link ad una pagina esterna"} onPress={onButtonPress} - accessibilityLabel="Empty just for testing purposes" /> @@ -304,21 +263,18 @@ const renderListItemAction = () => ( variant="danger" label={"Danger action"} onPress={onButtonPress} - accessibilityLabel="Empty just for testing purposes" /> @@ -326,23 +282,17 @@ const renderListItemAction = () => ( const renderListItemInfo = () => ( - + ( icon="psp" label="Label" value="A looong looooong looooooooong looooooooooong title" - accessibilityLabel="Empty just for testing purposes" endElement={{ type: "iconButton", componentProps: { @@ -372,7 +321,6 @@ const renderListItemInfo = () => ( icon="psp" label="Label" value="A looong looooong looooooooong looooooooooong title" - accessibilityLabel="Empty just for testing purposes" endElement={{ type: "badge", componentProps: { @@ -382,12 +330,7 @@ const renderListItemInfo = () => ( }} /> - + ); @@ -396,13 +339,9 @@ const renderListItemInfo = () => ( const renderListItemHeader = () => ( + - ( /> ( /> - + ( ( , - "value" | "onChangeText" - > & { value?: string } + "value" | "onChangeText" | "errorMessage" + > & { value?: string; errorMessage?: string } ) => { const [inputValue, setInputValue] = React.useState(props.value ?? ""); @@ -126,6 +126,7 @@ const InputValidationComponentWrapper = ( ); diff --git a/ts/features/fastLogin/screens/__tests__/AskUserToContinueScreen.test.tsx b/ts/features/fastLogin/screens/__tests__/AskUserToContinueScreen.test.tsx index b90f48c68b6..b1f33a7a736 100644 --- a/ts/features/fastLogin/screens/__tests__/AskUserToContinueScreen.test.tsx +++ b/ts/features/fastLogin/screens/__tests__/AskUserToContinueScreen.test.tsx @@ -20,7 +20,7 @@ const secondaryActionButtonTitle = "Cancel"; const defaultProps = { title: "Test title", subtitle: "Test subtitle", - pictogramName: "timeout" as IOPictograms, + pictogramName: "timing" as IOPictograms, primaryAction: { label: primaryActionButtonTitle, accessibilityLabel: primaryActionButtonTitle, diff --git a/ts/features/fci/components/GenericErrorComponent.tsx b/ts/features/fci/components/GenericErrorComponent.tsx index 594f92d1ea4..0afa3a83942 100644 --- a/ts/features/fci/components/GenericErrorComponent.tsx +++ b/ts/features/fci/components/GenericErrorComponent.tsx @@ -16,7 +16,7 @@ const GenericErrorComponent = (props: Props) => ( dispatch(fciEndRequest())} email={issuer_email} - pictogram={"timeout"} + pictogram={"ended"} testID={"ExpiredSignatureRequestTestID"} /> ); @@ -55,7 +55,7 @@ const SuccessComponent = (props: { title={I18n.t("features.fci.errors.waitForQtsp.title")} subTitle={I18n.t("features.fci.errors.waitForQtsp.subTitle")} onPress={() => dispatch(fciEndRequest())} - pictogram={"hourglass"} + pictogram={"timing"} testID={"WaitQtspSignatureRequestTestID"} /> ); @@ -65,7 +65,7 @@ const SuccessComponent = (props: { title={I18n.t("features.fci.errors.signed.title")} subTitle={I18n.t("features.fci.errors.signed.subTitle")} onPress={() => dispatch(fciEndRequest())} - pictogram={"fireworks"} + pictogram={"success"} testID={"SignedSignatureRequestTestID"} /> ); @@ -86,7 +86,7 @@ const SuccessComponent = (props: { subTitle={I18n.t("features.fci.errors.generic.cancelled.subTitle")} email={issuer_email} onPress={() => dispatch(fciEndRequest())} - pictogram={"timeout"} + pictogram={"ended"} testID={"CancelledSignatureRequestTestID"} /> ); diff --git a/ts/features/fci/components/__tests__/ErrorComponent.test.tsx b/ts/features/fci/components/__tests__/ErrorComponent.test.tsx index 58176268298..d11249ce26a 100644 --- a/ts/features/fci/components/__tests__/ErrorComponent.test.tsx +++ b/ts/features/fci/components/__tests__/ErrorComponent.test.tsx @@ -21,7 +21,7 @@ describe("Test ErrorComponent", () => { const props: Props = { title: "title", subTitle: "subTitle", - pictogram: "airBaloon", + pictogram: "attention", onPress: constNull }; const component = renderComponent({ ...props }); @@ -31,7 +31,7 @@ describe("Test ErrorComponent", () => { const props: Props = { title: "title", subTitle: "subTitle", - pictogram: "airBaloon", + pictogram: "attention", onPress: constNull }; const component = renderComponent({ ...props }); @@ -43,7 +43,7 @@ describe("Test ErrorComponent", () => { const props: Props = { title: "title", subTitle: "subTitle", - pictogram: "airBaloon", + pictogram: "attention", onPress: constNull }; const component = renderComponent({ ...props }); @@ -55,7 +55,7 @@ describe("Test ErrorComponent", () => { const props: Props = { title: "title", subTitle: "subTitle", - pictogram: "airBaloon", + pictogram: "attention", retry: true, onPress: constNull }; @@ -68,7 +68,7 @@ describe("Test ErrorComponent", () => { const props: Props = { title: "title", subTitle: "subTitle", - pictogram: "airBaloon", + pictogram: "attention", retry: true, assistance: true, onPress: constNull @@ -82,7 +82,7 @@ describe("Test ErrorComponent", () => { const props: Props = { title: "title", subTitle: "subTitle", - pictogram: "airBaloon", + pictogram: "attention", assistance: true, onPress: constNull }; diff --git a/ts/features/fci/components/__tests__/__snapshots__/QtspClauseListItem.test.tsx.snap b/ts/features/fci/components/__tests__/__snapshots__/QtspClauseListItem.test.tsx.snap index 3a32658648a..42893de988f 100644 --- a/ts/features/fci/components/__tests__/__snapshots__/QtspClauseListItem.test.tsx.snap +++ b/ts/features/fci/components/__tests__/__snapshots__/QtspClauseListItem.test.tsx.snap @@ -540,6 +540,8 @@ exports[`Test QtspClauseListItem component should render a QtspClauseListItem co } > dispatch(fciEndRequest())} testID="WrongUserErrorComponentTestID" /> diff --git a/ts/features/idpay/onboarding/screens/FailureScreen.tsx b/ts/features/idpay/onboarding/screens/FailureScreen.tsx index 5d46a80a7b0..8082af5d338 100644 --- a/ts/features/idpay/onboarding/screens/FailureScreen.tsx +++ b/ts/features/idpay/onboarding/screens/FailureScreen.tsx @@ -51,7 +51,7 @@ const FailureScreen = () => { switch (failure) { case OnboardingFailureEnum.INITIATIVE_NOT_FOUND: return { - pictogram: "search", + pictogram: "attention", title: I18n.t( "idpay.onboarding.failure.message.INITIATIVE_NOT_FOUND.title" ), diff --git a/ts/features/idpay/unsubscription/screens/UnsubscriptionResultScreen.tsx b/ts/features/idpay/unsubscription/screens/UnsubscriptionResultScreen.tsx index bcf1000e5c4..ba487b48c64 100644 --- a/ts/features/idpay/unsubscription/screens/UnsubscriptionResultScreen.tsx +++ b/ts/features/idpay/unsubscription/screens/UnsubscriptionResultScreen.tsx @@ -29,7 +29,7 @@ const UnsubscriptionResultScreen = () => { const { pictogram, title, content, buttonLabel }: ScreenContentType = isFailure ? { - pictogram: "umbrella", + pictogram: "umbrellaNew", title: I18n.t("idpay.unsubscription.failure.title"), content: I18n.t("idpay.unsubscription.failure.content"), buttonLabel: I18n.t("idpay.unsubscription.failure.button") diff --git a/ts/features/messages/components/Home/DS/MessageListItem.tsx b/ts/features/messages/components/Home/DS/MessageListItem.tsx index ca544fa1e34..0de37ea720f 100644 --- a/ts/features/messages/components/Home/DS/MessageListItem.tsx +++ b/ts/features/messages/components/Home/DS/MessageListItem.tsx @@ -16,6 +16,7 @@ import { Tag, WithTestID } from "@pagopa/io-app-design-system"; +import I18n from "../../../../../i18n"; import { CustomPressableListItemBase } from "./CustomPressableListItemBase"; import { DoubleAvatar } from "./DoubleAvatar"; @@ -168,7 +169,12 @@ export const MessageListItem = ({ {badgeVariant === "legalMessage" && ( <> - + )} diff --git a/ts/features/messages/components/Home/__tests__/__snapshots__/SecuritySuggestions.test.tsx.snap b/ts/features/messages/components/Home/__tests__/__snapshots__/SecuritySuggestions.test.tsx.snap index 41ac738a976..4cdd5c22e08 100644 --- a/ts/features/messages/components/Home/__tests__/__snapshots__/SecuritySuggestions.test.tsx.snap +++ b/ts/features/messages/components/Home/__tests__/__snapshots__/SecuritySuggestions.test.tsx.snap @@ -631,7 +631,9 @@ exports[`SecuritySuggestions should match snapshot 1`] = ` } /> { accessibilityLabel={I18n.t( "wallet.payment.manual.fiscalCode.placeholder" )} + errorMessage={I18n.t( + "wallet.payment.manual.fiscalCode.validationError" + )} value={inputState.fiscalCodeText} icon="fiscalCodeIndividual" onChangeText={value => diff --git a/ts/features/payments/checkout/screens/WalletPaymentInputNoticeNumberScreen.tsx b/ts/features/payments/checkout/screens/WalletPaymentInputNoticeNumberScreen.tsx index 7f5dc820ebe..56ecd37daf3 100644 --- a/ts/features/payments/checkout/screens/WalletPaymentInputNoticeNumberScreen.tsx +++ b/ts/features/payments/checkout/screens/WalletPaymentInputNoticeNumberScreen.tsx @@ -97,6 +97,9 @@ const WalletPaymentInputNoticeNumberScreen = () => { accessibilityLabel={I18n.t( "wallet.payment.manual.noticeNumber.placeholder" )} + errorMessage={I18n.t( + "wallet.payment.manual.noticeNumber.validationError" + )} value={inputState.noticeNumberText} icon="docPaymentCode" onChangeText={value => diff --git a/ts/features/pn/components/__test__/__snapshots__/MessageBottomMenu.test.tsx.snap b/ts/features/pn/components/__test__/__snapshots__/MessageBottomMenu.test.tsx.snap index 41bd6e8ccd0..7b3981899e7 100644 --- a/ts/features/pn/components/__test__/__snapshots__/MessageBottomMenu.test.tsx.snap +++ b/ts/features/pn/components/__test__/__snapshots__/MessageBottomMenu.test.tsx.snap @@ -377,6 +377,7 @@ exports[`MessageBottomMenu should match snapshot, all handled-status items histo onTouchEnd={[Function]} > { testID={"usernameInput"} icon="profile" onValidate={isUsernameFieldValid} + errorMessage={`${I18n.t("global.username")} is invalid`} disabled={isLoading} textInputProps={{ inputMode: "text", diff --git a/ts/screens/profile/__test__/__snapshots__/LanguagesPreferencesScreen.test.tsx.snap b/ts/screens/profile/__test__/__snapshots__/LanguagesPreferencesScreen.test.tsx.snap index 704d7d55b90..a6036485bf2 100644 --- a/ts/screens/profile/__test__/__snapshots__/LanguagesPreferencesScreen.test.tsx.snap +++ b/ts/screens/profile/__test__/__snapshots__/LanguagesPreferencesScreen.test.tsx.snap @@ -471,6 +471,7 @@ exports[`LanguagesPreferencesScreen UI Rendering renders the screen with, title, } /> @@ -697,6 +698,7 @@ exports[`LanguagesPreferencesScreen UI Rendering renders the screen with, title, } /> @@ -923,6 +925,7 @@ exports[`LanguagesPreferencesScreen UI Rendering renders the screen with, title, } /> diff --git a/ts/screens/profile/__test__/__snapshots__/NotificationsPreferencesScreen.test.tsx.snap b/ts/screens/profile/__test__/__snapshots__/NotificationsPreferencesScreen.test.tsx.snap index db0002ef033..1d98ebd593e 100644 --- a/ts/screens/profile/__test__/__snapshots__/NotificationsPreferencesScreen.test.tsx.snap +++ b/ts/screens/profile/__test__/__snapshots__/NotificationsPreferencesScreen.test.tsx.snap @@ -683,9 +683,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -909,9 +910,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -2118,9 +2120,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -2344,9 +2347,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -3553,9 +3557,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -3779,9 +3784,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -4988,9 +4994,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -5214,9 +5221,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": true, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -6423,9 +6431,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -6649,9 +6658,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -7858,9 +7868,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -8084,9 +8095,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, disabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -9293,9 +9305,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -9519,9 +9532,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -10728,9 +10742,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": true, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -10954,9 +10969,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -12163,9 +12179,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -12389,9 +12406,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -13598,9 +13616,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": true, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -13824,9 +13843,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": true, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -15033,9 +15053,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -15259,9 +15280,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -16468,9 +16490,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": true, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -16694,9 +16717,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, enabled preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -17903,9 +17927,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -18129,9 +18154,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -19338,9 +19364,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -19564,9 +19591,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -20773,9 +20801,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -20999,9 +21028,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -22208,9 +22238,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -22434,9 +22465,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": true, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -23643,9 +23675,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -23869,9 +23902,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": true, } } + disabled={true} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -25078,9 +25112,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} @@ -25304,9 +25339,10 @@ exports[`NotificationsPreferencesScreen should match snapshot, undefined preview accessibilityState={ { "checked": false, - "disabled": undefined, + "disabled": false, } } + disabled={false} onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} diff --git a/ts/screens/wallet/payment/TransactionErrorScreen.tsx b/ts/screens/wallet/payment/TransactionErrorScreen.tsx index f38c6e2c871..dc8bd483e65 100644 --- a/ts/screens/wallet/payment/TransactionErrorScreen.tsx +++ b/ts/screens/wallet/payment/TransactionErrorScreen.tsx @@ -83,18 +83,18 @@ export type TransactionErrorScreenNavigationParams = { type Props = ReturnType & ReturnType; -const imageTimeout: IOPictograms = "inProgress"; -const imageDefaultFallback: IOPictograms = "error"; +const imageTimeout: IOPictograms = "ended"; +const imageDefaultFallback: IOPictograms = "fatalError"; const imageMapping: Record = { - DATA: "question", - DUPLICATED: "fireworks", - EC: "notAvailable", - ONGOING: "hourglass", - UNCOVERED: "umbrella", - REVOKED: "error", - EXPIRED: "error", - TECHNICAL: "error", - NOT_FOUND: "unrecognized" + DATA: "attention", + DUPLICATED: "attention", + EC: "attention", + ONGOING: "timing", + UNCOVERED: "umbrellaNew", + REVOKED: "fatalError", + EXPIRED: "ended", + TECHNICAL: "fatalError", + NOT_FOUND: "attention" }; const requestZendeskAssistanceForPaymentFailure = ( diff --git a/yarn.lock b/yarn.lock index 7c7f02a73a6..92ce0cf0bde 100644 --- a/yarn.lock +++ b/yarn.lock @@ -874,7 +874,7 @@ "@babel/helper-plugin-utils" "^7.24.7" "@babel/plugin-syntax-numeric-separator" "^7.10.4" -"@babel/plugin-transform-object-assign@^7.0.0", "@babel/plugin-transform-object-assign@^7.16.7": +"@babel/plugin-transform-object-assign@^7.0.0": version "7.16.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-assign/-/plugin-transform-object-assign-7.16.7.tgz#5fe08d63dccfeb6a33aa2638faf98e5c584100f8" integrity sha512-R8mawvm3x0COTJtveuoqZIjNypn2FjfvXZr4pSQ8VhEFBuQGBz4XhHasZtHXjgXU4XptZ4HtGof3NoYc93ZH9Q== @@ -2046,10 +2046,10 @@ dependencies: "@types/node" ">= 8" -"@pagopa/io-app-design-system@1.40.1": - version "1.40.1" - resolved "https://registry.yarnpkg.com/@pagopa/io-app-design-system/-/io-app-design-system-1.40.1.tgz#8233f88090e785324d1d859ee11c3c91eef2f586" - integrity sha512-eyA5jF3jrXG2y+zHIMkShm3K+Bb6nkkcDNODUE6MYIPUd/DeUNP0XguQFqNNsrcNj4uS8ob7EozIVsvHIhcSeg== +"@pagopa/io-app-design-system@1.43.0": + version "1.43.0" + resolved "https://registry.yarnpkg.com/@pagopa/io-app-design-system/-/io-app-design-system-1.43.0.tgz#2eb15091c67f99e3a21248ff0cbf0a356a1535d9" + integrity sha512-qyb2lqtVSLGEAdz8f7M3jD0SxZCgrPflCy3GL9+thBoXpKhilqE4Q6ZPLJNwYcg/6jm/otfA6nVV0RzEgQ5obg== dependencies: "@pagopa/ts-commons" "^12.0.0" "@testing-library/jest-native" "^5.4.2" @@ -2061,7 +2061,7 @@ react-native-gesture-handler "^2.12.0" react-native-haptic-feedback "^2.0.2" react-native-linear-gradient "^2.5.6" - react-native-reanimated "^2.9.1" + react-native-reanimated "3.12.0" react-native-safe-area-context "^3.3.2" react-native-svg "^15.1.0" rn-placeholder "1.3.3" @@ -3119,11 +3119,6 @@ resolved "https://registry.yarnpkg.com/@types/i18n-js/-/i18n-js-3.0.3.tgz#84f66fb969741fecd91b854387e0682aa7fd70b7" integrity sha512-GiZzazvxQ5j+EA4Zf4MtDsSaokAR/gW7FxxTlHi2p2xKFUhwAUT0B/MB8WL77P1TcqAO3MefWorFFyZS8F7s0Q== -"@types/invariant@^2.2.35": - version "2.2.35" - resolved "https://registry.yarnpkg.com/@types/invariant/-/invariant-2.2.35.tgz#cd3ebf581a6557452735688d8daba6cf0bd5a3be" - integrity sha512-DxX1V9P8zdJPYQat1gHyY0xj3efl8gnMVjiM9iCY6y27lj+PoQWkgjt8jDqmovPqULkKVpKRg8J36iQiA+EtEg== - "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": version "2.0.3" resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762" @@ -13528,20 +13523,7 @@ react-native-push-notification@^8.1.1: resolved "https://registry.yarnpkg.com/react-native-push-notification/-/react-native-push-notification-8.1.1.tgz#a41d20c70ea5a7709417e96261b225461f8dc73a" integrity sha512-XpBtG/w+a6WXTxu6l1dNYyTiHnbgnvjoc3KxPTxYkaIABRmvuJZkFxqruyGvfCw7ELAlZEAJO+dthdTabCe1XA== -react-native-reanimated@^2.9.1: - version "2.10.0" - resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-2.10.0.tgz#ed53be66bbb553b5b5e93e93ef4217c87b8c73db" - integrity sha512-jKm3xz5nX7ABtHzzuuLmawP0pFWP77lXNdIC6AWOceBs23OHUaJ29p4prxr/7Sb588GwTbkPsYkDqVFaE3ezNQ== - dependencies: - "@babel/plugin-transform-object-assign" "^7.16.7" - "@babel/preset-typescript" "^7.16.7" - "@types/invariant" "^2.2.35" - invariant "^2.2.4" - lodash.isequal "^4.5.0" - setimmediate "^1.0.5" - string-hash-64 "^1.0.3" - -react-native-reanimated@^3.12.0: +react-native-reanimated@3.12.0, react-native-reanimated@^3.12.0: version "3.12.0" resolved "https://registry.yarnpkg.com/react-native-reanimated/-/react-native-reanimated-3.12.0.tgz#2c768d43971bb19e425c436c892bf68c74b9ccab" integrity sha512-Bwa4jKL/QttnV8pQYiX+1N5a6XgL8yZtMyH+7UbEaW7ZeNCv1Pxp2PmYu/bP3LafCkmS9Yj/hY2adYNKe58g9A== @@ -14637,11 +14619,6 @@ set-value@^2.0.0, set-value@^2.0.1: is-plain-object "^2.0.3" split-string "^3.0.1" -setimmediate@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - integrity sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU= - setprototypeof@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" @@ -15061,11 +15038,6 @@ string-argv@^0.3.1: resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da" integrity sha512-a1uQGz7IyVy9YwhqjZIZu1c8JO8dNIe20xBmSS6qu9kv++k3JGzCVmprbNN5Kn+BgzD5E7YYwg1CcjuJMRNsvg== -string-hash-64@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/string-hash-64/-/string-hash-64-1.0.3.tgz#0deb56df58678640db5c479ccbbb597aaa0de322" - integrity sha512-D5OKWKvDhyVWWn2x5Y9b+37NUllks34q1dCDhk/vYcso9fmhs+Tl3KR/gE4v5UNj2UA35cnX4KdVVGkG1deKqw== - string-length@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a"