Skip to content

Commit 4f13b9e

Browse files
Merge pull request #756 from LedgerHQ/cev/w3c_optin_screens
W3C Wording and Screens
2 parents 1583c63 + d77be72 commit 4f13b9e

File tree

39 files changed

+13
-10
lines changed

39 files changed

+13
-10
lines changed

src_features/provide_tx_simulation/cmd_get_tx_simulation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ static bool handle_tlv_payload(const uint8_t *payload, uint16_t size, bool to_fr
502502
}
503503
if (strlen(ctx.simu->partner) == 0) {
504504
// Set a default value for partner
505-
snprintf((char *) ctx.simu->partner, sizeof(ctx.simu->partner), "Web3 Checks");
505+
snprintf((char *) ctx.simu->partner, sizeof(ctx.simu->partner), "Transaction Checks");
506506
}
507507
print_simulation_info(&ctx);
508508
return true;

src_nbgl/ui_home.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ static void prepare_and_display_home(const char *appname, const char *tagline, u
168168

169169
#ifdef HAVE_WEB3_CHECKS
170170
switches[WEB3_CHECK_ID].initState = N_storage.w3c_enable ? ON_STATE : OFF_STATE;
171-
switches[WEB3_CHECK_ID].text = "Transaction checks";
171+
switches[WEB3_CHECK_ID].text = "Transaction Check";
172172
switches[WEB3_CHECK_ID].subText =
173-
"Scans transactions for security threats. Learn more: ledger.com/w3c";
173+
"Get real-time warnings about risky transactions. Learn more: ledger.com/tx-check";
174174
switches[WEB3_CHECK_ID].token = WEB3_CHECK_TOKEN;
175175
switches[WEB3_CHECK_ID].tuneId = TUNE_TAP_CASUAL;
176176
#endif // HAVE_WEB3_CHECKS

src_nbgl/ui_tx_simulation.c

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,14 @@ void ui_tx_simulation_opt_in(bool response_expected) {
152152
.token = WARNING_CHOICE_TOKEN,
153153
.style = ROUNDED_AND_FOOTER_STYLE,
154154
.tuneId = TUNE_TAP_CASUAL};
155-
nbgl_layoutHeader_t headerDesc = {.type = HEADER_EMPTY,
155+
156+
nbgl_layoutHeader_t headerDesc = {.type = HEADER_EXTENDED_BACK,
156157
.separationLine = false,
157-
.emptySpace.height = MEDIUM_CENTERING_HEADER};
158+
.extendedBack.actionIcon = &QUESTION_CIRCLE_ICON,
159+
.extendedBack.backToken = NBGL_INVALID_TOKEN,
160+
.extendedBack.tuneId = TUNE_TAP_CASUAL,
161+
.extendedBack.text = NULL,
162+
.extendedBack.actionToken = WARNING_BUTTON_TOKEN};
158163

159164
g_response_expected = response_expected;
160165
layoutDescription.withLeftBorder = true;
@@ -164,14 +169,12 @@ void ui_tx_simulation_opt_in(bool response_expected) {
164169
// add header
165170
nbgl_layoutAddHeader(layoutCtx, &headerDesc);
166171

167-
// add Top right info button
168-
nbgl_layoutAddTopRightButton(layoutCtx, &QUESTION_ICON, WARNING_BUTTON_TOKEN, TUNE_TAP_CASUAL);
169-
170172
// add main content
171173
info.title = "Enable\nTransaction Check?";
172174
info.description =
173-
"Get real-time warnings about risky transactions, powered by "
174-
"service providers. Learn more: ledger.com/tx-check";
175+
"Get real-time warnings about risky Ethereum transactions. "
176+
"Powered by service providers.";
177+
info.subText = "By enabling, you accept T&Cs: ledger.com/tx-check";
175178
nbgl_layoutAddContentCenter(layoutCtx, &info);
176179

177180
// add button and footer on bottom
1.26 KB
Loading
1.26 KB
Loading
1.26 KB
Loading
1.26 KB
Loading
1.26 KB
Loading
1.26 KB
Loading
1.26 KB
Loading

0 commit comments

Comments
 (0)