From 16e83966701f887e3813c1c4a89bd019738b6df7 Mon Sep 17 00:00:00 2001 From: Matt Gleason Date: Thu, 31 Aug 2023 13:00:08 -0400 Subject: [PATCH 1/3] SFT-2273: first pass added a warning to do setup in a secure place --- .../modules/flows/select_setup_mode_flow.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py b/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py index 79d1f00a5..319a11bac 100644 --- a/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py +++ b/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py @@ -30,6 +30,19 @@ async def show_welcome(self): statusbar={'title': 'WELCOME', 'icon': 'ICON_HOME'}, left_micron=microns.Shutdown, right_micron=microns.Forward).show() + if result: + self.goto(self.show_warning) + else: + await ShutdownPage().show() + + async def show_warning(self): + from pages import InfoPage, ShutdownPage + + result = await InfoPage( + text='Make sure you are in a secure place, with resources like a pen, ' + + 'paper, and internet, for the best experience.', + left_micron=microns.Shutdown, + right_micron=microns.Forward).show() if result: self.goto(self.select_mode) else: From c1f46c5feb9b05338183cbe49fafcf473968e39b Mon Sep 17 00:00:00 2001 From: Matt Gleason Date: Thu, 7 Sep 2023 11:50:57 -0400 Subject: [PATCH 2/3] SFT-2273: updated copy text --- .../boards/Passport/modules/flows/select_setup_mode_flow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py b/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py index 319a11bac..168496846 100644 --- a/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py +++ b/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py @@ -39,8 +39,7 @@ async def show_warning(self): from pages import InfoPage, ShutdownPage result = await InfoPage( - text='Make sure you are in a secure place, with resources like a pen, ' + - 'paper, and internet, for the best experience.', + text='Make sure you are in a quiet and secure place with access to a pen, paper and the internet.', left_micron=microns.Shutdown, right_micron=microns.Forward).show() if result: From 8122bc7cb221aef4d1228ae3049de88fa381ffee Mon Sep 17 00:00:00 2001 From: Matt Gleason Date: Fri, 8 Sep 2023 12:19:08 -0400 Subject: [PATCH 3/3] SFT-2273: added commas --- .../boards/Passport/modules/flows/select_setup_mode_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py b/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py index 168496846..ab3e05e1a 100644 --- a/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py +++ b/ports/stm32/boards/Passport/modules/flows/select_setup_mode_flow.py @@ -39,7 +39,7 @@ async def show_warning(self): from pages import InfoPage, ShutdownPage result = await InfoPage( - text='Make sure you are in a quiet and secure place with access to a pen, paper and the internet.', + text='Make sure you are in a quiet and secure place, with access to a pen, paper, and the internet.', left_micron=microns.Shutdown, right_micron=microns.Forward).show() if result: