Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
9be7fd9
chore: new it wallet bannder
mastro993 Nov 3, 2025
b764a8e
feat: itw engagement banner
mastro993 Nov 3, 2025
ff4e714
chore: adjust sizes
mastro993 Nov 3, 2025
51c1297
chore: adjust content
mastro993 Nov 3, 2025
dd0896d
chore: remove banner
mastro993 Nov 3, 2025
3e0c9d4
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Nov 12, 2025
0100a3b
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Dec 9, 2025
76a6210
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Dec 13, 2025
5e89a0b
chore: assets
mastro993 Dec 13, 2025
f7443d8
fix: playgrounds
mastro993 Dec 15, 2025
31b2de9
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Dec 15, 2025
f7dc633
feat: isActivationBannerHidden preference
mastro993 Dec 15, 2025
ef00bc3
chore: PoweredByItWalletText align
mastro993 Dec 15, 2025
37584f5
chore: pass borderRadius to branded box
mastro993 Dec 16, 2025
198f6f6
chore: banners
mastro993 Dec 16, 2025
624d91b
chore: update credential issuance logic from onboarding
mastro993 Dec 16, 2025
144e407
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Dec 16, 2025
c6f19f2
chore: activation banner tests
mastro993 Dec 16, 2025
9d03794
chore: remove dismiss logic
mastro993 Dec 16, 2025
daa516e
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Dec 17, 2025
6c1ef76
fix: banners
mastro993 Dec 17, 2025
c342ea9
fix: tests
mastro993 Dec 17, 2025
eed4f22
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Dec 18, 2025
f568030
chore: update onboarding screen
mastro993 Dec 18, 2025
2d444fa
chore: revert changesd
mastro993 Dec 18, 2025
a60598b
chore: add playgrounds
mastro993 Dec 18, 2025
02a573a
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Dec 18, 2025
d58ea0a
fix: import
mastro993 Dec 18, 2025
e23ce34
fix: pointer events
mastro993 Dec 19, 2025
6eb66b7
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Dec 19, 2025
6f17409
chore: update copy
mastro993 Dec 19, 2025
5a687aa
fix: tests
mastro993 Dec 19, 2025
1a06364
fix: copy
mastro993 Dec 19, 2025
87db8bb
chore: snapshots
mastro993 Dec 20, 2025
fe93ac0
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Dec 22, 2025
c908e1a
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Jan 5, 2026
5f5f21b
Merge branch 'master' into SIW-3306-add-engagement-banner-with-new-br…
mastro993 Jan 7, 2026
9991b97
fix playgrounds
mastro993 Jan 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 26 additions & 14 deletions locales/it/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -5760,20 +5760,32 @@
"action": "Ricarica l'app IO",
"failure": "Nessuna connessione. Collegati a internet e riprova."
},
"upgrade": {
"banner": {
"documents": {
"active": {
"title": "Passa a IT-Wallet",
"description": "Aggiorna i tuoi documenti digitali e passa a funzionalità evolute con l’unico portafoglio digitale di Stato: pubblico, sicuro e gratuito. Garantito dallo Stato, accessibile solo a te.",
"action": "Passa a IT-Wallet"
},
"inactive": {
"title": "IT-Wallet per i tuoi documenti",
"description": "Porta i tuoi documenti digitali verso funzionalità evolute con l'unico portafoglio digitale di Stato: **pubblico, sicuro e gratuito**. Garantito dallo Stato, accessibile solo a te.",
"action": "Ottieni IT-Wallet"
}
}
"engagementBanner": {
"activation": {
"title": "Porta su IO i tuoi documenti digitali",
"description": "Con piena validità ufficiale, digitali e sempre a portata di mano!",
"action": "Aggiungi un documento"
},
"upgrade_empty": {
"title": "Il tuo Portafoglio è ora parte di IT-Wallet",
"description": "Scopri le funzionalità evolute dei documenti digitali su IO.",
"action": "Aggiungi un documento"
},
"upgrade": {
"title": "IO dà il benvenuto a IT-Wallet",
"description": "Il tuo portafoglio digitale pubblico: semplice, sicuro, tuo. Scopri i nuovi documenti ora disponibili!",
"action": "Inizia"
},
"upgrade_with_mdl": {
"title": "Dimostra chi sei col tuo dispositivo",
"description": "Usa la tua Patente digitale anche come documento di riconoscimento, in modo facile e sicuro!",
"action": "Inizia"
},
"dismissAlert": {
"title": "Vuoi rinunciare ai vantaggi di IT-Wallet?",
"description": "Potrai ottenere IT-Wallet in qualsiasi altro momento, andando in Impostazioni > IT-Wallet.",
"confirm": "Sì, rinuncia",
"cancel": "Indietro"
}
},
"settings": {
Expand Down
49 changes: 49 additions & 0 deletions ts/features/itwallet/common/components/ItwActivationBanner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import I18n from "i18next";
import { View } from "react-native";
import { useIONavigation } from "../../../../navigation/params/AppParamsList";
import { useIOSelector } from "../../../../store/hooks";
import { ITW_ROUTES } from "../../navigation/routes";
import { itwShouldRenderActivationBannerSelector } from "../store/selectors";
import { ItwEngagementBanner } from "./ItwEngagementBanner";

/**
* Banner displayed to users which are able to activate IT-Wallet.
* If the user taps on the action button, they will be redirected to the IT-Wallet credential onboarding screen.
* The wallet activiation si contextual to the credential issuance flow.
*/
export const ItwActivationBanner = () => {
const navigation = useIONavigation();

const isBannerVisible = useIOSelector(
itwShouldRenderActivationBannerSelector
);

if (!isBannerVisible) {
return null;
}

const handleOnPress = () => {
navigation.navigate(ITW_ROUTES.MAIN, {
screen: ITW_ROUTES.ONBOARDING
});
};

const handleDismiss = () => {
// TODO SIW-3564 implement banner dismissal logic
};

return (
<View testID="itwActivationBannerTestID" style={{ marginVertical: 16 }}>
<ItwEngagementBanner
title={I18n.t("features.itWallet.engagementBanner.activation.title")}
description={I18n.t(
"features.itWallet.engagementBanner.activation.description"
)}
action={I18n.t("features.itWallet.engagementBanner.activation.action")}
onPress={handleOnPress}
onDismiss={handleDismiss}
dismissable={true}
/>
</View>
);
};
29 changes: 16 additions & 13 deletions ts/features/itwallet/common/components/ItwEnvironmentAlert.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Alert, Body, IOButton, VStack } from "@pagopa/io-app-design-system";
import I18n from "i18next";
import { useIODispatch, useIOSelector } from "../../../../store/hooks";
import { useIOBottomSheetModal } from "../../../../utils/hooks/bottomSheet";
import { View } from "react-native";
import { useIODispatch, useIOSelector } from "../../../../store/hooks.ts";
import { useIOBottomSheetModal } from "../../../../utils/hooks/bottomSheet.tsx";
import { itwResetEnv } from "../store/actions/environment.ts";
import { selectItwEnv } from "../store/selectors/environment.ts";

Expand Down Expand Up @@ -46,17 +47,19 @@ export const ItwEnvironmentAlert = () => {

return (
<>
<Alert
testID="itwEnvironmentAlertTestID"
variant="warning"
content={I18n.t(
"features.itWallet.playgrounds.environment.banner.content"
)}
action={I18n.t(
"features.itWallet.playgrounds.environment.banner.action"
)}
onPress={infoModal.present}
/>
<View style={{ marginVertical: 8 }}>
<Alert
testID="itwEnvironmentAlertTestID"
variant="warning"
content={I18n.t(
"features.itWallet.playgrounds.environment.banner.content"
)}
action={I18n.t(
"features.itWallet.playgrounds.environment.banner.action"
)}
onPress={infoModal.present}
/>
</View>
{infoModal.bottomSheet}
</>
);
Expand Down
Loading
Loading