Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

B2CA-1648: Fix UI #55

Merged
merged 5 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ APPNAME = XRP

APPVERSION_M=2
APPVERSION_N=4
APPVERSION_P=0
APPVERSION_P=1
APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)

# Application source files
Expand Down
4 changes: 4 additions & 0 deletions src/apdu/messages/get_public_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,21 @@ void on_address_confirmed() {
G_io_apdu_buffer[tx++] = 0x00;
// Send back the response, do not restart the event loop
io_exchange(CHANNEL_APDU | IO_RETURN_AFTER_TX, tx);
#ifndef HAVE_NBGL
// Display back the original UX
display_idle_menu();
#endif
}

void on_address_rejected() {
G_io_apdu_buffer[0] = 0x69;
G_io_apdu_buffer[1] = 0x85;
// Send back the response, do not restart the event loop
io_exchange(CHANNEL_APDU | IO_RETURN_AFTER_TX, 2);
#ifndef HAVE_NBGL
// Display back the original UX
display_idle_menu();
#endif
}

void handle_get_public_key(uint8_t p1,
Expand Down
4 changes: 4 additions & 0 deletions src/apdu/messages/sign_transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ void sign_transaction() {
return;
}

#ifndef HAVE_NBGL
// Display back the original UX
display_idle_menu();
#endif
}

