From 858e313a1241ee84d6d930aa0be0c628f509764f Mon Sep 17 00:00:00 2001 From: Gregory Fong Date: Mon, 16 Nov 2026 14:39:49 -0800 Subject: [PATCH] feat(app): consent sheet says what lending a view-only wallet's key covers (#61) A viewing key someone imported often watches the wallet holding their savings. The sheet adds one line for view-only wallets. It shows only once alerts are offered to them; today alertsAvailable is false for view-only wallets, so nothing changes on screen yet. Co-Authored-By: Claude Opus 5.5 --- mobile/app/notifications.tsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/mobile/app/notifications.tsx b/mobile/app/notifications.tsx index b2d95b0..9c13451 100644 --- a/mobile/app/notifications.tsx +++ b/mobile/app/notifications.tsx @@ -112,7 +112,13 @@ function ModeChoice({ * Lending the viewing key needs a yes first, and the person picks how alerts * arrive at the same moment (spec §6.3, zspace#442). Private is chosen to start with. */ -function ConsentSheet({ onDone }: { onDone: ((c: Consent) => void) | null }) { +function ConsentSheet({ + onDone, + viewOnly, +}: { + onDone: ((c: Consent) => void) | null; + viewOnly: boolean; +}) { const c = useTheme(); const s = useStyles(); const [instant, setInstant] = useState(false); @@ -139,6 +145,14 @@ function ConsentSheet({ onDone }: { onDone: ((c: Consent) => void) | null }) { While it’s lent, the server can see payments you receive. So could someone who broke into it, or a court order. + {/* A viewing key someone imported often watches the wallet that holds + their savings (wizard#61), so say what lending it covers. */} + {viewOnly ? ( + + This wallet only watches. If its key came from your main wallet, lending it shows the + server payments coming to that wallet. + + ) : null} When should alerts come? @@ -507,7 +521,7 @@ export default function Notifications() { )} - + ); }