Skip to content

Commit

Permalink
Optimize interactive prompt messages. (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed May 16, 2024
1 parent 657d269 commit 3bf5396
Show file tree
Hide file tree
Showing 462 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/ui/bagl_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ UX_STEP_CB(ux_tx_hash_display_approve_step,
(*g_validate_callback)(true),
{
&C_icon_validate_14,
"Approve",
"Sign Hash",
});
// Step with reject button
UX_STEP_CB(ux_tx_hash_display_reject_step,
Expand Down
6 changes: 3 additions & 3 deletions src/ui/bagl_transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ UX_STEP_CB(ux_tx_approve_step,
(*g_validate_callback)(true),
{
&C_icon_validate_14,
"Finalize",
"Sign",
"Transaction",
});
UX_STEP_CB(ux_auth_approve_step,
pnn,
(*g_validate_callback)(true),
{
&C_icon_validate_14,
"Finalize",
"Sign",
"Soroban Auth",
});
// Step with reject button
Expand All @@ -184,7 +184,7 @@ UX_STEP_CB(ux_tx_reject_step,
(*g_validate_callback)(false),
{
&C_icon_crossmark,
"Cancel",
"Reject",
});

// FLOW to display transaction information:
Expand Down
Binary file modified tests_zemu/snapshots/s-fee-bump-tx-hide-sequence/00032.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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_zemu/snapshots/s-fee-bump-tx-reject/00033.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_zemu/snapshots/s-fee-bump-tx-reject/00034.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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_zemu/snapshots/s-fee-bump-tx/00033.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_zemu/snapshots/s-hash-signing-approve/00006.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_zemu/snapshots/s-hash-signing-reject/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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_zemu/snapshots/s-op-account-merge/00013.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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_zemu/snapshots/s-op-allow-trust-authorize/00014.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_zemu/snapshots/s-op-allow-trust-deauthorize/00014.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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_zemu/snapshots/s-op-bump-sequence/00010.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_zemu/snapshots/s-op-change-trust-add-trust-line/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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_zemu/snapshots/s-op-claim-claimable-balance/00011.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_zemu/snapshots/s-op-clawback-claimable-balance/00014.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_zemu/snapshots/s-op-clawback-with-muxed-from/00015.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_zemu/snapshots/s-op-clawback/00014.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_zemu/snapshots/s-op-create-account/00013.png
Binary file modified tests_zemu/snapshots/s-op-create-claimable-balance/00014.png
Binary file modified tests_zemu/snapshots/s-op-create-passive-sell-offer/00013.png
Binary file modified tests_zemu/snapshots/s-op-extend-footprint-ttl/00006.png
Binary file modified tests_zemu/snapshots/s-op-inflation/00008.png
Binary file modified tests_zemu/snapshots/s-op-liquidity-pool-deposit/00017.png
Binary file modified tests_zemu/snapshots/s-op-liquidity-pool-withdraw/00016.png
Binary file modified tests_zemu/snapshots/s-op-manage-buy-offer-create/00012.png
Binary file modified tests_zemu/snapshots/s-op-manage-buy-offer-delete/00008.png
Binary file modified tests_zemu/snapshots/s-op-manage-buy-offer-update/00012.png
Binary file modified tests_zemu/snapshots/s-op-manage-data-add/00015.png
Binary file modified tests_zemu/snapshots/s-op-manage-data-remove/00011.png
Binary file modified tests_zemu/snapshots/s-op-manage-sell-offer-create/00012.png
Binary file modified tests_zemu/snapshots/s-op-manage-sell-offer-delete/00008.png
Binary file modified tests_zemu/snapshots/s-op-manage-sell-offer-update/00012.png
Binary file modified tests_zemu/snapshots/s-op-path-payment-strict-receive/00013.png
Binary file modified tests_zemu/snapshots/s-op-path-payment-strict-send/00014.png
Binary file modified tests_zemu/snapshots/s-op-payment-asset-alphanum12/00015.png
Binary file modified tests_zemu/snapshots/s-op-payment-asset-alphanum4/00013.png
Binary file modified tests_zemu/snapshots/s-op-payment-asset-native/00013.png
Binary file modified tests_zemu/snapshots/s-op-restore-footprint/00008.png
Binary file modified tests_zemu/snapshots/s-op-revoke-sponsorship-account/00013.png
Binary file modified tests_zemu/snapshots/s-op-revoke-sponsorship-data/00017.png
Binary file modified tests_zemu/snapshots/s-op-revoke-sponsorship-offer/00014.png
Binary file modified tests_zemu/snapshots/s-op-set-options-with-empty-body/00009.png
Binary file modified tests_zemu/snapshots/s-op-set-options/00026.png
Binary file modified tests_zemu/snapshots/s-op-with-empty-source/00012.png
Binary file modified tests_zemu/snapshots/s-op-with-muxed-source/00017.png
Binary file modified tests_zemu/snapshots/s-plugin-invoke-host-function/00015.png
Binary file modified tests_zemu/snapshots/s-plugin-soroban-auth-reject/00045.png
Binary file modified tests_zemu/snapshots/s-plugin-soroban-auth-reject/00046.png
Binary file modified tests_zemu/snapshots/s-plugin-soroban-auth/00045.png
Binary file modified tests_zemu/snapshots/s-soroban-auth-invoke-contract/00050.png
Binary file modified tests_zemu/snapshots/s-soroban-auth-public/00018.png
Binary file modified tests_zemu/snapshots/s-soroban-auth-reject/00050.png
Binary file modified tests_zemu/snapshots/s-soroban-auth-reject/00051.png
Binary file modified tests_zemu/snapshots/s-soroban-auth-testnet/00019.png
Binary file modified tests_zemu/snapshots/s-soroban-auth-unknown-network/00019.png
Binary file modified tests_zemu/snapshots/s-tx-cond-is-none/00014.png
Binary file modified tests_zemu/snapshots/s-tx-cond-ledger-bounds-are-zero/00011.png
Binary file modified tests_zemu/snapshots/s-tx-cond-ledger-bounds/00013.png
Binary file modified tests_zemu/snapshots/s-tx-cond-min-account-sequence/00012.png
Binary file modified tests_zemu/snapshots/s-tx-cond-time-bounds-are-zero/00011.png
Binary file modified tests_zemu/snapshots/s-tx-cond-time-bounds-is-none/00016.png
Binary file modified tests_zemu/snapshots/s-tx-cond-time-bounds-max-is-zero/00012.png
Binary file modified tests_zemu/snapshots/s-tx-cond-time-bounds-min-is-zero/00012.png
Binary file modified tests_zemu/snapshots/s-tx-cond-time-bounds/00013.png
Binary file modified tests_zemu/snapshots/s-tx-cond-with-all-items/00018.png
Binary file modified tests_zemu/snapshots/s-tx-custom-base-fee/00020.png
Binary file modified tests_zemu/snapshots/s-tx-hide-sequence/00008.png
Binary file modified tests_zemu/snapshots/s-tx-memo-hash/00015.png
Binary file modified tests_zemu/snapshots/s-tx-memo-id/00013.png
Binary file modified tests_zemu/snapshots/s-tx-memo-none/00011.png
Binary file modified tests_zemu/snapshots/s-tx-memo-return-hash/00015.png
Binary file modified tests_zemu/snapshots/s-tx-memo-text-unprintable/00015.png
Binary file modified tests_zemu/snapshots/s-tx-memo-text/00013.png
Binary file modified tests_zemu/snapshots/s-tx-multi-operations/00025.png
Binary file modified tests_zemu/snapshots/s-tx-network-custom/00010.png
Binary file modified tests_zemu/snapshots/s-tx-network-public/00009.png
Binary file modified tests_zemu/snapshots/s-tx-network-testnet/00010.png
Binary file modified tests_zemu/snapshots/s-tx-reject/00009.png
Binary file modified tests_zemu/snapshots/s-tx-reject/00010.png
Binary file modified tests_zemu/snapshots/s-tx-with-muxed-source/00019.png
Binary file modified tests_zemu/snapshots/sp-fee-bump-tx-hide-sequence/00022.png
Binary file modified tests_zemu/snapshots/sp-fee-bump-tx-reject/00023.png
Binary file modified tests_zemu/snapshots/sp-fee-bump-tx-reject/00024.png
Binary file modified tests_zemu/snapshots/sp-fee-bump-tx/00023.png
Binary file modified tests_zemu/snapshots/sp-hash-signing-approve/00004.png
Binary file modified tests_zemu/snapshots/sp-hash-signing-reject/00004.png
Binary file modified tests_zemu/snapshots/sp-op-account-merge/00011.png
Binary file modified tests_zemu/snapshots/sp-op-allow-trust-authorize/00012.png
Binary file modified tests_zemu/snapshots/sp-op-allow-trust-deauthorize/00012.png
Binary file modified tests_zemu/snapshots/sp-op-bump-sequence/00009.png
Binary file modified tests_zemu/snapshots/sp-op-change-trust-add-trust-line/00009.png
Binary file modified tests_zemu/snapshots/sp-op-claim-claimable-balance/00009.png
Binary file modified tests_zemu/snapshots/sp-op-clawback-claimable-balance/00010.png
Binary file modified tests_zemu/snapshots/sp-op-clawback-with-muxed-from/00011.png
Binary file modified tests_zemu/snapshots/sp-op-clawback/00011.png
Binary file modified tests_zemu/snapshots/sp-op-create-account/00011.png
Binary file modified tests_zemu/snapshots/sp-op-create-claimable-balance/00010.png
Binary file modified tests_zemu/snapshots/sp-op-create-passive-sell-offer/00011.png
Binary file modified tests_zemu/snapshots/sp-op-extend-footprint-ttl/00006.png
Binary file modified tests_zemu/snapshots/sp-op-inflation/00008.png
Binary file modified tests_zemu/snapshots/sp-op-liquidity-pool-deposit/00014.png
Binary file modified tests_zemu/snapshots/sp-op-liquidity-pool-withdraw/00013.png
Binary file modified tests_zemu/snapshots/sp-op-manage-buy-offer-create/00011.png
Binary file modified tests_zemu/snapshots/sp-op-manage-buy-offer-delete/00008.png
Binary file modified tests_zemu/snapshots/sp-op-manage-buy-offer-update/00011.png
Binary file modified tests_zemu/snapshots/sp-op-manage-data-add/00011.png
Binary file modified tests_zemu/snapshots/sp-op-manage-data-remove/00009.png
Binary file modified tests_zemu/snapshots/sp-op-manage-sell-offer-create/00011.png
Binary file modified tests_zemu/snapshots/sp-op-manage-sell-offer-delete/00008.png
Binary file modified tests_zemu/snapshots/sp-op-manage-sell-offer-update/00011.png
Binary file modified tests_zemu/snapshots/sp-op-path-payment-strict-receive/00011.png
Binary file modified tests_zemu/snapshots/sp-op-path-payment-strict-send/00011.png
Binary file modified tests_zemu/snapshots/sp-op-payment-asset-alphanum12/00011.png
Binary file modified tests_zemu/snapshots/sp-op-payment-asset-alphanum4/00010.png
Binary file modified tests_zemu/snapshots/sp-op-payment-asset-native/00010.png
Binary file modified tests_zemu/snapshots/sp-op-restore-footprint/00008.png
Binary file modified tests_zemu/snapshots/sp-op-revoke-sponsorship-account/00010.png
Binary file modified tests_zemu/snapshots/sp-op-revoke-sponsorship-data/00012.png
Binary file modified tests_zemu/snapshots/sp-op-revoke-sponsorship-offer/00011.png
Binary file modified tests_zemu/snapshots/sp-op-set-options-with-empty-body/00009.png
Binary file modified tests_zemu/snapshots/sp-op-set-options/00021.png
Binary file modified tests_zemu/snapshots/sp-op-with-empty-source/00009.png
Binary file modified tests_zemu/snapshots/sp-op-with-muxed-source/00011.png
Binary file modified tests_zemu/snapshots/sp-plugin-invoke-host-function/00013.png
Binary file modified tests_zemu/snapshots/sp-plugin-soroban-auth-reject/00031.png
Binary file modified tests_zemu/snapshots/sp-plugin-soroban-auth-reject/00032.png
Binary file modified tests_zemu/snapshots/sp-plugin-soroban-auth/00031.png
Binary file modified tests_zemu/snapshots/sp-soroban-auth-invoke-contract/00032.png
Binary file modified tests_zemu/snapshots/sp-soroban-auth-public/00012.png
Binary file modified tests_zemu/snapshots/sp-soroban-auth-reject/00032.png
Binary file modified tests_zemu/snapshots/sp-soroban-auth-reject/00033.png
Binary file modified tests_zemu/snapshots/sp-soroban-auth-testnet/00013.png
Binary file modified tests_zemu/snapshots/sp-soroban-auth-unknown-network/00013.png
Binary file modified tests_zemu/snapshots/sp-tx-cond-is-none/00010.png
Binary file modified tests_zemu/snapshots/sp-tx-cond-ledger-bounds-are-zero/00009.png
Binary file modified tests_zemu/snapshots/sp-tx-cond-ledger-bounds/00011.png
Binary file modified tests_zemu/snapshots/sp-tx-cond-min-account-sequence/00010.png
Binary file modified tests_zemu/snapshots/sp-tx-cond-time-bounds-are-zero/00009.png
Binary file modified tests_zemu/snapshots/sp-tx-cond-time-bounds-is-none/00012.png
Binary file modified tests_zemu/snapshots/sp-tx-cond-time-bounds/00011.png
Binary file modified tests_zemu/snapshots/sp-tx-cond-with-all-items/00016.png
Binary file modified tests_zemu/snapshots/sp-tx-custom-base-fee/00016.png
Binary file modified tests_zemu/snapshots/sp-tx-hide-sequence/00008.png
Binary file modified tests_zemu/snapshots/sp-tx-memo-hash/00011.png
Binary file modified tests_zemu/snapshots/sp-tx-memo-id/00010.png
Binary file modified tests_zemu/snapshots/sp-tx-memo-none/00009.png
Binary file modified tests_zemu/snapshots/sp-tx-memo-return-hash/00011.png
Binary file modified tests_zemu/snapshots/sp-tx-memo-text-unprintable/00011.png
Binary file modified tests_zemu/snapshots/sp-tx-memo-text/00010.png
Binary file modified tests_zemu/snapshots/sp-tx-multi-operations/00019.png
Binary file modified tests_zemu/snapshots/sp-tx-network-custom/00010.png
Loading

0 comments on commit 3bf5396

Please sign in to comment.