void reject_transaction() {
Expand All @@ -164,7 +166,9 @@ void reject_transaction() {

// Reset transaction context and display back the original UX
reset_transaction_context();
#ifndef HAVE_NBGL
display_idle_menu();
#endif
}

bool is_first(uint8_t p1) {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/transaction/review_menu_nbgl.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void display_review_menu(parseResult_t *transaction_param, resultAction_t callba
&C_icon_XRP_64px,
"Review transaction",
NULL,
"Sign transaction",
"Sign transaction?",
reviewChoice);
}
#endif // HAVE_NBGL
2 changes: 1 addition & 1 deletion tests/functional_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def test_sign_valid_tx(backend: BackendInterface,
scenario_navigator: NavigateWithScenario,
raw_tx_path: str):
if raw_tx_path.endswith("19-really-stupid-tx.raw"):
pytest.skip(f"skip invalid tx {raw_tx_path}")
pytest.skip(f"skip invalid tx from '{Path(raw_tx_path).stem}'")

xrp = XRPClient(backend, firmware, navigator)

Expand Down
Binary file modified tests/snapshots/flex/01-payment/01-basic/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/01-basic/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/01-basic/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/01-basic/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/02-destination-tag/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/02-destination-tag/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/02-destination-tag/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/02-destination-tag/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/03-source-tag/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/03-source-tag/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/03-source-tag/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/03-source-tag/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/04-both-tags/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/04-both-tags/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/04-both-tags/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/04-both-tags/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/04-both-tags/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/04-both-tags/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified tests/snapshots/flex/01-payment/05-invoice-id/00000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/05-invoice-id/00001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/05-invoice-id/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/05-invoice-id/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/05-invoice-id/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/snapshots/flex/01-payment/05-invoice-id/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Binary file modified tests/snapshots/flex/01-payment/07-issued-currency/00000.png
Binary file modified tests/snapshots/flex/01-payment/07-issued-currency/00001.png
Binary file modified tests/snapshots/flex/01-payment/07-issued-currency/00002.png
Binary file modified tests/snapshots/flex/01-payment/07-issued-currency/00003.png
Binary file modified tests/snapshots/flex/01-payment/08-issued-currency-max/00000.png
Binary file modified tests/snapshots/flex/01-payment/08-issued-currency-max/00001.png
Binary file modified tests/snapshots/flex/01-payment/08-issued-currency-max/00002.png
Binary file modified tests/snapshots/flex/01-payment/08-issued-currency-max/00005.png
Diff not rendered.
Diff not rendered.
Binary file modified tests/snapshots/flex/01-payment/11-issued-currency-paths/00000.png
Binary file modified tests/snapshots/flex/01-payment/11-issued-currency-paths/00002.png
Binary file modified tests/snapshots/flex/01-payment/11-issued-currency-paths/00006.png
Binary file modified tests/snapshots/flex/01-payment/11-issued-currency-paths/00007.png
Diff not rendered.
Diff not rendered.
Binary file modified tests/snapshots/flex/01-payment/15-issue-abc-currency/00000.png
Binary file modified tests/snapshots/flex/01-payment/15-issue-abc-currency/00001.png
Binary file modified tests/snapshots/flex/01-payment/15-issue-abc-currency/00002.png
Binary file modified tests/snapshots/flex/01-payment/15-issue-abc-currency/00003.png
Binary file modified tests/snapshots/flex/01-payment/16-memos/00000.png
Binary file modified tests/snapshots/flex/01-payment/16-memos/00001.png
Binary file modified tests/snapshots/flex/01-payment/16-memos/00002.png
Binary file modified tests/snapshots/flex/01-payment/16-memos/00003.png
Binary file modified tests/snapshots/flex/01-payment/16-memos/00004.png
Binary file modified tests/snapshots/flex/01-payment/16-memos/00005.png
Binary file modified tests/snapshots/flex/01-payment/16-memos/00006.png
Binary file modified tests/snapshots/flex/01-payment/16-memos/00007.png
Binary file modified tests/snapshots/flex/01-payment/17-multi-sign-parallel/00001.png
Binary file modified tests/snapshots/flex/01-payment/17-multi-sign-parallel/00003.png
Binary file modified tests/snapshots/flex/01-payment/18-multi-sign-serial/00000.png
Binary file modified tests/snapshots/flex/01-payment/18-multi-sign-serial/00001.png
Binary file modified tests/snapshots/flex/01-payment/18-multi-sign-serial/00002.png
Binary file modified tests/snapshots/flex/01-payment/18-multi-sign-serial/00003.png
Binary file modified tests/snapshots/flex/01-payment/18-multi-sign-serial/00004.png
Binary file modified tests/snapshots/flex/01-payment/18-multi-sign-serial/00005.png
Binary file modified tests/snapshots/flex/01-payment/18-multi-sign-serial/00006.png
Binary file modified tests/snapshots/flex/01-payment/18-multi-sign-serial/00007.png
Binary file modified tests/snapshots/flex/01-payment/18-multi-sign-serial/00008.png
Binary file modified tests/snapshots/flex/01-payment/18-multi-sign-serial/00009.png
Diff not rendered.
Binary file modified tests/snapshots/flex/02-set-regular-key/01-basic/00000.png
Binary file modified tests/snapshots/flex/02-set-regular-key/01-basic/00001.png
Binary file modified tests/snapshots/flex/02-set-regular-key/01-basic/00002.png
Binary file modified tests/snapshots/flex/02-set-regular-key/01-basic/00003.png
Binary file modified tests/snapshots/flex/02-set-regular-key/02-delete/00000.png
Binary file modified tests/snapshots/flex/02-set-regular-key/02-delete/00001.png
Binary file modified tests/snapshots/flex/02-set-regular-key/02-delete/00002.png
Binary file modified tests/snapshots/flex/02-set-regular-key/02-delete/00003.png
Binary file modified tests/snapshots/flex/02-set-regular-key/02-delete/00004.png
Diff not rendered.
Diff not rendered.
Binary file modified tests/snapshots/flex/03-escrow-create/01-finish-after/00000.png
Binary file modified tests/snapshots/flex/03-escrow-create/01-finish-after/00001.png
Binary file modified tests/snapshots/flex/03-escrow-create/01-finish-after/00002.png
Binary file modified tests/snapshots/flex/03-escrow-create/01-finish-after/00003.png
Binary file modified tests/snapshots/flex/03-escrow-create/02-cancel-after/00000.png
Binary file modified tests/snapshots/flex/03-escrow-create/02-cancel-after/00001.png
Binary file modified tests/snapshots/flex/03-escrow-create/02-cancel-after/00002.png
Binary file modified tests/snapshots/flex/03-escrow-create/02-cancel-after/00003.png
Binary file modified tests/snapshots/flex/03-escrow-create/03-both/00000.png
Binary file modified tests/snapshots/flex/03-escrow-create/03-both/00001.png
Binary file modified tests/snapshots/flex/03-escrow-create/03-both/00002.png
Binary file modified tests/snapshots/flex/03-escrow-create/03-both/00003.png
Binary file modified tests/snapshots/flex/03-escrow-create/03-both/00004.png
Binary file modified tests/snapshots/flex/03-escrow-create/04-both-condition/00004.png
Binary file modified tests/snapshots/flex/04-escrow-finish/01-time-based/00000.png
Binary file modified tests/snapshots/flex/04-escrow-finish/01-time-based/00001.png
Binary file modified tests/snapshots/flex/04-escrow-finish/01-time-based/00002.png
Binary file modified tests/snapshots/flex/04-escrow-finish/01-time-based/00003.png
Binary file modified tests/snapshots/flex/04-escrow-finish/02-condition-based/00004.png
Binary file modified tests/snapshots/flex/05-escrow-cancel/01-basic/00000.png
Binary file modified tests/snapshots/flex/05-escrow-cancel/01-basic/00001.png
Binary file modified tests/snapshots/flex/05-escrow-cancel/01-basic/00002.png
Binary file modified tests/snapshots/flex/05-escrow-cancel/01-basic/00003.png
Binary file modified tests/snapshots/flex/06-account-set/01-basic/00000.png
Binary file modified tests/snapshots/flex/06-account-set/01-basic/00001.png
Binary file modified tests/snapshots/flex/06-account-set/01-basic/00002.png
Binary file modified tests/snapshots/flex/06-account-set/01-basic/00003.png
Binary file modified tests/snapshots/flex/06-account-set/01-basic/00004.png
Binary file modified tests/snapshots/flex/06-account-set/01-basic/00005.png
Binary file modified tests/snapshots/flex/06-account-set/01-basic/00006.png
Diff not rendered.
Binary file modified tests/snapshots/flex/06-account-set/02-default-ripple/00000.png
Binary file modified tests/snapshots/flex/06-account-set/02-default-ripple/00001.png
Binary file modified tests/snapshots/flex/06-account-set/02-default-ripple/00002.png
Binary file modified tests/snapshots/flex/06-account-set/02-default-ripple/00003.png
Binary file modified tests/snapshots/flex/06-account-set/02-default-ripple/00004.png
Diff not rendered.
Binary file modified tests/snapshots/flex/06-account-set/03-deposit-auth/00000.png
Binary file modified tests/snapshots/flex/06-account-set/03-deposit-auth/00001.png
Binary file modified tests/snapshots/flex/06-account-set/03-deposit-auth/00002.png
Binary file modified tests/snapshots/flex/06-account-set/03-deposit-auth/00003.png
Binary file modified tests/snapshots/flex/06-account-set/03-deposit-auth/00004.png
Diff not rendered.
Binary file modified tests/snapshots/flex/06-account-set/04-disable-master/00000.png
Binary file modified tests/snapshots/flex/06-account-set/04-disable-master/00001.png
Binary file modified tests/snapshots/flex/06-account-set/04-disable-master/00002.png
Binary file modified tests/snapshots/flex/06-account-set/04-disable-master/00003.png
Binary file modified tests/snapshots/flex/06-account-set/04-disable-master/00004.png
Diff not rendered.
Binary file modified tests/snapshots/flex/06-account-set/05-disallow-xrp/00000.png
Binary file modified tests/snapshots/flex/06-account-set/05-disallow-xrp/00001.png
Binary file modified tests/snapshots/flex/06-account-set/05-disallow-xrp/00002.png
Binary file modified tests/snapshots/flex/06-account-set/05-disallow-xrp/00003.png
Binary file modified tests/snapshots/flex/06-account-set/05-disallow-xrp/00004.png
Diff not rendered.
Binary file modified tests/snapshots/flex/06-account-set/06-global-freeze/00000.png
Binary file modified tests/snapshots/flex/06-account-set/06-global-freeze/00001.png
Binary file modified tests/snapshots/flex/06-account-set/06-global-freeze/00002.png
Binary file modified tests/snapshots/flex/06-account-set/06-global-freeze/00003.png
Binary file modified tests/snapshots/flex/06-account-set/06-global-freeze/00004.png
Diff not rendered.
Binary file modified tests/snapshots/flex/06-account-set/07-no-freeze/00000.png
Binary file modified tests/snapshots/flex/06-account-set/07-no-freeze/00001.png
Binary file modified tests/snapshots/flex/06-account-set/07-no-freeze/00002.png
Binary file modified tests/snapshots/flex/06-account-set/07-no-freeze/00003.png
Binary file modified tests/snapshots/flex/06-account-set/07-no-freeze/00004.png
Diff not rendered.
Binary file modified tests/snapshots/flex/06-account-set/08-require-auth/00000.png
Binary file modified tests/snapshots/flex/06-account-set/08-require-auth/00001.png
Binary file modified tests/snapshots/flex/06-account-set/08-require-auth/00002.png
Binary file modified tests/snapshots/flex/06-account-set/08-require-auth/00003.png
Binary file modified tests/snapshots/flex/06-account-set/08-require-auth/00004.png
Diff not rendered.
Binary file modified tests/snapshots/flex/06-account-set/09-require-tag/00000.png
Binary file modified tests/snapshots/flex/06-account-set/09-require-tag/00001.png
Binary file modified tests/snapshots/flex/06-account-set/09-require-tag/00002.png
Binary file modified tests/snapshots/flex/06-account-set/09-require-tag/00003.png
Binary file modified tests/snapshots/flex/06-account-set/09-require-tag/00004.png
Diff not rendered.
Diff not rendered.
Binary file modified tests/snapshots/flex/07-check-cancel/01-basic/00000.png
Binary file modified tests/snapshots/flex/07-check-cancel/01-basic/00001.png
Binary file modified tests/snapshots/flex/07-check-cancel/01-basic/00002.png
Binary file modified tests/snapshots/flex/07-check-cancel/01-basic/00003.png
Binary file modified tests/snapshots/flex/08-check-cash/01-basic/00000.png
Binary file modified tests/snapshots/flex/08-check-cash/01-basic/00001.png
Binary file modified tests/snapshots/flex/08-check-cash/01-basic/00002.png
Binary file modified tests/snapshots/flex/08-check-cash/01-basic/00003.png
Binary file modified tests/snapshots/flex/08-check-cash/02-amount/00000.png
Binary file modified tests/snapshots/flex/08-check-cash/02-amount/00001.png
Binary file modified tests/snapshots/flex/08-check-cash/02-amount/00002.png
Binary file modified tests/snapshots/flex/08-check-cash/02-amount/00003.png
Binary file modified tests/snapshots/flex/08-check-cash/03-issued/00000.png
Binary file modified tests/snapshots/flex/08-check-cash/03-issued/00001.png
Binary file modified tests/snapshots/flex/08-check-cash/03-issued/00002.png
Binary file modified tests/snapshots/flex/08-check-cash/03-issued/00003.png
Binary file modified tests/snapshots/flex/08-check-cash/03-issued/00004.png
Binary file modified tests/snapshots/flex/08-check-cash/03-issued/00005.png
Diff not rendered.
Diff not rendered.
Binary file modified tests/snapshots/flex/09-check-create/01-basic/00000.png
Binary file modified tests/snapshots/flex/09-check-create/01-basic/00001.png
Binary file modified tests/snapshots/flex/09-check-create/01-basic/00002.png
Binary file modified tests/snapshots/flex/09-check-create/01-basic/00003.png
Binary file modified tests/snapshots/flex/09-check-create/01-basic/00004.png
Binary file modified tests/snapshots/flex/09-check-create/02-issued/00000.png
Binary file modified tests/snapshots/flex/09-check-create/02-issued/00001.png
Binary file modified tests/snapshots/flex/09-check-create/02-issued/00002.png
Binary file modified tests/snapshots/flex/09-check-create/02-issued/00003.png
Binary file modified tests/snapshots/flex/09-check-create/02-issued/00004.png
Binary file modified tests/snapshots/flex/09-check-create/02-issued/00005.png
Binary file modified tests/snapshots/flex/09-check-create/02-issued/00006.png
Diff not rendered.
Binary file modified tests/snapshots/flex/10-deposit-preauth/01-basic/00000.png
Binary file modified tests/snapshots/flex/10-deposit-preauth/01-basic/00001.png
Binary file modified tests/snapshots/flex/10-deposit-preauth/01-basic/00002.png
Binary file modified tests/snapshots/flex/10-deposit-preauth/01-basic/00003.png
Binary file modified tests/snapshots/flex/10-deposit-preauth/02-unauthorize/00001.png
Binary file modified tests/snapshots/flex/10-deposit-preauth/02-unauthorize/00002.png
Binary file modified tests/snapshots/flex/10-deposit-preauth/02-unauthorize/00003.png
Binary file modified tests/snapshots/flex/11-offer-cancel/01-basic/00000.png
Binary file modified tests/snapshots/flex/11-offer-cancel/01-basic/00001.png
Binary file modified tests/snapshots/flex/11-offer-cancel/01-basic/00002.png
Binary file modified tests/snapshots/flex/11-offer-cancel/01-basic/00003.png
Binary file modified tests/snapshots/flex/11-offer-cancel/01-basic/00004.png
Diff not rendered.
Loading
Loading